Sha256: 645e0e1b28a0212ca6a2a96ddeb93f4e8cffe1cdfb5122a6c6fee27ea145c8e5
Contents?: true
Size: 760 Bytes
Versions: 3
Compression:
Stored size: 760 Bytes
Contents
if %w(production staging).include? Rails.env TranslationEngine.config do |config| # key for user config.api_key = 'API_KEY' # url to Translation Server config.api_host = 'http://127.0.0.1:3000' # enable screenshot functionality (default is false) config.use_screenshots = true # enable to send translation after every request and receive translations # when something changed (default is false) config.use_catcher = true # Timeout for connecting to translation server # config.timeout = 5 # If true TranslationEngine will throw exceptions on connection problems # If false TranslationEngine will just log exception to Rails.logger config.raise_exceptions = Rails.env.development? end end
Version data entries
3 entries across 3 versions & 1 rubygems