mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user