Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5bd0afc

Browse files
authored
Prevent "Element" hardcoded in i18n files (#12296)
* Prevent "Element" hardcoded in i18n files Signed-off-by: Michael Telatynski <[email protected]> * Update matrix-web-i18n Signed-off-by: Michael Telatynski <[email protected]> --------- Signed-off-by: Michael Telatynski <[email protected]>
1 parent 48c7543 commit 5bd0afc

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/static_analysis.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ jobs:
5656
i18n_lint:
5757
name: "i18n Check"
5858
uses: matrix-org/matrix-web-i18n/.github/workflows/i18n_check.yml@main
59+
with:
60+
hardcoded-words: "Element"
61+
allowed-hardcoded-keys: |
62+
console_dev_note
63+
labs|element_call_video_rooms
64+
labs|feature_disable_call_per_sender_encryption
65+
voip|element_call
5966
6067
rethemendex_lint:
6168
name: "Rethemendex Check"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
"jest-raw-loader": "^1.0.1",
213213
"jsqr": "^1.4.0",
214214
"mailhog": "^4.16.0",
215-
"matrix-web-i18n": "^3.1.5",
215+
"matrix-web-i18n": "^3.2.1",
216216
"mocha-junit-reporter": "^2.2.0",
217217
"node-fetch": "2",
218218
"postcss-scss": "^4.0.4",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6929,10 +6929,10 @@ [email protected]:
69296929
unhomoglyph "^1.0.6"
69306930
uuid "9"
69316931

6932-
matrix-web-i18n@^3.1.5:
6933-
version "3.1.5"
6934-
resolved "https://registry.yarnpkg.com/matrix-web-i18n/-/matrix-web-i18n-3.1.5.tgz#cab9adb233b63b3760d6e40f71fff8041c648789"
6935-
integrity sha512-xe9Letv1KT04X7CalnK080cRUBvlVum5fSspaxPJ575W/+ZEwwN2mktF7Bl5gDMpuFLuXvP97xkr66BOB4I+3g==
6932+
matrix-web-i18n@^3.2.1:
6933+
version "3.2.1"
6934+
resolved "https://registry.yarnpkg.com/matrix-web-i18n/-/matrix-web-i18n-3.2.1.tgz#34e6b66bec71a52fddbe72db56d9e35dabbaff59"
6935+
integrity sha512-pBklE6Q6mAwG6N3Qtpu/e+qX0XuWEdrs4SZ+QmYJWfyLNtKAB6XcSpE5m7aBW/+11ejg8ua8Q5bNcDV2b7C9lg==
69366936
dependencies:
69376937
"@babel/parser" "^7.18.5"
69386938
"@babel/traverse" "^7.18.5"

0 commit comments

Comments
 (0)