Skip to content

Commit

Permalink
Merge pull request #406 from ZIMkaRU/feature/improve-fallback-languag…
Browse files Browse the repository at this point in the history
…es-for-i18next

Improve fallback languages for i18next
  • Loading branch information
ezewer authored Oct 8, 2024
2 parents ca636b2 + 85c2b2a commit cfb6707
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion workers/loc.api/i18next/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ module.exports = (params) => {

const configs = merge(
{
fallbackLng: 'en',
fallbackLng: {
es: ['es-EM'],
pt: ['pt-BR'],
zh: ['zh-CN'],
default: ['en']
},
ns: Object.values(TRANSLATION_NAMESPACES),
defaultNS: 'email',
preload: [...transPaths.reduce((accum, transPath) => {
Expand Down

0 comments on commit cfb6707

Please sign in to comment.