0

I have app that has 3 modules - Admin/Guest/Common I'd like to have arb translations in every module separately. I managed to do this with some help from answers here, but if admin is my main module, and I'm importing common in pubspec like that:

dependencies:
  common:
    path: ../common/

Translations from common are not automatically created using syntethic-package. I have to run command inside common directory and generate those files and rerun this on every change in arb files.

fvm flutter gen-l10n \
  --arb-dir translations \
  --template-arb-file common_en.arb \
  --output-localization-file common_localizations.dart \
  --output-class CommonLocalizations \
  --output-dir lib/translations \
  --no-synthetic-package

Is there a way to enable Intl library to no use no-synthetic-package in this case?

miszmaniac
  • 825
  • 2
  • 10
  • 21

0 Answers0