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

i18n: Localize lists in prose (e.g. of names) instead of just calling .join(', ') #1080

Open
chrisbobbe opened this issue Nov 23, 2024 · 0 comments
Labels
a-i18n Translation, localization, internationalization
Milestone

Comments

@chrisbobbe
Copy link
Collaborator

For example, I think in Japanese you would want "1位、2位、3位" instead of "1位, 2位, 3位".

JavaScript has API for this:

new Intl.ListFormat('ja').format(['Chris', 'Greg', 'Alya', 'Zixuan'])
// 'Chris、Greg、Alya、Zixuan'

I'm not aware of a nice way to do this in Flutter, though, but I haven't checked in a while.

@chrisbobbe chrisbobbe added the a-i18n Translation, localization, internationalization label Nov 23, 2024
@chrisbobbe chrisbobbe added this to the M7: Future milestone Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-i18n Translation, localization, internationalization
Projects
Status: No status
Development

No branches or pull requests

1 participant