Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(dashboard): translate the chat kind webhook filter field

Yudhi Armyndharisf4f6905dfcae
diff --git a/dashboard/src/i18n/locales.test.ts b/dashboard/src/i18n/locales.test.ts
index 60cf985a9..c1dfcc13a 100644
--- a/dashboard/src/i18n/locales.test.ts
+++ b/dashboard/src/i18n/locales.test.ts
@@ -339,3 +339,10 @@ test('the session proxy button uses the same script as the modal title it opens'
assert.ok(!latin.test(label), `${lng} sessions.actions.proxy is "${label}", the modal title is translated`);
}
});
+
+test('the webhook filter chat-kind field is translated in every locale', () => {
+ for (const lng of NON_EN_LOCALES) {
+ const label = i18n.t('webhooks.filters.fields.kind', { lng });
+ assert.notEqual(label, 'Chat kind', `${lng} webhooks.filters.fields.kind is still English`);
+ }
+});
diff --git a/dashboard/src/i18n/locales/ar.json b/dashboard/src/i18n/locales/ar.json
index 1fdbac7b0..89c73948c 100644
--- a/dashboard/src/i18n/locales/ar.json
+++ b/dashboard/src/i18n/locales/ar.json
@@ -483,7 +483,7 @@
"body": "نص الرسالة",
"type": "نوع الرسالة",
"isGroup": "محادثة جماعية",
- "kind": "Chat kind",
+ "kind": "نوع المحادثة",
"fromMe": "مُرسَلة مني",
"hasMedia": "تحتوي على وسائط",
"mentions": "الإشارات"
diff --git a/dashboard/src/i18n/locales/de.json b/dashboard/src/i18n/locales/de.json
index 3152d25fd..11218b943 100644
--- a/dashboard/src/i18n/locales/de.json
+++ b/dashboard/src/i18n/locales/de.json
@@ -466,7 +466,7 @@
"body": "Nachrichteninhalt",
"type": "Nachrichtentyp",
"isGroup": "Ist Gruppenchat",
- "kind": "Chat kind",
+ "kind": "Chat-Typ",
"fromMe": "Von mir gesendet",
"hasMedia": "Enthält Medien",
"mentions": "Erwähnungen"
diff --git a/dashboard/src/i18n/locales/es.json b/dashboard/src/i18n/locales/es.json
index a2afb7d8f..500ff5806 100644
--- a/dashboard/src/i18n/locales/es.json
+++ b/dashboard/src/i18n/locales/es.json
@@ -470,7 +470,7 @@
"body": "Cuerpo del mensaje",
"type": "Tipo de mensaje",
"isGroup": "Es chat de grupo",
- "kind": "Chat kind",
+ "kind": "Tipo de chat",
"fromMe": "Enviado por mí",
"hasMedia": "Tiene multimedia",
"mentions": "Menciones"
diff --git a/dashboard/src/i18n/locales/fr.json b/dashboard/src/i18n/locales/fr.json
index 54aef223e..dab86fdc9 100644
--- a/dashboard/src/i18n/locales/fr.json
+++ b/dashboard/src/i18n/locales/fr.json
@@ -470,7 +470,7 @@
"body": "Corps du message",
"type": "Type de message",
"isGroup": "Est une discussion de groupe",
- "kind": "Chat kind",
+ "kind": "Type de discussion",
"fromMe": "Envoyé par moi",
"hasMedia": "Contient un média",
"mentions": "Mentions"
diff --git a/dashboard/src/i18n/locales/he.json b/dashboard/src/i18n/locales/he.json
index d253ad6f2..d109173ca 100644
--- a/dashboard/src/i18n/locales/he.json
+++ b/dashboard/src/i18n/locales/he.json
@@ -475,7 +475,7 @@
"body": "גוף ההודעה",
"type": "סוג הודעה",
"isGroup": "צ'אט קבוצתי",
- "kind": "Chat kind",
+ "kind": "סוג שיחה",
"fromMe": "נשלח על ידי",
"hasMedia": "מכיל מדיה",
"mentions": "אזכורים"
diff --git a/dashboard/src/i18n/locales/ko.json b/dashboard/src/i18n/locales/ko.json
index 452d0828c..282bbfbfb 100644
--- a/dashboard/src/i18n/locales/ko.json
+++ b/dashboard/src/i18n/locales/ko.json
@@ -466,7 +466,7 @@
"body": "메시지 본문",
"type": "메시지 유형",
"isGroup": "그룹 채팅 여부",
- "kind": "Chat kind",
+ "kind": "채팅 유형",
"fromMe": "내가 보낸 메시지",
"hasMedia": "미디어 포함",
"mentions": "멘션"
diff --git a/dashboard/src/i18n/locales/pt-BR.json b/dashboard/src/i18n/locales/pt-BR.json
index 3023a4ba4..abd066f91 100644
--- a/dashboard/src/i18n/locales/pt-BR.json
+++ b/dashboard/src/i18n/locales/pt-BR.json
@@ -470,7 +470,7 @@
"body": "Corpo da mensagem",
"type": "Tipo de mensagem",
"isGroup": "É chat de grupo",
- "kind": "Chat kind",
+ "kind": "Tipo de chat",
"fromMe": "Enviado por mim",
"hasMedia": "Tem mídia",
"mentions": "Menções"
diff --git a/dashboard/src/i18n/locales/te.json b/dashboard/src/i18n/locales/te.json
index 3166534d2..b91ed5730 100644
--- a/dashboard/src/i18n/locales/te.json
+++ b/dashboard/src/i18n/locales/te.json
@@ -466,7 +466,7 @@
"body": "సందేశ విషయం",
"type": "సందేశ రకం",
"isGroup": "గ్రూప్ చాట్",
- "kind": "Chat kind",
+ "kind": "చాట్ రకం",
"fromMe": "నేను పంపినది",
"hasMedia": "మీడియా ఉంది",
"mentions": "ప్రస్తావనలు"
diff --git a/dashboard/src/i18n/locales/tr.json b/dashboard/src/i18n/locales/tr.json
index d7caf5589..51a4774e1 100644
--- a/dashboard/src/i18n/locales/tr.json
+++ b/dashboard/src/i18n/locales/tr.json
@@ -466,7 +466,7 @@
"body": "Mesaj içeriği",
"type": "Mesaj türü",
"isGroup": "Grup sohbeti mi",
- "kind": "Chat kind",
+ "kind": "Sohbet türü",
"fromMe": "Benim tarafımdan gönderildi",
"hasMedia": "Medya içeriyor",
"mentions": "Bahsetmeler"
diff --git a/dashboard/src/i18n/locales/zh-CN.json b/dashboard/src/i18n/locales/zh-CN.json
index fef11b39a..7d26be8c0 100644
--- a/dashboard/src/i18n/locales/zh-CN.json
+++ b/dashboard/src/i18n/locales/zh-CN.json
@@ -466,7 +466,7 @@
"body": "消息正文",
"type": "消息类型",
"isGroup": "是群聊",
- "kind": "Chat kind",
+ "kind": "聊天类型",
"fromMe": "由我发送",
"hasMedia": "包含媒体",
"mentions": "提及"
diff --git a/dashboard/src/i18n/locales/zh-HK.json b/dashboard/src/i18n/locales/zh-HK.json
index eac6e1b28..88ea7ef1d 100644
--- a/dashboard/src/i18n/locales/zh-HK.json
+++ b/dashboard/src/i18n/locales/zh-HK.json
@@ -466,7 +466,7 @@
"body": "訊息內容",
"type": "訊息類型",
"isGroup": "是群組聊天",
- "kind": "Chat kind",
+ "kind": "聊天類型",
"fromMe": "由我傳送",
"hasMedia": "包含媒體",
"mentions": "提及"