We do this for the hosts, but not yet for a DUT.
So that when we start adding DUTs with various locale setup, we can have the tasks locked into the right one.
The next step is to have the tasks to use this dimension, but that's for a separate issue.
This issue is about Android Swarming support but the same could eventually be done for ChromeOS (cc'ing folks fyi).
The code to extract the locale is already there, as seen on issue 824476 . It just needs to be moved into Swarming os_utilities.py get_dimensions_all_devices_android().
https://cs.chromium.org/chromium/infra/luci/appengine/swarming/swarming_bot/api/os_utilities.py