diff --git a/src/i18n/index.ts b/src/i18n/index.ts index f761c341..d3a66937 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -11,12 +11,12 @@ export const LANGUAGES: Record = { 'pt-br': PT_BR, }; -export const getTextForLanguage = async ( +export const getTextForLanguage = ( language = '', -): Promise => { +): I18N => { const text = US_EN; - Object.entries(await LANGUAGES[language.toLocaleLowerCase()] ?? {}) + Object.entries(LANGUAGES[language.toLocaleLowerCase()] ?? {}) .forEach(([key, value]) => { text[key as keyof I18N] = { ...text[key as keyof I18N],