JavaScript
Misc
Set device language/locale
Sets the device language/locale to the BCP-47 locale in the request body. An optional restart flag applies the change immediately by restarting the zygote instead of waiting for the next reboot.
POST
JavaScript
Include a region subtag — use
de-DE rather than de — since some devices reject language-only locales. Script subtags may be dropped: zh-Hans-CN is applied as zh-CN.
If the device cannot apply the requested locale, the call fails with a verification error instead of silently keeping the old language.Authorizations
Bearer token via Authorization header
Headers
Required range:
x >= 0Path Parameters
Body
application/json
BCP-47 locale: a 2–3 letter language tag, optionally followed by a 4-letter script and/or a 2-letter region (e.g. en-US, de-DE, ja-JP, zh-Hans-CN).
Pattern:
^[a-z]{2,3}(-[A-Z][a-z]{3})?(-[A-Z]{2})?$Restart zygote so the locale change takes full effect immediately. Without it, the locale is written but won't fully apply until the next reboot.
Response
No Content