Fix: No comma when locality is empty (small fix) (#2111)

* Fix: No comma when locality is empty

* better cleanup on address string

* fix test to one-liner

* add more testing
This commit is contained in:
Luan Estradioto
2025-04-16 22:26:45 -03:00
committed by GitHub
parent 298e150f43
commit 6a21f26d2d
3 changed files with 41 additions and 7 deletions

View File

@@ -8,8 +8,4 @@ en:
locality: Locality
postal_code: Postal Code
region: Region
format: |-
%{line1}
%{line2}
%{locality}, %{region} %{postal_code}
%{country}
format: "%{line1} %{line2}, %{locality}, %{region} %{postal_code} %{country}"