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

Intl gives an error if you try to initialize e.g. en_US and haven't provided a locale for it. #15444

Closed
alan-knight opened this issue Dec 4, 2013 · 5 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-obsolete Closed as the reported issue is no longer relevant

Comments

@alan-knight
Copy link
Contributor

It would be nice if you could indicate what locale the default message texts were in and have an initialize not give you an error in that case. Otherwise you need to special-case it in your initialization routine.

@anders-sandholm
Copy link
Contributor

Added Area-Library label.

@lrhn
Copy link
Member

lrhn commented Jan 22, 2014

Removed Area-Library label.
Added Area-Pkg label.

@anders-sandholm
Copy link
Contributor

Removed Library-Intl label.
Added Pkg-Intl label.

@alan-knight
Copy link
Contributor Author

Current behaviour is that you can initialize a locale that doesn't exist and it will succeed, but evaluate the Intl.message calls with the un-translated content. So if you initialize en_US, and that's the locale you originally wrote for, it will work, and there's no need to special-case it.

That does mean you won't get an error if you initialize for a locale that has no translations, but that's probably reasonable, and something that the most trivial localization testing would find.


Added AssumedStale label.

@alan-knight alan-knight added Type-Defect area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-obsolete Closed as the reported issue is no longer relevant labels Oct 29, 2014
@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/i18n#339.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. closed-obsolete Closed as the reported issue is no longer relevant
Projects
None yet
Development

No branches or pull requests

4 participants