Skip to content

Commit

Permalink
Editing a default value should update the translation files
Browse files Browse the repository at this point in the history
  • Loading branch information
vasharma05 committed Jan 22, 2024
1 parent 987c415 commit 01e4ddf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions i18next-parser.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ module.exports = {
failOnWarnings: false,
// Exit with an exit code of 1 on warnings

resetDefaultValueLocale: 'en',
// The locale to compare with default values to determine whether a default value has been changed.
// If this is set and a default value differs from a translation in the specified locale, all entries
// for that key across locales are reset to the default value, and existing translations are moved to
// the `_old` file.

customValueTemplate: null,
// If you wish to customize the value output the value as an object, you can set your own format.
// ${defaultValue} is the default value you set in your translation function.
Expand Down

0 comments on commit 01e4ddf

Please sign in to comment.