ki4070ma / vui-automation-playground

0 stars 0 forks source link

Switch language via script #2

Open ki4070ma opened 5 years ago

ki4070ma commented 5 years ago
$adb shell pm grant net.sanapeli.adbchangelanguage android.permission.CHANGE_CONFIGURATION
$adb shell am start -n net.sanapeli.adbchangelanguage/.AdbChangeLanguage -e language ja_JP
ki4070ma commented 5 years ago

Can I change language via appium? -> Unable to do that. https://stackoverflow.com/questions/49449221/changing-language-via-appium-capabilities-on-android-api-23

ki4070ma commented 5 years ago
$gtts-cli --all
  af: Afrikaans
  ar: Arabic
  bn: Bengali
  bs: Bosnian
  ca: Catalan
  cs: Czech
  cy: Welsh
  da: Danish
  de: German
  el: Greek
  en-au: English (Australia)
  en-ca: English (Canada)
  en-gb: English (UK)
  en-gh: English (Ghana)
  en-ie: English (Ireland)
  en-in: English (India)
  en-ng: English (Nigeria)
  en-nz: English (New Zealand)
  en-ph: English (Philippines)
  en-tz: English (Tanzania)
  en-uk: English (UK)
  en-us: English (US)
  en-za: English (South Africa)
  en: English
  eo: Esperanto
  es-es: Spanish (Spain)
  es-us: Spanish (United States)
  es: Spanish
  et: Estonian
  fi: Finnish
  fr-ca: French (Canada)
  fr-fr: French (France)
  fr: French
  gu: Gujarati
  hi: Hindi
  hr: Croatian
  hu: Hungarian
  hy: Armenian
  id: Indonesian
  is: Icelandic
  it: Italian
  ja: Japanese
  jw: Javanese
  km: Khmer
  kn: Kannada
  ko: Korean
  la: Latin
  lv: Latvian
  mk: Macedonian
  ml: Malayalam
  mr: Marathi
  my: Myanmar (Burmese)
  ne: Nepali
  nl: Dutch
  no: Norwegian
  pl: Polish
  pt-br: Portuguese (Brazil)
  pt-pt: Portuguese (Portugal)
  pt: Portuguese
  ro: Romanian
  ru: Russian
  si: Sinhala
  sk: Slovak
  sq: Albanian
  sr: Serbian
  su: Sundanese
  sv: Swedish
  sw: Swahili
  ta: Tamil
  te: Telugu
  th: Thai
  tl: Filipino
  tr: Turkish
  uk: Ukrainian
  ur: Urdu
  vi: Vietnamese
  zh-cn: Chinese (Mandarin/China)
  zh-tw: Chinese (Mandarin/Taiwan)
ki4070ma commented 5 years ago

https://github.com/ki4070ma/vui-automation-playground/commit/b82e9e61f2dc8f355306670c0bd6e092ca3ea765

TODO: Need to turn on Access with Voice Match

ki4070ma commented 4 years ago

Appium can change language and locale.

http://appium.io/docs/en/writing-running-appium/caps/