Sha256: 16666c51b9ba3cf1213314159dbaabcc57eef1e8d933288f5306903a6194ae01

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

#encoding: utf-8

if Rails.env.development?
  I18nAttributes.configure do |config|
    # more see https://github.com/svenfuchs/rails-i18n
    config.locales = [:en, :"zh-CN"]

    config.translator = {
      ##if use this, you mast install youdao_fanyi, see https://github.com/vkill/youdao_fanyi
      #:"zh-CN" => Proc.new{|str| YoudaoFanyi.t(str).first}

      ##if use this, you mast install and config to_lang, see https://github.com/jimmycuadra/to_lang
      #:"es" => Proc.new{|str| str.translate('es', :from => 'en') }
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
i18n_attributes-0.1.6 lib/generators/i18n_attributes/install/templates/i18n_attributes.rb