Closed Schrall closed 2 years ago
Hi @Schrall,
Thanks for reporting this!
I've tried to reproduce this issue, but without success. 😕
I noticed that you are using the 1.15.0-2019.2
version of the Flutter Intl plugin, which is intended to work with older IDE versions (2019.2 - 2020.2.4
).
Could you try to upgrade the Flutter Intl plugin to the 1.15.0-2020.3
version and check if the reported issue still occurs?
I'm closing this issue now. In case the same problem occurs after the plugin update, feel free to open it again.
Hi @lzoran, I still get this error in the new version.
Intellij 2021.3 (Ultimate) Flutter Intl 1.17.0-2020.3 Win 11 Home.
Does it need any additional settings to use?
Hi @KhanhPham0102,
I've tested string key extraction with your settings on my machine, and it seems to work well. 😕
A minimal reproducible example is welcome.
Does it need any additional settings to use?
No, you just need to have Flutter Intl plugin enabled for your Flutter project.
Hi @lzoran ,
This is the problem I recorded.
It is not added to the .arb file so reloading the .arb file automatically is not done.
My config in pubspec.yaml :
Hi @KhanhPham0102,
Thanks for provided materials!
I've tried again to reproduce this issue, but without success. Everything works well on my machine. 😞
I noticed few interesting things on your screen recording:
ARB files does not have their icons under project tree. Maybe that is custom setting in your IDE or plugin responsible for that does not work well (I assume that you have enabled Dart (JetBrains)
, Flutter (flutter.dev)
and Flutter Intl (Localizely)
plugins).
Extraction does not trigger generation of localization code. Once you confirm the extraction of a string key, the plugin should update appropriate ARB files and trigger generation.
Not sure what might cause this issue. 😕
Maybe re-installing Flutter Intl
plugin and IDE restart might help.
Also, does the same issue appears on other Flutter projects? Maybe you can try to reproduce this issue on this sample project.
Same to me on Android Studio Arctic Fox | 2020.3.1 Patch 4
, Windows 11
& Flutter Intl 1.17.0-2020.3
.
No arb file updated and no generation triggered. Tried on different OS (Ubuntu, Debian, Windows 10…) with clean installed IDE and the sample project, but no luck. 🤕
For me, "Extract to ARB" doesn't work even for the sample project.
@lzoran Inspired by your observation about the ARB files icons, I checked that out, and I also did't have any fancy icons on ARB files. I checked the File Types settings:
The ARB file type didn't have any file name pattern registered. Registering *.arb
fixed the issue.
When i extract a String with ExtractStringKey to generate an ARB entry.
From:
return 'Please enter some text';
toreturn S.of(context).pleaseEnterSomeText;
The translation is missing in all the selected Files:
{ "Login": "Login" }
Intellij 2021.2.2 (Ultimate) Flutter Intl 1.15.0-2019.2 macOS Big Sur 11.6
Read and Write Permission for Everybody on the whole Projekt.