From 4922d8014b50ff48504a6fe6ec6865800ee1eeff Mon Sep 17 00:00:00 2001 From: David Gleich Date: Wed, 3 May 2023 22:44:21 +0200 Subject: [PATCH] [PS-2022] Add autofill values for german websites (#4210) * Add autofill values for german websites * Added commonly used fieldnames for German websites --------- Co-authored-by: Daniel James Smith --- .../autofill/services/autofill-constants.ts | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/apps/browser/src/autofill/services/autofill-constants.ts b/apps/browser/src/autofill/services/autofill-constants.ts index be29838646e..fcab50712c9 100644 --- a/apps/browser/src/autofill/services/autofill-constants.ts +++ b/apps/browser/src/autofill/services/autofill-constants.ts @@ -277,7 +277,13 @@ export class IdentityAutoFillConstants { static readonly FullNameFieldNameValues: string[] = ["full-name", "your-name"]; - static readonly TitleFieldNames: string[] = ["honorific-prefix", "prefix", "title"]; + static readonly TitleFieldNames: string[] = [ + "honorific-prefix", + "prefix", + "title", + // German + "anrede", + ]; static readonly FirstnameFieldNames: string[] = [ // English @@ -323,6 +329,9 @@ export class IdentityAutoFillConstants { "billing-addr", "mail-addr", "bill-addr", + // German + "strasse", + "adresse", ]; static readonly AddressFieldNameValues: string[] = [ @@ -365,6 +374,9 @@ export class IdentityAutoFillConstants { "address-code", "address-postal-code", "address-zip-code", + // German + "plz", + "postleitzahl", ]; static readonly CityFieldNames: string[] = [ @@ -373,6 +385,10 @@ export class IdentityAutoFillConstants { "address-level-2", "address-city", "address-town", + // German + "ort", + "stadt", + "wohnort", ]; static readonly StateFieldNames: string[] = [ @@ -382,6 +398,8 @@ export class IdentityAutoFillConstants { "address-level-1", "address-state", "address-province", + // German + "bundesland", ]; static readonly CountryFieldNames: string[] = [ @@ -391,6 +409,8 @@ export class IdentityAutoFillConstants { "address-country", "address-country-name", "address-country-code", + // German + "land", ]; static readonly PhoneFieldNames: string[] = [ @@ -400,6 +420,11 @@ export class IdentityAutoFillConstants { "tel", "telephone", "phone-number", + // German + "telefon", + "telefonnummer", + "mobil", + "handy", ]; static readonly UserNameFieldNames: string[] = ["user-name", "user-id", "screen-name"]; @@ -409,6 +434,8 @@ export class IdentityAutoFillConstants { "company-name", "organization", "organization-name", + // German + "firma", ]; static readonly IsoCountries: { [id: string]: string } = {