diff --git a/scripts/geodata/address_formatting/formatter.py b/scripts/geodata/address_formatting/formatter.py index aa6af8e4..7d00903f 100644 --- a/scripts/geodata/address_formatting/formatter.py +++ b/scripts/geodata/address_formatting/formatter.py @@ -470,8 +470,10 @@ class AddressFormatter(object): insertions = nested_get(self.country_insertions, (country, component), default=None) conditionals = nested_get(self.country_conditionals, (country, component), default=None) - if insertions is None and language: + if language: country_language = '{}_{}'.format(country, language) + + if insertions is None and language: insertions = nested_get(self.country_insertions, (country_language, component), default=None) scope = country_language