X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/62ecf15975f4285ce7b68383860168b221cb594f..764f808d5a5faebc835ed0f588bae4a306ad687d:/app/controllers/site_controller.rb diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 73e4ef51d..a73d1e2e5 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -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