Sha256: f3bbabf5b6a48e2d64f7fc57cd97d1253a94dcef1a803047bd20ad0a86d1965b
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 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 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translate_self-0.6.0 | lib/translate_self.rb |