From ea181b154d240c59e176fcf2b40206f3a95f2468 Mon Sep 17 00:00:00 2001 From: Jamari McFarlane Date: Tue, 14 Nov 2023 15:14:47 -0500 Subject: [PATCH] Added Missing Translations and removed unused variable --- public/locales/en.json | 3 ++- public/locales/fr.json | 3 ++- public/locales/hi.json | 3 ++- public/locales/sp.json | 3 ++- public/locales/zh.json | 3 ++- src/screens/OrgList/OrgList.tsx | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/public/locales/en.json b/public/locales/en.json index e543e4f24a..fb5d78bc2f 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -104,7 +104,8 @@ "goToStore": "Go to Plugin Store", "enableEverything": "Enable Everything", "noResultsFoundFor": "No results found for", - "OR": "OR" + "OR": "OR", + "sampleOrgSuccess": "Sample Organization Successfully Created" }, "orgListCard": { "admins": "Admins", diff --git a/public/locales/fr.json b/public/locales/fr.json index e766f7f963..97116881e9 100644 --- a/public/locales/fr.json +++ b/public/locales/fr.json @@ -95,7 +95,8 @@ "sampleOrgDuplicate": "Seule une organisation d'exemple est autorisée.", "noOrgErrorDescription": "Veuillez créer une organisation via le tableau de bord", "noResultsFoundFor": "Aucun résultat trouvé pour ", - "OR": "OU" + "OR": "OU", + "sampleOrgSuccess": "Organisation d'exemple créée avec succès" }, "orgListCard": { "admins": "Administrateurs", diff --git a/public/locales/hi.json b/public/locales/hi.json index ba95f0adb8..490b5b5d04 100644 --- a/public/locales/hi.json +++ b/public/locales/hi.json @@ -95,7 +95,8 @@ "sampleOrgDuplicate": "केवल एक नमूना संगठन को अनुमति दी गई", "noOrgErrorDescription": "कृपया डैशबोर्ड के माध्यम से एक संगठन बनाएं", "noResultsFoundFor": "के लिए कोई परिणाम नहीं मिला ", - "OR": "या" + "OR": "या", + "sampleOrgSuccess": "सैंपल संगठन सफलतापूर्वक बनाया गया" }, "orgListCard": { "admins": "व्यवस्थापक", diff --git a/public/locales/sp.json b/public/locales/sp.json index 4b7e582525..33cb77ed64 100644 --- a/public/locales/sp.json +++ b/public/locales/sp.json @@ -95,7 +95,8 @@ "sampleOrgDuplicate": "Solo se permite una organización de muestra", "noOrgErrorDescription": "Por favor, crea una organización a través del panel de control", "noResultsFoundFor": "No se encontraron resultados para ", - "OR": "O" + "OR": "O", + "sampleOrgSuccess": "Organización de ejemplo creada exitosamente" }, "orgListCard": { "admins": "Administradores", diff --git a/public/locales/zh.json b/public/locales/zh.json index 836ea50af0..8de1d7c5d9 100644 --- a/public/locales/zh.json +++ b/public/locales/zh.json @@ -95,7 +95,8 @@ "sampleOrgDuplicate": "只允许一个样本组织", "noOrgErrorDescription": "请通过仪表板创建一个组织", "noResultsFoundFor": "未找到结果 ", - "OR": "或者" + "OR": "或者", + "sampleOrgSuccess": "示例组织成功创建" }, "orgListCard": { "admins": "管理員", diff --git a/src/screens/OrgList/OrgList.tsx b/src/screens/OrgList/OrgList.tsx index c03f4ce560..7e0f71ffb9 100644 --- a/src/screens/OrgList/OrgList.tsx +++ b/src/screens/OrgList/OrgList.tsx @@ -145,7 +145,7 @@ function orgList(): JSX.Element { const triggerCreateSampleOrg = () => { createSampleOrganization() .then(() => { - toast.success(t('successMessage')); + toast.success(t('sampleOrgSuccess')); window.location.reload(); }) .catch(() => {