Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(dashboard): translate the Templates nav item in five locales

Yudhi Armyndharisd4a0dd05bd02
diff --git a/dashboard/src/i18n/locales.test.ts b/dashboard/src/i18n/locales.test.ts
index c1dfcc13a..1fd390721 100644
--- a/dashboard/src/i18n/locales.test.ts
+++ b/dashboard/src/i18n/locales.test.ts
@@ -346,3 +346,9 @@ test('the webhook filter chat-kind field is translated in every locale', () => {
assert.notEqual(label, 'Chat kind', `${lng} webhooks.filters.fields.kind is still English`);
}
});
+
+test('the Templates nav item reads the same as the page it opens in every locale', () => {
+ for (const lng of LOCALE_IDS) {
+ assert.equal(i18n.t('nav.templates', { lng }), i18n.t('templates.title', { lng }), `${lng} nav.templates`);
+ }
+});
diff --git a/dashboard/src/i18n/locales/ar.json b/dashboard/src/i18n/locales/ar.json
index 89c73948c..4419e0a31 100644
--- a/dashboard/src/i18n/locales/ar.json
+++ b/dashboard/src/i18n/locales/ar.json
@@ -60,7 +60,7 @@
"sessions": "الجلسات",
"chats": "المحادثات",
"webhooks": "الويب هوك",
- "templates": "Templates",
+ "templates": "القوالب",
"apiKeys": "مفاتيح API",
"messageTester": "اختبار الرسائل",
"infrastructure": "البنية التحتية",
diff --git a/dashboard/src/i18n/locales/he.json b/dashboard/src/i18n/locales/he.json
index d109173ca..31e3c1c24 100644
--- a/dashboard/src/i18n/locales/he.json
+++ b/dashboard/src/i18n/locales/he.json
@@ -60,7 +60,7 @@
"sessions": "Sessions",
"chats": "שיחות",
"webhooks": "Webhooks",
- "templates": "Templates",
+ "templates": "תבניות",
"apiKeys": "מפתחות API",
"messageTester": "בדיקת הודעות",
"infrastructure": "תשתית",
diff --git a/dashboard/src/i18n/locales/te.json b/dashboard/src/i18n/locales/te.json
index b91ed5730..eac8b3a39 100644
--- a/dashboard/src/i18n/locales/te.json
+++ b/dashboard/src/i18n/locales/te.json
@@ -60,7 +60,7 @@
"sessions": "సెషన్స్",
"chats": "చాట్‌లు",
"webhooks": "వెబ్‌హుక్స్",
- "templates": "Templates",
+ "templates": "టెంప్లేట్‌లు",
"apiKeys": "API కీలు",
"messageTester": "మెసేజ్ టెస్టర్",
"infrastructure": "ఇన్‌ఫ్రాస్ట్రక్చర్",
diff --git a/dashboard/src/i18n/locales/zh-CN.json b/dashboard/src/i18n/locales/zh-CN.json
index 7d26be8c0..0fbcd5842 100644
--- a/dashboard/src/i18n/locales/zh-CN.json
+++ b/dashboard/src/i18n/locales/zh-CN.json
@@ -60,7 +60,7 @@
"sessions": "会话",
"chats": "聊天",
"webhooks": "Webhooks",
- "templates": "Templates",
+ "templates": "模板",
"apiKeys": "API 密钥",
"messageTester": "消息测试器",
"infrastructure": "基础设施",
diff --git a/dashboard/src/i18n/locales/zh-HK.json b/dashboard/src/i18n/locales/zh-HK.json
index 88ea7ef1d..ccb93780c 100644
--- a/dashboard/src/i18n/locales/zh-HK.json
+++ b/dashboard/src/i18n/locales/zh-HK.json
@@ -60,7 +60,7 @@
"sessions": "工作階段",
"chats": "聊天",
"webhooks": "Webhooks",
- "templates": "Templates",
+ "templates": "範本",
"apiKeys": "API 金鑰",
"messageTester": "訊息測試器",
"infrastructure": "基礎架構",