feat(i18n): integrate internationalization for game pages
- Added translation support for various game-related texts in the home, daily, infinite, login, and profile pages. - Replaced hardcoded French strings with translation keys using the `$t` function. - Updated titles, descriptions, and button texts to enhance localization.
This commit is contained in:
227
src/lib/i18n/en.json
Normal file
227
src/lib/i18n/en.json
Normal file
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"common": {
|
||||
"language": "Language",
|
||||
"selectLanguage": "Select Language",
|
||||
"english": "English",
|
||||
"french": "Français",
|
||||
"german": "Deutsch",
|
||||
"spanish": "Español"
|
||||
},
|
||||
"game": {
|
||||
"home": {
|
||||
"heroDescription": "Guess the character from pirate crews, marines, or the wider world. Every hint brings you closer to the treasure.",
|
||||
"dailyTitle": "Daily Character",
|
||||
"dailySubtitle": "A new mystery every 24 hours",
|
||||
"dailyDescription": "Compare your guesses, unlock hints, and keep your streak alive.",
|
||||
"dailyCta": "Start",
|
||||
"infiniteTitle": "Infinite Mode",
|
||||
"infiniteSubtitle": "Endless challenges",
|
||||
"infiniteDescription": "Chain characters and chase your score. No limits, only fun.",
|
||||
"infiniteCta": "Play",
|
||||
"photoFallback": "Photo",
|
||||
"yesterdayCharacter": "Yesterday's character",
|
||||
"openPage": "Open page",
|
||||
"noCharacter": "No character",
|
||||
"noYesterdayCharacter": "No character from yesterday available"
|
||||
},
|
||||
"login": {
|
||||
"titleSignUp": "Sign Up",
|
||||
"titleSignIn": "Sign In",
|
||||
"headerSignUp": "Create your account",
|
||||
"headerSignIn": "Welcome, pirate",
|
||||
"nameLabel": "Name",
|
||||
"namePlaceholder": "Your name",
|
||||
"usernameLabel": "Username",
|
||||
"usernamePlaceholder": "e.g. luffy_gear5",
|
||||
"identifierLabelSignUp": "Email",
|
||||
"identifierLabelSignIn": "Email or username",
|
||||
"identifierPlaceholderSignUp": "yourmail@email.com",
|
||||
"identifierPlaceholderSignIn": "yourmail@email.com or luffy_gear5",
|
||||
"passwordLabel": "Password",
|
||||
"confirmPasswordLabel": "Confirm password",
|
||||
"loading": "Loading...",
|
||||
"submitSignUp": "Create an account",
|
||||
"submitSignIn": "Log in",
|
||||
"togglePromptSignUp": "Already have an account?",
|
||||
"togglePromptSignIn": "Don't have an account?",
|
||||
"toggleActionSignUp": "Log in",
|
||||
"toggleActionSignIn": "Sign up",
|
||||
"backHome": "Back to home"
|
||||
},
|
||||
"profile": {
|
||||
"pageTitle": "My Profile",
|
||||
"headerTitle": "My Profile",
|
||||
"headerSubtitle": "Edit your profile information",
|
||||
"tabProfile": "Profile",
|
||||
"tabPassword": "Password",
|
||||
"tabDaily": "Daily History",
|
||||
"tabSessions": "Sessions",
|
||||
"tabFriends": "Friends",
|
||||
"avatarFallbackAlt": "Profile",
|
||||
"email": "Email",
|
||||
"displayName": "Display name",
|
||||
"displayNamePlaceholder": "Your name",
|
||||
"profileUpdateSuccess": "Profile updated successfully!",
|
||||
"updating": "Updating...",
|
||||
"saveChanges": "Save changes",
|
||||
"friendsTitle": "Friends System",
|
||||
"addFriendByUsername": "Add a friend by username",
|
||||
"friendUsernamePlaceholder": "e.g. luffy_gear5",
|
||||
"sending": "Sending...",
|
||||
"send": "Send",
|
||||
"incomingRequests": "Incoming requests",
|
||||
"noIncomingRequests": "No incoming requests.",
|
||||
"accept": "Accept",
|
||||
"decline": "Decline",
|
||||
"outgoingRequests": "Outgoing requests",
|
||||
"noOutgoingRequests": "No outgoing requests.",
|
||||
"cancel": "Cancel",
|
||||
"myFriends": "My friends",
|
||||
"noFriends": "You don't have any friends yet.",
|
||||
"remove": "Remove",
|
||||
"changePasswordTitle": "Change password",
|
||||
"currentPassword": "Current password",
|
||||
"newPassword": "New password",
|
||||
"confirmPassword": "Confirm password",
|
||||
"passwordChangeSuccess": "Password changed successfully!",
|
||||
"changing": "Changing...",
|
||||
"changePassword": "Change password",
|
||||
"dailyHistoryTitle": "Daily history",
|
||||
"noDailyHistory": "No history available",
|
||||
"noImage": "N/A",
|
||||
"trySingular": "try",
|
||||
"tryPlural": "tries",
|
||||
"activeSessionsTitle": "Active sessions",
|
||||
"noActiveSessions": "No active session",
|
||||
"unknownDevice": "Unknown device",
|
||||
"unknown": "Unknown",
|
||||
"ip": "IP",
|
||||
"created": "Created",
|
||||
"terminate": "Terminate",
|
||||
"backHome": "Back to home"
|
||||
},
|
||||
"daily": {
|
||||
"metaTitle": "OnePieceDle - Daily Mode",
|
||||
"title": "Daily Character",
|
||||
"winsPeopleSingular": "person",
|
||||
"winsPeoplePlural": "people",
|
||||
"winsVerbSingular": "has",
|
||||
"winsVerbPlural": "have",
|
||||
"winsSuffix": "found it today 🎉",
|
||||
"reset": "Play again",
|
||||
"description": "Guess the character. Each hint unlocks after a certain number of guesses. Good luck!",
|
||||
"friendsToday": "Your friends today",
|
||||
"friendTrySingular": "try",
|
||||
"friendTryPlural": "tries"
|
||||
},
|
||||
"infinite": {
|
||||
"metaTitle": "OnePieceDle - Infinite Mode",
|
||||
"title": "Infinite Mode",
|
||||
"score": "Score",
|
||||
"resetScore": "Reset",
|
||||
"description": "Guess characters endlessly. Each hint unlocks after a certain number of guesses. Good luck!",
|
||||
"nextCharacter": "Play again",
|
||||
"revealAnswer": "Reveal answer",
|
||||
"loadingCharacter": "Loading character...",
|
||||
"filtersTitle": "Character filters",
|
||||
"clearFilters": "Reset",
|
||||
"filterGender": "Gender",
|
||||
"filterStatus": "Status",
|
||||
"filterAbilities": "Abilities",
|
||||
"filterInformation": "Information",
|
||||
"filterArcs": "Arcs",
|
||||
"male": "Male",
|
||||
"female": "Female",
|
||||
"alive": "Alive",
|
||||
"dead": "Dead",
|
||||
"unknown": "Unknown",
|
||||
"hasHaki": "Has Haki",
|
||||
"fruitAll": "Fruit (All)",
|
||||
"withFruit": "With Fruit",
|
||||
"withoutFruit": "Without Fruit",
|
||||
"heightDefined": "Height defined",
|
||||
"originDefined": "Origin defined",
|
||||
"availableCharactersSingular": "character available",
|
||||
"availableCharactersPlural": "characters available",
|
||||
"columnsTitle": "Columns"
|
||||
},
|
||||
"components": {
|
||||
"searchInput": {
|
||||
"title": "Enter a guess",
|
||||
"placeholder": "Character name",
|
||||
"submit": "Submit"
|
||||
},
|
||||
"hints": {
|
||||
"origin": "Origin",
|
||||
"devilFruit": "Devil fruit",
|
||||
"affiliation": "Affiliation",
|
||||
"unknown": "Unknown",
|
||||
"none": "None",
|
||||
"beforeUnlock": "guesses before unlock",
|
||||
"available": "Hint available!"
|
||||
},
|
||||
"guessHistory": {
|
||||
"title": "History",
|
||||
"empty": "No guesses yet.",
|
||||
"character": "Character",
|
||||
"status": "Status",
|
||||
"gender": "Gender",
|
||||
"affiliations": "Affiliations",
|
||||
"fruit": "Fruit",
|
||||
"haki": "Haki",
|
||||
"bounty": "Bounty",
|
||||
"height": "Height",
|
||||
"origin": "Origin",
|
||||
"arc": "Arc",
|
||||
"alive": "Alive",
|
||||
"dead": "Dead",
|
||||
"unknown": "Unknown",
|
||||
"male": "Male",
|
||||
"female": "Female",
|
||||
"obsHakiTitle": "Observation Haki",
|
||||
"armHakiTitle": "Armament Haki",
|
||||
"kingHakiTitle": "Conqueror's Haki"
|
||||
},
|
||||
"winPanel": {
|
||||
"attemptSingular": "attempt",
|
||||
"attemptPlural": "attempts",
|
||||
"moriaTitle": "Moria controls you...",
|
||||
"moriaPrefix": "You succumbed to the shadows in",
|
||||
"winTitle": "Congratulations!",
|
||||
"winPrefix": "You found the character in",
|
||||
"oneTryMessages": [
|
||||
"Cheater 👀",
|
||||
"1 guess? Admit it, you already knew 😏",
|
||||
"First try... suspicious 🤨"
|
||||
],
|
||||
"twoTryMessages": [
|
||||
"Well played! ⚡",
|
||||
"Two guesses, clean! 👏",
|
||||
"You warmed up fast, nice 🔥"
|
||||
],
|
||||
"tenPlusMessages": [
|
||||
"${attempts} guesses... even a transponder snail would be faster 📞",
|
||||
"${attempts} attempts? The Grand Line is shorter than that 😵",
|
||||
"${attempts} guesses: legendary performance... in the wrong direction 🫠"
|
||||
],
|
||||
"fivePlusMessages": [
|
||||
"${attempts} guesses? Let's say it was for suspense 😅",
|
||||
"That is a lot of guesses... but you made it 😬",
|
||||
"You never give up, even after several guesses 😂"
|
||||
],
|
||||
"defaultMessages": [
|
||||
"Not bad at all!",
|
||||
"Nice try, good pace 👍",
|
||||
"Things are going well, keep it up ✨"
|
||||
]
|
||||
},
|
||||
"yesterdayCharacter": {
|
||||
"photo": "Photo",
|
||||
"title": "Yesterday's character",
|
||||
"openPage": "Open page",
|
||||
"none": "No character",
|
||||
"noneAvailable": "No character from yesterday available"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user