Sha256: 018c408c8c7880d7375644360ff8c9576aef56480284029de153d0c552bb0531
Contents?: true
Size: 375 Bytes
Versions: 4
Compression:
Stored size: 375 Bytes
Contents
module Boty class Locale def self.reload default_locales_path = File.expand_path("../../../locale/**/*.yml", __FILE__) locales = (Dir["locale/**/*.yml"] + Dir[default_locales_path]). map { |file| File.expand_path file } I18n.load_path = locales.uniq I18n.available_locales = I18n::Backend::Simple.new.available_locales end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
boty-0.0.17.1 | lib/boty/locale.rb |
boty-0.0.17 | lib/boty/locale.rb |
boty-0.0.16 | lib/boty/locale.rb |
boty-0.0.15 | lib/boty/locale.rb |