Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String parsing crash with manual generator flutter_i18n/flutter_l10n/ #122

Open
EArminjon opened this issue Nov 8, 2019 · 1 comment
Open

Comments

@EArminjon
Copy link

EArminjon commented Nov 8, 2019

Hello,

I add flutter_l10n to my pubspec.yaml to allow my team with others IDE as AndroidStudio or Intelij to generate translation.

So I add this :

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

My team can run the package with the following commande :

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

But their is a problem which wasn't present when we use flutter_i18n plugin directly on the IDE :

In my arb file I have string like :
"appMessage": "The message... Blabla ...\n Blabla.",

When using generator manually, string parsing fail on the \n and I got this following string on generated/i18n.dart :

String get appMessage => "The message... Blabla...

Blabla.";

As you can see, the \n was interpreted and broke all the processus...

Can you fix it please :) ?

@noordawod

@alizera
Copy link

alizera commented Jan 2, 2020

I have the same,
I'm using Android Studio 3.5.3 on Windows and i18n.dart doesn't generate automatically (while my mac is OK). I've run AS by addministration privillage but have problem.
And finally use manual generator and face the issue @EArminjon had mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants