mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 06:10:00 +00:00
18 lines
572 B
TypeScript
18 lines
572 B
TypeScript
export default {
|
|
output: 'src/locales/$LOCALE/$NAMESPACE.json',
|
|
locales: [ '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__';
|
|
}
|
|
}
|