From df13554b59f42cea94c7acb50e361045366a9bed Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 4 Sep 2023 09:22:18 +0100 Subject: [PATCH] Update matrix-web-i18n --- package.json | 12 ++++++++---- yarn.lock | 11 ++++++----- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 406cf538618..44cc5c8ecf1 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,13 @@ "UserFriendlyError" ], "scripts": { - "i18n": "matrix-gen-i18n", - "prunei18n": "matrix-prune-i18n", - "diff-i18n": "cp src/i18n/strings/en_EN.json src/i18n/strings/en_EN_orig.json && matrix-gen-i18n && matrix-compare-i18n-files src/i18n/strings/en_EN_orig.json src/i18n/strings/en_EN.json", + "i18n": "matrix-gen-i18n && yarn i18n:sort", + "i18n:diff": "cp src/i18n/strings/en_EN.json src/i18n/strings/en_EN_orig.json && matrix-gen-i18n && matrix-compare-i18n-files src/i18n/strings/en_EN_orig.json src/i18n/strings/en_EN.json", + "i18n:sort": "jq --sort-keys '.' src/i18n/strings/en_EN.json | sponge src/i18n/strings/en_EN.json", + "i18n:lint": "prettier --loglevel silent --write src/i18n/strings/ --ignore-path /dev/null", + "i18n:upload": "localazy upload", + "i18n:download": "localazy download && yarn i18n:lint", + "i18n:download-with-source": "localazy download -p includeSourceLang:true && yarn i18n:lint", "clean": "rimraf lib webapp", "build": "yarn clean && yarn build:genfiles && yarn build:bundle", "build-stats": "yarn clean && yarn build:genfiles && yarn build:bundle-stats", @@ -146,7 +150,7 @@ "json-loader": "^0.5.7", "loader-utils": "^3.0.0", "matrix-mock-request": "^2.5.0", - "matrix-web-i18n": "^2.0.0", + "matrix-web-i18n": "^3.1.0", "mini-css-extract-plugin": "^1", "minimist": "^1.2.6", "mkdirp": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index 9021fee3626..35926214e0f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8885,14 +8885,15 @@ matrix-mock-request@^2.5.0: what-input "^5.2.10" zxcvbn "^4.4.2" -matrix-web-i18n@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/matrix-web-i18n/-/matrix-web-i18n-2.1.0.tgz#bab2db9ac462773de829053b4b8d43c11154a85b" - integrity sha512-z+B9D/PkWYB4O9SP4lsG4KNA2V3ypMWstP+lreft1c1wz6L5R1U3ennp+cs3yOsylBfcK+xLRvkwLNZsU6QEUA== +matrix-web-i18n@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/matrix-web-i18n/-/matrix-web-i18n-3.1.0.tgz#4456592790dbf7221b67ba0e8ff8ac95376a71d6" + integrity sha512-PeFjEztxdJPp14glusbo/j4mBuW0jRHAmnuRthxWGJVYWawq5SXZ7rtvisfgK04OfjEQ/oZF8xyHnclLLH9PwA== dependencies: "@babel/parser" "^7.18.5" "@babel/traverse" "^7.18.5" lodash "^4.17.21" + minimist "^1.2.8" walk "^2.3.15" matrix-widget-api@^1.3.1, matrix-widget-api@^1.5.0: @@ -9150,7 +9151,7 @@ minimist-options@4.1.0: is-plain-obj "^1.1.0" kind-of "^6.0.3" -minimist@>=1.2.2, minimist@^1.1.0, minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: +minimist@>=1.2.2, minimist@^1.1.0, minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6, minimist@^1.2.8: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==