Skip to content

Update internationalization documents and gen_l10n example. #12113

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

Merged
merged 2 commits into from
Jun 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';

// #docregion app-localizations-import
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'l10n/app_localizations.dart';
// #enddocregion app-localizations-import

// #docregion localization-delegates-import
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ complete the following instructions:

6. Now, run `flutter pub get` or `flutter run` and codegen takes place automatically.
You should find generated files in the directory at the path you specified
with the `arb-dir` or `output-dir` options.
with the `output-dir` option (or `arb-dir`, if you don't specify `output-dir`).
Alternatively, you can also run `flutter gen-l10n` to
generate the same files without running the app.

Expand All @@ -276,7 +276,7 @@ complete the following instructions:

<?code-excerpt "gen_l10n_example/lib/main.dart (app-localizations-import)"?>
```dart
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'l10n/app_localizations.dart';
```

<?code-excerpt "gen_l10n_example/lib/main.dart (material-app)"?>
Expand Down
Loading