Skip to content

Commit

Permalink
lang(Hebrew): Add hebrew language
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Apr 4, 2021
1 parent 3fb3e16 commit 2fc5fbc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .idea/.idea.SoundSwitch/.idea/contentModel.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion SoundSwitch/Localization/Factory/Lang/Langs.cs
Expand Up @@ -168,7 +168,7 @@ public class SlovenianLang : ILang
public Language TypeEnum => Language.Slovenian;
public string Label => "Slovenščina";
}

public class JapaneseLang : ILang
{
/// <summary>
Expand All @@ -179,4 +179,15 @@ public class JapaneseLang : ILang
public Language TypeEnum => Language.Japanese;
public string Label => "日本語";
}

public class HebrewLang : ILang
{
/// <summary>
/// Culture info of this language
/// </summary>
public CultureInfo CultureInfo => CultureInfo.GetCultureInfo("he");

public Language TypeEnum => Language.Hebrew;
public string Label => "עִבְרִית";
}
}
3 changes: 2 additions & 1 deletion SoundSwitch/Localization/Factory/Language.cs
Expand Up @@ -35,6 +35,7 @@ public enum Language
Croatian,
ChineseTrad,
Slovenian,
Japanese
Japanese,
Hebrew
}
}
3 changes: 2 additions & 1 deletion SoundSwitch/Localization/Factory/LanguageFactory.cs
Expand Up @@ -24,7 +24,8 @@ public class LanguageFactory : AbstractFactory<Language, ILang>
new CroatianLang(),
new ChineseTraditionalLang(),
new SlovenianLang(),
new JapaneseLang()
new JapaneseLang(),
new HebrewLang()
})
{
}
Expand Down

0 comments on commit 2fc5fbc

Please sign in to comment.