Skip to content

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

Open
@chrisbobbe

Description

@chrisbobbe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-i18nTranslation, localization, internationalization

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions