Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): keep the oblique noun in the Hindi one-hour label
Yudhi Armyndharisadbbc4fb914c
diff --git a/dashboard/src/i18n/locales.test.ts b/dashboard/src/i18n/locales.test.tsindex adf5f1aeb..b2c42dceb 100644--- a/dashboard/src/i18n/locales.test.ts+++ b/dashboard/src/i18n/locales.test.ts@@ -84,6 +84,8 @@ test('common.minAgo and common.hoursAgo agree with the count', () => {assert.equal(i18n.t('common.hoursAgo', { lng: 'fr', count: 1 }), 'Il y a 1 heure');assert.equal(i18n.t('common.hoursAgo', { lng: 'fr', count: 3 }), 'Il y a 3 heures');assert.equal(i18n.t('common.hoursAgo', { lng: 'he', count: 2 }), 'לפני שעתיים');+ // 'पहले' governs the oblique case, so Hindi keeps 'घंटे' for one hour too.+ assert.equal(i18n.t('common.hoursAgo', { lng: 'hi', count: 1 }), '1 घंटे पहले');assert.equal(i18n.t('common.minAgo', { lng: 'te', count: 5 }), '5 నిమిషాల క్రితం');assert.equal(i18n.t('common.minAgo', { lng: 'ar', count: 3 }), 'منذ 3 دقائق');});diff --git a/dashboard/src/i18n/locales/hi.json b/dashboard/src/i18n/locales/hi.jsonindex 8a3d7bcb5..fffa82383 100644--- a/dashboard/src/i18n/locales/hi.json+++ b/dashboard/src/i18n/locales/hi.json@@ -33,7 +33,7 @@"justNow": "अभी-अभी","minAgo": "{{count}} मिनट पहले","minAgo_other": "{{count}} मिनट पहले",- "hoursAgo": "{{count}} घंटा पहले",+ "hoursAgo": "{{count}} घंटे पहले","hoursAgo_other": "{{count}} घंटे पहले","optional": "वैकल्पिक","language": "भाषा",