import a from"i18next";import{DEFAULT_LOCALE_PLACEHOLDER as i}from"../../constants/index.js";function r(t,n){const e=t?.defaultLocale||i,o=t?.translations||{};return{load:"currentOnly",lng:n,nonExplicitSupportedLngs:!0,fallbackLng:[e],interpolation:{escapeValue:!1},debug:!1,resources:{...o}}}async function c(t,n){await a.init(r(t,n))}export{r as getConfig,c as initL10n};
