-
Notifications
You must be signed in to change notification settings - Fork 128
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
Where to put async locale set #153
Comments
same problem here :/ |
1 similar comment
same problem here :/ |
change pubspec.yaml: dependencies:
jiffy:
git:
url: https://github.com/hao-li/jiffy.git
ref: develop
Jiffy('20191016', null, 'de').format('yMMMd') => 'Mi., 16. Okt. 2019' No need |
Thanks a lot for this change. Hopefully it will be approved. |
@rivella50 I was able to work around this problem temporarily by slightly delaying the locale() call via |
@dastein1 Thanks a lot for your input. This call then also is placed inside the |
I created a separate localization-delegate like so:
Then add
|
That's a nice way of handling it. Thanks for your contribution. |
Hi there,
where do i have to put
await Jiffy.locale('de');
in order that the locale is set app wide?
When inserting in my async main method i get this error: Unsupported operation: Cannot modify unmodifiable map
This could be since i init MaterialApp (with localizationsDelegates and supportedLocales) after this call, but this is not async anymore there.
The text was updated successfully, but these errors were encountered: