From 0657a41a5dc02c914dccf8b93c5b8fae568651c3 Mon Sep 17 00:00:00 2001
From: Adeyemi Adetunji
Date: Wed, 1 May 2024 07:38:23 +0100
Subject: [PATCH] fix: missing translations (#293)
---
.../components/Poll/components/Poll.svelte | 2 +-
.../Lesson/Exercise/MarkExerciseModal.svelte | 3 +-
.../components/Settings/DragAndDrop.svelte | 3 +-
.../Courses/components/Card/index.svelte | 2 +-
.../Org/Settings/TeamMembers.svelte | 34 ++++++++++++-------
.../src/lib/utils/translations/de.json | 12 +++++++
.../src/lib/utils/translations/en.json | 12 +++++++
.../src/lib/utils/translations/es.json | 12 +++++++
.../src/lib/utils/translations/fr.json | 12 +++++++
.../src/lib/utils/translations/hi.json | 12 +++++++
.../src/lib/utils/translations/pt.json | 12 +++++++
.../src/lib/utils/translations/ru.json | 12 +++++++
.../src/lib/utils/translations/vi.json | 12 +++++++
13 files changed, 124 insertions(+), 16 deletions(-)
diff --git a/apps/dashboard/src/lib/components/Apps/components/Poll/components/Poll.svelte b/apps/dashboard/src/lib/components/Apps/components/Poll/components/Poll.svelte
index 804f63ba..b469e030 100644
--- a/apps/dashboard/src/lib/components/Apps/components/Poll/components/Poll.svelte
+++ b/apps/dashboard/src/lib/components/Apps/components/Poll/components/Poll.svelte
@@ -116,7 +116,7 @@
-
+
{totalVotes}
diff --git a/apps/dashboard/src/lib/components/Course/components/Lesson/Exercise/MarkExerciseModal.svelte b/apps/dashboard/src/lib/components/Course/components/Lesson/Exercise/MarkExerciseModal.svelte
index d4e785dc..f92401c2 100644
--- a/apps/dashboard/src/lib/components/Course/components/Lesson/Exercise/MarkExerciseModal.svelte
+++ b/apps/dashboard/src/lib/components/Course/components/Lesson/Exercise/MarkExerciseModal.svelte
@@ -7,6 +7,7 @@
import Preview from './Preview.svelte';
import { SELECTABLE_STATUS } from './constants';
import { snackbar } from '$lib/components/Snackbar/store';
+ import { t } from '$lib/utils/functions/translations';
export let open = false;
export let onClose = () => {};
@@ -38,7 +39,7 @@
total
});
- snackbar.success(`snackbar.exercise.submission_updated '${status.label}'`);
+ snackbar.success(`${$t('snackbar.exercise.submission_updated')} '${status.label}'`);
}
function setStatus(data) {
diff --git a/apps/dashboard/src/lib/components/Course/components/Settings/DragAndDrop.svelte b/apps/dashboard/src/lib/components/Course/components/Settings/DragAndDrop.svelte
index 67c11be3..454de59c 100644
--- a/apps/dashboard/src/lib/components/Course/components/Settings/DragAndDrop.svelte
+++ b/apps/dashboard/src/lib/components/Course/components/Settings/DragAndDrop.svelte
@@ -3,6 +3,7 @@
import { settings } from './store';
import { dndzone } from 'svelte-dnd-action';
import Draggable from 'carbon-icons-svelte/lib/Draggable.svelte';
+ import { t } from '$lib/utils/functions/translations';
const flipDurationMs = 300;
@@ -34,7 +35,7 @@
class="flex items-center justify-start text-center text-xs md:text-base gap-1 md:gap-2 dark:text-white bg-slate-100 dark:bg-slate-700 p-2 rounded-md"
>
- {item.name}
+ {$t(item.name)}
{/each}
diff --git a/apps/dashboard/src/lib/components/Courses/components/Card/index.svelte b/apps/dashboard/src/lib/components/Courses/components/Card/index.svelte
index c5aba743..41d88115 100644
--- a/apps/dashboard/src/lib/components/Courses/components/Card/index.svelte
+++ b/apps/dashboard/src/lib/components/Courses/components/Card/index.svelte
@@ -127,7 +127,7 @@
{#if isOnLandingPage}
{!cost
- ? $t('course.navItem.landing_page.pricing_section')
+ ? $t('course.navItem.landing_page.pricing_section.free')
: formatter.format(cost)}
{:else if isLMS}
diff --git a/apps/dashboard/src/lib/components/Org/Settings/TeamMembers.svelte b/apps/dashboard/src/lib/components/Org/Settings/TeamMembers.svelte
index b1eb835d..b1bd7444 100644
--- a/apps/dashboard/src/lib/components/Org/Settings/TeamMembers.svelte
+++ b/apps/dashboard/src/lib/components/Org/Settings/TeamMembers.svelte
@@ -20,6 +20,7 @@
} from '$lib/utils/services/notification/notification';
import { isFreePlan } from '$lib/utils/store/org';
import type { OrgTeamMember } from '$lib/utils/types/org';
+ import { t } from '$lib/utils/functions/translations';
let emailsStr = '';
let errorMessage = '';
@@ -135,29 +136,36 @@
- Add
+ {$t('course.navItem.people.teams.add')}
- Add your team mates or collaborators to your organization. Start working together
+ {$t('course.navItem.people.teams.add_team')}
-
{#if teamMember.profileId !== $profile.id && isTeamMemberAdmin($orgTeam, $profile.id)}
onRemove(teamMember.id)}
isLoading={isRemoving}
diff --git a/apps/dashboard/src/lib/utils/translations/de.json b/apps/dashboard/src/lib/utils/translations/de.json
index d3bc2c89..dbe799e8 100644
--- a/apps/dashboard/src/lib/utils/translations/de.json
+++ b/apps/dashboard/src/lib/utils/translations/de.json
@@ -421,6 +421,18 @@
"copy_link": "Link kopieren",
"success": "Erfolgreich kopiert",
"finish": "Beenden"
+ },
+ "teams": {
+ "add": "Hinzufügen",
+ "add_team": "Fügen Sie Ihre Teamkollegen oder Mitarbeiter zu Ihrer Organisation hinzu. Beginnen Sie mit der Zusammenarbeit",
+ "invite": "Einladen",
+ "placeholder": "E-Mail durch Komma getrennt",
+ "role": "Rolle",
+ "send_invite": "Sende Einladung",
+ "members": "Mitglieder",
+ "invite_sent": "Einladung gesendet",
+ "you": "Du",
+ "remove": "Entfernen"
}
},
"marks": {
diff --git a/apps/dashboard/src/lib/utils/translations/en.json b/apps/dashboard/src/lib/utils/translations/en.json
index d41c2646..ef66015f 100644
--- a/apps/dashboard/src/lib/utils/translations/en.json
+++ b/apps/dashboard/src/lib/utils/translations/en.json
@@ -759,6 +759,18 @@
"tutor": "Tutor",
"student": "Student",
"filter": "Filter"
+ },
+ "teams": {
+ "add": "Add",
+ "add_team": "Add your team mates or collaborators to your organization. Start working together",
+ "invite": "Invite",
+ "placeholder": "email comma separated",
+ "role": "Role",
+ "send_invite": "Send Invite",
+ "members": "Members",
+ "invite_sent": "Invite Sent",
+ "you": "You",
+ "remove": "Remove"
}
},
diff --git a/apps/dashboard/src/lib/utils/translations/es.json b/apps/dashboard/src/lib/utils/translations/es.json
index 646fef3a..6d2ec4c5 100644
--- a/apps/dashboard/src/lib/utils/translations/es.json
+++ b/apps/dashboard/src/lib/utils/translations/es.json
@@ -421,6 +421,18 @@
"copy_link": "Copiar link",
"success": "Copiado correctamente",
"finish": "Finalizar"
+ },
+ "teams": {
+ "add": "Agregar",
+ "add_team": "Agregue sus compañeros de equipo o colaboradores a su organización. Empezar a trabajar juntos",
+ "invite": "Invitar",
+ "placeholder": "correo electrónico separado por comas",
+ "role": "Role",
+ "send_invite": "Enviar invitación",
+ "members": "Miembros",
+ "invite_sent": "Invitar enviado",
+ "you": "Tú",
+ "remove": "Eliminar"
}
},
"marks": {
diff --git a/apps/dashboard/src/lib/utils/translations/fr.json b/apps/dashboard/src/lib/utils/translations/fr.json
index d6ea3dc3..984ba168 100644
--- a/apps/dashboard/src/lib/utils/translations/fr.json
+++ b/apps/dashboard/src/lib/utils/translations/fr.json
@@ -421,6 +421,18 @@
"copy_link": "Copier le lien",
"success": "Copié avec succès",
"finish": "Finition"
+ },
+ "teams": {
+ "add": "Ajouter",
+ "add_team": "Ajoutez vos coéquipiers ou collaborateurs à votre organisation. Commencez à travailler ensemble",
+ "invite": "Inviter",
+ "placeholder": "email séparé par des virgules",
+ "role": "Rôle",
+ "send_invite": "Envoyer une invitation",
+ "members": "Membres",
+ "invite_sent": "Invitation envoyée",
+ "you": "Toi",
+ "remove": "Retirer"
}
},
"marks": {
diff --git a/apps/dashboard/src/lib/utils/translations/hi.json b/apps/dashboard/src/lib/utils/translations/hi.json
index 1be28283..fe9e3384 100644
--- a/apps/dashboard/src/lib/utils/translations/hi.json
+++ b/apps/dashboard/src/lib/utils/translations/hi.json
@@ -421,6 +421,18 @@
"copy_link": "लिंक की प्रतिलिपि करें",
"success": "सफलतापूर्वक कॉपी किया गया",
"finish": "खत्म करना"
+ },
+ "teams": {
+ "add": "जोड़ना",
+ "add_team": "अपने टीम के साथियों या सहयोगियों को अपने संगठन में जोड़ें। एक साथ काम करना शुरू करें",
+ "invite": "आमंत्रित करना",
+ "placeholder": "ईमेल अल्पविराम से अलग किया गया",
+ "role": "भूमिका",
+ "send_invite": "आमंत्रण भेजो",
+ "members": "सदस्यों",
+ "invite_sent": "आमंत्रण भेज दिया",
+ "you": "आप",
+ "remove": "निकालना"
}
},
"marks": {
diff --git a/apps/dashboard/src/lib/utils/translations/pt.json b/apps/dashboard/src/lib/utils/translations/pt.json
index a387573f..e752ab6b 100644
--- a/apps/dashboard/src/lib/utils/translations/pt.json
+++ b/apps/dashboard/src/lib/utils/translations/pt.json
@@ -421,6 +421,18 @@
"copy_link": "Link de cópia",
"success": "Copiado com sucesso",
"finish": "Terminar"
+ },
+ "teams": {
+ "add": "Adicionar",
+ "add_team": "Adicione seus companheiros de equipe ou colaboradores à sua organização. Comece a trabalhar juntos",
+ "invite": "Convidar",
+ "placeholder": "e-mail separado por vírgula",
+ "role": "Papel",
+ "send_invite": "Mandar convite",
+ "members": "Membros",
+ "invite_sent": "Convite enviado",
+ "you": "Você",
+ "remove": "Remover"
}
},
"marks": {
diff --git a/apps/dashboard/src/lib/utils/translations/ru.json b/apps/dashboard/src/lib/utils/translations/ru.json
index 2e919ec6..b59fab17 100644
--- a/apps/dashboard/src/lib/utils/translations/ru.json
+++ b/apps/dashboard/src/lib/utils/translations/ru.json
@@ -421,6 +421,18 @@
"copy_link": "Копировать ссылку",
"success": "Скопировано успешно",
"finish": "Заканчивать"
+ },
+ "teams": {
+ "add": "Добавлять",
+ "add_team": "Добавьте своих товарищей по команде или сотрудников в свою организацию. Начните работать вместе",
+ "invite": "Приглашать",
+ "placeholder": "электронная почта, разделенная запятой",
+ "role": "Роль",
+ "send_invite": "Отправить приглашение",
+ "members": "Члены",
+ "invite_sent": "Приглашение отправлено",
+ "you": "Ты",
+ "remove": "Удалять"
}
},
"marks": {
diff --git a/apps/dashboard/src/lib/utils/translations/vi.json b/apps/dashboard/src/lib/utils/translations/vi.json
index 8537902b..477bd5fd 100644
--- a/apps/dashboard/src/lib/utils/translations/vi.json
+++ b/apps/dashboard/src/lib/utils/translations/vi.json
@@ -421,6 +421,18 @@
"copy_link": "Sao chép đường dẫn",
"success": "Đã sao chép thành công",
"finish": "Hoàn thành"
+ },
+ "teams": {
+ "add": "Thêm vào",
+ "add_team": "Thêm đồng đội hoặc cộng tác viên vào tổ chức của bạn. Bắt đầu làm việc cùng nhau",
+ "invite": "Mời",
+ "placeholder": "email được phân tách bằng dấu phẩy",
+ "role": "Vai trò",
+ "send_invite": "Gửi lời mời",
+ "members": "Các thành viên",
+ "invite_sent": "Lời mời đã gửi",
+ "you": "Bạn",
+ "remove": "Di dời"
}
},
"marks": {