lib/translate_self.rb in translate_self-0.6.0 vs lib/translate_self.rb in translate_self-0.7.0
- old
+ new
@@ -4,13 +4,10 @@
require 'ext/string'
require 'deepl'
# Dangerously include translation methods to strings!
module TranslateSelf
- include Translation
- class Error < StandardError; end
DeepL.configure do |config|
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