mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
fix: Better determine builtin cultures on NetStandard
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user