X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0eb2afa83aee217fc2c6399bd23d0d8152c09eb5..764f808d5a5faebc835ed0f588bae4a306ad687d:/app/controllers/site_controller.rb diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 17353fe96..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 = I18n.locale - @local_chapters = OsmCommunityIndex::LocalChapter.local_chapters_with_locale(@locale) + OsmCommunityIndex::LocalChapter.add_to_i18n # this should be called on app init + @local_chapters = OsmCommunityIndex::LocalChapter.local_chapters end def export; end