Skip to content

Commit

Permalink
Fix: Allow loading of locales like zh_TW
Browse files Browse the repository at this point in the history
Deactivate the `nonExplicitSupportedLngs` i18next setting (see
https://www.i18next.com/overview/configuration-options#languages-namespaces-resources
for more details) that caused our supported languages needed to contain
only short codes of the languages to be a valid locale. Therefore
locales like `zh_TW` were considered as not supported and the locale did
fall back to `en`.
  • Loading branch information
bjoernricks committed Oct 10, 2023
1 parent 13cd8cb commit 74a4a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gmp/locale/lang.js
Expand Up @@ -54,7 +54,7 @@ const I18N_OPTIONS = {
loadPath: '/locales/{{ns}}-{{lng}}.json', // e.g. /locales/gsa-en.json
},
supportedLngs: whitelist,
nonExplicitSupportedLngs: true,
nonExplicitSupportedLngs: false,
interpolation: {
skipOnVariables: false,
},
Expand Down

0 comments on commit 74a4a4a

Please sign in to comment.