]> 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 2eb084f913f0641b18a0b7505714eefcfbd1eb9d..8323ae5e7324b07bfd6870c7154cd93a76003bad 100644 (file)
@@ -107,8 +107,8 @@ class SiteController < ApplicationController
   end
 
   def communities
-    @locale = I18n.locale
-    @local_chapters = Communities.local_chapters
+    @locale = params[:communities_locale] || I18n.locale
+    @local_chapters = Communities.local_chapters(@locale)
   end
 
   def export; end