]> git.openstreetmap.org Git - rails.git/blobdiff - lib/osm_community_index.rb
Add user account deletion delay setting
[rails.git] / lib / osm_community_index.rb
index 7ce379d0f54cae7b755d78035dc7585a245c49f7..a5c2fba72d2b93c9f1e6a566e0cf2ba95f6a1d94 100644 (file)
@@ -6,7 +6,7 @@ module OsmCommunityIndex
     files = Rails.root.glob("node_modules/osm-community-index/i18n/*.yaml")
     files.each do |file|
       locale = File.basename(file, ".yaml")
-      community_locale_yaml = YAML.safe_load(File.read(file))[locale]
+      community_locale_yaml = YAML.safe_load_file(file)[locale]
       # rails wants language-COUNTRY but osm-community-index uses underscores
       locale_rails = locale.tr("_", "-")