]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Update to latest osm-community-index
[rails.git] / app / controllers / site_controller.rb
index 1845ecfaf3071d16323033d90891d987f41a8995..8323ae5e7324b07bfd6870c7154cd93a76003bad 100644 (file)
@@ -107,7 +107,8 @@ class SiteController < ApplicationController
   end
 
   def communities
-    @locale = I18n.locale
+    @locale = params[:communities_locale] || I18n.locale
+    @local_chapters = Communities.local_chapters(@locale)
   end
 
   def export; end