lib/vendor/i18n/lib/i18n.rb in yaroslav-russian-0.1.3 vs lib/vendor/i18n/lib/i18n.rb in yaroslav-russian-0.2.0

- old
+ new

@@ -43,9 +43,14 @@ # Sets the current locale pseudo-globally, i.e. in the Thread.current hash. def locale=(locale) Thread.current[:locale] = locale end + # Returns an array of locales for which translations are available + def available_locales + backend.available_locales + end + # Sets the exception handler. def exception_handler=(exception_handler) @@exception_handler = exception_handler end