Sha256: d2389b1ac2331a44c5fca6f8a7b6dd63a15a1c0ff6220427437597c09fd7ab21

Contents?: true

Size: 431 Bytes

Versions: 5

Compression:

Stored size: 431 Bytes

Contents

# Add our own locales to load_path

skyline_locales = Dir[Skyline.root + "config/locales/*.{yml,rb}"]

# We'll be inserting our locales before the default config/locales directive
idx = I18n.load_path.index(I18n.load_path.grep(/#{Rails.root}\/config\/locales.+/).first)
I18n.load_path.insert(idx,*skyline_locales)

# And we set a default (this can be overridden in an intializer)
I18n.locale = "en-US"
I18n.default_locale = "en-US"

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
skylinecms-3.1.0 config/initializers/locales.rb
westarete-skylinecms-3.0.8.20100329 config/initializers/locales.rb
westarete-skylinecms-3.0.8.20100330 config/initializers/locales.rb
skylinecms-3.0.8 config/initializers/locales.rb
skylinecms-3.0.7 config/initializers/locales.rb