Sha256: 7f6886951b508cb0740beddac036685443d4b166ee6fd4db5407d1fc044f7fdb

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 Bytes

Contents

require_relative 'translate_self/version'
require_relative 'translate_self/translation'
require_relative 'translate_self/translatable_string'
require 'ext/string'
require 'deepl'

# Dangerously include translation methods to strings!
module TranslateSelf
  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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
translate_self-1.0.1 lib/translate_self.rb
translate_self-1.0.0 lib/translate_self.rb
translate_self-0.9.0 lib/translate_self.rb
translate_self-0.8.0 lib/translate_self.rb
translate_self-0.7.0 lib/translate_self.rb