Skip to content

Commit

Permalink
Add support for Tradionnal Chinese(zh_tw)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-chang-rightfighter committed Nov 23, 2024
1 parent a8d6d61 commit fceac7d
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/src/i18n/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const languages = [
{ key: 'ru', name: 'Русский' },
{ key: 'ko', name: '한국어' },
{ key: 'zh', name: '中文' },
{ key: 'zh_tw', name: '中文(台灣)'},
{ key: 'hu', name: 'Magyar' },
{ key: 'vi', name: 'Tiếng Việt' },
{ key: 'ja', name: '日本語' },
Expand Down
190 changes: 190 additions & 0 deletions web/src/i18n/locales/zh_tw.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
const zh_tw = {
translation: {
language: '語言',
changePassword: '更改密碼',
logout: '登出',
settings: '設定',
showMouse: '顯示滑鼠游標',
hideMouse: '隱藏滑鼠游標',
power: '電源',
reset: '重新啟動',
powerShort: '電源 (短按)',
powerLong: '電源 (長按)',
hddLed: '硬碟 LED',
checkLibFailed: '檢查執行階段函式庫失敗,請重試',
updateLibFailed: '更新執行階段函式庫失敗,請重試',
updatingLib: '正在更新執行階段函式庫。更新完成後請重新整理頁面。',
checkForUpdate: '檢查更新',
head: {
desktop: '遠端桌面',
login: '登入',
changePassword: '更改密碼',
terminal: '終端機'
},
auth: {
login: '登入',
placeholderUsername: '使用者名稱',
placeholderPassword: '密碼',
placeholderPassword2: '請再次輸入密碼',
noEmptyUsername: '使用者名稱不能為空',
noEmptyPassword: '密碼不能為空',
noAccount: '取得使用者資訊失敗,請重新整理網頁或重設密碼',
invalidUser: '使用者名稱或密碼錯誤',
error: '非預期性錯誤',
changePassword: '更改密碼',
changePasswordDesc: '為了您的裝置安全,請修改網頁登入密碼。',
differentPassword: '密碼不一致',
illegalUsername: '使用者名稱包含非法字元',
illegalPassword: '密碼包含非法字元',
forgetPassword: '忘記密碼',
resetPassword: '重設密碼',
reset1: '如果您忘記密碼,請按照以下步驟重設:',
reset2: '1. 透過 SSH 登入 NanoKVM 設備;',
reset3: '2. 刪除設備中的檔案:',
reset4: '3. 使用預設帳號登入:',
ok: '確定',
cancel: '取消',
loginButtonText: '登入',
},
screen: {
video: '影片模式',
resolution: '解析度',
auto: '自動',
autoTips:
"在特定解析度下可能會出現畫面撕裂或滑鼠偏移的情況。考慮調整遠端主機的解析度或停用自動模式。",
fps: '影格速率',
customizeFps: '自定義',
quality: '品質',
qualityLossless: '無損',
qualityHigh: '高',
qualityMedium: '中',
qualityLow: '低',
frameDetect: '影格檢測',
frameDetectTip:
"計算影格之間的差異。當遠端主機畫面未偵測到任何變更時,停止傳輸視訊串流。"
},
keyboard: {
paste: '貼上',
tips: '僅支援標準鍵盤字母和符號',
placeholder: '請輸入內容',
submit: '送出',
virtual: '虛擬鍵盤'
},
mouse: {
default: '預設游標',
pointer: '懸浮游標',
cell: '儲存格游標',
text: '文字游標',
grab: '抓取游標',
hide: '隱藏游標',
mode: '滑鼠模式',
absolute: '絕對模式',
relative: '相對模式',
requestPointer: '使用相對模式。請按一下桌面以取得滑鼠游標。',
resetHid: '重設 HID'
},
image: {
title: '映像',
loading: '載入中...',
empty: '未找到任何內容',
mountFailed: '掛載失敗',
mountDesc:
"在某些系統中,在掛載映像之前需要中斷遠端主機上的虛擬磁碟。",
tips: {
title: '如何上傳',
usb1: '透過 USB 將 NanoKVM 連接到您的電腦。',
usb2: '確保已安裝虛擬磁碟(設定 - 虛擬磁碟)。',
usb3: '開啟電腦上的虛擬磁碟,將映像檔案複製到虛擬磁碟的根目錄下。',
scp1: '確保 NanoKVM 和您的電腦位於同一區域網路。',
scp2: '開啟電腦上的終端機,使用 SCP 指令將映像檔案上傳到 NanoKVM 的 /data 目錄下。',
scp3: '範例:scp your-image-path root@your-nanokvm-ip:/data',
tfCard: 'microSD 卡',
tf1: '此方法適用於 Linux 系統',
tf2: '從 NanoKVM 取得 microSD 卡(FULL 版本請先拆開外殼)。',
tf3: '將 microSD 卡插入讀卡機並連接至電腦。',
tf4: '將映像檔案複製到 microSD 卡的 /data 目錄下。',
tf5: '將 microSD 卡重新插入 NanoKVM。'
}
},
script: {
title: '腳本',
upload: '上傳',
run: '執行',
runBackground: '背景執行',
runFailed: '執行失敗',
attention: '注意',
delDesc: '確定刪除該檔案?',
confirm: '確定',
cancel: '取消',
delete: '刪除',
close: '關閉'
},
terminal: {
title: '終端機',
nanokvm: 'NanoKVM 終端機',
serial: 'Serial Port 終端機',
serialPort: 'Serial Port',
serialPortPlaceholder: '請輸入 Serial Port',
baudrate: 'Baud rate',
confirm: '確定'
},
wol: {
sending: '發送指令中...',
sent: '指令已發送',
input: '請輸入 MAC 位址',
ok: '確定'
},
about: {
title: '關於 NanoKVM',
information: '資訊',
ip: 'IP',
mdns: 'mDNS',
application: '應用程式版本',
image: '映像版本',
deviceKey: '設備序號',
queryFailed: '查詢失敗',
community: '社群'
},
update: {
title: '檢查更新',
queryFailed: '取得版本失敗',
updateFailed: '更新失敗。請重試。',
isLatest: '您已經擁有最新版本。',
available: '有可用更新。確定要更新嗎?',
updating: '正在更新。請稍等...',
confirm: '確定',
cancel: '取消'
},
virtualDevice: {
network: '虛擬網路',
disk: '虛擬磁碟'
},
tailscale: {
loading: '載入中...',
notInstall: 'Tailscale 未找到!請先安裝。',
install: '安裝',
installing: '安裝中',
failed: '安裝失敗',
retry: '請重新整理並重試。或嘗試手動安裝',
download: '下載',
package: '安裝包',
unzip: '並解壓縮它',
upTailscale: '將 tailscale 上傳到 NanoKVM 目錄 /usr/bin/',
upTailscaled: '將 tailscale 上傳到 NanoKVM 目錄 /usr/sbin/',
refresh: '重新整理頁面',
notLogin:
'設備尚未綁定。請登入並將該裝置綁定到您的帳戶。',
urlPeriod: '此網址有效期限為 10 分鐘',
login: '登入',
loginSuccess: '登入成功',
enable: '啟用 Tailscale',
deviceName: '裝置名稱',
deviceIP: '裝置 IP',
account: '帳號',
logout: '登出',
logout2: '確認登出?'
}
}
};

export default zh_tw;

0 comments on commit fceac7d

Please sign in to comment.