Skip to content

Commit

Permalink
Add language settings for Traditional Chinese
Browse files Browse the repository at this point in the history
  • Loading branch information
ibmibmibm committed Feb 13, 2025
1 parent 849ad1c commit 1aad312
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"two_letters_code": {
# map non-two letter codes here, left side is crowdin designation, right side is babel designation
"en-GB": "en_GB",
"en-US": "en_US"
"en-US": "en_US",
"zh-TW": "zh_TW"
}
},
"update_option": "update_as_unapproved"
Expand Down
6 changes: 5 additions & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ editing the `conf` file in a text editor. Use the examples as reference.
@endcode</td>
</tr>
<tr>
<td rowspan="18">Choices</td>
<td rowspan="19">Choices</td>
<td>bg</td>
<td>Bulgarian</td>
</tr>
Expand Down Expand Up @@ -129,6 +129,10 @@ editing the `conf` file in a text editor. Use the examples as reference.
<td>zh</td>
<td>Chinese (Simplified)</td>
</tr>
<tr>
<td>zh_TW</td>
<td>Chinese (Traditional)</td>
</tr>
</table>

### sunshine_name
Expand Down
1 change: 1 addition & 0 deletions scripts/_locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
'tr', # Turkish
'uk', # Ukrainian
'zh', # Chinese
'zh_TW', # Chinese (Traditional)
]


Expand Down
1 change: 1 addition & 0 deletions src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,7 @@ namespace config {
"tr"sv, // Turkish
"uk"sv, // Ukrainian
"zh"sv, // Chinese
"zh_TW"sv, // Chinese (Traditional)
});

std::string log_level_string;
Expand Down
1 change: 1 addition & 0 deletions src_assets/common/assets/web/configs/tabs/General.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function removeCmd(index) {
<option value="tr">Türkçe (Turkish)</option>
<option value="uk">Українська (Ukranian)</option>
<option value="zh">简体中文 (Chinese Simplified)</option>
<option value="zh_TW">繁體中文 (Chinese Traditional)</option>
</select>
<div class="form-text">{{ $t('config.locale_desc') }}</div>
</div>
Expand Down

0 comments on commit 1aad312

Please sign in to comment.