lib/translate_self.rb in translate_self-0.5.0 vs lib/translate_self.rb in translate_self-0.6.0
- old
+ new
@@ -7,9 +7,10 @@
# Dangerously include translation methods to strings!
module TranslateSelf
include Translation
class Error < StandardError; end
DeepL.configure do |config|
- config.host = 'https://api-free.deepl.com' # Default value is 'https://api.deepl.com'
+ config.auth_key = ENV['DEEPL_AUTH_KEY']
+ config.host = ENV['DEEPL_HOST'] || 'https://api-free.deepl.com' # Default value is 'https://api.deepl.com'
end
AVAILABLE_LANGUAGES = %w[bg cs da de el en es et fi fr hu it ja lt lv nl pl pt ro ru sk sl sv zh].freeze
end