From bf1f882eb8c91f8cc9ab98aa3d2c62d63016a295 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 10 Aug 2022 17:19:46 +0100 Subject: [PATCH] Genericese comment --- lib/osm_community_index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/osm_community_index.rb b/lib/osm_community_index.rb index 81f871928..eb7948514 100644 --- a/lib/osm_community_index.rb +++ b/lib/osm_community_index.rb @@ -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| -- 2.43.2