Skip to content

Commit 0317c97

Browse files
(TODO fix links) intl docs: Remove instruction to import bindings file
Previously with `package:flutter_gen`, a manual import of the bindings file was required because editor/IDE plugins didn't automatically suggest imports for the `ZulipLocalizations` class. See: https://github.com/dart-lang/linter/issues/ 3308 https://github.com/Dart-Code/Dart-Code/issues/ 3948 https://github.com/flutter/flutter-intellij/issues/ 4869 Now that the generated files are located in `lib/generated/l10n`, IDE plugins provide auto-import suggestions, making the manual import instruction unnecessary.
1 parent 59b7c14 commit 0317c97

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

docs/translation.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,8 @@ changes to the ARB file.
5454

5555
### Using a translated string in the code
5656

57-
To use in our widgets, you need to import the generated bindings:
58-
```
59-
import 'package:flutter_gen/gen_l10n/zulip_localizations.dart';
60-
```
6157

62-
Then in your widget code, pull the localizations object
58+
To use in your widget code, pull the localizations object
6359
off of the Flutter build context:
6460
```
6561
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)