redundant translations #622
Answered
by
aralroca
majdiriahi
asked this question in
General
-
How can i associate both of languages fr and fr-be to the same translation file locales/fr/common.json to avoid redundancy ? |
Beta Was this translation helpful? Give feedback.
Answered by
aralroca
May 30, 2021
Replies: 1 comment
-
You need to overwrite the module.exports = {
...config,
loadLocaleFrom: (lang, ns) =>
import(`./locales/${lang.split('-')[0]}/${ns}.json`).then((m) => m.default),
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
majdiriahi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to overwrite the
loadLocaleFrom
in thei18n.js
configuration.