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

Add option to prevent pub global run intl_utils:generate from running automatically #9

Closed
simonpham opened this issue Nov 21, 2020 · 3 comments

Comments

@simonpham
Copy link

Imagine if you have 100+ .arb files, after use Extract to ARB option to extract a string to all the arb files.
The plugin then runs pub global run intl_utils:generate 100+ times.
It should run only once. Or we should have an option to prevent it from running automatically.

@aleksakrstic
Copy link

Hi @simonpham
It should run pub global run intl_utils:generate once, but that command would generate it for all languages (arb files).

Why do you think it runs 100+ times?
Do you have performance issues, and what IDE do you use, VSCode or Android Studio?

@simonpham
Copy link
Author

simonpham commented Nov 23, 2020

It should run pub global run intl_utils:generate once, but that command would generate it for all languages (arb files).

  • Yes. This is true.

That command will run once if I made a change to an ARB file & save.
But if I made changes to multiple ARB files & save them, that command will run multiple times. This is not necessary and causes a huge impact on performance.

I use IntelliJ/Android Studio.

@aleksakrstic
Copy link

Nice catch @simonpham, thanks!
I could reproduce it when using "Save All".

I am closing this issue, and I opened a new issue for Android Studio IDE plugin localizely/flutter-intl-intellij#48 since it is related to IDE plugin, not to intl_utils package.
Feel free to add more info there in case I missed something.

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