518b6d376d8585ce6475b2022f5da9213d2eac85
[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
19 LANGUAGES = 
20 { "en" => "English",
21   "de" => "Deutsch"
22   }