lib/i18n/tasks/translators/deepl_translator.rb in i18n-tasks-1.0.9 vs lib/i18n/tasks/translators/deepl_translator.rb in i18n-tasks-1.0.10
- old
+ new
@@ -69,13 +69,13 @@
api_key = @i18n_tasks.translation_config[:deepl_api_key]
host = @i18n_tasks.translation_config[:deepl_host]
version = @i18n_tasks.translation_config[:deepl_version]
fail ::I18n::Tasks::CommandError, I18n.t('i18n_tasks.deepl_translate.errors.no_api_key') if api_key.blank?
- DeepL.configure { |config|
+ DeepL.configure do |config|
config.auth_key = api_key
config.host = host unless host.blank?
config.version = version unless version.blank?
- }
+ end
end
end
end