website icon indicating copy to clipboard operation
website copied to clipboard

Improve flutter_gen/l10n migration docs

Open divan opened this issue 6 months ago • 1 comments

Page URL

https://docs.flutter.dev/release/breaking-changes/flutter-generate-i10n-source/

Page source

https://github.com/flutter/website/tree/main/src/content/release/breaking-changes/flutter-generate-i10n-source.md

Describe the problem

Documentation about transition/migration from old flutter_gen way is incomplete. It offers two solutions, but if you apply them to the existing (old) project that uses flutter_gen, the problem still persists.

Expected fix

The missing steps are:

  1. Replace:

import 'package:flutter_gen/gen_l10n/app_localizations.dart';

to

import 'l10n/app_localizations.dart';

in your dart files.

Additional context

No response

I would like to fix this problem.

  • [x] I will try and fix this problem on docs.flutter.dev.

divan avatar Jun 20 '25 08:06 divan

@matanlurey, this issue appears to be correct. Can we add a link about updating the location of the import?

sfshaza2 avatar Jun 27 '25 07:06 sfshaza2