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

Localizations in providers #1

Open
matecode opened this issue Nov 10, 2021 · 1 comment
Open

Localizations in providers #1

matecode opened this issue Nov 10, 2021 · 1 comment

Comments

@matecode
Copy link

Hi! Thank you for you interesting repo.

Did you thought about a solution to have localized text in a provider itself. I'm using provider as viemodels, and it would be super handy if i could use a text from localization directly in the providers. But I have no build context in there.

Looking forward if you have an idea.

@AMuellerAtAHS
Copy link

AMuellerAtAHS commented Feb 27, 2023

Hi @matecode,

I created a fork, where I added a provider for the AppLocalization by localeProvider.
This appLocalizationsProvider can be used by ref directly in the providers.

https://github.com/AMuellerAtAHS/Riverpod-Localization/tree/appLocalizationProvider

I also added a pull request #3

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