]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Merge branch 'master' into feature/add-communities-page
[rails.git] / app / controllers / site_controller.rb
index 2eb084f913f0641b18a0b7505714eefcfbd1eb9d..a73d1e2e50e74f9595605917440a60a5cf7ba4f5 100644 (file)
@@ -107,8 +107,8 @@ class SiteController < ApplicationController
   end
 
   def 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