Browse files

Added rake task for listing all installed locales.

  • Loading branch information...
1 parent 7f5cbd3 commit e2a6a4a45c53d88358730d6d006e3552a79c1768 @clemens committed Aug 3, 2008
Showing with 7 additions and 0 deletions.
  1. +7 −0 tasks/localized_dates.rake
View
7 tasks/localized_dates.rake
@@ -0,0 +1,7 @@
+desc 'Displays a list of all locales installed in config/locales'
+task :locales do
+ locales_dir = File.join(RAILS_ROOT, 'config', 'locales')
+ Dir["#{locales_dir}/*.rb"].uniq.each do |locale|
+ puts File.basename(locale, '.rb')
+ end
+end

0 comments on commit e2a6a4a

Please sign in to comment.