fix: Better determine builtin cultures on NetStandard

This commit is contained in:
Chris Cameron
2019-06-10 13:47:45 -04:00
parent 844f8b7b46
commit 9adad373f6

View File

@@ -330,7 +330,9 @@ namespace ICD.Common.Utils.Globalization
s_LockCacheByLcid = new SafeCriticalSection();
s_DictNumberFormatInfos = new Dictionary<int, NumberFormatInfo>();
s_DictDatetimeFormatInfos = new Dictionary<int, DateTimeFormatInfo>();
string[] builtinCultures =
#if SIMPLSHARP
{
"",
"af",
@@ -405,6 +407,11 @@ namespace ICD.Common.Utils.Globalization
"zh-CHS",
"zh-CHT"
};
#else
CultureInfo.GetCultures(CultureTypes.AllCultures)
.Select(c => c.Name)
.ToArray();
#endif
string databasePath = IcdPath.Combine(PathUtils.ProgramPath, SQL_LOCAL_DATABASE_FILE);
if (!IcdFile.Exists(databasePath))