long1eu / flutter_i18n

This plugin create a binding between your translations from .arb files and your Flutter app.
Apache License 2.0
251 stars 55 forks source link

Reload manually generated/i18n.dart #121

Closed EArminjon closed 5 years ago

EArminjon commented 5 years ago

Hello,

The plugin automatically reload i18n.dart on android.studio and inteljidea. In the case where some developers do not use both of them, how generate/reload manually this file ? If it required java, could you provide a little script to do it ?

EArminjon commented 5 years ago

Find solution : https://github.com/long1eu/flutter_i18n/tree/master/flutter_l10n

Add this in pubspec.yaml

l10n_generator:
    git:
      url: https://github.com/long1eu/flutter_i18n
      path: flutter_l10n/

Commande to run generator :

flutter packages pub run l10n_generator:main -o lib/generated

But their is an other problem (About string containing "\n"), will create an other issue.