feat: i18n system, lang switch component, english subtitles, UI improvements, roadmap update

This commit is contained in:
2026-06-09 15:40:51 +08:00
parent 6b4114af43
commit 59aed77199
16 changed files with 410 additions and 33 deletions

79
src/locales/en.json Normal file
View File

@@ -0,0 +1,79 @@
{
"ui": {
"start": "New Game",
"resume": "Continue",
"chapters": "Chapters",
"menu": "Menu",
"save": "Save",
"load": "Load",
"close": "Close",
"skip": "Skip",
"fullscreen": "Fullscreen",
"exitFullscreen": "Exit Fullscreen",
"gameEnd": "The End",
"choose": "Make your choice",
"back": "Back",
"autoSave": "Auto Save",
"empty": "Empty",
"loading": "Loading...",
"speed": "Speed",
"noAutoSave": "No auto save yet",
"autoSaveHint": "Game auto-saves to slot 0 at each scene change"
},
"scene": {
"intro": {
"choice": {
"left_door": "Walk toward the glowing door on the left",
"right_door": "Walk toward the ordinary door on the right",
"search": "Search the room carefully",
"stay": "Stay where you are, do nothing"
}
},
"left_door": {
"choice": {
"handshake": "Shake hands with the stranger",
"reject": "Refuse to shake, stay alert"
}
},
"right_door": {
"choice": {
"continue": "Keep moving forward",
"back": "Turn back"
}
},
"trust_ending": {
"choice": {
"journey": "Embark on a journey of trust (requires trust >= 80)",
"leave": "Leave this place"
}
},
"investigation_site": {
"choice": {
"leave": "Leave the room"
}
},
"desk_detail": {
"choice": {
"return": "Return to the crime scene",
"leave": "Leave"
}
},
"stay": {
"choice": {
"stand": "Stand up and leave"
}
},
"qte_success": {
"choice": {
"continue": "Keep moving forward",
"back": "Turn back"
}
},
"qte_fail": {
"choice": {
"continue": "Keep moving forward",
"back": "Turn back"
}
}
}
}

79
src/locales/zh.json Normal file
View File

@@ -0,0 +1,79 @@
{
"ui": {
"start": "开始游戏",
"resume": "继续上次进度",
"chapters": "章节选择",
"menu": "菜单",
"save": "保存",
"load": "读取",
"close": "关闭",
"skip": "跳过",
"fullscreen": "全屏",
"exitFullscreen": "退出全屏",
"gameEnd": "游戏结束",
"choose": "做出你的选择",
"back": "返回",
"autoSave": "自动存档",
"empty": "空",
"loading": "加载中...",
"speed": "倍速",
"noAutoSave": "暂无自动存档",
"autoSaveHint": "游戏会在每次场景切换时自动保存到槽位 0"
},
"scene": {
"intro": {
"choice": {
"left_door": "走向左边那扇发光的门",
"right_door": "走向右边那扇普通的门",
"search": "仔细搜索房间",
"stay": "留在原地,什么也不做"
}
},
"left_door": {
"choice": {
"handshake": "与陌生人握手",
"reject": "拒绝握手,保持警惕"
}
},
"right_door": {
"choice": {
"continue": "继续前进",
"back": "回头"
}
},
"trust_ending": {
"choice": {
"journey": "开启信任的旅程(需要 trust >= 80",
"leave": "离开这里"
}
},
"investigation_site": {
"choice": {
"leave": "离开房间"
}
},
"desk_detail": {
"choice": {
"return": "返回调查现场",
"leave": "离开"
}
},
"stay": {
"choice": {
"stand": "站起来离开"
}
},
"qte_success": {
"choice": {
"continue": "继续前进",
"back": "回头"
}
},
"qte_fail": {
"choice": {
"continue": "继续前进",
"back": "回头"
}
}
}
}