Skip to content

Commit

Permalink
Migrate i18next-parser config
Browse files Browse the repository at this point in the history
* Replace useKeysAsDefaultValue with a defaultValue function.
  * Documentation: https://github.com/i18next/i18next-parser/blob/master/docs/migration.md#migrating-from-6x-to-7x
* Remove nsSeparator because it was never a valid config field.
  • Loading branch information
canac committed Nov 11, 2024
1 parent 33e6732 commit da4d33d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions i18next-parser.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ module.exports = {
input: ['src/**/*.{js,jsx,ts,tsx}', 'pages/**/*.{jsx,tsx}'],
verbose: true,
sort: true,
nsSeparator: false,
namespaceSeparator: false,
keySeparator: false,
useKeysAsDefaultValue: true,
defaultValue: (locale, namespace, key) => key,
};

0 comments on commit da4d33d

Please sign in to comment.