Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pseudo localization in Android Emulator not available

I would like to enable "English (XA)" and "عربى" (XB) locales en-XA and ar-XB to make sure my app layouts are ready for translation, similar to what the article describes here. However, it is not available in the official Android emulator settings. I have tried several images and cannot find these pseudo-localization languages. Is there a setting or trick to enable them?

like image 893
Veener Avatar asked Jan 31 '17 13:01

Veener


1 Answers

Try this:

  1. Turn on Developer Options, by tapping on Build number 7+ times.
  2. Restart your emulator, by long clicking the power icon in the emulator menu and choosing the Restart option.
  3. Go to the Add Language page. Choose your psuedolocale.
  4. Add pseudoLocalesEnabled true to your build.gradle and build your app.

app/build.gradle:

  android {
    ...
    buildTypes {
      debug {
        pseudoLocalesEnabled true
      }
    }

from https://developer.android.com/guide/topics/resources/pseudolocales

like image 134
kyrax Avatar answered Nov 18 '22 14:11

kyrax