Skip to content

Commit c15bc77

Browse files
rajveermalviyagnprice
authored andcommitted
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 Dart-Code/Dart-Code#3948 flutter/flutter-intellij#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 661adfc commit c15bc77

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

docs/translation.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,7 @@ 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 '../generated/l10n/zulip_localizations.dart';
60-
```
61-
62-
Then in your widget code, pull the localizations object
57+
To use in your widget code, pull the localizations object
6358
off of the Flutter build context:
6459
```
6560
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)