code: def locale(self, value):
          
          if value == self._defaults['ai.device.locale'] and 'ai.device.locale' in self._values:
              del self._values['ai.device.locale']
          else:
              self._values['ai.device.locale'] = value
docs: The locale property.
          
          Args:
              value (string). the property value.