I18n jsons sync command (#2342)

* Add new command

* Run against existing

* Update docs
This commit is contained in:
Kalle
2025-05-31 11:32:29 +03:00
committed by GitHub
parent 8a90b4dec4
commit 616bcfc003
244 changed files with 7145 additions and 1490 deletions

View File

@@ -193,7 +193,11 @@ function getKeysWithoutSuffix(
const foundSuffixKeys = new Set<string>();
const keys = [];
for (const key of Object.keys(translations)) {
for (const [key, value] of Object.entries(translations)) {
if (value === "") {
continue; // Consider key missing if untranslated
}
const suffix = KNOWN_SUFFIXES.find((sfx) => key.endsWith(sfx));
if (!suffix) {
if (foundSuffixKeys.has(key)) {