Skip to content

redundant translations #622

Answered by aralroca
majdiriahi asked this question in General
Discussion options

You must be logged in to vote

You need to overwrite the loadLocaleFrom in the i18n.js configuration.

module.exports = {
  ...config,
  loadLocaleFrom: (lang, ns) =>
    import(`./locales/${lang.split('-')[0]}/${ns}.json`).then((m) => m.default),
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by majdiriahi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants