Skip to content

Commit 2fc5fbc

Browse files
committed
lang(Hebrew): Add hebrew language
1 parent 3fb3e16 commit 2fc5fbc

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

.idea/.idea.SoundSwitch/.idea/contentModel.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SoundSwitch/Localization/Factory/Lang/Langs.cs

+12-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public class SlovenianLang : ILang
168168
public Language TypeEnum => Language.Slovenian;
169169
public string Label => "Slovenščina";
170170
}
171-
171+
172172
public class JapaneseLang : ILang
173173
{
174174
/// <summary>
@@ -179,4 +179,15 @@ public class JapaneseLang : ILang
179179
public Language TypeEnum => Language.Japanese;
180180
public string Label => "日本語";
181181
}
182+
183+
public class HebrewLang : ILang
184+
{
185+
/// <summary>
186+
/// Culture info of this language
187+
/// </summary>
188+
public CultureInfo CultureInfo => CultureInfo.GetCultureInfo("he");
189+
190+
public Language TypeEnum => Language.Hebrew;
191+
public string Label => "עִבְרִית";
192+
}
182193
}

SoundSwitch/Localization/Factory/Language.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public enum Language
3535
Croatian,
3636
ChineseTrad,
3737
Slovenian,
38-
Japanese
38+
Japanese,
39+
Hebrew
3940
}
4041
}

SoundSwitch/Localization/Factory/LanguageFactory.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public LanguageFactory() : base(new EnumImplList<Language, ILang>
2424
new CroatianLang(),
2525
new ChineseTraditionalLang(),
2626
new SlovenianLang(),
27-
new JapaneseLang()
27+
new JapaneseLang(),
28+
new HebrewLang()
2829
})
2930
{
3031
}

0 commit comments

Comments
 (0)