ci(client): hold the en keys nothing reaches to a baseline that only shrinks

lint:i18n-keys only listed unused en keys as information, and it looked for
references in client/src alone, so every key the server sends (system notice
and notification channel keys in its registries) read as dead. The reference
search now also reads server/src and plugin-sdk/src; those references only
mark keys as reached and are not held to the client's key rules. The unused
keys per en domain file are counted against scripts/i18n-unused-baseline.json,
which only shrinks and fails on an entry above its count until --update
lowers it. Today's 841 unused keys in 44 files are frozen, none deleted.
This commit is contained in:
Maurice
2026-10-10 13:47:08 +02:00
parent c83fa66c67
commit b31c2ff1d2
6 changed files with 258 additions and 23 deletions
+3 -1
View File
@@ -454,7 +454,9 @@ jobs:
run: cd client && npm run lint:skips
- name: i18n keys check
# Every translation key src/ names must exist in shared en.
# Every translation key src/ names must exist in shared en, and the
# en keys nothing in client, server or plugin-sdk reaches may not rise
# above scripts/i18n-unused-baseline.json per en file.
run: cd client && npm run lint:i18n-keys
- name: Theme tokens check