- community_index["resources"].each do |id, resource|
- resource.each do |key, value|
- next unless key == "type" && value == "osm-lc" && id != "OSMF"
-
- strings = community_index_yaml[id] || {}
- # if the name isn't defined then fall back on community,
- # as per discussion here: https://github.com/osmlab/osm-community-index/issues/483
- strings['name'] = strings['name'] || resource["strings"]["name"] || resource["strings"]["community"]