diff --git a/apps/mana/apps/web/src/lib/i18n/locales/moodlit/de.json b/apps/mana/apps/web/src/lib/i18n/locales/moodlit/de.json index dd65374e9..cef5f6ae8 100644 --- a/apps/mana/apps/web/src/lib/i18n/locales/moodlit/de.json +++ b/apps/mana/apps/web/src/lib/i18n/locales/moodlit/de.json @@ -74,5 +74,18 @@ "error": "Fehler", "success": "Erfolgreich", "create": "Erstellen" + }, + "moodsPage": { + "page_title_html": "Moods - Moodlit - Mana", + "title": "Moods", + "action_close": "Schliessen", + "action_new_mood": "+ Neues Mood", + "label_name": "Name", + "placeholder_name": "Mein Mood", + "label_animation": "Animation", + "label_colors": "Farben", + "toast_created": "\"{name}\" erstellt", + "toast_default_protected": "Standard-Moods können nicht gelöscht werden", + "toast_deleted": "Gelöscht" } } diff --git a/apps/mana/apps/web/src/lib/i18n/locales/moodlit/en.json b/apps/mana/apps/web/src/lib/i18n/locales/moodlit/en.json index f145db185..48a275e42 100644 --- a/apps/mana/apps/web/src/lib/i18n/locales/moodlit/en.json +++ b/apps/mana/apps/web/src/lib/i18n/locales/moodlit/en.json @@ -74,5 +74,18 @@ "error": "Error", "success": "Success", "create": "Create" + }, + "moodsPage": { + "page_title_html": "Moods - Moodlit - Mana", + "title": "Moods", + "action_close": "Close", + "action_new_mood": "+ New mood", + "label_name": "Name", + "placeholder_name": "My mood", + "label_animation": "Animation", + "label_colors": "Colors", + "toast_created": "\"{name}\" created", + "toast_default_protected": "Default moods can't be deleted", + "toast_deleted": "Deleted" } } diff --git a/apps/mana/apps/web/src/lib/i18n/locales/moodlit/es.json b/apps/mana/apps/web/src/lib/i18n/locales/moodlit/es.json index 72bf8a2aa..2b4e8a248 100644 --- a/apps/mana/apps/web/src/lib/i18n/locales/moodlit/es.json +++ b/apps/mana/apps/web/src/lib/i18n/locales/moodlit/es.json @@ -74,5 +74,18 @@ "error": "Error", "success": "Éxito", "create": "Crear" + }, + "moodsPage": { + "page_title_html": "Moods - Moodlit - Mana", + "title": "Moods", + "action_close": "Cerrar", + "action_new_mood": "+ Nuevo mood", + "label_name": "Nombre", + "placeholder_name": "Mi mood", + "label_animation": "Animación", + "label_colors": "Colores", + "toast_created": "«{name}» creado", + "toast_default_protected": "Los moods predeterminados no se pueden eliminar", + "toast_deleted": "Eliminado" } } diff --git a/apps/mana/apps/web/src/lib/i18n/locales/moodlit/fr.json b/apps/mana/apps/web/src/lib/i18n/locales/moodlit/fr.json index d0352b68b..9e357db36 100644 --- a/apps/mana/apps/web/src/lib/i18n/locales/moodlit/fr.json +++ b/apps/mana/apps/web/src/lib/i18n/locales/moodlit/fr.json @@ -74,5 +74,18 @@ "error": "Erreur", "success": "Succès", "create": "Créer" + }, + "moodsPage": { + "page_title_html": "Moods - Moodlit - Mana", + "title": "Moods", + "action_close": "Fermer", + "action_new_mood": "+ Nouveau mood", + "label_name": "Nom", + "placeholder_name": "Mon mood", + "label_animation": "Animation", + "label_colors": "Couleurs", + "toast_created": "« {name} » créé", + "toast_default_protected": "Les moods par défaut ne peuvent pas être supprimés", + "toast_deleted": "Supprimé" } } diff --git a/apps/mana/apps/web/src/lib/i18n/locales/moodlit/it.json b/apps/mana/apps/web/src/lib/i18n/locales/moodlit/it.json index a202242fa..d5b67bc5c 100644 --- a/apps/mana/apps/web/src/lib/i18n/locales/moodlit/it.json +++ b/apps/mana/apps/web/src/lib/i18n/locales/moodlit/it.json @@ -74,5 +74,18 @@ "error": "Errore", "success": "Successo", "create": "Crea" + }, + "moodsPage": { + "page_title_html": "Moods - Moodlit - Mana", + "title": "Moods", + "action_close": "Chiudi", + "action_new_mood": "+ Nuovo mood", + "label_name": "Nome", + "placeholder_name": "Il mio mood", + "label_animation": "Animazione", + "label_colors": "Colori", + "toast_created": "«{name}» creato", + "toast_default_protected": "I mood predefiniti non possono essere eliminati", + "toast_deleted": "Eliminato" } } diff --git a/apps/mana/apps/web/src/routes/(app)/moodlit/moods/+page.svelte b/apps/mana/apps/web/src/routes/(app)/moodlit/moods/+page.svelte index e7a048061..20cc2d115 100644 --- a/apps/mana/apps/web/src/routes/(app)/moodlit/moods/+page.svelte +++ b/apps/mana/apps/web/src/routes/(app)/moodlit/moods/+page.svelte @@ -39,7 +39,7 @@ colors: newColors, animation: newAnimation, }); - toast.success(`"${newName}" erstellt`); + toast.success($_('moodlit.moodsPage.toast_created', { values: { name: newName } })); newName = ''; showCreate = false; } @@ -65,27 +65,29 @@ async function deleteMood(mood: LocalMood) { if (mood.isDefault) { - toast.error('Standard-Moods konnen nicht geloscht werden'); + toast.error($_('moodlit.moodsPage.toast_default_protected')); return; } await moodsStore.deleteMood(mood.id); - toast.success('Geloscht'); + toast.success($_('moodlit.moodsPage.toast_deleted')); } - Moods - Moodlit - Mana + {$_('moodlit.moodsPage.page_title_html')}
-

Moods

+

{$_('moodlit.moodsPage.title')}

@@ -94,20 +96,21 @@
{$_('moodlit.moodsPage.label_name')}
{$_('moodlit.moodsPage.label_animation')}