Sha256: 6b977dfb435d8237b5e05df46dd42f4e749fe438aaff482d97989ee7db8cdccb
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 Bytes
Contents
require 'crystal_ext/gems' # Hack, ActiveSupport currently uses differrent version # gem 'i18n', '>= 0.4.1' # require 'i18n' require "i18n/backend/pluralization" I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization) dir = File.expand_path(File.dirname(__FILE__)) I18n.load_path += Dir["#{dir}/i18n/locales/*/*.{rb,yml}"] # # Helpers for Crystal # [ :AbstractController, :ControllerContext, ].each do |klass_name| if defined?(Crystal) and Crystal.const_defined?(klass_name) klass = Crystal.const_get(klass_name) klass.delegate :t, :to => I18n end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crystal_ext-0.0.7 | lib/crystal_ext/i18n.rb |