Skip to content

Commit a8d847d

Browse files
authored
Add Internationalization workaround
1 parent c626f74 commit a8d847d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,26 @@ targets:
390390

391391
See #268 for the corresponding issue discussion.
392392

393+
### Error with [internationalization](https://docs.flutter.dev/development/accessibility-and-localization/internationalization)
394+
395+
Please try to remove `generate: true` in your `pubspec.yaml` and disable `synthetic-package` in your `l10n.yaml` like:
396+
397+
```yaml
398+
# pubspec.yaml
399+
flutter:
400+
generate: true <--- ⚠️Remove this line⚠️
401+
```
402+
403+
```yaml
404+
# l10n.yaml
405+
arb-dir: lib/l10n
406+
template-arb-file: app_en.arb
407+
output-localization-file: app_localizations.dart
408+
synthetic-package: false <--- ⚠️Add this line⚠️
409+
```
410+
411+
If you get
412+
393413
## Contributing
394414

395415
**We are looking for co-developers.**

0 commit comments

Comments
 (0)