Localizing Flutter Packages

MaterialApp(  localizationsDelegates: AppLocalizations.localizationsDelegates +  [ShoppingCartLocalizations.delegate],  supportedLocales: AppLocalizations.supportedLocales,  home: const HomePage(),);
preferred-supported-locales: [en, fa]synthetic-package: falseoutput-dir: ./lib/src/l10n/generatedarb-dir: ./lib/src/l10ntemplate-arb-file: intl_en.arboutput-localization-file: shopping_cart_localizations.dartoutput-class: ShoppingCartLocalizations
flutter gen-l10n
export 'src/l10n/generated/shopping_cart_localizations.dart';

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store