Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibly option for dialect control? #7

Open
jefgen opened this issue Jul 19, 2018 · 3 comments
Open

Possibly option for dialect control? #7

jefgen opened this issue Jul 19, 2018 · 3 comments

Comments

@jefgen
Copy link

jefgen commented Jul 19, 2018

Would there be any desire to possibly have some sort of "option" to select if the caller wanted "dialect" names?
For example for the locale “fr-CA” (as displayed in “en”) there might be the choice between "French Canada" and "Canadian French".

@littledan
Copy link
Collaborator

@jefgen I don't see why not. I'm wondering, is this data present in CLDR? How is it exposed by other libraries?

@jefgen
Copy link
Author

jefgen commented Nov 26, 2018

Thanks @littledan. (Sorry for the delayed reply).

Yes, this data is already present in CLDR for some locales/languages.
For example, here is a snippet of the data for fr_CA in the neutral English locale file "en.xml".
https://www.unicode.org/repos/cldr/trunk/common/main/en.xml

<language type="fr">French</language>
<language type="fr_CA">Canadian French</language>

However, I don't think there is currently any way to get at this data from the ICU "C" API surface (though the data is present in the default ICU data file).

@FrankYFTang
Copy link
Collaborator

@jefgen I am taking over the champion of this proposal now. Somehow, as a novice of github I messed up the transfer process and use a different process that won't carry all the fired issues to https://github.com/tc39/proposal-intl-displaynames. Could you refile your issue in https://github.com/tc39/proposal-intl-displaynames/issues ? Check my two proposed changes on https://github.com/tc39/proposal-intl-displaynames/pulls first. I think that address the issue you have here. I would like to ask to abandon this old one but move all discussion to https://github.com/tc39/proposal-intl-displaynames/issues instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants