{"version":3,"mappings":"maAKO,SAASA,GAGb,CACD,MAAO,CACL,CAAEC,IAAK,KAAMC,MAAKC,EAAAC,EAAE,CAAAC,GAAA,SAAS,CAAC,EAC9B,CAAEJ,IAAK,KAAMC,MAAKC,EAAAC,EAAE,CAAAC,GAAA,SAAQ,CAAC,CAAE,CAEnC,CAEA,eAAsBC,EAAYC,EAAgB,CAC1C,MAAEC,UAAa,QAAMC,EAA8B,yCAAAC,EAAA,6DAAAA,EAAA,sDAAAH,CAAA,SAEzD,OAAOJ,EAAKQ,gBAAgB,CAAEJ,SAAQC,WAAU,CAClD,CAKO,SAASI,GAAoB,CAC5B,MAAEC,YAAaC,EAAW,GAAK,CAAC,EAEtC,OAAOD,GAAY,IACrB","names":["getLanguages","key","label","i18n","_","id","loadCatalog","locale","messages","__variableDynamicImportRuntimeHelper","__vitePreload","loadAndActivate","useLocale","language","useGlobals"],"ignoreList":[],"sources":["../../../app/modules/lingui/lingui.ts"],"sourcesContent":["import { i18n } from \"@lingui/core\";\nimport { t } from \"@lingui/macro\";\nimport type config from \"~/config/lingui.config\";\nimport { useGlobals } from \"~/hooks/useGlobals\";\n\nexport function getLanguages(): Array<{\n key: (typeof config.locales)[number];\n label: string;\n}> {\n return [\n { key: \"en\", label: t`English` },\n { key: \"fr\", label: t`French` },\n ];\n}\n\nexport async function loadCatalog(locale: string) {\n const { messages } = await import(`../../locales/${locale}.po`);\n\n return i18n.loadAndActivate({ locale, messages });\n}\n\n/**\n * Get the locale returned by the global window object.\n */\nexport function useLocale(): string {\n const { language } = useGlobals() || {};\n\n return language ?? \"en\";\n}\n"],"file":"assets/lingui-CoG7voLv.js"}