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

Internationalization using locales #102

Open
chapmacl opened this issue Sep 28, 2020 · 3 comments
Open

Internationalization using locales #102

chapmacl opened this issue Sep 28, 2020 · 3 comments

Comments

@chapmacl
Copy link

I would love to see support for different languages by passing a Locale as a parameter, then using the DateFormat to apply this locale, the chart would automatically support multiple languages. I have an app with support for different languages and at the moment it looks strange when everything is translated except for this chart which is still in english.

DateFormat('...', Localizations.locateOf(context)) should be all that is needed

@pyraffa
Copy link

pyraffa commented Jan 7, 2021

Just apply de lib: https://pub.dev/packages/intl/versions/0.17.0-nullsafety.2/install
This works for me, in Brazilian Portuguese!

@chapmacl
Copy link
Author

chapmacl commented Mar 3, 2021

What exactly do you mean by using that library? I am getting pub errors when trying this on flutter 2.0, and the current version of Bezier_chart because of dependency conflicts (bezier needs 1.16.0 and my flutter_localizations needs 1.17.0-nullsafety.2)

@DavidInojosa
Copy link

Any news ? I am getting errors too!

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

3 participants