On Fri, 12 May 2023 16:41:20 GMT, Steven Loomis <s...@openjdk.org> wrote:
>>> I'm just wondering where a developer might go to get a definitive list, >>> i.e. aside from this API note, how would they know that "-trad" or >>> "-traditional" can be used to configure the ordering. Locale.forLanguageTag >>> supports more than BCP 47 language tag strings so is this considered a >>> private use language tag. >> >> I think those should go into Oracle JDK's `Supported Locales` document. >> Created a task to include them (https://bugs.openjdk.org/browse/JDK-8308018) > >> > I'm just wondering where a developer might go to get a definitive list, >> > i.e. aside from this API note, how would they know that "-trad" or >> > "-traditional" can be used to configure the ordering. >> > Locale.forLanguageTag supports more than BCP 47 language tag strings so is >> > this considered a private use language tag. >> >> I think those should go into Oracle JDK's `Supported Locales` document. >> Created a task to include them (https://bugs.openjdk.org/browse/JDK-8308018) > > `-u-co` is defined > [here](https://www.unicode.org/reports/tr35/#UnicodeCollationIdentifier) > (UTS#35) and the keys are in the datafile [here (link to `main` > branch!)](https://github.com/unicode-org/cldr/blob/main/common/bcp47/collation.xml) > - note the `since=` attribute, these are very stable. > > @AlanBateman >> Locale.forLanguageTag supports more than BCP 47 language tag strings > > It should still be all valid BCP47 including extensions and private use (such > as x-lvalue). > >> so is this considered a private use language tag > > Not private use at all. The `-u-` subtag is registered, and the links above > are from the registrar, see > - https://www.rfc-editor.org/info/bcp47 > - https://www.rfc-editor.org/rfc/rfc6067 > Thanks @srl295 > I am just curious how CLDR handles the default switch of Swedish collation. > Now the `traditional` collation used to be `standard`, and `standard` used to > be `reformed`. How do apps specify their desired collation in Swedish, > regardless of CLDR versions? I don't know off the top of my head but digging around I found https://unicode-org.atlassian.net/browse/CLDR-7088 and cross linked some tickets. Can you ask around on those? ------------- PR Comment: https://git.openjdk.org/jdk/pull/13917#issuecomment-1546050297