You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without declaring it again, t("META_TITLE") returns the translation key for languages without this key. I'm expecting to see the fallback language used in i18next.server.js to translate the string.
Describe the bug
When using
i18n.getFixedT
inside a loader function, I have to redeclare thefallbackLng
option.Without declaring it again,
t("META_TITLE")
returns the translation key for languages without this key. I'm expecting to see the fallback language used ini18next.server.js
to translate the string.Your Example Website or App
Private repo
Steps to Reproduce the Bug or Issue
i18next.server.js
in https://github.com/sergiodxa/remix-i18next#configurationt
by callingi18next.getFixedT
with the request and namespace argumentst
function with a translation key that exists in the fallback language but not in another languageExpected behavior
I expect to see the translation for the given key in the fallback language used when none exist in the target language
Screenshots or Videos
No response
Platform
Additional context
Not a major issue as there is a workaround but it would save us repeating code in each route's loader. Thanks
The text was updated successfully, but these errors were encountered: