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

Support display locale and format locale being different #11

Open
hakanai opened this issue May 31, 2018 · 0 comments
Open

Support display locale and format locale being different #11

hakanai opened this issue May 31, 2018 · 0 comments

Comments

@hakanai
Copy link

hakanai commented May 31, 2018

Java 7 separated the "display locale" and "format locale" - you're supposed to use the "display locale" to fetch the strings to use, but you're supposed to use the "format locale" to fetch the formats for numbers, currencies and dates. However, the current generated API here only allows passing in 0 or 1 locales.

A wrapper object to hold all the locale-specific information is a common way to avoid the caller having to pass multiple things in every time, which could help reduce boilerplate for the caller.

(Honestly Java properties resource bundles are a mess though. It would be so much nicer if something standard were to emerge which dealt with things like plurals correctly. I know I could just create it... :( )

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

1 participant