openstreetmap-website/config/initializers/osm_community_index.rb
Andy Allan e530d4f54d Move the i18n loading to an initializer
Use after_initialize to avoid rails resetting the translations
2022-03-02 16:24:02 +00:00

3 lines
90 B
Ruby

Rails.configuration.after_initialize do
OsmCommunityIndex::LocalChapter.add_to_i18n
end