gadicc / meteor-messageformat

MessageFormat i18n support for Meteor, with reactive templates
54 stars 22 forks source link

Locales ambiguity #225

Open Sabst opened 8 years ago

Sabst commented 8 years ago

Hi, I defined the translations for one locale, say 'fr'. Now, on some device, the system reports the locale as 'fr-FR' (could sometimes also be 'fr_FR' or 'fr-fr'). The result is that default (english) texts are displayed... which is not so nice. It would be better for example to:

Other sub-optimal solutions exist like:

Is there currently a solution to this locale ambiguity problem?

Regards.

1u commented 8 years ago

related: #28 Use MessageFormat.fallback so that 'en_US' finds 'en' etc.

1u commented 7 years ago

https://github.com/Openki/Openki/blob/master/client/start.js#L76