From b44318a3f331a3c7b66064f3ce6cd7fcf7d4bae7 Mon Sep 17 00:00:00 2001 From: Tomas Strachota Date: Mon, 24 Mar 2014 15:11:09 +0000 Subject: [PATCH] Fixes #4476 - request localized api responses --- lib/hammer_cli_foreman/commands.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/hammer_cli_foreman/commands.rb b/lib/hammer_cli_foreman/commands.rb index c22f33b7f..61436e416 100644 --- a/lib/hammer_cli_foreman/commands.rb +++ b/lib/hammer_cli_foreman/commands.rb @@ -17,6 +17,7 @@ def self.resource_config config[:logger] = Logging.logger['API'] config[:api_version] = 2 config[:aggressive_cache_checking] = HammerCLI::Settings.get(:foreman, :refresh_cache) || true + config[:headers] = { "Accept-Language" => HammerCLI::I18n.locale } config[:timeout] = HammerCLI::Settings.get(:foreman, :request_timeout) config end