Remove the languages hash since we are now storing the languages in a table. Translat...
[rails.git] / config / initializers / available_locales.rb
1 # Get loaded locales conveniently
2 # See http://rails-i18n.org/wiki/pages/i18n-available_locales
3 module I18n
4   class << self
5     def available_locales
6       backend.available_locales
7     end
8   end
9   module Backend
10     class Simple
11       def available_locales
12         init_translations unless initialized?
13         translations.keys
14       end
15     end
16   end
17 end
18