Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): use the singular noun for 100+ Arabic status counts
Yudhi Armyndharis6d42348b371f
diff --git a/dashboard/src/i18n/locales.test.ts b/dashboard/src/i18n/locales.test.tsindex 704cc79d1..adf5f1aeb 100644--- a/dashboard/src/i18n/locales.test.ts+++ b/dashboard/src/i18n/locales.test.ts@@ -116,6 +116,11 @@ test('Hebrew dual + Arabic plural categories resolve for the filter badge', () =assert.equal(i18n.t('webhooks.filters.badge', { lng: 'ar', count: 3 }), '3 عوامل تصفية');});+test('Arabic takes the singular noun from 100 up and the plural from 3 to 10', () => {+ assert.equal(i18n.t('chats.status.itemCount', { lng: 'ar', count: 100 }), '100 تحديث');+ assert.equal(i18n.t('chats.status.itemCount', { lng: 'ar', count: 3 }), '3 تحديثات');+});+test('every session-scope API key string resolves in every locale', () => {for (const lng of LOCALE_IDS) {for (const key of SESSION_SCOPE_KEYS) {diff --git a/dashboard/src/i18n/locales/ar.json b/dashboard/src/i18n/locales/ar.jsonindex afb1e97b3..12b9168f8 100644--- a/dashboard/src/i18n/locales/ar.json+++ b/dashboard/src/i18n/locales/ar.json@@ -170,7 +170,7 @@"itemCount_two": "تحديثان","itemCount_few": "{{count}} تحديثات","itemCount_many": "{{count}} تحديثًا",- "itemCount_other": "{{count}} تحديثات",+ "itemCount_other": "{{count}} تحديث","empty": "لا توجد جهات اتصال لديها حالة نشطة.","loadError": "تعذر تحميل الحالات.","mediaUnavailable": "الوسائط غير متوفرة",