class Chef::Resource::Locale
def set_system_locale
Sets the system locale for the current computer.
def set_system_locale if windows? # Sets the system locale for the current computer. # @see https://docs.microsoft.com/en-us/powershell/module/internationalcmdlets/set-winsystemlocale # response = powershell_exec("Set-WinSystemLocale -SystemLocale #{new_resource.lang}") raise response.errors.join(" ") if response.error? else generate_locales unless unavailable_locales.empty? update_locale end end