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

How to make a language switcher? #221

Closed
simplenotezy opened this issue May 31, 2024 · 2 comments
Closed

How to make a language switcher? #221

simplenotezy opened this issue May 31, 2024 · 2 comments
Labels
question Further information is requested

Comments

@simplenotezy
Copy link

When calling LocaleSettings.setLocale(locale); nothing happens unless I click "Hot reload".

How can I have the views update when changing language?

@simplenotezy
Copy link
Author

Found: #37

The solution is to use final t = Translations.of(context); instead. This should probably be documented.

@Tienisto Tienisto added the question Further information is requested label Jun 5, 2024
@Tienisto
Copy link
Member

Tienisto commented Jun 5, 2024

Hi, this is already documented in https://pub.dev/packages/slang#-changing-locale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants