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
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