@kiwicom/smart-faq
Version:
21 lines (18 loc) • 568 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.loadStaticTranslations = void 0;
// @flow
var loadStaticTranslations = function loadStaticTranslations(langId
/*: string*/
) {
try {
return require("./static/locales/".concat(langId, "/translation.json"));
} catch (error) {
// eslint-disable-next-line no-console
console.error('Language selected does not exists, default lenguage loaded.', error);
return require('../translations/enKeys.json');
}
};
exports.loadStaticTranslations = loadStaticTranslations;
;