import * as __WEBPACK_EXTERNAL_MODULE_i18next__ from "i18next";
import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
import * as __WEBPACK_EXTERNAL_MODULE__locale_index_mjs__ from "../locale/index.mjs";
function tval(text, options) {
    if (options) return "{{t(".concat(JSON.stringify(text), ", ").concat(JSON.stringify(options), ")}}");
    return "{{t(".concat(JSON.stringify(text), ")}}");
}
const i18n = __WEBPACK_EXTERNAL_MODULE_i18next__["default"].createInstance();
const resources = {};
Object.keys(__WEBPACK_EXTERNAL_MODULE__locale_index_mjs__["default"]).forEach((lang)=>{
    resources[lang] = __WEBPACK_EXTERNAL_MODULE__locale_index_mjs__["default"][lang].resources;
});
if ('undefined' != typeof localStorage) i18n.use(__WEBPACK_EXTERNAL_MODULE_react_i18next__.initReactI18next).init({
    lng: localStorage.getItem('TACHYBASE_LOCALE') || 'en-US',
    defaultNS: 'core',
    resources: {},
    keySeparator: false,
    nsSeparator: false
});
export { i18n, tval };
