Jesway / flutter_translate

Flutter Translate is a fully featured localization / internationalization (i18n) library for Flutter.
MIT License
401 stars 118 forks source link

Upgrade the package to use the latest version of "intl" #121

Closed wasilni2022 closed 3 months ago

wasilni2022 commented 4 months ago

Hello, since Flutter has been upgraded and Dart has also been upgraded to 3.4.0, the package must now use intl 0.19.0 or above, because the old version prevents the project from using the benefits of the new Flutter enhancements and features.

arabnology commented 4 months ago

Yes, we need that update ASAP, the whole project stopped and we can't even run pub get any more because it is said:

Flutter pinned to intl 0.19.0 but flutter_translate 4.0.4 pinned to 0.18.0, pub get failed.

Please update the package ASAP.

wasilni2022 commented 4 months ago

Any updates ? is the developer of this package still active ?

bratan commented 4 months ago

@wasilni2022 @arabnology - Feel free to submit a PR.

wasilni2022 commented 4 months ago

@wasilni2022 @arabnology - Feel free to submit a PR.

Please, are you planning to continue updating this package or should we use another? because we are waiting for your updates as soon as you can! It prevents us from using the latest version of Flutter and its features as well.

FetFrumos commented 4 months ago

try adding it to your pubspec

dependency_overrides:
  intl: 0.19.0

it is working for me

wasilni2022 commented 4 months ago

try adding it to your pubspec

dependency_overrides:
  intl: 0.19.0

it is working for me

Where? In the project pubspec or in the package pubspec?

If in the project, I already did this, but when I run "pub get packages", I got this error message: "flutter_translate depand on intl 0.18.0 but flutter depand on intl 0.19.0"

arabnology commented 3 months ago

add like this

dependencies:
  ...
dev_dependencies:
   ...
dependency_overrides:
  intl: ^0.19.0

I submitted a pretty big PR (the package had no test cases we wrote test cases for the whole package) in order for flutter translate to support lists in your json along with maps, the maintainer said they do not have time. They were even to introduce breaking changes in to v5.0 with more features. reach out to **** we may look into maintaining it

Worked, thank you.

bratan commented 3 months ago

All packages are now upgraded in version 4.1.0