I stumbled upon this small bug, just thought I would leave this for you here. Testing for v0.25.1 with an English bundle loaded, this statement returns nothing instead of "Simplified Chinese":
cldr.General.getLanguageDisplayName('zh-Hans');
It only works for plain language ids, like 'en' or 'es'. I've included a snippet from the English bundle for reference, note that in most cases, the tag in question includes a region subtag, except in the case of Chinese.
Hey Patrick,
I stumbled upon this small bug, just thought I would leave this for you here. Testing for
v0.25.1
with an English bundle loaded, this statement returns nothing instead of "Simplified Chinese":It only works for plain language ids, like
'en'
or'es'
. I've included a snippet from the English bundle for reference, note that in most cases, the tag in question includes a region subtag, except in the case of Chinese.(Source: https://github.com/unicode-cldr/cldr-localenames-modern/blob/master/main/en/languages.json)
Example on codesandbox.io
Possible issue location
https://github.com/phensley/cldr-engine/blob/master/packages/cldr-schema/src/code/names.ts#L6
Once again, thanks for all the hard work.