Skip to main content

appLocale · setAppLocale

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Read or set the language one app runs in. These call app_locale.

appLocale​

appLocale(app: string): Promise<string[]>

setAppLocale​

setAppLocale(app: string, ...tags: string[]): Promise<string[]>

Examples​

Run one app in Japanese​

await device.setAppLocale('org.wikipedia', 'ja-JP')

The same call from the command line, mobium locale org.wikipedia ja-JP, printed on an Android 15 emulator:

org.wikipedia set to ja-JP — the device stored it; whether org.wikipedia has that translation is not something Android reports, so check the screen

On a device​

mobium launch org.wikipedia on an Android 15 emulator

mobium launch org.wikipedia on an Android 15 emulator