Skip to content

Commit

Permalink
chore: fix cem generation for base (#8121)
Browse files Browse the repository at this point in the history
Co-authored-by: Nayden Naydenov <nnaydenow.work@sap.com>
  • Loading branch information
nnaydenow and Nayden Naydenov committed Jan 16, 2024
1 parent ce5e716 commit aa5b09b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/base/src/util/detectNavigatorLanguage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DEFAULT_LANGUAGE } from "../generated/AssetParameters.js";

export default () => {
const detectNavigatorLanguage = () => {
const browserLanguages = navigator.languages;

const navigatorLanguage = () => {
Expand All @@ -11,3 +11,5 @@ export default () => {

return rawLocale || DEFAULT_LANGUAGE;
};

export default detectNavigatorLanguage;
4 changes: 3 additions & 1 deletion packages/base/src/util/getDesigntimePropertyAsArray.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default (value: string) => {
const designTimePropertyAsArray = (value: string) => {
const m = /\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec(value);
return m && m[2] ? m[2].split(/,/) : null;
};

export default designTimePropertyAsArray;

0 comments on commit aa5b09b

Please sign in to comment.