Sha256: cb71dde66774692e8b392e0b13b3ff50a0ec503adbe133ae7e4b926fd2fc9bbe
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
#encoding: utf-8 =begin I18nAttributes.configure do |config| # more see https://github.com/svenfuchs/rails-i18n config.locales = [:en, :"zh-CN"] config.translator = { #you mast install youdao_fanyi, see https://github.com/vkill/youdao_fanyi :"zh-CN" => Proc.new{|str| YoudaoFanyi.t(str).first} ##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 module I18nAttributes Configuration = Struct.new( :locales, :translator ).new( [:en], {} ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i18n_attributes-0.1.6 | lib/i18n_attributes/configuration.rb |