feat(admin-i18n): add cookie-based locale runtime and switcher baseline
This commit is contained in:
102
apps/admin/src/messages/de.json
Normal file
102
apps/admin/src/messages/de.json
Normal file
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"common": {
|
||||
"language": "Sprache",
|
||||
"localeNames": {
|
||||
"de": "Deutsch",
|
||||
"en": "Englisch",
|
||||
"es": "Spanisch",
|
||||
"fr": "Französisch"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"badge": "Admin-Authentifizierung",
|
||||
"titles": {
|
||||
"signIn": "Bei CMS Admin anmelden",
|
||||
"signUpOwner": "Willkommen bei CMS Admin",
|
||||
"signUpUser": "Admin-Konto erstellen"
|
||||
},
|
||||
"descriptions": {
|
||||
"signIn": "Better Auth ist in dieser App über /api/auth aktiv.",
|
||||
"signUpOwner": "Erstelle das erste Owner-Konto, um diese Admin-Instanz zu initialisieren.",
|
||||
"signUpUser": "Selbstregistrierung für Admin-Benutzer ist aktiviert."
|
||||
},
|
||||
"fields": {
|
||||
"name": "Name",
|
||||
"emailOrUsername": "E-Mail oder Benutzername",
|
||||
"email": "E-Mail",
|
||||
"username": "Benutzername (optional)",
|
||||
"password": "Passwort"
|
||||
},
|
||||
"actions": {
|
||||
"signInIdle": "Anmelden",
|
||||
"signInBusy": "Anmeldung läuft...",
|
||||
"signUpOwnerIdle": "Owner-Konto erstellen",
|
||||
"signUpUserIdle": "Konto erstellen",
|
||||
"signUpBusy": "Konto wird erstellt..."
|
||||
},
|
||||
"links": {
|
||||
"needAccount": "Du brauchst ein Konto?",
|
||||
"register": "Registrieren",
|
||||
"alreadyHaveAccount": "Du hast bereits ein Konto?",
|
||||
"goToSignIn": "Zur Anmeldung"
|
||||
},
|
||||
"messages": {
|
||||
"ownerCreated": "Owner-Konto erstellt. Registrierung ist jetzt deaktiviert.",
|
||||
"accountCreated": "Konto erstellt."
|
||||
},
|
||||
"errors": {
|
||||
"nameRequired": "Name ist für die Kontoerstellung erforderlich",
|
||||
"signInFailed": "Anmeldung fehlgeschlagen",
|
||||
"signUpFailed": "Registrierung fehlgeschlagen",
|
||||
"networkSignIn": "Netzwerkfehler bei der Anmeldung",
|
||||
"networkSignUp": "Netzwerkfehler bei der Registrierung"
|
||||
}
|
||||
},
|
||||
"dashboard": {
|
||||
"badge": "Admin-App",
|
||||
"title": "Content-Dashboard",
|
||||
"description": "Verwalte Beiträge in einer dedizierten Admin-Oberfläche.",
|
||||
"actions": {
|
||||
"openRoadmap": "Roadmap und Fortschritt öffnen"
|
||||
},
|
||||
"notices": {
|
||||
"noCrudPermission": "Du kannst Beiträge lesen, aber deine Rolle darf keine Beiträge erstellen/ändern/löschen.",
|
||||
"crudSandboxTag": "MVP0 Funktionstest"
|
||||
},
|
||||
"posts": {
|
||||
"title": "Beiträge CRUD-Sandbox",
|
||||
"createTitle": "Beitrag erstellen",
|
||||
"fields": {
|
||||
"title": "Titel",
|
||||
"slug": "Slug",
|
||||
"excerpt": "Auszug",
|
||||
"body": "Inhalt",
|
||||
"status": "Status"
|
||||
},
|
||||
"status": {
|
||||
"draft": "Entwurf",
|
||||
"published": "Veröffentlicht"
|
||||
},
|
||||
"actions": {
|
||||
"create": "Beitrag erstellen",
|
||||
"save": "Änderungen speichern",
|
||||
"delete": "Löschen"
|
||||
},
|
||||
"errors": {
|
||||
"createFailed": "Erstellen fehlgeschlagen. Bitte Eingaben prüfen.",
|
||||
"updateFailed": "Aktualisierung fehlgeschlagen. Bitte Eingaben prüfen.",
|
||||
"updateMissingId": "Aktualisierung fehlgeschlagen. Beitrags-ID fehlt.",
|
||||
"deleteFailed": "Löschen fehlgeschlagen.",
|
||||
"deleteMissingId": "Löschen fehlgeschlagen. Beitrags-ID fehlt."
|
||||
},
|
||||
"success": {
|
||||
"created": "Beitrag erstellt.",
|
||||
"updated": "Beitrag aktualisiert.",
|
||||
"deleted": "Beitrag gelöscht."
|
||||
},
|
||||
"fallback": {
|
||||
"noExcerpt": "Kein Auszug"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
102
apps/admin/src/messages/en.json
Normal file
102
apps/admin/src/messages/en.json
Normal file
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"common": {
|
||||
"language": "Language",
|
||||
"localeNames": {
|
||||
"de": "German",
|
||||
"en": "English",
|
||||
"es": "Spanish",
|
||||
"fr": "French"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"badge": "Admin Auth",
|
||||
"titles": {
|
||||
"signIn": "Sign in to CMS Admin",
|
||||
"signUpOwner": "Welcome to CMS Admin",
|
||||
"signUpUser": "Create an admin account"
|
||||
},
|
||||
"descriptions": {
|
||||
"signIn": "Better Auth is active on this app via /api/auth.",
|
||||
"signUpOwner": "Create the first owner account to initialize this admin instance.",
|
||||
"signUpUser": "Self-registration is enabled for admin users."
|
||||
},
|
||||
"fields": {
|
||||
"name": "Name",
|
||||
"emailOrUsername": "Email or username",
|
||||
"email": "Email",
|
||||
"username": "Username (optional)",
|
||||
"password": "Password"
|
||||
},
|
||||
"actions": {
|
||||
"signInIdle": "Sign in",
|
||||
"signInBusy": "Signing in...",
|
||||
"signUpOwnerIdle": "Create owner account",
|
||||
"signUpUserIdle": "Create account",
|
||||
"signUpBusy": "Creating account..."
|
||||
},
|
||||
"links": {
|
||||
"needAccount": "Need an account?",
|
||||
"register": "Register",
|
||||
"alreadyHaveAccount": "Already have an account?",
|
||||
"goToSignIn": "Go to sign in"
|
||||
},
|
||||
"messages": {
|
||||
"ownerCreated": "Owner account created. Registration is now disabled.",
|
||||
"accountCreated": "Account created."
|
||||
},
|
||||
"errors": {
|
||||
"nameRequired": "Name is required for account creation",
|
||||
"signInFailed": "Sign in failed",
|
||||
"signUpFailed": "Sign up failed",
|
||||
"networkSignIn": "Network error while signing in",
|
||||
"networkSignUp": "Network error while signing up"
|
||||
}
|
||||
},
|
||||
"dashboard": {
|
||||
"badge": "Admin App",
|
||||
"title": "Content Dashboard",
|
||||
"description": "Manage posts from a dedicated admin surface.",
|
||||
"actions": {
|
||||
"openRoadmap": "Open roadmap and progress"
|
||||
},
|
||||
"notices": {
|
||||
"noCrudPermission": "You can read posts, but your role cannot create/update/delete posts.",
|
||||
"crudSandboxTag": "MVP0 functional test"
|
||||
},
|
||||
"posts": {
|
||||
"title": "Posts CRUD Sandbox",
|
||||
"createTitle": "Create post",
|
||||
"fields": {
|
||||
"title": "Title",
|
||||
"slug": "Slug",
|
||||
"excerpt": "Excerpt",
|
||||
"body": "Body",
|
||||
"status": "Status"
|
||||
},
|
||||
"status": {
|
||||
"draft": "Draft",
|
||||
"published": "Published"
|
||||
},
|
||||
"actions": {
|
||||
"create": "Create post",
|
||||
"save": "Save changes",
|
||||
"delete": "Delete"
|
||||
},
|
||||
"errors": {
|
||||
"createFailed": "Create failed. Please check your input.",
|
||||
"updateFailed": "Update failed. Please check your input.",
|
||||
"updateMissingId": "Update failed. Missing post id.",
|
||||
"deleteFailed": "Delete failed.",
|
||||
"deleteMissingId": "Delete failed. Missing post id."
|
||||
},
|
||||
"success": {
|
||||
"created": "Post created.",
|
||||
"updated": "Post updated.",
|
||||
"deleted": "Post deleted."
|
||||
},
|
||||
"fallback": {
|
||||
"noExcerpt": "No excerpt"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
102
apps/admin/src/messages/es.json
Normal file
102
apps/admin/src/messages/es.json
Normal file
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"common": {
|
||||
"language": "Idioma",
|
||||
"localeNames": {
|
||||
"de": "Alemán",
|
||||
"en": "Inglés",
|
||||
"es": "Español",
|
||||
"fr": "Francés"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"badge": "Autenticación de Admin",
|
||||
"titles": {
|
||||
"signIn": "Iniciar sesión en CMS Admin",
|
||||
"signUpOwner": "Bienvenido a CMS Admin",
|
||||
"signUpUser": "Crear una cuenta de admin"
|
||||
},
|
||||
"descriptions": {
|
||||
"signIn": "Better Auth está activo en esta app mediante /api/auth.",
|
||||
"signUpOwner": "Crea la primera cuenta owner para inicializar esta instancia de administración.",
|
||||
"signUpUser": "El registro automático está habilitado para usuarios admin."
|
||||
},
|
||||
"fields": {
|
||||
"name": "Nombre",
|
||||
"emailOrUsername": "Correo o nombre de usuario",
|
||||
"email": "Correo",
|
||||
"username": "Nombre de usuario (opcional)",
|
||||
"password": "Contraseña"
|
||||
},
|
||||
"actions": {
|
||||
"signInIdle": "Iniciar sesión",
|
||||
"signInBusy": "Iniciando sesión...",
|
||||
"signUpOwnerIdle": "Crear cuenta owner",
|
||||
"signUpUserIdle": "Crear cuenta",
|
||||
"signUpBusy": "Creando cuenta..."
|
||||
},
|
||||
"links": {
|
||||
"needAccount": "¿Necesitas una cuenta?",
|
||||
"register": "Registrarse",
|
||||
"alreadyHaveAccount": "¿Ya tienes una cuenta?",
|
||||
"goToSignIn": "Ir a iniciar sesión"
|
||||
},
|
||||
"messages": {
|
||||
"ownerCreated": "Cuenta owner creada. El registro ahora está deshabilitado.",
|
||||
"accountCreated": "Cuenta creada."
|
||||
},
|
||||
"errors": {
|
||||
"nameRequired": "El nombre es obligatorio para crear la cuenta",
|
||||
"signInFailed": "Error al iniciar sesión",
|
||||
"signUpFailed": "Error al registrarse",
|
||||
"networkSignIn": "Error de red al iniciar sesión",
|
||||
"networkSignUp": "Error de red al registrarse"
|
||||
}
|
||||
},
|
||||
"dashboard": {
|
||||
"badge": "App Admin",
|
||||
"title": "Panel de Contenido",
|
||||
"description": "Gestiona publicaciones desde una superficie de administración dedicada.",
|
||||
"actions": {
|
||||
"openRoadmap": "Abrir hoja de ruta y progreso"
|
||||
},
|
||||
"notices": {
|
||||
"noCrudPermission": "Puedes leer publicaciones, pero tu rol no puede crear/editar/eliminar publicaciones.",
|
||||
"crudSandboxTag": "Prueba funcional MVP0"
|
||||
},
|
||||
"posts": {
|
||||
"title": "Sandbox CRUD de Publicaciones",
|
||||
"createTitle": "Crear publicación",
|
||||
"fields": {
|
||||
"title": "Título",
|
||||
"slug": "Slug",
|
||||
"excerpt": "Extracto",
|
||||
"body": "Contenido",
|
||||
"status": "Estado"
|
||||
},
|
||||
"status": {
|
||||
"draft": "Borrador",
|
||||
"published": "Publicado"
|
||||
},
|
||||
"actions": {
|
||||
"create": "Crear publicación",
|
||||
"save": "Guardar cambios",
|
||||
"delete": "Eliminar"
|
||||
},
|
||||
"errors": {
|
||||
"createFailed": "Error al crear. Revisa tus datos.",
|
||||
"updateFailed": "Error al actualizar. Revisa tus datos.",
|
||||
"updateMissingId": "Error al actualizar. Falta el id de la publicación.",
|
||||
"deleteFailed": "Error al eliminar.",
|
||||
"deleteMissingId": "Error al eliminar. Falta el id de la publicación."
|
||||
},
|
||||
"success": {
|
||||
"created": "Publicación creada.",
|
||||
"updated": "Publicación actualizada.",
|
||||
"deleted": "Publicación eliminada."
|
||||
},
|
||||
"fallback": {
|
||||
"noExcerpt": "Sin extracto"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
102
apps/admin/src/messages/fr.json
Normal file
102
apps/admin/src/messages/fr.json
Normal file
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"common": {
|
||||
"language": "Langue",
|
||||
"localeNames": {
|
||||
"de": "Allemand",
|
||||
"en": "Anglais",
|
||||
"es": "Espagnol",
|
||||
"fr": "Français"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"badge": "Authentification Admin",
|
||||
"titles": {
|
||||
"signIn": "Se connecter à CMS Admin",
|
||||
"signUpOwner": "Bienvenue sur CMS Admin",
|
||||
"signUpUser": "Créer un compte admin"
|
||||
},
|
||||
"descriptions": {
|
||||
"signIn": "Better Auth est actif sur cette application via /api/auth.",
|
||||
"signUpOwner": "Créez le premier compte owner pour initialiser cette instance d’administration.",
|
||||
"signUpUser": "L’auto-inscription est activée pour les utilisateurs admin."
|
||||
},
|
||||
"fields": {
|
||||
"name": "Nom",
|
||||
"emailOrUsername": "E-mail ou nom d’utilisateur",
|
||||
"email": "E-mail",
|
||||
"username": "Nom d’utilisateur (optionnel)",
|
||||
"password": "Mot de passe"
|
||||
},
|
||||
"actions": {
|
||||
"signInIdle": "Se connecter",
|
||||
"signInBusy": "Connexion en cours...",
|
||||
"signUpOwnerIdle": "Créer le compte owner",
|
||||
"signUpUserIdle": "Créer un compte",
|
||||
"signUpBusy": "Création du compte..."
|
||||
},
|
||||
"links": {
|
||||
"needAccount": "Besoin d’un compte ?",
|
||||
"register": "S’inscrire",
|
||||
"alreadyHaveAccount": "Vous avez déjà un compte ?",
|
||||
"goToSignIn": "Aller à la connexion"
|
||||
},
|
||||
"messages": {
|
||||
"ownerCreated": "Compte owner créé. L’inscription est maintenant désactivée.",
|
||||
"accountCreated": "Compte créé."
|
||||
},
|
||||
"errors": {
|
||||
"nameRequired": "Le nom est requis pour créer un compte",
|
||||
"signInFailed": "Échec de la connexion",
|
||||
"signUpFailed": "Échec de l’inscription",
|
||||
"networkSignIn": "Erreur réseau lors de la connexion",
|
||||
"networkSignUp": "Erreur réseau lors de l’inscription"
|
||||
}
|
||||
},
|
||||
"dashboard": {
|
||||
"badge": "Application Admin",
|
||||
"title": "Tableau de bord contenu",
|
||||
"description": "Gérez les publications depuis une surface d’administration dédiée.",
|
||||
"actions": {
|
||||
"openRoadmap": "Ouvrir la feuille de route et la progression"
|
||||
},
|
||||
"notices": {
|
||||
"noCrudPermission": "Vous pouvez lire les publications, mais votre rôle ne peut pas créer/modifier/supprimer des publications.",
|
||||
"crudSandboxTag": "Test fonctionnel MVP0"
|
||||
},
|
||||
"posts": {
|
||||
"title": "Sandbox CRUD des publications",
|
||||
"createTitle": "Créer une publication",
|
||||
"fields": {
|
||||
"title": "Titre",
|
||||
"slug": "Slug",
|
||||
"excerpt": "Extrait",
|
||||
"body": "Contenu",
|
||||
"status": "Statut"
|
||||
},
|
||||
"status": {
|
||||
"draft": "Brouillon",
|
||||
"published": "Publié"
|
||||
},
|
||||
"actions": {
|
||||
"create": "Créer une publication",
|
||||
"save": "Enregistrer les modifications",
|
||||
"delete": "Supprimer"
|
||||
},
|
||||
"errors": {
|
||||
"createFailed": "Échec de la création. Vérifiez vos données.",
|
||||
"updateFailed": "Échec de la mise à jour. Vérifiez vos données.",
|
||||
"updateMissingId": "Échec de la mise à jour. ID de publication manquant.",
|
||||
"deleteFailed": "Échec de la suppression.",
|
||||
"deleteMissingId": "Échec de la suppression. ID de publication manquant."
|
||||
},
|
||||
"success": {
|
||||
"created": "Publication créée.",
|
||||
"updated": "Publication mise à jour.",
|
||||
"deleted": "Publication supprimée."
|
||||
},
|
||||
"fallback": {
|
||||
"noExcerpt": "Aucun extrait"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user