Merge pull request #321 from senlima0430/master

Update Traditional Chinese language
This commit is contained in:
Mike Cao 2020-10-21 14:40:39 -07:00 committed by GitHub
commit dd8ed48793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 110 additions and 0 deletions

View File

@ -22,6 +22,12 @@ export default function LanguageButton() {
rel="stylesheet" rel="stylesheet"
/> />
)} )}
{locale === 'zh-TW' && (
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap"
rel="stylesheet"
/>
)}
{locale === 'ja-JP' && ( {locale === 'ja-JP' && (
<link <link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap" href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap"

99
lang/zh-TW.json Normal file
View File

@ -0,0 +1,99 @@
{
"label.accounts": "帳戶",
"label.add-account": "增加帳戶",
"label.add-website": "增加網站",
"label.administrator": "管理員",
"label.all": "所有",
"label.all-websites": "全部網站",
"label.back": "返回",
"label.cancel": "取消",
"label.change-password": "更新密碼",
"label.confirm-password": "確認密碼",
"label.copy-to-clipboard": "複製",
"label.current-password": "目前密碼",
"label.custom-range": "自定義時段",
"label.dashboard": "管理面板",
"label.date-range": "多日",
"label.default-date-range": "默認日期範圍",
"label.delete": "刪除",
"label.delete-account": "刪除帳戶",
"label.delete-website": "删除網站",
"label.dismiss": "關閉",
"label.domain": "域名",
"label.edit": "編輯",
"label.edit-account": "編輯帳戶",
"label.edit-website": "編輯網站",
"label.enable-share-url": "啟用分享連結",
"label.invalid": "無效輸入",
"label.invalid-domain": "無效域名",
"label.last-days": "最近 {x} 天",
"label.last-hours": "最近 {x} 小時",
"label.logged-in-as": "用戶名: {username}",
"label.login": "登入",
"label.logout": "退出",
"label.more": "更多",
"label.name": "名字",
"label.new-password": "新密碼",
"label.password": "密碼",
"label.passwords-dont-match": "密碼不一致",
"label.profile": "個人資料",
"label.realtime": "實時",
"label.realtime-logs": "實時日志",
"label.refresh": "刷新",
"label.required": "必填",
"label.reset": "重置",
"label.save": "保存",
"label.settings": "設置",
"label.share-url": "分享連結",
"label.single-day": "單日",
"label.this-month": "本月",
"label.this-week": "本週",
"label.this-year": "今年",
"label.timezone": "時區",
"label.today": "今天",
"label.tracking-code": "追蹤代碼",
"label.unknown": "未知",
"label.username": "用户名",
"label.view-details": "查看更多",
"label.websites": "網站",
"message.active-users": "当前線上 {x} 人",
"message.confirm-delete": "你確定要删除{target}嗎?",
"message.copied": "複製成功!",
"message.delete-warning": "所有相關數據將會被删除.",
"message.failure": "出現錯誤.",
"message.get-share-url": "獲得分享連結",
"message.get-tracking-code": "獲得追蹤代碼",
"message.go-to-settings": "去設定",
"message.incorrect-username-password": "用户名或密碼不正確.",
"message.log.visitor": "自 {country} 的訪客在搭載 {os} 的 {device} 上使用 {browser} 進行訪問.",
"message.new-version-available": "umami 有新版本 {version} 發佈啦!",
"message.no-data-available": "無可用數據.",
"message.no-websites-configured": "目前無任何網站設定.",
"message.page-not-found": "網頁未找到.",
"message.powered-by": "運行 {name}",
"message.save-success": "成功保存.",
"message.share-url": "這是 {target} 的分享連結.",
"message.track-stats": "將以下代碼放入被設定網站的{head}部分来收集{target}的資料.",
"message.type-delete": "在下方空格輸入{delete}確認",
"metrics.actions": "用戶行為",
"metrics.average-visit-time": "平均訪問時間",
"metrics.bounce-rate": "跳出率",
"metrics.browsers": "瀏覽器",
"metrics.countries": "國家",
"metrics.device.desktop": "桌機",
"metrics.device.laptop": "筆記本",
"metrics.device.mobile": "手機",
"metrics.device.tablet": "平板",
"metrics.devices": "裝置",
"metrics.events": "行為類別",
"metrics.filter.combined": "總和",
"metrics.filter.domain-only": "僅域名",
"metrics.filter.raw": "原始",
"metrics.operating-systems": "操作系统",
"metrics.page-views": "網頁流量",
"metrics.pages": "網頁",
"metrics.referrers": "指入域名",
"metrics.unique-visitors": "獨立訪客",
"metrics.views": "页面流量",
"metrics.visitors": "獨立訪客"
}

View File

@ -3,6 +3,7 @@ import {
enUS, enUS,
nl, nl,
zhCN, zhCN,
zhTW,
tr, tr,
ru, ru,
de, de,
@ -22,6 +23,7 @@ import {
import enMessages from 'lang-compiled/en-US.json'; import enMessages from 'lang-compiled/en-US.json';
import nlMessages from 'lang-compiled/nl-NL.json'; import nlMessages from 'lang-compiled/nl-NL.json';
import zhCNMessages from 'lang-compiled/zh-CN.json'; import zhCNMessages from 'lang-compiled/zh-CN.json';
import zhTWMessages from 'lang-compiled/zh-TW.json';
import trTRMessages from 'lang-compiled/tr-TR.json'; import trTRMessages from 'lang-compiled/tr-TR.json';
import ruRUMessages from 'lang-compiled/ru-RU.json'; import ruRUMessages from 'lang-compiled/ru-RU.json';
import deDEMessages from 'lang-compiled/de-DE.json'; import deDEMessages from 'lang-compiled/de-DE.json';
@ -44,6 +46,7 @@ export const messages = {
'en-US': enMessages, 'en-US': enMessages,
'nl-NL': nlMessages, 'nl-NL': nlMessages,
'zh-CN': zhCNMessages, 'zh-CN': zhCNMessages,
'zh-TW': zhTWMessages,
'de-DE': deDEMessages, 'de-DE': deDEMessages,
'ru-RU': ruRUMessages, 'ru-RU': ruRUMessages,
'tr-TR': trTRMessages, 'tr-TR': trTRMessages,
@ -67,6 +70,7 @@ export const dateLocales = {
'en-US': enUS, 'en-US': enUS,
'nl-NL': nl, 'nl-NL': nl,
'zh-CN': zhCN, 'zh-CN': zhCN,
'zh-TW': zhTW,
'de-DE': de, 'de-DE': de,
'da-DK': da, 'da-DK': da,
'ru-RU': ru, 'ru-RU': ru,
@ -88,6 +92,7 @@ export const dateLocales = {
export const menuOptions = [ export const menuOptions = [
{ label: '中文', value: 'zh-CN', display: 'cn' }, { label: '中文', value: 'zh-CN', display: 'cn' },
{ label: '中文(繁體)', value: 'zh-TW', display: 'tw' },
{ label: 'Dansk', value: 'da-DK', display: 'da' }, { label: 'Dansk', value: 'da-DK', display: 'da' },
{ label: 'Deutsch', value: 'de-DE', display: 'de' }, { label: 'Deutsch', value: 'de-DE', display: 'de' },
{ label: 'English', value: 'en-US', display: 'en' }, { label: 'English', value: 'en-US', display: 'en' },