Skip to content

Commit

Permalink
Merge pull request #13197 from cyril-ui-developer/update-i18next-parser
Browse files Browse the repository at this point in the history
CONSOLE-3766: Update i18next-parser dev dependency in console
  • Loading branch information
openshift-ci[bot] committed Oct 19, 2023
2 parents db9f7eb + 79c7bbb commit f9662a7
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 32 deletions.
6 changes: 5 additions & 1 deletion dynamic-demo-plugin/i18next-parser.config.js
Expand Up @@ -4,5 +4,9 @@ module.exports = {
locales: ['en'],
namespaceSeparator: '~',
reactNamespace: false,
useKeysAsDefaultValue: true,
defaultValue: function (_, _, key, _) {
// The `useKeysAsDefaultValues` option is deprecated in favor of `defaultValue` option function arguments.
// The `key` is used to set default value.
return key;
}
};
4 changes: 0 additions & 4 deletions frontend/i18next-parser.config.js
Expand Up @@ -70,10 +70,6 @@ module.exports = {
sort: false,
// Whether or not to sort the catalog

useKeysAsDefaultValue: false,
// Whether to use the keys as the default value; ex. "Hello": "Hello", "World": "World"
// The option `defaultValue` will not work if this is set to true

verbose: false,
// Display info about the parsing including some stats
};
2 changes: 1 addition & 1 deletion frontend/package.json
Expand Up @@ -298,7 +298,7 @@
"graphql-tag": "^2.10.3",
"html-webpack-plugin": "3.x",
"husky": "^4.2.5",
"i18next-parser": "^6.5.0",
"i18next-parser": "^7.9.0",
"i18next-pseudo": "^2.2.0",
"jasmine-console-reporter": "2.x",
"jasmine-core": "2.x",
Expand Down

0 comments on commit f9662a7

Please sign in to comment.