update and polish
This commit is contained in:
+51
-17
@@ -1,24 +1,24 @@
|
||||
// constants/locales.ts
|
||||
|
||||
export const locales = {
|
||||
de: {
|
||||
en: {
|
||||
UI: {
|
||||
GAME_TITLE: "Smuggler's Run",
|
||||
SUBTITLE: "Fast Ships, faster credits!",
|
||||
START_BUTTON: "Initialize Systems",
|
||||
RESTART_BUTTON: "Klon-Zylinder aktivieren",
|
||||
RESTART_BUTTON: "Activate Clone Cylinder",
|
||||
JUMP_BUTTON: "Initiate Jump",
|
||||
ATTACK_BUTTON: "Feuer frei",
|
||||
ESCAPE_BUTTON: "Fluchtversuch",
|
||||
ATTACK_BUTTON: "Open Fire",
|
||||
ESCAPE_BUTTON: "Evasive Maneuvers",
|
||||
},
|
||||
SYSTEM: {
|
||||
LOADING: "INITIALIZING HOLONET LINK...",
|
||||
DEEP_SPACE: "Deep Space",
|
||||
},
|
||||
START_SCREEN: {
|
||||
SUBTITLE: "Fast Ships, faster credits!",
|
||||
SUBTITLE: "Episode I: Fast Ships, faster credits!",
|
||||
INTRO_TEXT:
|
||||
"Smuggler's Run is a minimalist space adventure game, where you, the player, are an unlicensed space trader, flying cargo from planet to planet while trying not to be blown to pieces by bounty hunters, imperial forces or rebel do-gooders. Your mission is simple:",
|
||||
"Smuggler's Run is a minimalist space adventure game where you are an unlicensed space trader, flying cargo from planet to planet while trying not to be blown to pieces by bounty hunters, imperial forces, or rebel do-gooders. Your mission is simple:",
|
||||
MISSION_HIGHLIGHT: "Survive and earn credits",
|
||||
FEATURE_NAV_TITLE: "Navigation:",
|
||||
FEATURE_NAV_DESC: "Jump between sectors to deliver cargo.",
|
||||
@@ -59,6 +59,8 @@ export const locales = {
|
||||
FIRE: "Open Fire",
|
||||
JUMP: "Initiate Jump",
|
||||
ESCAPE: "Evasive Maneuvers",
|
||||
REPAIR: (cost: number) => `Repair ship for (${cost} Cr)`,
|
||||
HULL_INTACT: "Hull integrity stable",
|
||||
},
|
||||
},
|
||||
GAME_OVER: {
|
||||
@@ -67,6 +69,13 @@ export const locales = {
|
||||
SCORE_LABEL: "Final Profit",
|
||||
RESTART_BUTTON: "Activate Clone Cylinder",
|
||||
},
|
||||
VICTORY: {
|
||||
TITLE: "Victory",
|
||||
SUBTITLE: "Wealth Threshold Exceeded",
|
||||
MESSAGE:
|
||||
"You have amassed enough credits to retire in the Outer Rim. The Empire's reach can no longer find you.",
|
||||
BUTTON: "NEW ADVENTURE",
|
||||
},
|
||||
EVENT_LOG: {
|
||||
TITLE: "Event Log",
|
||||
EMPTY_STATE: "Waiting for signals...",
|
||||
@@ -74,7 +83,7 @@ export const locales = {
|
||||
HUD: {
|
||||
SECTOR_LABEL: "Current Sector",
|
||||
HULL_LABEL: "Hull Integrity",
|
||||
GOAL_LABEL: "Credits to Freedom", // Oder "Credits to Falcon"
|
||||
GOAL_LABEL: "Credits to Freedom",
|
||||
},
|
||||
GALAXY_MAP: {
|
||||
SCAN_STATUS: "Sector Scan: Active",
|
||||
@@ -102,29 +111,54 @@ export const locales = {
|
||||
SUCCESS: "Jump successful! We've shaken off the pursuer.",
|
||||
},
|
||||
COMBAT: {
|
||||
INIT: (ship: string) =>
|
||||
`Weapon systems synchronized. Opening fire on ${ship}!`,
|
||||
INIT: (ship: string) => `Weapon systems synchronized. Target: ${ship}!`,
|
||||
VICTORY: (ship: string, loot: number) =>
|
||||
`Direct hit! The ${ship} has been obliterated. +${loot} Credits salvaged.`,
|
||||
`Target neutralized! The ${ship} has been destroyed. +${loot} Credits salvaged.`,
|
||||
COUNTER: (ship: string, dmg: number) =>
|
||||
`Shields holding! The ${ship} counters. -${dmg} HP`,
|
||||
`The ${ship} returns fire! -${dmg} HP`,
|
||||
HIT: (ship: string, hp: number) =>
|
||||
`Direct hit! ${ship} integrity at ${hp} HP.`,
|
||||
EVASION: (roll: number, bonus: number) =>
|
||||
`[Evasion: ${roll}+${bonus}] High-speed maneuver successful! Enemy fire avoided.`,
|
||||
},
|
||||
REPAIR: {
|
||||
SUCCESS: (planet: string, cost: number) =>
|
||||
`Repairs complete at ${planet}. -${cost} Credits.`,
|
||||
INSUFFICIENT_FUNDS: "Insufficient credits for repairs!",
|
||||
},
|
||||
SYSTEMS: {
|
||||
CRITICAL_FAILURE:
|
||||
"CRITICAL STRUCTURAL DAMAGE! The ship is breaking apart...",
|
||||
REROUTING: "Rerouting power systems...",
|
||||
REROUTE_SUCCESS: "Power configuration updated.",
|
||||
REROUTE_FAIL: (ship: string, dmg: number) =>
|
||||
`Power lag! ${ship} exploits the window. -${dmg} HP`,
|
||||
SECTOR_UPDATE: "Nav-computer recalibrated. New sector discovered.",
|
||||
},
|
||||
DICE: {
|
||||
ROLLING_1W6: "[Rolling 1D6...]",
|
||||
ROLLING_2W6: "[Rolling 2D6...]",
|
||||
RESULT_1W6: (res: number) => `[Roll: ${res}]`,
|
||||
RESULT_2W6: (d1: number, d2: number, total: number) =>
|
||||
`[Roll: ${d1} + ${d2} = ${total}]`,
|
||||
RESULT_TOTAL: (total: number, bonus: number) =>
|
||||
`[Total: ${total} (Bonus: +${bonus})]`,
|
||||
},
|
||||
},
|
||||
SYSTEMS: {
|
||||
POWER_MANAGEMENT: "Power Management",
|
||||
SUB_LABEL: "System Distribution Active",
|
||||
RESET: "Reset",
|
||||
BOOST: "Boost",
|
||||
ENGINES: "Engines",
|
||||
LASERS: "Lasers",
|
||||
SHIELDS: "Shields",
|
||||
TOTAL_POWER: "Total Power",
|
||||
NO_ENERGY: "Energy Depleted",
|
||||
REROUTING: "Rerouting Energy...",
|
||||
},
|
||||
},
|
||||
// Später einfach erweiterbar:
|
||||
// en: { ... }
|
||||
};
|
||||
|
||||
// Aktuelle Sprache festlegen (könnte später aus einem State kommen)
|
||||
export const t = locales.de;
|
||||
export type LocaleType = typeof locales.en;
|
||||
|
||||
// Defaulting to English
|
||||
export const t = locales.en;
|
||||
|
||||
Reference in New Issue
Block a user