⬆ Met à jour i18next-parser

Suite au support ES Module https://github.com/i18next/i18next-parser/issues/497
pull/2053/head
Maxime Quandalle 2022-03-13 09:09:31 +01:00
parent 450bdc734a
commit b28895e068
3 changed files with 23 additions and 26 deletions

View File

@ -38,8 +38,8 @@
"i18n:translate": "yarn i18n:rules:translate && yarn i18n:ui:translate",
"i18n:rules:check": "node scripts/i18n/check-missing-rule-translation.js",
"i18n:rules:translate": "node scripts/i18n/translate-rules.js",
"i18n:ui:check": "i18next -c scripts/i18n/parser.config.cjs && node scripts/i18n/check-missing-UI-translation.js",
"i18n:ui:translate": "rm -rf source/locales/static-analysis-fr.json && i18next -c scripts/i18n/parser.config.cjs && node scripts/i18n/translate-ui.js",
"i18n:ui:check": "i18next -c scripts/i18n/parser.config.js && node scripts/i18n/check-missing-UI-translation.js",
"i18n:ui:translate": "rm -rf source/locales/static-analysis-fr.json && i18next -c scripts/i18n/parser.config.js && node scripts/i18n/translate-ui.js",
"storybook": "start-storybook -p 6006",
"build:storybook": "build-storybook"
},
@ -138,7 +138,7 @@
"eslint-plugin-mocha": "^10.0.3",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"i18next-parser": "^5.3.0",
"i18next-parser": "^6.0.0",
"isomorphic-fetch": "^2.2.1",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",

View File

@ -1,16 +1,6 @@
// i18next-parser.config.js
import { UiStaticAnalysisPath } from './utils.js'
// TODO: Use the ESM import from ./utils once the following bug is fixed:
// https://github.com/i18next/i18next-parser/issues/497
//
// import { UiStaticAnalysisPath } from './utils'
const path = require('path')
const UiStaticAnalysisPath = path.resolve(
__dirname,
'../../source/locales/static-analysis-fr.json'
)
module.exports = {
export default {
contextSeparator: '_',
// Key separator used in your translation keys

View File

@ -12157,9 +12157,9 @@ __metadata:
languageName: node
linkType: hard
"i18next-parser@npm:^5.3.0":
version: 5.4.0
resolution: "i18next-parser@npm:5.4.0"
"i18next-parser@npm:^6.0.0":
version: 6.0.0
resolution: "i18next-parser@npm:6.0.0"
dependencies:
"@babel/runtime": ^7.15.4
broccoli-plugin: ^4.0.7
@ -12173,7 +12173,7 @@ __metadata:
i18next: ^21.2.0
js-yaml: 4.1.0
rsvp: ^4.8.2
sort-keys: ^4.2.0
sort-keys: ^5.0.0
through2: ~4.0.2
typescript: ^4.2.4
vinyl: ~2.2.1
@ -12181,7 +12181,7 @@ __metadata:
vue-template-compiler: ^2.6.11
bin:
i18next: bin/cli.js
checksum: c6539f12eecdaf29f68e5732049f37a310a49824b98b9278754d58fe8f02b80e3e52c559c98f383424f467add32de41d917724923ac8d45e9640e32441580169
checksum: d26d055c53d3986f6bb0e7a57e1743deab709952dd0fae3bbba25c28ff9fb291e8b6c44ad1e2dccd6b18f12ef7279e0b18cdf20558832bfb1ac0782b403ef76c
languageName: node
linkType: hard
@ -12806,6 +12806,13 @@ __metadata:
languageName: node
linkType: hard
"is-plain-obj@npm:^4.0.0":
version: 4.0.0
resolution: "is-plain-obj@npm:4.0.0"
checksum: a6bb55a90636345a64c6153b74d85a9b6440f9975f4dcc57eed596c280b7ba228c71c406355a3147ed0488330d2743d5756e052c9492b1aa4f7dcd281f08c4b6
languageName: node
linkType: hard
"is-plain-object@npm:5.0.0":
version: 5.0.0
resolution: "is-plain-object@npm:5.0.0"
@ -17640,7 +17647,7 @@ __metadata:
eslint-plugin-react: ^7.28.0
eslint-plugin-react-hooks: ^4.3.0
fuse.js: ^6.4.6
i18next-parser: ^5.3.0
i18next-parser: ^6.0.0
isomorphic-fetch: ^2.2.1
markdown-to-jsx: ^7.1.5
modele-social: ^0.6.0
@ -17782,12 +17789,12 @@ __metadata:
languageName: node
linkType: hard
"sort-keys@npm:^4.2.0":
version: 4.2.0
resolution: "sort-keys@npm:4.2.0"
"sort-keys@npm:^5.0.0":
version: 5.0.0
resolution: "sort-keys@npm:5.0.0"
dependencies:
is-plain-obj: ^2.0.0
checksum: 1535ffd5a789259fc55107d5c3cec09b3e47803a9407fcaae37e1b9e0b813762c47dfee35b6e71e20ca7a69798d0a4791b2058a07f6cab5ef17b2dae83cedbda
is-plain-obj: ^4.0.0
checksum: 9c0b7a468312075be03770b260b2cc0e5d55149025e564edaed41c9ff619199698aad6712a6fe4bbc75c541efb081276ac6bbd4cf2723d742f272f7a8fe354f5
languageName: node
linkType: hard