Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(i18n): drop Hebrew plural forms no rule can select

Yudhi Armyndharisc146cc28f7e8
diff --git a/dashboard/src/i18n/check-i18n-parity.test.ts b/dashboard/src/i18n/check-i18n-parity.test.ts
index e1ad80e53..a81d2e43a 100644
--- a/dashboard/src/i18n/check-i18n-parity.test.ts
+++ b/dashboard/src/i18n/check-i18n-parity.test.ts
@@ -28,6 +28,8 @@ function runWith<T = { chats: { channels: Record<string, string> } }>(file: stri
test('the shipped catalogues pass the parity check', () => {
const result = spawnSync(process.execPath, [SCRIPT], { encoding: 'utf8' });
assert.equal(result.status, 0, result.stderr);
+ // A key no plural rule can select is dead weight, and its warning on every run buries real ones.
+ assert.doesNotMatch(result.stderr, /extra key/);
});
test('a renamed token in a plural form en.json does not have fails the check', () => {
diff --git a/dashboard/src/i18n/locales/he.json b/dashboard/src/i18n/locales/he.json
index 114eb58f2..8f09ef9da 100644
--- a/dashboard/src/i18n/locales/he.json
+++ b/dashboard/src/i18n/locales/he.json
@@ -93,7 +93,6 @@
"unreadBadge": "{{count}} הודעה שלא נקראה",
"unreadBadge_other": "{{count}} הודעות שלא נקראו",
"unreadBadge_two": "שתי הודעות שלא נקראו",
- "unreadBadge_many": "{{count}} הודעות שלא נקראו",
"loadingMessages": "טוען הודעות...",
"loadingOlderMessages": "טוען הודעות ישנות יותר...",
"loadOlderMessagesError": "טעינת ההודעות הישנות נכשלה. גלול למעלה כדי לנסות שוב.",
@@ -159,7 +158,6 @@
"itemCount": "עדכון {{count}}",
"itemCount_one": "עדכון {{count}}",
"itemCount_two": "{{count}} עדכונים",
- "itemCount_many": "{{count}} עדכונים",
"itemCount_other": "{{count}} עדכונים",
"empty": "לאף איש קשר אין סטטוס פעיל.",
"loadError": "טעינת הסטטוסים נכשלה.",
@@ -186,8 +184,7 @@
"notReady": "הסשן עדיין אינו מוכן.",
"subscribers": "{{count}} מנוי",
"subscribers_other": "{{count}} מנויים",
- "subscribers_two": "שני מנויים",
- "subscribers_many": "{{count}} מנויים"
+ "subscribers_two": "שני מנויים"
},
"errors": {
"loadSessions": "טעינת הסשנים נכשלה",
@@ -460,7 +457,6 @@
"filters": {
"badge": "{{count}} מסנן",
"badge_other": "{{count}} מסננים",
- "badge_many": "{{count}} מסננים",
"badge_two": "שני מסננים",
"title": "מסננים (אופציונלי)",
"hint": "הפעלה רק כאשר כל התנאים מתקיימים. חל על אירועי הודעות.",