UNPKG

@kiwicom/smart-faq

Version:

Smart FAQ

23 lines (19 loc) 648 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.loadStaticTranslations = void 0; // @flow /* eslint-disable import/no-dynamic-require, no-console */ var loadStaticTranslations = function loadStaticTranslations(langId /*: string*/ ) { try { // $FlowExpectedError: Expected use of none string literal return require("./static/locales/".concat(langId, "/translation.json")); } catch (error) { console.error('Language selected does not exists, default lenguage loaded.', error); return require('../translations/enKeys.json'); } }; exports.loadStaticTranslations = loadStaticTranslations;