Skip to content

Commit

Permalink
feat(translate): Add zh_TW translation based on zh_CN
Browse files Browse the repository at this point in the history
Based on 20fb8bb

Co-authored-by: Xmarmalade <[email protected]>
  • Loading branch information
My-Name-Is-Jeff and Xmarmalade committed Mar 19, 2024
1 parent 3027c8d commit b84288b
Show file tree
Hide file tree
Showing 4 changed files with 576 additions and 0 deletions.
32 changes: 32 additions & 0 deletions scripts/combine.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Skytils - Hypixel Skyblock Quality of Life Mod
* Copyright (C) 2020-2024 Skytils
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

// combine.ts
const inputText = await Deno.readTextFile("input.txt");
const outputText = await Deno.readTextFile("output.txt");

const inputLines = inputText.split("\n");
const values = outputText.split("\n");

const combined = inputLines.map((line, i) => {
const [beginning, _] = line.split("=");
const value = values[i] || "";
return `${beginning}=${value}`;
});

await Deno.writeTextFile("combined.txt", combined.join("\n"));
25 changes: 25 additions & 0 deletions scripts/splitAndSave.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Skytils - Hypixel Skyblock Quality of Life Mod
* Copyright (C) 2020-2024 Skytils
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

/// splitAndSave.ts
const inputText = await Deno.readTextFile("input.txt");
const lines = inputText.split("\n");

const values = lines.map((line) => line.split("=")[1]);

await Deno.writeTextFile("output.txt", values.join("\n"));
52 changes: 52 additions & 0 deletions src/main/resources/assets/catlas/lang/zh_TW.lang
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
catlas.config.map.toggle.map_enabled=地圖啓用
catlas.config.map.toggle.rotate_map=旋轉地圖
catlas.config.map.toggle.center_map=居中地圖
catlas.config.map.toggle.dynamic_rotate=動態旋轉
catlas.config.map.toggle.hide_in_boss=Boss戰隱藏
catlas.config.map.toggle.show_player_names=顯示玩家名稱
catlas.config.map.toggle.vanilla_head_marker=原版頭顱標記
catlas.config.map.size.map_text_scale=地圖文本縮放
catlas.config.map.size.player_heads_scale=玩家頭顱縮放
catlas.config.map.size.player_name_scale=玩家名稱縮放
catlas.config.map.render.map_background_color=地圖背景顏色
catlas.config.map.render.map_border_color=地圖邊框顏色
catlas.config.map.render.border_thickness=邊框厚度
catlas.config.rooms..room_names=房間名稱
catlas.config.rooms.text.center_room_names=居中房間名稱
catlas.config.rooms..room_secrets=房間祕密
catlas.config.rooms..color_text=文本着色
catlas.config.rooms..room_checkmarks=房間複選標記
catlas.config.rooms.checkmarks.center_room_checkmarks=居中房間複選標記
catlas.config.colors.doors.blood_door=血之門
catlas.config.colors.doors.entrance_door=入口門
catlas.config.colors.doors.normal_door=普通門
catlas.config.colors.doors.wither_door=凋零之門
catlas.config.colors.doors.opened_wither_door=已開啓凋零之門
catlas.config.colors.doors.unopened_door=未開啓門
catlas.config.colors.rooms.blood_room=血之房間
catlas.config.colors.rooms.entrance_room=入口房間
catlas.config.colors.rooms.fairy_room=精靈房間
catlas.config.colors.rooms.miniboss_room=小Boss房間
catlas.config.colors.rooms.normal_room=普通房間
catlas.config.colors.rooms.puzzle_room=拼圖房間
catlas.config.colors.rooms.rare_room=稀有房間
catlas.config.colors.rooms.trap_room=陷阱房間
catlas.config.colors.rooms.unopened_room=未開啓房間
catlas.config.other_features.wither_door.box_wither_doors=標框凋零之門
catlas.config.other_features.wither_door.no_key_color=無鑰匙顏色
catlas.config.other_features.wither_door.has_key_color=有鑰匙顏色
catlas.config.other_features.wither_door.door_outline_width=門框輪廓寬度
catlas.config.other_features.wither_door.door_outline_opacity=門框輪廓不透明度
catlas.config.other_features.wither_door.door_fill_opacity=門填充不透明度
catlas.config.map=地圖
catlas.config.rooms=房間
catlas.config.colors=顏色
catlas.config.other_features=其他功能
catlas.config.map.toggle=切換
catlas.config.map.size=大小
catlas.config.map.render=渲染
catlas.config.rooms.text=文本
catlas.config.rooms.checkmarks=複選標記
catlas.config.colors.doors=門
catlas.config.colors.rooms=房間
catlas.config.other_features.wither_door=凋零之門
Loading

0 comments on commit b84288b

Please sign in to comment.