website icon indicating copy to clipboard operation
website copied to clipboard

[PAGE ISSUE]: 'Internationalizing Flutter apps'

Open TarasBounty opened this issue 3 years ago • 2 comments

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

  1. Open the https://docs.flutter.dev/development/accessibility-and-localization/internationalization#using-the-dart-intl-tools
  2. Add intl_translation package to pubspec.yaml
  3. 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

TarasBounty avatar Jul 20 '22 09:07 TarasBounty

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

danagbemava-nc avatar Jul 20 '22 12:07 danagbemava-nc

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.

TarasBounty avatar Jul 20 '22 12:07 TarasBounty

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 :)

parlough avatar Jan 08 '23 01:01 parlough