mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 06:10:00 +00:00
It's apparently forced now to use the eslint.config.js instead of .eslintrc It got more strict with requiring the underscore on unused vars like `catch(_err)` , but that was all Closes #1012 Closes #995 Closes #992 ## Launch Checklist <!-- Thanks for the PR! Feel free to add or remove items from the checklist. --> - [ ] Briefly describe the changes in this PR. - [ ] Link to related issues. - [ ] Include before/after visuals or gifs if this PR includes visual changes. - [ ] Write tests for all new functionality. - [ ] Add an entry to `CHANGELOG.md` under the `## main` section.
18 lines
588 B
TypeScript
18 lines
588 B
TypeScript
export default {
|
|
output: 'src/locales/$LOCALE/$NAMESPACE.json',
|
|
locales: [ 'de', 'fr', 'he', 'ja', '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__';
|
|
}
|
|
}
|