mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-21 14:55:23 +00:00
Add localization support for game events, settings, and UI text elements (#1372)
## Description: This PR adds missing translations for various UI components, including game events and settings. No visual changes were made, so screenshots are not required. All user-facing text has been properly localized and added to the en.json file. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: pierogi69 --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent
2cbe34ed79
commit
4ed4c7e507
+37
-3
@@ -60,6 +60,7 @@
|
||||
"ui_options_desc": "The following elements can be found inside:",
|
||||
"ui_playeroverlay": "Player info overlay",
|
||||
"ui_playeroverlay_desc": "When you hover over a country, the Player info overlay is displayed under Options. It shows the type of player: Human, Nation (smart bot), or Bot. A Nation's attitude towards you, ranging from Hostile to Friendly. And defending troops, gold, plus the number of Warships and various buildings the player has.",
|
||||
"ui_wilderness": "Wilderness",
|
||||
"option_pause": "Pause/Unpause the game - Only available in single player mode.",
|
||||
"option_timer": "Timer - Time passed since the start of the game.",
|
||||
"option_exit": "Exit button.",
|
||||
@@ -112,7 +113,8 @@
|
||||
"icon_ally": "Handshake - Ally. This player is your ally.",
|
||||
"icon_embargo": "Dollar stop sign - Embargo. This player has stopped trading with you automatically or manually.",
|
||||
"icon_request": "Envelope - Alliance request. This player has sent you an alliance request.",
|
||||
"info_enemy_panel": "Enemy info panel"
|
||||
"info_enemy_panel": "Enemy info panel",
|
||||
"exit_confirmation": "Are you sure you want to exit the game?"
|
||||
},
|
||||
"single_modal": {
|
||||
"title": "Single Player",
|
||||
@@ -255,16 +257,27 @@
|
||||
"tab_keybinds": "Keybinds",
|
||||
"dark_mode_label": "Dark Mode",
|
||||
"dark_mode_desc": "Toggle the site’s appearance between light and dark themes",
|
||||
"dark_mode_enabled": "Dark mode enabled",
|
||||
"light_mode_enabled": "Light mode enabled",
|
||||
"emojis_label": "Emojis",
|
||||
"emojis_visible": "Emojis are visible",
|
||||
"emojis_hidden": "Emojis are hidden",
|
||||
"emojis_desc": "Toggle whether emojis are shown in game",
|
||||
"alert_frame_label": "Alert Frame",
|
||||
"alert_frame_desc": "Toggle the alert frame. When enabled, the frame will be displayed when you are betrayed.",
|
||||
"special_effects_label": "Special effects",
|
||||
"special_effects_desc": "Toggle special effects. Deactivate to improve performances",
|
||||
"special_effects_enabled": "Special effects enabled",
|
||||
"special_effects_disabled": "Special effects disabled",
|
||||
"anonymous_names_label": "Hidden Names",
|
||||
"anonymous_names_desc": "Hide real player names with random ones on your screen.",
|
||||
"anonymous_names_enabled": "Anonymous names enabled",
|
||||
"real_names_shown": "Real names shown",
|
||||
"left_click_label": "Left Click to Open Menu",
|
||||
"left_click_desc": "When ON, left-click opens menu and sword button attacks. When OFF, left-click attacks directly.",
|
||||
"left_click_menu": "Left Click Menu",
|
||||
"left_click_opens_menu": "Left click opens menu",
|
||||
"right_click_opens_menu": "Right click opens menu",
|
||||
"attack_ratio_label": "⚔️ Attack Ratio",
|
||||
"attack_ratio_desc": "What percentage of your troops to send in an attack (1–100%)",
|
||||
"troop_ratio_label": "🪖🛠️ Troops and Workers Ratio",
|
||||
@@ -305,7 +318,14 @@
|
||||
"move_right": "Move Camera Right",
|
||||
"move_right_desc": "Move the camera to the right",
|
||||
"reset": "Reset",
|
||||
"unbind": "Unbind"
|
||||
"unbind": "Unbind",
|
||||
"on": "On",
|
||||
"off": "Off",
|
||||
"toggle_terrain": "Toggle Terrain",
|
||||
"terrain_enabled": "Terrain view enabled",
|
||||
"terrain_disabled": "Terrain view disabled",
|
||||
"exit_game_label": "Exit Game",
|
||||
"exit_game_info": "Return to main menu"
|
||||
},
|
||||
"chat": {
|
||||
"title": "Quick Chat",
|
||||
@@ -437,9 +457,22 @@
|
||||
"events_display": {
|
||||
"retreating": "retreating",
|
||||
"boat": "Boat",
|
||||
"alliance_request_status": "{name} {status} your alliance request",
|
||||
"alliance_accepted": "accepted",
|
||||
"alliance_rejected": "rejected",
|
||||
"duration_second": "1 second",
|
||||
"betrayal_description": "You broke your alliance with {name}, making you a TRAITOR ({malusPercent}% defense debuff for {durationText})",
|
||||
"duration_seconds_plural": "{seconds} seconds",
|
||||
"betrayed_you": "{name} broke their alliance with you",
|
||||
"about_to_expire": "Your alliance with {name} is about to expire!",
|
||||
"alliance_expired": "Your alliance with {name} expired",
|
||||
"attack_request": "{name} requests you attack {target}",
|
||||
"sent_emoji": "Sent {name}: {emoji}",
|
||||
"renew_alliance": "Request to renew",
|
||||
"request_alliance": "{name} requests an alliance!",
|
||||
"focus": "Focus",
|
||||
"accept_alliance": "Accept",
|
||||
"reject_alliance": "Reject",
|
||||
"alliance_renewed": "Your alliance with {name} has been renewed",
|
||||
"ignore": "Ignore"
|
||||
},
|
||||
@@ -483,7 +516,8 @@
|
||||
},
|
||||
"replay_panel": {
|
||||
"replay_speed": "Replay speed",
|
||||
"game_speed": "Game speed"
|
||||
"game_speed": "Game speed",
|
||||
"fastest_game_speed": "max"
|
||||
},
|
||||
"error_modal": {
|
||||
"crashed": "Game crashed!",
|
||||
|
||||
Reference in New Issue
Block a user