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
For this case we should create empty 'en' translation.
If we ignore it, i18n returns default language, cause locale is not in locales.
Suggestion
Add home or source or similar named param to set a source language.
If user.language is "en", i18n shouldn't translate anything, just return an original text.
The text was updated successfully, but these errors were encountered:
Prerequisites
Code example
Project tree
Middleware setup
Problem
For this case we should create empty 'en' translation.
If we ignore it, i18n returns default language, cause
locale is not in locales
.Suggestion
Add
home
orsource
or similar named param to set a source language.If
user.language is "en"
, i18n shouldn't translate anything, just return an original text.The text was updated successfully, but these errors were encountered: