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

Feature request: Force locale on app start #8

Closed
guyzk opened this issue Dec 13, 2018 · 1 comment
Closed

Feature request: Force locale on app start #8

guyzk opened this issue Dec 13, 2018 · 1 comment
Assignees
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@guyzk
Copy link

guyzk commented Dec 13, 2018

Have an option to choose a locale (any - could be different from phones current locale) on app start.
I am not talking about a fallback locale but an app start locale.
Sometimes a users phone can be in English but I want my app to force a different locale.

This is possible with the built in localizations just by adding the "locale" field to the material app but it's not working with this package.

Another nice feature (not sure if possible) is if you could generate a map so that any translation field name would be easily found by the IDE instead of passing a string.
Something like: FlutterI18n.translate(context).hello instead of FlutterI18n.translate(context, 'hello')

@ilteoood
Copy link
Owner

Hi @guyzk,
This is also possible with flutter_18!

Have you tried: https://github.com/ilteoood/flutter_i18n/blob/master/CHANGELOG.md#030?

For the map, is not possible. The IDE don't know the keys that you configured at build time.

@ilteoood ilteoood self-assigned this Dec 15, 2018
@ilteoood ilteoood added duplicate This issue or pull request already exists enhancement New feature or request labels Dec 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants