localizely / flutter-intl-intellij

This Android Studio & IntelliJ plugin generates boilerplate code for localization of Flutter apps with official Dart Intl library
MIT License
129 stars 4 forks source link

Can the new key be inserted automatically to intl_en.arb on Android Studio? #94

Open word-x opened 1 year ago

word-x commented 1 year ago

Snipaste_2023-02-09_23-11-13 I use Android Studio. I saw the Video on your official Twitter that after clicking the OK button, the new key will be inserted automatically to intl_en.arb. But is this action can't be done in Android Studio?

It's convenient if it can insert new key to intl.arb automatically similar with what you showed us on VSCode.

lzoran commented 1 year ago

Hi @word-x,

You should be able to extract texts to ARB files with the intention action in Android Studio as well.

Steps:

  1. Click on the desired text you want to extract
  2. Click the light bulb icon (or press Alt+Enter) to open list of suggestions
  3. Click on the "Extract to ARB file"

Hope it helps!

word-x commented 1 year ago

but it doesn't work. The intention works. But it didn't insert new key to intl_en. arb. i am using the latest Android Studio.

pawlowskim commented 1 year ago

Also not working on IntelliJ IDEA 2023.1.3 (Ultimate Edition)

Niburume commented 1 year ago

Doesn´t work for me either... The latest stable Android studio and Flutter...

tavar commented 1 year ago

Not working :(

lzoran commented 1 year ago

I made another attempt to reproduce the issue, but without success.

Test project: flutter-intl-plugin-sample-app Test environment: Windows, Android Studio Hedgehog 2023.1.1 Canary 16, Flutter 3.13.0 (channel stable), Flutter Intl extension 1.18.4-2022.2, and intl_utils 2.8.4.

Interestingly, I came across some unusual behavior. When I tried to extract text and assign a string key value that was already present in the ARB files, nothing happened. I wonder if this is the issue you've pointed out.

If not, additional specifics like the OS, Android Studio version, Flutter version, Flutter Intl version, intl_utils version, and a sample app that can reproduce the issue would be very helpful in troubleshooting.

TwanVermeulen commented 1 year ago

Not working for me as well