]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Remove hand rolled i18n support
[rails.git] / app / controllers / site_controller.rb
index 17353fe96ddc398bc6c42730bd4f0882e3e47772..a73d1e2e50e74f9595605917440a60a5cf7ba4f5 100644 (file)
@@ -107,8 +107,8 @@ class SiteController < ApplicationController
   end
 
   def communities
-    @locale = I18n.locale
-    @local_chapters = OsmCommunityIndex::LocalChapter.local_chapters_with_locale(@locale)
+    OsmCommunityIndex::LocalChapter.add_to_i18n # this should be called on app init
+    @local_chapters = OsmCommunityIndex::LocalChapter.local_chapters
   end
 
   def export; end