mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
feat: add localized AppSlider translations for all web apps
- Add full app_slider translations in 5 languages (DE, EN, IT, FR, ES) - Update AppSlider components to use svelte-i18n with $t() for reactive translations - Add ManaDeck app to all AppSlider components - Restore and fix memoro locale files with complete translations - All apps now show uniform localized content on login pages 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
39a9a61dab
commit
10cb295d41
24 changed files with 1084 additions and 69 deletions
|
|
@ -1,11 +1,12 @@
|
|||
<script lang="ts">
|
||||
import { AppSlider, type AppItem } from '@manacore/shared-ui';
|
||||
import { t } from 'svelte-i18n';
|
||||
|
||||
const apps: AppItem[] = [
|
||||
let apps = $derived<AppItem[]>([
|
||||
{
|
||||
name: 'Memoro',
|
||||
description: 'AI Voice Memos',
|
||||
longDescription: 'Transform your voice recordings into organized, searchable notes with AI-powered transcription and insights.',
|
||||
description: $t('app_slider.memoro_desc'),
|
||||
longDescription: $t('app_slider.memoro_long_desc'),
|
||||
icon: '/images/app-icons/memoro-logo-gradient.png',
|
||||
color: '#f8d62b',
|
||||
comingSoon: false,
|
||||
|
|
@ -13,8 +14,8 @@
|
|||
},
|
||||
{
|
||||
name: 'Märchenzauber',
|
||||
description: 'AI Story Creator',
|
||||
longDescription: 'Create magical personalized stories for children with AI-generated illustrations and consistent characters.',
|
||||
description: $t('app_slider.maerchenzauber_desc'),
|
||||
longDescription: $t('app_slider.maerchenzauber_long_desc'),
|
||||
icon: '/images/app-icons/maerchenzauber-logo-gradient.png',
|
||||
color: '#FF6B9D',
|
||||
comingSoon: false,
|
||||
|
|
@ -22,23 +23,39 @@
|
|||
},
|
||||
{
|
||||
name: 'ManaDeck',
|
||||
description: 'AI Flashcards',
|
||||
longDescription: 'Create and study smart flashcards with AI-powered spaced repetition for efficient learning.',
|
||||
description: $t('app_slider.manadeck_desc'),
|
||||
longDescription: $t('app_slider.manadeck_long_desc'),
|
||||
icon: '/images/app-icons/manadeck-logo-gradient.png',
|
||||
color: '#8b5cf6',
|
||||
comingSoon: true,
|
||||
status: 'development'
|
||||
},
|
||||
{
|
||||
name: 'Moodlit',
|
||||
description: $t('app_slider.moodlit_desc'),
|
||||
longDescription: $t('app_slider.moodlit_long_desc'),
|
||||
icon: '/images/app-icons/moodlit-logo-gradient.png',
|
||||
color: '#9C27B0',
|
||||
comingSoon: true,
|
||||
status: 'planning'
|
||||
},
|
||||
{
|
||||
name: 'Manacore',
|
||||
description: 'Central Hub',
|
||||
longDescription: 'Your central hub for managing all Mana applications, subscriptions, and account settings.',
|
||||
description: $t('app_slider.manacore_desc'),
|
||||
longDescription: $t('app_slider.manacore_long_desc'),
|
||||
icon: '/images/app-icons/manacore-logo-gradient.png',
|
||||
color: '#6366f1',
|
||||
comingSoon: true,
|
||||
status: 'development'
|
||||
}
|
||||
];
|
||||
]);
|
||||
|
||||
let statusLabels = $derived({
|
||||
published: $t('app_slider.status_published'),
|
||||
beta: $t('app_slider.status_beta'),
|
||||
development: $t('app_slider.status_development'),
|
||||
planning: $t('app_slider.status_planning')
|
||||
});
|
||||
|
||||
function handleAppClick(app: AppItem, index: number) {
|
||||
console.log('Opening app:', app.name);
|
||||
|
|
@ -47,7 +64,10 @@
|
|||
|
||||
<AppSlider
|
||||
{apps}
|
||||
title="Part of the Mana Ecosystem"
|
||||
title={$t('app_slider.title')}
|
||||
isDark={false}
|
||||
{statusLabels}
|
||||
comingSoonLabel={$t('app_slider.coming_soon')}
|
||||
openAppLabel={$t('app_slider.download')}
|
||||
onAppClick={handleAppClick}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,22 @@
|
|||
"loading": "Lädt..."
|
||||
},
|
||||
"app_slider": {
|
||||
"title": "Teil des Mana Ökosystems"
|
||||
"title": "Teil des Mana Ökosystems",
|
||||
"memoro_desc": "KI-gestützte Sprachnotizen",
|
||||
"memoro_long_desc": "Erfasse deine Gedanken durch Sprache und lasse sie von KI in strukturierte Notizen verwandeln.",
|
||||
"maerchenzauber_desc": "Magische Kindergeschichten",
|
||||
"maerchenzauber_long_desc": "Erstelle personalisierte Kindergeschichten mit KI-generierten Illustrationen.",
|
||||
"manadeck_desc": "KI Lernkarten",
|
||||
"manadeck_long_desc": "Erstelle und lerne mit smarten Lernkarten und KI-gestützter Wiederholung.",
|
||||
"moodlit_desc": "Stimmungslicht-Steuerung",
|
||||
"moodlit_long_desc": "Steuere deine smarten Lichter basierend auf deiner Stimmung und Aktivität.",
|
||||
"manacore_desc": "Zentrale Verwaltung",
|
||||
"manacore_long_desc": "Verwalte alle deine Mana-Apps und Einstellungen an einem Ort.",
|
||||
"status_published": "Verfügbar",
|
||||
"status_beta": "Beta",
|
||||
"status_development": "In Entwicklung",
|
||||
"status_planning": "Geplant",
|
||||
"coming_soon": "Bald verfügbar",
|
||||
"download": "App öffnen"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,22 @@
|
|||
"loading": "Loading..."
|
||||
},
|
||||
"app_slider": {
|
||||
"title": "Part of the Mana Ecosystem"
|
||||
"title": "Part of the Mana Ecosystem",
|
||||
"memoro_desc": "AI-powered voice notes",
|
||||
"memoro_long_desc": "Capture your thoughts through voice and let AI transform them into structured notes.",
|
||||
"maerchenzauber_desc": "Magical children's stories",
|
||||
"maerchenzauber_long_desc": "Create personalized children's stories with AI-generated illustrations.",
|
||||
"manadeck_desc": "AI Flashcards",
|
||||
"manadeck_long_desc": "Create and study with smart flashcards and AI-powered spaced repetition.",
|
||||
"moodlit_desc": "Mood light control",
|
||||
"moodlit_long_desc": "Control your smart lights based on your mood and activity.",
|
||||
"manacore_desc": "Central management",
|
||||
"manacore_long_desc": "Manage all your Mana apps and settings in one place.",
|
||||
"status_published": "Available",
|
||||
"status_beta": "Beta",
|
||||
"status_development": "In Development",
|
||||
"status_planning": "Planned",
|
||||
"coming_soon": "Coming Soon",
|
||||
"download": "Open App"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
28
maerchenzauber/apps/web/src/lib/i18n/locales/es.json
Normal file
28
maerchenzauber/apps/web/src/lib/i18n/locales/es.json
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"common": {
|
||||
"save": "Guardar",
|
||||
"cancel": "Cancelar",
|
||||
"delete": "Eliminar",
|
||||
"back": "Atrás",
|
||||
"loading": "Cargando..."
|
||||
},
|
||||
"app_slider": {
|
||||
"title": "Parte del ecosistema Mana",
|
||||
"memoro_desc": "Notas de voz con IA",
|
||||
"memoro_long_desc": "Captura tus pensamientos con voz y deja que la IA los transforme en notas estructuradas.",
|
||||
"maerchenzauber_desc": "Historias mágicas para niños",
|
||||
"maerchenzauber_long_desc": "Crea historias personalizadas para niños con ilustraciones generadas por IA.",
|
||||
"manadeck_desc": "Flashcards IA",
|
||||
"manadeck_long_desc": "Crea y estudia con flashcards inteligentes y repetición espaciada con IA.",
|
||||
"moodlit_desc": "Control de luces ambientales",
|
||||
"moodlit_long_desc": "Controla tus luces inteligentes según tu estado de ánimo y actividades.",
|
||||
"manacore_desc": "Gestión central",
|
||||
"manacore_long_desc": "Gestiona todas tus apps Mana y configuraciones en un solo lugar.",
|
||||
"status_published": "Disponible",
|
||||
"status_beta": "Beta",
|
||||
"status_development": "En Desarrollo",
|
||||
"status_planning": "Planificado",
|
||||
"coming_soon": "Próximamente",
|
||||
"download": "Abrir App"
|
||||
}
|
||||
}
|
||||
28
maerchenzauber/apps/web/src/lib/i18n/locales/fr.json
Normal file
28
maerchenzauber/apps/web/src/lib/i18n/locales/fr.json
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"common": {
|
||||
"save": "Enregistrer",
|
||||
"cancel": "Annuler",
|
||||
"delete": "Supprimer",
|
||||
"back": "Retour",
|
||||
"loading": "Chargement..."
|
||||
},
|
||||
"app_slider": {
|
||||
"title": "Partie de l'écosystème Mana",
|
||||
"memoro_desc": "Notes vocales IA",
|
||||
"memoro_long_desc": "Capturez vos pensées par la voix et laissez l'IA les transformer en notes structurées.",
|
||||
"maerchenzauber_desc": "Histoires magiques pour enfants",
|
||||
"maerchenzauber_long_desc": "Créez des histoires personnalisées pour enfants avec des illustrations générées par l'IA.",
|
||||
"manadeck_desc": "Flashcards IA",
|
||||
"manadeck_long_desc": "Créez et étudiez avec des flashcards intelligentes et la répétition espacée assistée par IA.",
|
||||
"moodlit_desc": "Contrôle d'éclairage ambiant",
|
||||
"moodlit_long_desc": "Contrôlez vos lumières intelligentes en fonction de votre humeur et de vos activités.",
|
||||
"manacore_desc": "Gestion centrale",
|
||||
"manacore_long_desc": "Gérez toutes vos applications Mana et paramètres en un seul endroit.",
|
||||
"status_published": "Disponible",
|
||||
"status_beta": "Bêta",
|
||||
"status_development": "En Développement",
|
||||
"status_planning": "Planifié",
|
||||
"coming_soon": "Bientôt",
|
||||
"download": "Ouvrir l'App"
|
||||
}
|
||||
}
|
||||
28
maerchenzauber/apps/web/src/lib/i18n/locales/it.json
Normal file
28
maerchenzauber/apps/web/src/lib/i18n/locales/it.json
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"common": {
|
||||
"save": "Salva",
|
||||
"cancel": "Annulla",
|
||||
"delete": "Elimina",
|
||||
"back": "Indietro",
|
||||
"loading": "Caricamento..."
|
||||
},
|
||||
"app_slider": {
|
||||
"title": "Parte dell'ecosistema Mana",
|
||||
"memoro_desc": "Note vocali AI",
|
||||
"memoro_long_desc": "Cattura i tuoi pensieri con la voce e lascia che l'AI li trasformi in note strutturate.",
|
||||
"maerchenzauber_desc": "Storie magiche per bambini",
|
||||
"maerchenzauber_long_desc": "Crea storie personalizzate per bambini con illustrazioni generate dall'AI.",
|
||||
"manadeck_desc": "Flashcard AI",
|
||||
"manadeck_long_desc": "Crea e studia con flashcard intelligenti e ripetizione spaziata basata su AI.",
|
||||
"moodlit_desc": "Controllo luci ambientali",
|
||||
"moodlit_long_desc": "Controlla le tue luci smart in base al tuo umore e alle tue attività.",
|
||||
"manacore_desc": "Gestione centrale",
|
||||
"manacore_long_desc": "Gestisci tutte le tue app Mana e impostazioni in un unico posto.",
|
||||
"status_published": "Disponibile",
|
||||
"status_beta": "Beta",
|
||||
"status_development": "In Sviluppo",
|
||||
"status_planning": "Pianificato",
|
||||
"coming_soon": "Prossimamente",
|
||||
"download": "Apri App"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue