[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 <djsmith@web.de>
This commit is contained in:
David Gleich 2023-05-03 22:44:21 +02:00 committed by GitHub
parent 94da14fb10
commit 4922d8014b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 1 deletions

View File

@ -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 } = {