{"version":3,"sources":["lib/appContext/i18n.ts"],"names":[],"mappings":"AAGA,OAAO,uCAAuC,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAC;AAI7D,OAAO,EAAa,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAI1E,aAAK,KAAK,GAAG,IAAI,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;AAI/B,wBAAgB,OAAO,iBAMtB","file":"../../../lib/appContext/i18n.d.ts","sourcesContent":["/* eslint-disable */\n// bare import prevents the typescript compiler from\n// removing a types-only import ...\nimport '../../../../../i18next/i18next.min.js';\nimport { i18n } from '../../../../../i18next/i18next.min.js';\n/* eslint-enable */\n\nimport AppContext from '../../common/appContext/appContext.js';\nimport { configure, providerName } from '../../common/appContext/i18n.js';\nimport { Provider } from '../../common/provider';\n\ndeclare let i18next: i18n;\ntype Ii18n = i18n;\nexport { providerName, Ii18n };\n\nconfigure(i18next, [`${new URL(import .meta.url).pathname.replace(/\\/[^/]+$/, '')}/../../common/appContext/i18n`]);\n\nexport function getI18n() {\n  return AppContext.get().then(\n    (cx) => cx.getProvider(providerName),\n  ).then(\n    (provider: Provider<Ii18n>) => provider.get(),\n  );\n}\n"]}