Sha256: 4b63da552adbc917e805caad73e7e05e8e5c26e21b6f7d5a3c05c9fab1ead509
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
# 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
crystal_ext-0.0.5 | lib/crystal_ext/i18n.rb |
crystal_ext-0.0.4 | lib/crystal_ext/i18n.rb |