Change flutter generated localizations files directory

166

Take a look to the output of:

flutter gen-l10n --help

Normally, you can put any of these parameters in l10n.yaml

I have not tried, tell me if it is ok !

I think output-dir parameter will help

Share:
166
Trocco
Author by

Trocco

Updated on January 03, 2023

Comments

  • Trocco
    Trocco over 1 year

    is there a way to change the directory that contains all the generated files about localization? When I run the app they are automatically generated in .dart_tool/flutter_gen/gen_l10n and I want to change it.

    (directory photo) https://i.stack.imgur.com/DjqHp.png

    This is my l10n.yaml:

    arb-dir: lib/l10n
    template-arb-file: app_en.arb
    output-localization-files: app_localizations.dart # auto generated