module AllLocales
Constants
- VERSION
Public Class Methods
get()
click to toggle source
# File lib/all_locales.rb, line 4 def self.get locales = [] ymls = Dir.glob("#{Rails.root}/config/locales/**/*.yml") ymls.each do |yml| open(yml){|file| locales << file.readlines[0].gsub(":","").chop.to_sym } end locales.uniq end