mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-09 12:46:10 -05:00
I18n jsons sync command (#2342)
* Add new command * Run against existing * Update docs
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user