@ui5/webcomponents-localization
Version:
Localization for UI5 Web Components
17 lines • 503 B
JavaScript
// called from sapui5, but not supported by us
const legacyFormats = ["sapUiLegacyTimeFormat", "sapUiABAPTimeFormat", "sapUiLegacyDateFormat", "sapUiABAPDateFormat", "sapUiLegacyNumberFormat", "sapUiABAPNumberFormat"];
export default {
getWritableInstance() {
return {
get({
name
}) {
if (legacyFormats.includes(name)) {
return undefined;
}
throw new Error("Localization :: missing configuration requested.");
}
};
},
Type: {}
};