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
"login": {
"title": "Enter to your account",
...
}
Problem:
If i use default locale on auth/login page - everything is ok, but then i change route to en/auth/login i get warnings for each key: "auth:login.title" is missing in current namespace configuration. Try adding "login.title" to the namespace "auth".
Here is my nextJs log - you can see that locale has changed:
Usage
const { t } = useTranslation("auth");
console.log(t`login.title`) // auth:login.title
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i18n.json:
folder structure
./locales/ru/auth.json
:./locales/en/auth.json
:Problem:
If i use default locale on
auth/login
page - everything is ok, but then i change route toen/auth/login
i get warnings for each key:"auth:login.title" is missing in current namespace configuration. Try adding "login.title" to the namespace "auth".
Here is my nextJs log - you can see that locale has changed:
Usage
Beta Was this translation helpful? Give feedback.
All reactions