mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
fix: Better determine builtin cultures on NetStandard
This commit is contained in:
parent
844f8b7b46
commit
9adad373f6
1 changed files with 7 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue