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

I don't understand how update Internationalization πŸ€·β€β™‚οΈ #11

Closed
Smartiiez opened this issue Jun 25, 2020 · 1 comment

Comments

@Smartiiez
Copy link

Hi πŸ‘‹,
First of all, thank you for your widget. It's exactly what I need.
I'm just stuck on the local date. My settings language device are set to French and my Region too.

I use Locale myLocale = Localizations.localeOf(context); print(myLocale);to check the value.
Everything look like ok, but the date format don't change.

Have you any ideas ?

@danilof
Copy link

danilof commented Aug 17, 2020

@Smartiiez @milind-mevada-stl Hi, did you manage to solve Internationalization. I have the same problem and I am stuck also.
String languageCode = Platform.localeName.split('')[0];
String countryCode = Platform.localeName.split('
')[1];
return MaterialApp(
locale: Locale(languageCode, countryCode)...

This is not working. @milind-mevada-stl Can you tell what is the correct way to setup localization?

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