Skip to content

Commit

Permalink
boost(language): Add Swedish translations
Browse files Browse the repository at this point in the history
fixes #1431
  • Loading branch information
Belphemur committed Apr 8, 2024
1 parent be0a12f commit 27ef51f
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 @@ -265,4 +265,14 @@ public class Bulgarian : BaseLang

public override Language TypeEnum => Language.Bulgarian;
}

public class Swedish : BaseLang
{
/// <summary>
/// Culture info of this language
/// </summary>
public override CultureInfo CultureInfo => CultureInfo.GetCultureInfo("sv-SE");

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

0 comments on commit 27ef51f

Please sign in to comment.