refactor: separate story locales (public/) from UI locales (src/), async fetch for story messages

This commit is contained in:
2026-06-10 12:10:03 +08:00
parent 0071a34acf
commit 4cf2263c78
7 changed files with 219 additions and 186 deletions

56
public/locales/zh.json Normal file
View File

@@ -0,0 +1,56 @@
{
"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": "回头"
}
}
}