Sha256: b0452dcebcdc1822bb72e46e12a186af457919ff2a4138ccb03f8d7163fd7e5e
Contents?: true
Size: 366 Bytes
Versions: 10
Compression:
Stored size: 366 Bytes
Contents
LOCALES_DIRECTORY = "#{SPREE_ROOT}/config/locales/" AVAILABLE_LOCALES = Dir.new(LOCALES_DIRECTORY).entries.collect do |x| x =~ /\.yml/ ? x.sub(/\.yml/,"") : nil end.compact.each_with_object({}) do |str, hsh| locale_file = YAML.load_file(LOCALES_DIRECTORY + str + ".yml") hsh[str] = locale_file[str]["this_file_language"] if locale_file.has_key? str end.freeze
Version data entries
10 entries across 10 versions & 2 rubygems