diff --git a/package/src/lib/loadI18nData.ts b/package/src/lib/loadI18nData.ts index 6da8232..9abed2e 100644 --- a/package/src/lib/loadI18nData.ts +++ b/package/src/lib/loadI18nData.ts @@ -5,7 +5,14 @@ import { getParams } from "@nimpl/getters/get-params"; const loadI18nData = async (): Promise<{ dictionary: Translates; language: string }> => { const config = await getConfig(); - const language = await config.getLanguage({ pathname: getPathname(), params: getParams() }); + const language = await config.getLanguage({ + get pathname() { + return getPathname(); + }, + get params() { + return getParams(); + }, + }); if (!language || !config.languages.includes(language)) { throw new Error(