Skip to content

Commit

Permalink
lang(Ukrainian): Add Ukrainian to the list of supported languages
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Jan 7, 2023
1 parent ee1d68a commit a3684d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions SoundSwitch/Localization/Factory/Lang/Langs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,14 @@ public class Danish : BaseLang
public override Language TypeEnum => Language.Danish;
}


public class Ukrainian : BaseLang
{
/// <summary>
/// Culture info of this language
/// </summary>
public override CultureInfo CultureInfo => CultureInfo.GetCultureInfo("uk");

public override Language TypeEnum => Language.Ukrainian;
}
}
3 changes: 2 additions & 1 deletion SoundSwitch/Localization/Factory/Language.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public enum Language
Arabic,
Thai,
Serbian,
Danish
Danish,
Ukrainian
}
}
3 changes: 2 additions & 1 deletion SoundSwitch/Localization/Factory/LanguageFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public LanguageFactory() : base(new EnumImplList<Language, ILang>
new Arabic(),
new Thai(),
new Serbian(),
new Danish()
new Danish(),
new Ukrainian()
})
{
}
Expand Down

0 comments on commit a3684d3

Please sign in to comment.