Skip to content

Commit

Permalink
Add 4 languages
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Dec 22, 2024
1 parent b2a85ce commit c720652
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ editing the `conf` file in a text editor. Use the examples as reference.
@endcode</td>
</tr>
<tr>
<td rowspan="13">Choices</td>
<td rowspan="17">Choices</td>
<td>bg</td>
<td>Bulgarian</td>
</tr>
<tr>
<td>de</td>
<td>German</td>
</tr>
Expand Down Expand Up @@ -89,10 +93,18 @@ editing the `conf` file in a text editor. Use the examples as reference.
<td>ja</td>
<td>Japanese</td>
</tr>
<tr>
<td>pl</td>
<td>Polish</td>
</tr>
<tr>
<td>pt</td>
<td>Portuguese</td>
</tr>
<tr>
<td>pt_BR</td>
<td>Portuguese (Brazilian)</td>
</tr>
<tr>
<td>ru</td>
<td>Russian</td>
Expand All @@ -105,6 +117,10 @@ editing the `conf` file in a text editor. Use the examples as reference.
<td>tr</td>
<td>Turkish</td>
</tr>
<tr>
<td>uk</td>
<td>Ukranian</td>
</tr>
<tr>
<td>zh</td>
<td>Chinese (Simplified)</td>
Expand Down
4 changes: 4 additions & 0 deletions src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,7 @@ namespace config {
}

string_restricted_f(vars, "locale", config::sunshine.locale, {
"bg"sv, // Bulgarian
"de"sv, // German
"en"sv, // English
"en_GB"sv, // English (UK)
Expand All @@ -1126,10 +1127,13 @@ namespace config {
"fr"sv, // French
"it"sv, // Italian
"ja"sv, // Japanese
"pl"sv, // Polish
"pt"sv, // Portuguese
"pt_BR"sv, // Portuguese (Brazilian)
"ru"sv, // Russian
"sv"sv, // Swedish
"tr"sv, // Turkish
"uk"sv, // Ukrainian
"zh"sv, // Chinese
});

Expand Down
4 changes: 4 additions & 0 deletions src_assets/common/assets/web/configs/tabs/General.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function removeCmd(index) {
<div class="mb-3">
<label for="locale" class="form-label">{{ $t('config.locale') }}</label>
<select id="locale" class="form-select" v-model="config.locale">
<option value="bg">Български (Bulgarian)</option>
<option value="de">Deutsch (German)</option>
<option value="en">English</option>
<option value="en_GB">English, UK</option>
Expand All @@ -41,10 +42,13 @@ function removeCmd(index) {
<option value="fr">Français (French)</option>
<option value="it">Italiano (Italian)</option>
<option value="ja">日本語 (Japanese)</option>
<option value="pl">Polski (Polish)</option>
<option value="pt">Português (Portuguese)</option>
<option value="pt_BR">Português, Brasileiro (Portuguese, Brazilian)</option>
<option value="ru">Русский (Russian)</option>
<option value="sv">svenska (Swedish)</option>
<option value="tr">Türkçe (Turkish)</option>
<option value="uk">Українські (Ukranian)</option>
<option value="zh">简体中文 (Chinese Simplified)</option>
</select>
<div class="form-text">{{ $t('config.locale_desc') }}</div>
Expand Down

0 comments on commit c720652

Please sign in to comment.