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 23a5769 commit b21e69e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/esm-home-app/translations/fr.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"Home": "Home"
"Home": "Maison"
}
6 changes: 6 additions & 0 deletions tools/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 b21e69e

Please sign in to comment.