localizely / flutter-intl-vscode

This VS Code extension generates boilerplate code for localization of Flutter apps with official Dart Intl library
MIT License
87 stars 1 forks source link

Inconsistencies when generating messages_all.dart #21

Closed davidmartos96 closed 4 years ago

davidmartos96 commented 4 years ago

Every once in a while the plugin generates languages in a different order so I sometimes encounter this change on my git. image

It would be great if the code generator would be more consistent, for example using the locales in alphabetical order.

goranluledzija commented 4 years ago

Hi @davidmartos96 I assume this was happening among team members that were using different Operating Systems...

With the newly released extension version 1.4.2 it should be fixed. Compatible Android Studio plugin will be approved in a day or two.

davidmartos96 commented 4 years ago

@goranluledzija Yes, it happened between Linux and macOS. Thanks for the quick update!

js2702 commented 4 years ago

I'm having a similar issue but with the file l10n.dart with the getter supportedLocales. My team is using macOS and Linux, and it returns different results with version 1.4.2.

goranluledzija commented 4 years ago

Hi @js2702 Thanks for spotting this! It will be fixed with the next update.

aleksakrstic commented 4 years ago

@davidmartos96 @js2702 @kassim This should be fixed with new IDE plugin version 1.5.0 and intl_utils version 1.3.0.