From 8f0abd3e1018d3c814e9ade5e999457e15fee47f Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Sun, 12 Mar 2023 03:13:37 +0700 Subject: [PATCH] fix(locale): fix pt_PT street addresses (#1911) --- src/locales/pt_PT/location/index.ts | 2 ++ src/locales/pt_PT/location/secondary_address.ts | 1 + src/locales/pt_PT/location/street.ts | 4 ---- src/locales/pt_PT/location/street_address.ts | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 src/locales/pt_PT/location/secondary_address.ts diff --git a/src/locales/pt_PT/location/index.ts b/src/locales/pt_PT/location/index.ts index 63674a1f623..7c894b5caef 100644 --- a/src/locales/pt_PT/location/index.ts +++ b/src/locales/pt_PT/location/index.ts @@ -12,6 +12,7 @@ import country from './country'; import default_country from './default_country'; import direction from './direction'; import postcode from './postcode'; +import secondary_address from './secondary_address'; import street from './street'; import street_address from './street_address'; import street_prefix from './street_prefix'; @@ -26,6 +27,7 @@ const location: LocationDefinitions = { default_country, direction, postcode, + secondary_address, street, street_address, street_prefix, diff --git a/src/locales/pt_PT/location/secondary_address.ts b/src/locales/pt_PT/location/secondary_address.ts new file mode 100644 index 00000000000..c7bab4dba47 --- /dev/null +++ b/src/locales/pt_PT/location/secondary_address.ts @@ -0,0 +1 @@ +export default ['#Drt.', '#Esq.', '#Frt', 'R/C', 'Cv', '#A', '#B', '#C']; diff --git a/src/locales/pt_PT/location/street.ts b/src/locales/pt_PT/location/street.ts index f579edee3d3..2d677549d38 100644 --- a/src/locales/pt_PT/location/street.ts +++ b/src/locales/pt_PT/location/street.ts @@ -1,7 +1,3 @@ export default [ '{{location.street_prefix}} {{person.first_name}} {{person.last_name}}', - 'N#', - 'N##', - 'N###', - 'N###-#', ]; diff --git a/src/locales/pt_PT/location/street_address.ts b/src/locales/pt_PT/location/street_address.ts index 437f20dd91a..399457ec58b 100644 --- a/src/locales/pt_PT/location/street_address.ts +++ b/src/locales/pt_PT/location/street_address.ts @@ -1,4 +1,4 @@ export default { normal: '{{location.street}} {{location.buildingNumber}}', - full: '{{location.street}} {{location.buildingNumber}} {{location.secondaryAddress}}', + full: '{{location.street}} {{location.buildingNumber}}-{{location.secondaryAddress}}', };