def set_language(language)
      edit_plist(path.global_preferences_plist) do |plist|
        key = 'AppleLanguages'
        plist[key] = [] unless plist.key?(key)
        plist[key].unshift(language).uniq!
      end
    end
def set_language(language)
      edit_plist(path.global_preferences_plist) do |plist|
        key = 'AppleLanguages'
        plist[key] = [] unless plist.key?(key)
        plist[key].unshift(language).uniq!
      end
    end
Sets the device language

 @return [void]