Skip to content

Commit 31ce1a8

Browse files
Switch translation files to nested json (#490)
* Add crowdin config * Switch translation to nested json format
1 parent b2e0fcc commit 31ce1a8

File tree

4 files changed

+421
-363
lines changed

4 files changed

+421
-363
lines changed

i18next-parser.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
keepRemoved: false,
1818
// Keep keys from the catalog that are no longer in code
1919

20-
keySeparator: false,
20+
keySeparator: ".",
2121
// Key separator used in your translation keys
2222
// If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance.
2323

src/i18n.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ i18n
1414
hu: { translation: hu },
1515
},
1616
fallbackLng: 'en',
17-
keySeparator: false,
17+
keySeparator: '.',
1818
nsSeparator: false,
1919
detection: {
2020
caches: ['localStorage', 'cookie'],

0 commit comments

Comments
 (0)