website
website copied to clipboard
[PAGE ISSUE]: 'Internationalizing Flutter apps'
Page URL
https://docs.flutter.dev/development/accessibility-and-localization/internationalization/
Page source
https://github.com/flutter/website/tree/main/src/development/accessibility-and-localization/internationalization.md
Describe the problem
- Open the https://docs.flutter.dev/development/accessibility-and-localization/internationalization#using-the-dart-intl-tools
- Add
intl_translationpackage topubspec.yaml - Run
flutter pub get
Expected result: intl_translation added successful
Actual result:
Because intl_translation >=0.17.7 depends on intl >=0.15.3 <0.17.0 and your-app-name depends on intl ^0.17.0, intl_translation >=0.17.7 is forbidden. So, because your-app-name depends on intl_translation ^0.17.10+1, version solving failed. pub get failed (1; So, because your-app-name depends on intl_translation ^0.17.10+1, version solving failed.) exit code 1
Expected fix
No response
Additional context
No response
Hi @TarasBounty, this is not an issue with this page but rather the intl_translation which has not been updated in a while.
This issue has been filed on its repo https://github.com/dart-lang/i18n/issues/591.
I think we could add a workaround until the package is updated, if there's any
As a workaround:
use this package instead. https://pub.dev/packages/intl_generator This is a fork of intl_translation to have an up to date version.
Since both package:intl and package:intl_translation have been updated to support null safety in their 0.18 release, I'm going to close this. Please update to those new releases :)
Other updates to the internationalization page are in progress in https://github.com/flutter/website/pull/8065.
Thanks for opening the issue and the extra context! Let us know if you have any further issues :)