mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #15354 from overleaf/ae-i18next-compatibility
Set compatibilityJSON to v3 for plural suffixes GitOrigin-RevId: 8da0fc5a2777dbdc9abe9d72a47adab029ab91ef
This commit is contained in:
parent
10348b4544
commit
774a0a3f18
2 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,9 @@ i18n
|
|||
loadPath: path.join(__dirname, '../../../locales/__lng__.json'),
|
||||
},
|
||||
|
||||
// still using the v3 plural suffixes
|
||||
compatibilityJSON: 'v3',
|
||||
|
||||
// Load translation files synchronously: https://www.i18next.com/overview/configuration-options#initimmediate
|
||||
initImmediate: false,
|
||||
|
||||
|
|
|
@ -11,6 +11,9 @@ const LANG = window.i18n.currentLangCode
|
|||
i18n.use(initReactI18next).init({
|
||||
lng: LANG,
|
||||
|
||||
// still using the v3 plural suffixes
|
||||
compatibilityJSON: 'v3',
|
||||
|
||||
react: {
|
||||
// Since we are manually waiting on the translations data to
|
||||
// load, we don't need to use Suspense
|
||||
|
|
Loading…
Reference in a new issue