@ui5/webcomponents-localization
Version:
Localization for UI5 Web Components
23 lines • 1.16 kB
JavaScript
import { getLanguage } from "@ui5/webcomponents-base/dist/config/Language.js";
import { getCalendarType } from "@ui5/webcomponents-base/dist/config/CalendarType.js";
import { getTimezone as getConfigTimezone } from "@ui5/webcomponents-base/dist/config/Timezone.js";
import getDesigntimePropertyAsArray from "@ui5/webcomponents-base/dist/util/getDesigntimePropertyAsArray.js";
// @ts-ignore
import TimezoneUtil from "./format/TimezoneUtil.js";
import FormatSettings from "./FormatSettings.js";
const emptyFn = () => { };
/**
* OpenUI5 Configuration Shim
*/
const Configuration = {
getLanguage,
getCalendarType,
getSupportedLanguages: () => getDesigntimePropertyAsArray("$core-i18n-locales:,ar,bg,ca,cs,da,de,el,en,es,et,fi,fr,hi,hr,hu,it,iw,ja,ko,lt,lv,nl,no,pl,pt,ro,ru,sh,sk,sl,sv,th,tr,uk,vi,zh_CN,zh_TW$"),
getOriginInfo: emptyFn,
getFormatSettings: () => FormatSettings,
getTimezone: () => getConfigTimezone() || TimezoneUtil.getLocalTimezone(),
// Calculate calendar week numbering by active format locale
getCalendarWeekNumbering: () => "Default",
};
export default Configuration;
//# sourceMappingURL=Configuration.js.map