[fix] country_language

This commit is contained in:
Al
2016-05-20 16:01:00 -04:00
parent ce381134fb
commit 4bdcb98320

View File

@@ -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