]> git.openstreetmap.org Git - rails.git/blob - config/initializers/available_locales.rb
Make a few more things translatable.
[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