-
Notifications
You must be signed in to change notification settings - Fork 30
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
Any way to set the default language? #11
Comments
I'm not sure, I'll have to investigate :) |
+1 |
I haven't investigated for iOS, but this is postinstall for Android. English is forced to be default language.
Removing the if clause enables english not to default (there would be values-en). Then we'd need to read the default language string (ie. from package.json) and do the if clause for that language. |
@lukashlobil yes, this is the approach I wanna take, only that I was very busy. Gimme few days to try to find some time to do this 😄 |
@lukashlobil actually if you look into https://github.com/rborn/nativescript-i18n/blob/custom_lang_path/lib/before-prepare.js#L12 I already did this for #28 |
@rborn oh, cool! |
@lukashlobil looks good 😄 if you want you can bump the version to 0.1.0 (as I think the module can be considered out of beta now), update the readme with the info about the defaultLang and I'll review the PR and push it to npm if all ok. thanks again 👍 |
In my app I have two languages spanish and english but I want to make spanish the default language in case that the device has any other language. Is there any way to set a default language?
The text was updated successfully, but these errors were encountered: