Skip to content

Commit 795c268

Browse files
Add zh-tw Traditional Chinese translation
1 parent 61f5cd0 commit 795c268

File tree

2 files changed

+244
-0
lines changed

2 files changed

+244
-0
lines changed

src/i18n/i18n.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { fr, french } from "./locales/fr";
1818
import { pa, punjabi } from "./locales/pa";
1919
import { hy, armenian } from "./locales/hy";
2020
import { ar, arabic } from "./locales/ar";
21+
import { zh_tw, traditionalChinese } from "./locales/zh-tw";
2122

2223
export const languages = [
2324
english,
@@ -37,6 +38,7 @@ export const languages = [
3738
punjabi,
3839
armenian,
3940
arabic,
41+
traditionalChinese,
4042
].sort((a, b) => a.name.localeCompare(b.name));
4143

4244
i18n
@@ -66,6 +68,7 @@ i18n
6668
pa,
6769
hy,
6870
ar,
71+
zh_tw,
6972
},
7073
});
7174

src/i18n/locales/zh-tw.js

Lines changed: 241 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,241 @@
1+
const traditionalChinese = {
2+
name: "Traditional Chinese",
3+
native_name: "繁體中文",
4+
code: "zh-tw",
5+
};
6+
7+
const zh_tw = {
8+
translation: {
9+
report_bug: "回報錯誤",
10+
import: "匯入",
11+
file: "檔案",
12+
new: "新增",
13+
new_window: "新視窗",
14+
open: "開啟",
15+
save: "儲存",
16+
save_as: "另存新檔",
17+
save_as_template: "儲存為範本",
18+
template_saved: "範本已儲存!",
19+
rename: "重新命名",
20+
delete_diagram: "刪除圖表",
21+
are_you_sure_delete_diagram:
22+
"您確定要刪除此圖表嗎?此操作無法復原。",
23+
oops_smth_went_wrong: "糟糕!發生錯誤。",
24+
import_diagram: "匯入圖表",
25+
import_from_source: "從 SQL 匯入",
26+
export_as: "匯出為",
27+
export_source: "匯出 SQL",
28+
models: "模型",
29+
exit: "離開",
30+
edit: "編輯",
31+
undo: "復原",
32+
redo: "重做",
33+
clear: "清除",
34+
are_you_sure_clear:
35+
"您確定要清除圖表嗎?此操作無法復原。",
36+
cut: "剪下",
37+
copy: "複製",
38+
paste: "貼上",
39+
duplicate: "重複",
40+
delete: "刪除",
41+
copy_as_image: "複製為圖片",
42+
view: "檢視",
43+
header: "選單列",
44+
sidebar: "側邊欄",
45+
issues: "問題",
46+
presentation_mode: "簡報模式",
47+
strict_mode: "嚴謹模式",
48+
field_details: "欄位詳細資料",
49+
reset_view: "重設檢視",
50+
show_grid: "顯示格線",
51+
show_cardinality: "顯示基數",
52+
theme: "佈景主題",
53+
light: "淺色",
54+
dark: "深色",
55+
zoom_in: "放大",
56+
zoom_out: "縮小",
57+
fullscreen: "全螢幕",
58+
settings: "設定",
59+
show_timeline: "顯示時間軸",
60+
autosave: "自動儲存",
61+
panning: "平移",
62+
show_debug_coordinates: "顯示除錯座標",
63+
transform: "變形",
64+
viewbox: "檢視框",
65+
cursor_coordinates: "游標座標",
66+
coordinate_space: "座標空間",
67+
coordinate_space_screen: "螢幕",
68+
coordinate_space_diagram: "圖表",
69+
table_width: "表格寬度",
70+
language: "語言",
71+
flush_storage: "清除儲存空間",
72+
are_you_sure_flush_storage:
73+
"您確定要清除儲存空間嗎?這將無法復原地刪除您所有的圖表和自訂範本。",
74+
storage_flushed: "儲存空間已清除",
75+
help: "說明",
76+
shortcuts: "快速鍵",
77+
ask_on_discord: "在 Discord 上詢問我們",
78+
feedback: "意見回饋",
79+
no_changes: "沒有變更",
80+
loading: "載入中...",
81+
last_saved: "上次儲存時間",
82+
saving: "儲存中...",
83+
failed_to_save: "儲存失敗",
84+
fit_window_reset: "合適視窗 / 重設",
85+
zoom: "縮放",
86+
add_table: "新增表格",
87+
add_area: "新增區域",
88+
add_note: "新增註解",
89+
add_type: "新增型別",
90+
to_do: "待辦事項",
91+
tables: "表格",
92+
relationships: "關聯",
93+
subject_areas: "主題區域",
94+
notes: "註解",
95+
types: "型別",
96+
search: "搜尋...",
97+
no_tables: "沒有表格",
98+
no_tables_text: "開始建立您的圖表!",
99+
no_relationships: "沒有關聯",
100+
no_relationships_text: "拖曳以連接欄位並建立關聯!",
101+
no_subject_areas: "沒有主題區域",
102+
no_subject_areas_text: "新增主題區域以將表格分組!",
103+
no_notes: "沒有註解",
104+
no_notes_text: "使用註解記錄額外資訊",
105+
no_types: "沒有型別",
106+
no_types_text: "建立您自己的自訂資料型別",
107+
no_issues: "未偵測到問題。",
108+
strict_mode_is_on_no_issues:
109+
"嚴謹模式已關閉,因此不會顯示任何問題。",
110+
name: "名稱",
111+
type: "型別",
112+
null: "允許空值",
113+
not_null: "不允許空值",
114+
primary: "主鍵",
115+
unique: "唯一",
116+
autoincrement: "自動遞增",
117+
default_value: "預設值",
118+
check: "檢查表達式",
119+
this_will_appear_as_is: "*這將按原樣顯示在產生的指令碼中。",
120+
comment: "註解",
121+
add_field: "新增欄位",
122+
values: "值",
123+
size: "大小",
124+
precision: "精確度",
125+
set_precision: "設定精確度:(大小,位數)",
126+
use_for_batch_input: "使用 , 進行批次輸入",
127+
indices: "索引",
128+
add_index: "新增索引",
129+
select_fields: "選擇欄位",
130+
title: "標題",
131+
not_set: "未設定",
132+
foreign: "外來鍵",
133+
cardinality: "基數",
134+
on_update: "更新時",
135+
on_delete: "刪除時",
136+
swap: "交換",
137+
one_to_one: "一對一",
138+
one_to_many: "一對多",
139+
many_to_one: "多對一",
140+
content: "內容",
141+
types_info:
142+
"此功能適用於像 PostgreSQL 這樣的物件關聯式資料庫管理系統。\n如果用於 MySQL 或 MariaDB,將產生具有相應 JSON 驗證檢查的 JSON 型別。\n如果用於 SQLite,它將被轉換為 BLOB。\n如果用於 MSSQL,將產生到第一個欄位的型別別名。",
143+
table_deleted: "表格已刪除",
144+
area_deleted: "區域已刪除",
145+
note_deleted: "註解已刪除",
146+
relationship_deleted: "關聯已刪除",
147+
type_deleted: "型別已刪除",
148+
cannot_connect: "無法連接,欄位型別不同",
149+
copied_to_clipboard: "已複製到剪貼簿",
150+
create_new_diagram: "建立新圖表",
151+
cancel: "取消",
152+
open_diagram: "開啟圖表",
153+
rename_diagram: "重新命名圖表",
154+
export: "匯出",
155+
export_image: "匯出圖片",
156+
create: "建立",
157+
confirm: "確認",
158+
last_modified: "上次修改時間",
159+
drag_and_drop_files: "拖曳檔案到此處或點選上傳。",
160+
support_json_and_ddb: "支援 JSON 和 DDB 檔案",
161+
upload_sql_to_generate_diagrams:
162+
"上傳 SQL 檔案以自動產生表格和欄位。",
163+
overwrite_existing_diagram: "覆寫現有圖表",
164+
only_mysql_supported:
165+
"*目前僅支援載入 MySQL 指令碼。",
166+
blank: "空白",
167+
filename: "檔案名稱",
168+
table_w_no_name: "宣告了一個沒有名稱的表格",
169+
duplicate_table_by_name: "表格名稱 '{{tableName}}' 重複",
170+
empty_field_name: "表格 '{{tableName}}' 中的欄位 `name` 為空",
171+
empty_field_type: "表格 '{{tableName}}' 中的欄位 `type` 為空",
172+
no_values_for_field:
173+
"表格 '{{tableName}}' 的 '{{fieldName}}' 欄位型別為 `{{type}}`,但未指定任何值",
174+
default_doesnt_match_type:
175+
"表格 '{{tableName}}' 中欄位 '{{fieldName}}' 的預設值與其型別不符",
176+
not_null_is_null:
177+
"表格 '{{tableName}}' 中的 '{{fieldName}}' 欄位為 NOT NULL,但預設值為 NULL",
178+
duplicate_fields:
179+
"表格 '{{tableName}}' 中的欄位名稱 '{{fieldName}}' 重複",
180+
duplicate_index:
181+
"表格 '{{tableName}}' 中的索引名稱 '{{indexName}}' 重複",
182+
empty_index: "表格 '{{tableName}}' 中的索引未指定任何欄位",
183+
no_primary_key: "表格 '{{tableName}}' 沒有主鍵",
184+
type_with_no_name: "宣告了一個沒有名稱的型別",
185+
duplicate_types: "型別名稱 '{{typeName}}' 重複",
186+
type_w_no_fields: "宣告了一個沒有欄位的空型別 '{{typeName}}'",
187+
empty_type_field_name: "型別 '{{typeName}}' 中的欄位 `name` 為空",
188+
empty_type_field_type: "型別 '{{typeName}}' 中的欄位 `type` 為空",
189+
no_values_for_type_field:
190+
"型別 '{{typeName}}' 的 '{{fieldName}}' 欄位型別為 `{{type}}`,但未指定任何值",
191+
duplicate_type_fields:
192+
"自訂型別 '{{typeName}}' 中的欄位名稱 '{{fieldName}}' 重複",
193+
duplicate_reference: "參考名稱 '{{refName}}' 重複",
194+
circular_dependency: "涉及到表格 '{{refName}}' 的循環相依性",
195+
timeline: "時間軸",
196+
priority: "優先順序",
197+
none: "無",
198+
low: "低",
199+
medium: "中",
200+
high: "高",
201+
sort_by: "排序方式",
202+
my_order: "我的排序",
203+
completed: "已完成",
204+
alphabetically: "按字母順序",
205+
add_task: "新增任務",
206+
details: "詳細資料",
207+
no_tasks: "您還沒有任務。",
208+
no_activity: "您還沒有活動。",
209+
move_element: "將 {{name}} 移動到 {{coords}}",
210+
edit_area: "{{extra}} 編輯區域 {{areaName}}",
211+
delete_area: "刪除區域 {{areaName}}",
212+
edit_note: "{{extra}} 編輯註解 {{noteTitle}}",
213+
delete_note: "刪除註解 {{noteTitle}}",
214+
edit_table: "{{extra}} 編輯表格 {{tableName}}",
215+
delete_table: "刪除表格 {{tableName}}",
216+
edit_type: "{{extra}} 編輯型別 {{typeName}}",
217+
delete_type: "刪除型別 {{typeName}}",
218+
add_relationship: "新增關聯",
219+
edit_relationship: "{{extra}} 編輯關聯 {{refName}}",
220+
delete_relationship: "刪除關聯 {{refName}}",
221+
not_found: "沒有找到",
222+
pick_db: "選擇資料庫",
223+
generic: "通用",
224+
generic_description:
225+
"通用圖表可以匯出到任何 SQL 語法,但支援的資料型別較少。",
226+
enums: "列舉",
227+
add_enum: "新增列舉",
228+
edit_enum: "{{extra}} 編輯列舉 {{enumName}}",
229+
delete_enum: "刪除列舉",
230+
enum_w_no_name: "找到沒有名稱的列舉",
231+
enum_w_no_values: "找到沒有值的列舉 '{{enumName}}'",
232+
duplicate_enums: "列舉名稱 '{{enumName}}' 重複",
233+
no_enums: "沒有列舉",
234+
no_enums_text: "在此定義列舉",
235+
declare_array: "宣告陣列",
236+
empty_index_name: "在表格 '{{tableName}}' 中宣告了一個沒有名稱的索引",
237+
didnt_find_diagram: "糟糕!找不到圖表。",
238+
},
239+
};
240+
241+
export { zh_tw, traditionalChinese };

0 commit comments

Comments
 (0)