Sha256: 9795ff637367ad1c75b1be21d96cc75cb4afd1ff30094d8ba637e87b1a3f5323
Contents?: true
Size: 557 Bytes
Versions: 6
Compression:
Stored size: 557 Bytes
Contents
# encoding: utf-8 require 'i18n' # Rails hacks if defined?(ActionView::Helpers) require 'dotiw/action_view_ext/helpers/date_helper' end module DOTIW extend self autoload :VERSION, 'dotiw/version' autoload :TimeHash, 'dotiw/time_hash' DEFAULT_I18N_SCOPE = :'datetime.dotiw' def init_i18n I18n.load_path.unshift(*locale_files) I18n.reload! end protected # Returns all locale files shipped with library def locale_files Dir[File.join(File.dirname(__FILE__), 'dotiw', 'locale', '**/*')] end end # DOTIW DOTIW.init_i18n
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
dotiw-4.0.1 | lib/dotiw.rb |
dotiw-4.0.0 | lib/dotiw.rb |
dotiw-3.1.1 | lib/dotiw.rb |
dotiw-3.0.1 | lib/dotiw.rb |
dotiw-3.0 | lib/dotiw.rb |
dotiw-2.0 | lib/dotiw.rb |