From 89cf826555e60b237589b54ef8f4799a079f20df Mon Sep 17 00:00:00 2001 From: Lipis Date: Wed, 1 Jul 2020 12:05:21 +0300 Subject: [PATCH] Change target branch of coverage and pretty print (#1850) --- .eslintignore | 1 - .github/workflows/locales-coverage.yml | 2 +- .prettierignore | 1 - scripts/build-locales-coverage.js | 2 +- src/locales/percentages.json | 31 +++++++++++++++++++++++++- 5 files changed, 32 insertions(+), 5 deletions(-) diff --git a/.eslintignore b/.eslintignore index 4769ecb5e..fd61fca29 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,4 +3,3 @@ build/ package-lock.json .vscode/ firebase/ -src/locales/percentages.json diff --git a/.github/workflows/locales-coverage.yml b/.github/workflows/locales-coverage.yml index ccc76e1d4..fcb50ce0a 100644 --- a/.github/workflows/locales-coverage.yml +++ b/.github/workflows/locales-coverage.yml @@ -3,7 +3,7 @@ name: Build locales percentages on: push: branches: - - "master" + - "l10n_master" paths: - "src/locales/**.json" - "!src/locales/percentages.json" diff --git a/.prettierignore b/.prettierignore index 933921afb..e69de29bb 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +0,0 @@ -src/locales/percentages.json diff --git a/scripts/build-locales-coverage.js b/scripts/build-locales-coverage.js index 289279986..d939f5a02 100644 --- a/scripts/build-locales-coverage.js +++ b/scripts/build-locales-coverage.js @@ -27,6 +27,6 @@ for (let index = 0; index < locales.length; index++) { writeFileSync( `${__dirname}/../src/locales/percentages.json`, - JSON.stringify(percentages), + JSON.stringify(percentages, null, 2), "utf8", ); diff --git a/src/locales/percentages.json b/src/locales/percentages.json index 82f0cbb7d..96b6c5f03 100644 --- a/src/locales/percentages.json +++ b/src/locales/percentages.json @@ -1 +1,30 @@ -{"ar-SA":57,"bg-BG":81,"ca-ES":92,"de-DE":100,"el-GR":98,"en":100,"es-ES":97,"fa-IR":100,"fi-FI":100,"fr-FR":100,"he-IL":94,"hi-IN":100,"hu-HU":58,"id-ID":59,"it-IT":97,"ja-JP":77,"ko-KR":72,"nb-NO":100,"nl-NL":85,"nn-NO":100,"pl-PL":99,"pt-PT":100,"ru-RU":81,"sq-AL":42,"tr-TR":98,"uk-UA":100,"zh-CN":100,"zh-TW":100} \ No newline at end of file +{ + "ar-SA": 57, + "bg-BG": 81, + "ca-ES": 92, + "de-DE": 100, + "el-GR": 98, + "en": 100, + "es-ES": 97, + "fa-IR": 100, + "fi-FI": 100, + "fr-FR": 100, + "he-IL": 94, + "hi-IN": 100, + "hu-HU": 58, + "id-ID": 59, + "it-IT": 97, + "ja-JP": 77, + "ko-KR": 72, + "nb-NO": 100, + "nl-NL": 85, + "nn-NO": 100, + "pl-PL": 99, + "pt-PT": 100, + "ru-RU": 81, + "sq-AL": 42, + "tr-TR": 98, + "uk-UA": 100, + "zh-CN": 100, + "zh-TW": 100 +}