Skip to content

Commit

Permalink
Update i18next-parser dev dependency in console
Browse files Browse the repository at this point in the history
  • Loading branch information
cyril-ui-developer committed Oct 12, 2023
1 parent aeeeddf commit 79c7bbb
Show file tree
Hide file tree
Showing 4 changed files with 259 additions and 33 deletions.
6 changes: 5 additions & 1 deletion dynamic-demo-plugin/i18next-parser.config.js
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
};
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@
"@patternfly/react-table": "4.113.0",
"@patternfly/react-tokens": "4.94.6",
"@patternfly/react-topology": "4.93.6",
"@patternfly/react-virtualized-extension": "4.88.115",
"@patternfly/react-user-feedback": "1.0.2",
"@patternfly/react-virtualized-extension": "4.88.115",
"@prometheus-io/codemirror-promql": "^0.37.0",
"@rjsf/core": "^2.5.1",
"abort-controller": "3.0.0",
Expand Down 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
Loading

0 comments on commit 79c7bbb

Please sign in to comment.