Use String#tr instead of String.split(foo).join(bar)
This commit is contained in:
parent
202846528d
commit
44286b46b1
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module OsmCommunityIndex
|
|||
locale = File.basename(file, ".yaml")
|
||||
community_index_yaml = YAML.safe_load(File.read(file))[locale]
|
||||
# rails wants en-GB but osm-community-index has en_GB
|
||||
locale_rails = locale.split("_").join("-")
|
||||
locale_rails = locale.tr("_", "-")
|
||||
data = {}
|
||||
|
||||
raw_local_chapters.each do |chapter|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue