Skip to content

Avoid including the address country if it's obvious

Kai Uwe Broulik requested to merge work/kbroulik/cleanup-redundant-country into master

Introduces Localizer.formatAddressWithContext which can then decide whether to include the country when formatting the address (and/or other criteria in the future).

The country is excluded if the address is otherwise empty and in the user's home country. If there's an address pair (e.g. departure and arrival) the country is hidden only if both are in the same country.


My timeline isn’t full of “Deutschland” anymore 😄

Right now the country is included for addresses in the home country. It is only hidden if the country would be the only information. I wonder if we can forgo the country whenever it is the home country (and the same as the destination)?

Merge request reports

Loading