fix(web): guard t() against prototype keys and check the dictionary in CI

t() looked a key up with dict[key] ?? key, so t("constructor") returned
Object and t("toString", {}) threw. Backend values are used as keys, so
this was reachable. Use an own-property check for the dictionary and the
vars, and commit the key-check script as npm run test:i18n in the web
job so tr.json cannot drift.
This commit is contained in:
BaaRai
2026-11-19 15:40:49 +01:00
parent e59d396f20
commit d577d7e3b2
4 changed files with 71 additions and 3 deletions
+1
View File
@@ -149,6 +149,7 @@ jobs:
- run: npm run test:polling
- run: npm run test:replay
- run: npm run test:upload
- run: npm run test:i18n
- run: npm run build:static
python: