Files
editor/i18next-parser.config.ts
Hugues Tavernier 32fa02d289 Add french language support (#929)
## Launch Checklist

Add french language support

## issues

in the left side menu the translated text takes up space, resulting in a
degraded UI


![maputnik-fr-1](https://github.com/user-attachments/assets/ef7c2048-cc4e-44d6-b386-5877983a5a81)
2024-09-01 09:58:15 +03:00

18 lines
578 B
TypeScript

export default {
output: 'src/locales/$LOCALE/$NAMESPACE.json',
locales: [ 'fr', 'ja', 'he','zh' ],
// Because some keys are dynamically generated, i18next-parser can't detect them.
// We add these keys manually, so we don't want to remove them.
keepRemoved: true,
// We use plain English keys, so we disable key and namespace separators.
keySeparator: false,
namespaceSeparator: false,
defaultValue: (locale, ns, key) => {
// The default value is a string that indicates that the string is not translated.
return '__STRING_NOT_TRANSLATED__';
}
}