返回提交历史
Modified
static/webui/script.js
+1
-1
Added
static/webui/translations/zh.js
+136
-0
XFEstudio/SpaceNinjaServer
feat(webui): Chinese translation (#1154)
Co-authored-by: Belenus <hello.belenus@proton.me> Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1154
1b54bcd1
代码差异
2 个文件
+137
-1
@@ -128,7 +128,7 @@ function setActiveLanguage(lang) {
128
128
document.querySelector("[data-lang=" + lang + "]").classList.add("active");
129
129
130
130
window.dictPromise = new Promise(resolve => {
131
const webui_lang = ["en", "ru", "fr", "de"].indexOf(lang) == -1 ? "en" : lang;
131
const webui_lang = ["en", "ru", "fr", "de", "zh"].indexOf(lang) == -1 ? "en" : lang;
132
132
let script = document.getElementById("translations");
133
133
if (script) document.documentElement.removeChild(script);
134
134
@@ -0,0 +1,136 @@
1
// Chinese translation by meb154
2
dict = {
3
general_inventoryUpdateNote: `注意:此处所做的更改只有在游戏同步仓库后才会生效。您可以通过访问星图来触发仓库更新。`,
4
general_addButton: `添加`,
5
general_bulkActions: `批量操作`,
6
code_nonValidAuthz: `您的登录凭证已失效。`,
7
code_changeNameConfirm: `您想将账户名称更改为什么?`,
8
code_deleteAccountConfirm: `确定要删除账户 |DISPLAYNAME| (|EMAIL|) 吗?此操作不可撤销。`,
9
code_archgun: `空战`,
10
code_melee: `近战`,
11
code_pistol: `手枪`,
12
code_rifle: `步枪`,
13
code_shotgun: `霰弹枪`,
14
code_kitgun: `组合枪`,
15
code_zaw: `自制近战`,
16
code_moteAmp: `微尘增幅器`,
17
code_amp: `增幅器`,
18
code_sirocco: `赤风`,
19
code_kDrive: `K式悬浮板`,
20
code_legendaryCore: `传奇核心`,
21
code_traumaticPeculiar: `Traumatic Peculiar`,
22
code_starter: `|MOD| (有瑕疵的)`,
23
code_badItem: `(Imposter)`,
24
code_maxRank: `满级`,
25
code_rename: `重命名`,
26
code_renamePrompt: `输入新的自定义名称:`,
27
code_remove: `移除`,
28
code_addItemsConfirm: `确定要向账户添加 |COUNT| 件物品吗?`,
29
code_noEquipmentToRankUp: `没有可升级的装备。`,
30
code_succAdded: `已成功添加。`,
31
code_buffsNumber: `增益数量`,
32
code_cursesNumber: `负面数量`,
33
code_rerollsNumber: `洗卡次数`,
34
code_viewStats: `查看属性`,
35
code_rank: `等级`,
36
code_count: `数量`,
37
code_focusAllUnlocked: `所有专精学派均已解锁。`,
38
code_focusUnlocked: `已解锁 |COUNT| 个新专精学派!需要游戏内仓库更新才能生效,您可以通过访问星图来触发仓库更新。`,
39
code_addModsConfirm: `确定要向账户添加 |COUNT| 张MOD吗?`,
40
code_succImport: `导入成功。`,
41
login_description: `使用您的 OpenWF 账户凭证登录(与游戏内连接本服务器时使用的昵称相同)。`,
42
login_emailLabel: `电子邮箱`,
43
login_passwordLabel: `密码`,
44
login_loginButton: `登录`,
45
navbar_logout: `退出登录`,
46
navbar_renameAccount: `重命名账户`,
47
navbar_deleteAccount: `删除账户`,
48
navbar_inventory: `仓库`,
49
navbar_mods: `Mods`,
50
navbar_quests: `任务`,
51
navbar_cheats: `作弊选项`,
52
navbar_import: `导入`,
53
inventory_addItems: `添加物品`,
54
inventory_suits: `战甲`,
55
inventory_longGuns: `主要武器`,
56
inventory_pistols: `次要武器`,
57
inventory_melee: `近战武器`,
58
inventory_spaceSuits: `Archwings`,
59
inventory_spaceGuns: `Archwing主武器`,
60
inventory_spaceMelee: `Archwing近战武器`,
61
inventory_mechSuits: `殁世机甲`,
62
inventory_sentinels: `守护`,
63
inventory_sentinelWeapons: `守护武器`,
64
inventory_operatorAmps: `增幅器`,
65
inventory_hoverboards: `K式悬浮板`,
66
inventory_bulkAddSuits: `添加缺失战甲`,
67
inventory_bulkAddWeapons: `添加缺失武器`,
68
inventory_bulkAddSpaceSuits: `添加缺失Archwing`,
69
inventory_bulkAddSpaceWeapons: `添加缺失Archwing武器`,
70
inventory_bulkAddSentinels: `添加缺失守护`,
71
inventory_bulkAddSentinelWeapons: `添加缺失守护武器`,
72
inventory_bulkRankUpSuits: `所有战甲升满级`,
73
inventory_bulkRankUpWeapons: `所有武器升满级`,
74
inventory_bulkRankUpSpaceSuits: `所有Archwing升满级`,
75
inventory_bulkRankUpSpaceWeapons: `所有Archwing武器升满级`,
76
inventory_bulkRankUpSentinels: `所有守护升满级`,
77
inventory_bulkRankUpSentinelWeapons: `所有守护武器升满级`,
78
79
currency_RegularCredits: `现金`,
80
currency_PremiumCredits: `白金`,
81
currency_FusionPoints: `内融核心`,
82
currency_PrimeTokens: `御品阿耶`,
83
currency_owned: `当前拥有 |COUNT|。`,
84
powersuit_archonShardsLabel: `执刑官源力石槽位`,
85
powersuit_archonShardsDescription: `您可以使用这些无限插槽应用各种强化效果`,
86
mods_addRiven: `添加裂罅MOD`,
87
mods_fingerprint: `印记`,
88
mods_fingerprintHelp: `需要印记相关的帮助?`,
89
mods_rivens: `裂罅MOD`,
90
mods_mods: `Mods`,
91
mods_bulkAddMods: `添加缺失MOD`,
92
cheats_administratorRequirement: `您必须是管理员才能使用此功能。要成为管理员,请将 <code>|DISPLAYNAME|</code> 添加到 config.json 的 <code>administratorNames</code> 中。`,
93
cheats_server: `服务器`,
94
cheats_skipTutorial: `跳过教程`,
95
cheats_skipAllDialogue: `跳过所有对话`,
96
cheats_unlockAllScans: `解锁所有扫描`,
97
cheats_unlockAllMissions: `解锁所有任务`,
98
cheats_infiniteCredits: `无限现金`,
99
cheats_infinitePlatinum: `无限白金`,
100
cheats_infiniteEndo: `无限内融核心`,
101
cheats_infiniteRegalAya: `无限御品阿耶`,
102
cheats_infiniteHelminthMaterials: `无限Helminth材料`,
103
cheats_unlockAllShipFeatures: `解锁所有飞船功能`,
104
cheats_unlockAllShipDecorations: `解锁所有飞船装饰`,
105
cheats_unlockAllFlavourItems: `解锁所有<abbr title=\"动画组合、图标、调色板等\">装饰物品</abbr>`,
106
cheats_unlockAllSkins: `解锁所有外观`,
107
cheats_unlockAllCapturaScenes: `解锁所有Captura场景`,
108
cheats_universalPolarityEverywhere: `全局万用极性`,
109
cheats_unlockDoubleCapacityPotatoesEverywhere: `全物品自带Orokin反应堆`,
110
cheats_unlockExilusEverywhere: `全物品自带适配器`,
111
cheats_unlockArcanesEverywhere: `全物品自带赋能适配器`,
112
cheats_noDailyStandingLimits: `无每日声望限制`,
113
cheats_instantResourceExtractorDrones: `即时资源采集无人机`,
114
cheats_noDojoRoomBuildStage: `无视道场房间建造阶段`,
115
cheats_fastDojoRoomDestruction: `快速拆除道场房间`,
116
cheats_noDojoResearchCosts: `无视道场研究消耗`,
117
cheats_noDojoResearchTime: `无视道场研究时间`,
118
cheats_fastClanAscension: `快速升级氏族`,
119
cheats_spoofMasteryRank: `伪造精通段位(-1为禁用)`,
120
cheats_saveSettings: `保存设置`,
121
cheats_account: `账户`,
122
cheats_unlockAllFocusSchools: `解锁所有专精学派`,
123
cheats_helminthUnlockAll: `完全升级Helminth`,
124
cheats_changeSupportedSyndicate: `支持的集团`,
125
cheats_changeButton: `更改`,
126
cheats_none: `无`,
127
cheats_quests: `任务`,
128
cheats_quests_unlockAll: `解锁所有任务`,
129
cheats_quests_completeAll: `完成所有任务`,
130
cheats_quests_completeAllUnlocked: `完成所有已解锁任务`,
131
cheats_quests_resetAll: `重置所有任务`,
132
cheats_quests_giveAll: `授予所有任务`,
133
import_importNote: `您可以在此处提供完整或部分库存响应(客户端表示)。支持的所有字段<b>将被覆盖</b>到您的账户中。`,
134
import_submit: `提交`,
135
prettier_sucks_ass: ``
136
};