From 421a666fe943e1004dd5e167a7cf63b6b5ec2eb8 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 29 Feb 2024 13:02:44 +0000 Subject: [PATCH] Prevent "Element" hardcoded in i18n files (#1545) --- .github/workflows/static_analysis.yaml | 2 ++ package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/static_analysis.yaml b/.github/workflows/static_analysis.yaml index 4c08e25fe..d9014f102 100644 --- a/.github/workflows/static_analysis.yaml +++ b/.github/workflows/static_analysis.yaml @@ -25,6 +25,8 @@ jobs: i18n_lint: name: "i18n Check" uses: matrix-org/matrix-web-i18n/.github/workflows/i18n_check.yml@main + with: + hardcoded-words: "Element" js_lint: name: "ESLint" diff --git a/package.json b/package.json index fb359dc92..52fea2401 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "find-npm-prefix": "^1.0.2", "glob": "^10.0.0", "knip": "^5.0.0", - "matrix-web-i18n": "^3.1.3", + "matrix-web-i18n": "^3.2.1", "mkdirp": "^3.0.0", "node-pre-gyp": "^0.17.0", "pacote": "^17.0.0", diff --git a/yarn.lock b/yarn.lock index c092dfdb3..9ef8bc109 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4814,10 +4814,10 @@ matcher@^3.0.0: dependencies: escape-string-regexp "^4.0.0" -matrix-web-i18n@^3.1.3: - version "3.1.5" - resolved "https://registry.yarnpkg.com/matrix-web-i18n/-/matrix-web-i18n-3.1.5.tgz#cab9adb233b63b3760d6e40f71fff8041c648789" - integrity sha512-xe9Letv1KT04X7CalnK080cRUBvlVum5fSspaxPJ575W/+ZEwwN2mktF7Bl5gDMpuFLuXvP97xkr66BOB4I+3g== +matrix-web-i18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/matrix-web-i18n/-/matrix-web-i18n-3.2.1.tgz#34e6b66bec71a52fddbe72db56d9e35dabbaff59" + integrity sha512-pBklE6Q6mAwG6N3Qtpu/e+qX0XuWEdrs4SZ+QmYJWfyLNtKAB6XcSpE5m7aBW/+11ejg8ua8Q5bNcDV2b7C9lg== dependencies: "@babel/parser" "^7.18.5" "@babel/traverse" "^7.18.5"