]> 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 73e4ef51d5ced1dca199062575554ac35308fa80..a73d1e2e50e74f9595605917440a60a5cf7ba4f5 100644 (file)
@@ -107,8 +107,8 @@ class SiteController < ApplicationController
   end
 
   def communities
-    @locale = params[:communities_locale] || I18n.locale
-    @local_chapters = Communities.local_chapters
+    OsmCommunityIndex::LocalChapter.add_to_i18n # this should be called on app init
+    @local_chapters = OsmCommunityIndex::LocalChapter.local_chapters
   end
 
   def export; end