feat(admin-i18n): add cookie-based locale runtime and switcher baseline
This commit is contained in:
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user