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

Set custom locale #359

Closed
davidvavra opened this issue May 30, 2017 · 3 comments
Closed

Set custom locale #359

davidvavra opened this issue May 30, 2017 · 3 comments

Comments

@davidvavra
Copy link

Hi, the date picker is always using a default locale. That's not always desirable. We support only a few languages and for unsupported languages we would like to show English date picker, because rest of the app is also in English. Do you think you can support custom locales?

@wdullaer
Copy link
Owner

Duplicate of #325
It's on the backlog, but I have no idea how to properly handle this right now

@davidvavra
Copy link
Author

I have looked into the code, it shouldn't be too hard. Just replace Locale.getDefault() in the code with a variable which is customisable (default locale by default).

@wdullaer
Copy link
Owner

If you have some time, PR's are always appreciated ;-)

I was a bit worried about the strings in the xml which are automatically interpolated.
Anyway, I haven't had a detailed look into this yet.

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

2 participants