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

Using runtime locale? #18

Open
sharpner opened this issue Dec 18, 2017 · 3 comments
Open

Using runtime locale? #18

sharpner opened this issue Dec 18, 2017 · 3 comments
Assignees

Comments

@sharpner
Copy link

Is there a way to load locales based on a runtime variable?

I'd rather not import every package prior to knowing the locale. :)

@deankarn
Copy link
Contributor

Hey @sharpner

I did use to have code generated that would accept the local string eg. en_US I did end up removing it however as having all the locales imported dramatically increases you're compile time and binary size; because the locale is found at runtime that means ALL locales will be compiled and included in your binary, even if you only use one.

however I have had a few people ask about it, so as long as the tradeoffs aren't a big deal I'll add it back next time I regenerate.

@deankarn deankarn self-assigned this Dec 18, 2017
@sharpner
Copy link
Author

I understand. Thanks for keeping it in mind :)

@bep
Copy link

bep commented Jul 26, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants