lib/i18n/tasks/translators/deepl_translator.rb in i18n-tasks-0.9.25 vs lib/i18n/tasks/translators/deepl_translator.rb in i18n-tasks-0.9.26
- old
+ new
@@ -59,10 +59,10 @@
locale.to_s.split('-', 2).first.upcase
end
def configure_api_key!
api_key = @i18n_tasks.translation_config[:deepl_api_key]
- fail CommandError, I18n.t('i18n_tasks.deepl_translate.errors.no_api_key') if api_key.blank?
+ fail ::I18n::Tasks::CommandError, I18n.t('i18n_tasks.deepl_translate.errors.no_api_key') if api_key.blank?
DeepL.configure { |config| config.auth_key = api_key }
end
end
end