Sha256: 2028114ec9f3da06d80c356b8e30de9f1888d93c32192985f2b332d051a7a395

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

require_relative 'translate_self/version'
require_relative 'translate_self/translation'
require_relative 'translate_self/translatable_string'
require 'ext/string'
require 'deepl'
require 'dry-configurable'

# Dangerously include translation methods to strings!
module TranslateSelf
  extend Dry::Configurable
  setting :defrosting, default: false
  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

1 entries across 1 versions & 1 rubygems

Version Path
translate_self-2.0.1 lib/translate_self.rb