]> 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 00b3e78da4c858b7c36e0211106ba1190e69436c..a73d1e2e50e74f9595605917440a60a5cf7ba4f5 100644 (file)
@@ -106,6 +106,11 @@ class SiteController < ApplicationController
     @locale = params[:about_locale] || I18n.locale
   end
 
+  def communities
+    OsmCommunityIndex::LocalChapter.add_to_i18n # this should be called on app init
+    @local_chapters = OsmCommunityIndex::LocalChapter.local_chapters
+  end
+
   def export; end
 
   def offline; end