let's add unit tests to confirm we have all needed files. at the moment, for example, get_cldr_locale() for the .org locale als returns gsw which is a valid CLDR language code but is one of the locales like pt-br which have a different language code than the locale they use for JSON files/trees ( 😡).
starting point that could be added to test_all_WordPress_locales():
added as part of the add/CLDR29-update branch will merge that in a few days once the CLDR release is official (that branch uses the beta at the moment).
let's add unit tests to confirm we have all needed files. at the moment, for example,
get_cldr_locale()
for the .org localeals
returnsgsw
which is a valid CLDR language code but is one of the locales likept-br
which have a different language code than the locale they use for JSON files/trees ( 😡).starting point that could be added to
test_all_WordPress_locales()
:but we don't want to have to update version number so probably call
get_cldr_json_file()
instead.