Skip to content

add zh support #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions assets/data/lang/sc/gui.zh_CN.json.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"labels": {
"options": {
"headers": {
"tweak-pack-mod": "dmitmel's tweak pack"
},
"twk": {
"render-hitboxes": {
"enable": {
"name": "显示红框",
"description": "在命中目标显示红框. \\c[2][debug]\\c[0]"
}
},
"teleport-anywhere": {
"enable": {
"name": "任意传送",
"description": "只要点击地图传送到任意局域或副本. \\c[2][cheat]\\c[0]"
}
},
"assist-scale-enemy-hp": {
"factor": {
"name": "修改敌人HP",
"description": "修改敌人HP. \\c[1]需重开! \\c[2][assist]"
}
},
"player-position-marker": {
"enable": {
"name": "在地图显示脚色",
"description": "在地图上显示脚色位子. \\c[2][QoL]"
}
},
"chest-radar": {
"enable": {
"name": "在地图显示宝箱",
"description": "在地图显示所有宝箱. \\c[2][cheat]"
}
},
"autoaim": {
"enable": {
"name": "开启自动瞄准",
"description": "不需要移动鼠标使用QE自动瞄准. \\c[2][cheat]"
}
},
"skip-title-screen-intro": {
"enable": {
"name": "跳过开头 Logo 标题",
"description": "跳过烦人的开头 Logo 标题. \\c[2][debug]"
}
}
},
"controls": {
"keys": {
"twk": {
"open-map-menu-shortcut": {
"key": "开/关 地图目录"
}
}
}
}
},
"menu": {
"map-menu": {
"teleport-anywhere": {
"question": "\\c[3]传送\\c[0] 到地图 \"[!]\"?",
"map-id": "\\c[3]地图 ID:\\c[0] [!]"
}
}
}
}
}
70 changes: 70 additions & 0 deletions assets/data/lang/sc/gui.zh_TW.json.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"labels": {
"options": {
"headers": {
"tweak-pack-mod": "dmitmel's tweak pack"
},
"twk": {
"render-hitboxes": {
"enable": {
"name": "顯示紅框",
"description": "在命中目標顯示紅框. \\c[2][debug]\\c[0]"
}
},
"teleport-anywhere": {
"enable": {
"name": "任意傳送",
"description": "只要點擊地圖傳送到任意區域或副本. \\c[2][cheat]\\c[0]"
}
},
"assist-scale-enemy-hp": {
"factor": {
"name": "修改敵人HP",
"description": "修改敵人HP. \\c[1]需重開! \\c[2][assist]"
}
},
"player-position-marker": {
"enable": {
"name": "在地圖顯示腳色",
"description": "在地圖上顯示腳色位子. \\c[2][QoL]"
}
},
"chest-radar": {
"enable": {
"name": "在地圖顯示寶箱",
"description": "在地圖顯示所有寶箱. \\c[2][cheat]"
}
},
"autoaim": {
"enable": {
"name": "開啟自動瞄準",
"description": "不需要移動滑鼠使用QE自動瞄準. \\c[2][cheat]"
}
},
"skip-title-screen-intro": {
"enable": {
"name": "跳過開頭 Logo 標題",
"description": "跳過煩人的開頭 Logo 標題. \\c[2][debug]"
}
}
},
"controls": {
"keys": {
"twk": {
"open-map-menu-shortcut": {
"key": "開/關 地圖目錄"
}
}
}
}
},
"menu": {
"map-menu": {
"teleport-anywhere": {
"question": "\\c[3]傳送\\c[0] 到地圖 \"[!]\"?",
"map-id": "\\c[3]地圖 ID:\\c[0] [!]"
}
}
}
}
}
11 changes: 9 additions & 2 deletions ccmod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"title": "dmitmel's tweak pack",
"description": {
"en_US": "Micro-mods by dmitmel in a single 999-in-1 package, ranging from QoL tweaks to cheats.",
"ru_RU": "Микро-моды от dmitmel в одной упаковке 999-in-1, начиная от QoL дополнений и заканчивая читами."
"ru_RU": "Микро-моды от dmitmel в одной упаковке 999-in-1, начиная от QoL дополнений и заканчивая читами.",
"zh_TW": "由 dmitmel 製作的一些增強遊戲體驗小工具.",
"zh_CN": "由 dmitmel 制作的一些增强游戏质量小工具."
},
"license": "CC0-1.0",
"homepage": "https://github.com/dmitmel/crosscode-tweak-pack",
Expand All @@ -13,5 +15,10 @@
},
"plugin": "src/_plugin.js",
"prestart": "src/_prestart.js",
"assets": ["data/lang/sc/gui.en_US.json.patch", "data/lang/sc/gui.ru_RU.json.patch"]
"assets": [
"data/lang/sc/gui.en_US.json.patch",
"data/lang/sc/gui.ru_RU.json.patch",
"data/lang/sc/gui.zh_TW.json.patch",
"data/lang/sc/gui.zh_CN.json.patch"
]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"prestart": "src/_prestart.js",
"assets": [
"data/lang/sc/gui.en_US.json.patch",
"data/lang/sc/gui.ru_RU.json.patch"
"data/lang/sc/gui.ru_RU.json.patch",
"data/lang/sc/gui.zh_TW.json.patch",
"data/lang/sc/gui.zh_CN.json.patch"
],
"scripts": {
"lint": "eslint . --ext .js,.ts --ignore-path .gitignore",
Expand Down