Merge pull request #601 from doomlaur/bugfix/system_default_date_time

Added support for the System Default locale for the Time and Long Date types
This commit is contained in:
Thomas Fussell 2022-01-09 17:39:04 -05:00 committed by GitHub
commit 69f651e3a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -466,6 +466,8 @@ const std::unordered_map<int, std::string> known_locales()
{0x7C68, "Hausa (Latin)"},
{0x7C86, "Kiche"},
{0x7C92, "Central Kurdish (Arabic)"},
{0xF400, "System Default for Time"},
{0xF800, "System Default for Long Date"},
});
return all;

View File

@ -530,7 +530,9 @@ enum class format_locale
tamazight_latin = 0x7C5F,
fulah_latin = 0x7C67,
hausa_latin = 0x7C68,
central_kurdish_arabic = 0x7C92
central_kurdish_arabic = 0x7C92,
system_default_time = 0xF400,
system_default_long_date = 0xF800
};
// TODO this really shouldn't be exported...