Skip to content

Commit

Permalink
Added Russian language
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Sep 8, 2024
1 parent 4445c5e commit 096a0ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Gavilya/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ protected override void OnStartup(StartupEventArgs e)
if (currentProfile.Settings.Language != Language.Default)
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(currentProfile.Settings.Language switch
{
Language.en_US => "en-US",
Language.ru_RU => "ru-RU",
Language.fr_FR => "fr-FR",
Language.zh_CN => "zh-CN",
_ => "en-US",
});

currentProfile.Settings.EnableSearchShortcut ??= true;
Expand Down
3 changes: 2 additions & 1 deletion Gavilya/Models/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,6 @@ public enum Language
Default,
en_US,
fr_FR,
zh_CN
zh_CN,
ru_RU
}
1 change: 1 addition & 0 deletions Gavilya/Views/SettingsViews/LanguageView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<ComboBoxItem Content="English (United States)" />
<ComboBoxItem Content="Français (France)" />
<ComboBoxItem Content="中文(简体)" />
<ComboBoxItem Content="Русский (Россия)" />
</ComboBox>
<Button
x:Name="SaveButton"
Expand Down

0 comments on commit 096a0ee

Please sign in to comment.