@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
15 lines (14 loc) • 433 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { getI18nInstance, initializeI18n } from "./core/i18n";
import { isTestMode } from "./schema";
export let translate = (key, options) => {
var _a;
const i18n = (_a = getI18nInstance()) !== null && _a !== void 0 ? _a : initializeI18n('de');
return i18n.translate(key, options);
};
if (isTestMode()) {
translate = (key) => key;
}
//# sourceMappingURL=i18n.js.map