mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 16:41:36 -07:00
Fix bug with default language selection
This commit is contained in:
parent
ca0c1d55cd
commit
f751e134eb
@ -51,7 +51,7 @@ namespace Bloxstrap
|
||||
{ "vi", "Tiếng Việt" }
|
||||
};
|
||||
|
||||
public static string GetIdentifierFromName(string language) => Locale.SupportedLocales.Where(x => x.Value == language).First().Key;
|
||||
public static string GetIdentifierFromName(string language) => SupportedLocales.FirstOrDefault(x => x.Value == language).Key ?? "nil";
|
||||
|
||||
public static List<string> GetLanguages()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user