Skip to content

Commit

Permalink
Merge pull request #217 from scott-klaytn/add-traditional-chinese
Browse files Browse the repository at this point in the history
Add traditional Chinese
  • Loading branch information
scott-klaytn authored Jan 23, 2025
2 parents 337b5f2 + f3c3eef commit 3b4d425
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 6 deletions.
10 changes: 7 additions & 3 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
project_id: '684038'
api_token_env: CROWDIN_PERSONAL_TOKEN
languages_mapping:
preserve_hierarchy: true
languages_mapping: &languages_mapping
two_letters_code:
zh-CN: zh-CN
preserve_hierarchy: 1
zh-TW: zh-TW
files:
# JSON translation files
- source: /i18n/en/**/*.json
translation: /i18n/%two_letters_code%/**/%original_file_name%
languages_mapping: []
languages_mapping: *languages_mapping
# Docs Markdown files
- source: /docs/**/*.*
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%
languages_mapping: *languages_mapping
9 changes: 8 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const config = {

i18n: {
defaultLocale: 'en',
locales: ['en', 'ko', 'zh-CN', 'vi'],
locales: ['en', 'ko', 'zh-CN', 'zh-TW', 'vi'],
path: 'i18n',
localeConfigs: {
'en': {
Expand All @@ -55,6 +55,13 @@ const config = {
calendar: 'gregory',
path: 'zh-CN',
},
'zh-TW': {
label: '繁體中文',
direction: 'ltr',
htmlLang: 'zh-Hant',
calendar: 'gregory',
path: 'zh-TW',
},
'vi': {
label: 'Tiếng Việt',
direction: 'ltr',
Expand Down
4 changes: 2 additions & 2 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,11 @@
},
"homepage.favorites.rpc.title": {
"message": "Public JSON RPC Endpoints",
"description": "Title for Public JSON RPC Endpoints"
"description": "Title for RPC Endpoints"
},
"homepage.favorites.rpc.description": {
"message": "Build and test your products without running your own node.",
"description": "Description for Public JSON RPC Endpoints"
"description": "Description for RPC Endpoints"
},
"homepage.favorites.wallets.title": {
"message": "Wallets",
Expand Down
24 changes: 24 additions & 0 deletions i18n/en/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,5 +274,29 @@
"sidebar.miniDappSidebar.category.Transition to Kaia": {
"message": "Transition to Kaia",
"description": "The label for category Transition to Kaia in sidebar miniDappSidebar"
},
"sidebar.learnSidebar.category.Core Concepts": {
"message": "Core Concepts",
"description": "The label for category Core Concepts in sidebar learnSidebar"
},
"sidebar.learnSidebar.category.Smart Contracts": {
"message": "Smart Contracts",
"description": "The label for category Smart Contracts in sidebar learnSidebar"
},
"sidebar.learnSidebar.category.Advanced Topics": {
"message": "Advanced Topics",
"description": "The label for category Advanced Topics in sidebar learnSidebar"
},
"sidebar.learnSidebar.category.Transaction Execution": {
"message": "Transaction Execution",
"description": "The label for category Transaction Execution in sidebar learnSidebar"
},
"sidebar.learnSidebar.category.Token Economics": {
"message": "Token Economics",
"description": "The label for category Token Economics in sidebar learnSidebar"
},
"sidebar.buildSidebar.category.Transactions": {
"message": "Transactions",
"description": "The label for category Transactions in sidebar buildSidebar"
}
}
16 changes: 16 additions & 0 deletions src/theme/Footer/Feedback/Feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@ const placeholders = {
ratingPlaceholder: "本页对您有帮助吗?",
ratingStarsPlaceholder: "您如何评价本页面?"
},
'zh-TW': {
feedbackButtonText: "讓這個頁面變得更好",
modalTitle: "您的反饋使我們與衆不同。讓我們知道如何做得更好",
emailPlaceholder: "輸入您的電子郵件",
errorMessage: "請稍後再試",
modalTitleError403: "請求的 URL 與 PushFeedback 中爲該項目定義的 URL 不匹配",
modalTitleError404: "我們無法在 PushFeedback 中找到所提供的項目 ID。",
messagePlaceholder: "評論",
modalTitleError: "哎呀!",
modalTitleSuccess: "感謝您的反饋!",
screenshotButtonText: "添加截圖",
screenshotTopbarText: "在頁面上選擇一個元素",
sendButtonText: "發送",
ratingPlaceholder: "本頁對您有幫助嗎?",
ratingStarsPlaceholder: "您如何評價本頁面?"
},
'vi': {
feedbackButtonText: "Cải thiện trang này",
modalTitle: "Phản hồi của bạn giúp chúng tôi cải thiện.",
Expand Down

0 comments on commit 3b4d425

Please sign in to comment.