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 11, 2025
1 parent 41d9a58 commit 823244c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# map non-two letter codes here, left side is crowdin designation, right side is babel designation
"en-GB": "en_GB",
"en-US": "en_US"
"zh-TW": "zh_TW"
}
},
"update_option": "update_as_unapproved"
Expand Down
4 changes: 4 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
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', # Traditional Chinese
]


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, // Traditional Chinese
});

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 823244c

Please sign in to comment.