mattjohnsonpint / TimeZoneNames

Provides a complete source of localized time zone names and abbreviations.
MIT License
196 stars 32 forks source link

Could not find a language with code en_au despite being listed in GetLanguageCodes() #58

Open Sebbs128 opened 4 years ago

Sebbs128 commented 4 years ago

TZNames.GetLanguageCodes() lists "en_au" as a valid/known language code, however calling TZNames.GetDisplayNames() with either "en_au" or "en-AU" (as returned by System.Globalization.CultureInfo.CurrentCulture.IetfLanguageTag) both result in an exception.

The variations for en-US and en-GB work as expected.

Tested with v4.0.1 on .NET Core 2.2 x64 and .NET Framework 4.8 x86 and x64.

kotstreet commented 3 years ago

The same situation for "be" code.

bigsergoya commented 3 years ago

The same for zh-Hans, zh-Hans-sg, zh-Hant and a large number of other culture names from GetLanguageCodes() list. That sucks, dudes. Fix it please! image

bmrfvr commented 8 months ago

This issue would be fixed by my PR: https://github.com/mattjohnsonpint/TimeZoneNames/pull/104