]> git.openstreetmap.org Git - rails.git/commitdiff
Genericese comment
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 10 Aug 2022 16:19:46 +0000 (17:19 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 10 Aug 2022 16:19:46 +0000 (17:19 +0100)
lib/osm_community_index.rb

index 81f87192810c2efbe1ea0d9c060c4dd56d3587b0..eb7948514369eff689f3d90bd2bc3f2a7fa863b7 100644 (file)
@@ -5,7 +5,7 @@ module OsmCommunityIndex
     files.each do |file|
       locale = File.basename(file, ".yaml")
       community_locale_yaml = YAML.safe_load(File.read(file))[locale]
-      # rails wants en-GB but osm-community-index has en_GB
+      # rails wants language-COUNTRY but osm-community-index uses underscores
       locale_rails = locale.tr("_", "-")
 
       data = communities.each_with_object({}) do |community, obj|