#i18n internationalization, language don't change

4 messages · Page 1 of 1 (latest)

sinful lintel
#

i have json files in src/i18n/en/en.json and src/i18n/pl/pl.json

winged crystal
#

Double-check that you're sending the language code in the correct header name.
The order of resolvers in I18nModule.forRootAsync can affect which language is chosen. The HeaderResolver should have higher priority than the AcceptLanguageResolver and the custom QueryResolver to ensure the x-lang header takes precedence.

sinful lintel
#

my header is ok,

x-lang: en

sinful lintel
#

Ok i resolve the problem, i need to group my translation json files and have the same name in en/ pl/ folder