X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4028f4cdb91f616bc774dc9b9fa8c7183eb1f6dd..0a1834af6372a03cdc04c1f59cbbb3bbc99b7e49:/lib/locale.rb diff --git a/lib/locale.rb b/lib/locale.rb index bb09ae327..e10f06632 100644 --- a/lib/locale.rb +++ b/lib/locale.rb @@ -3,7 +3,7 @@ class Locale < I18n::Locale::Tag::Rfc4646 attr_reader :locales def initialize(tags) - super(tags.map { |tag| Locale.tag(tag) }) + super(tags.map { |tag| Locale.tag(tag) }).compact! end def candidates(preferred)