diff --git a/Bloxstrap/Locale.cs b/Bloxstrap/Locale.cs index 017519e..d3ed71b 100644 --- a/Bloxstrap/Locale.cs +++ b/Bloxstrap/Locale.cs @@ -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 GetLanguages() {