From fd2a420867fb786d155e64871fa0836b23fd857c Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 28 May 2020 12:42:23 +0200 Subject: [PATCH] :bug: corrige la traduction automatique de l'ui --- mon-entreprise/package.json | 2 +- mon-entreprise/scripts/i18n/translate-ui.js | 1 + mon-entreprise/source/locales/ui-en.yaml | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mon-entreprise/package.json b/mon-entreprise/package.json index 2c1d00a01..840aa1240 100644 --- a/mon-entreprise/package.json +++ b/mon-entreprise/package.json @@ -85,7 +85,7 @@ "i18n:rules:check": "node scripts/i18n/check-missing-rule-translation.js", "i18n:rules:translate": "node scripts/i18n/translate-rules.js", "i18n:ui:check": "yarn run i18next -c scripts/i18n/parser.config.js && node scripts/i18n/check-missing-UI-translation", - "i18n:ui:translate": "rm -rf source/locales/static-analysis-fr.json && yarn run i18next -c script/i18n/parser.config.js && node scripts/i18n/translate-ui.js", + "i18n:ui:translate": "rm -rf source/locales/static-analysis-fr.json && yarn run i18next -c scripts/i18n/parser.config.js && node scripts/i18n/translate-ui.js", "start": "node source/server.js", "serve:dev": "yarn run serve:dev:mon-entreprise & yarn run serve:dev:mycompanyinfrance & yarn run serve:dev:publicodes", "serve:dev:mon-entreprise": "PORT=5000 serve --config serve.mon-entreprise.json --no-clipboard", diff --git a/mon-entreprise/scripts/i18n/translate-ui.js b/mon-entreprise/scripts/i18n/translate-ui.js index c378bc132..a713fa462 100644 --- a/mon-entreprise/scripts/i18n/translate-ui.js +++ b/mon-entreprise/scripts/i18n/translate-ui.js @@ -9,6 +9,7 @@ const { } = require('./utils') const missingTranslations = getUiMissingTranslations() + let translatedKeys = parse(fs.readFileSync(UiTranslationPath, 'utf-8')) Object.entries(missingTranslations) diff --git a/mon-entreprise/source/locales/ui-en.yaml b/mon-entreprise/source/locales/ui-en.yaml index eac34106b..227667a5d 100644 --- a/mon-entreprise/source/locales/ui-en.yaml +++ b/mon-entreprise/source/locales/ui-en.yaml @@ -794,6 +794,9 @@ non applicable si: not applicable if non déductible: not deductible noresults: No results oui: yes +page: + documentation: + title: Documentation pages: dévelopeurs: bibliothèque: "<0>Integrate our calculation library<1>If you think that your