Skip to content

Commit 3a1547c

Browse files
authored
Merge pull request #714 from mozilla/anca/cm-duka-pl
Anca/ L10n [PL] Duka
2 parents 66e7821 + 8c049fd commit 3a1547c

File tree

7 files changed

+487
-3
lines changed

7 files changed

+487
-3
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"url": "http://127.0.0.1:8080/duka_ad.html",
3+
"field_mapping": {
4+
"given_name":"c0fd584b-ff6c-4805-93a4-12eaf7195c89",
5+
"family_name":"672a6e9a-5923-4a74-9977-1ad535a2f31f",
6+
"organization": "b3f7e7ef-7711-46c1-b469-163fc4bd1858",
7+
"street_address":"3c509d39-e8b2-4b65-8afe-7f2f70bde4f1",
8+
"postal_code":"1fe5e273-6087-44ae-9968-7a6724606864",
9+
"address_level_2": "f6a2144e-50e7-46db-a01f-d80aa098fc08",
10+
"country": "65ba7dc0-54ec-40b8-8879-f5dbe05c8303",
11+
"telephone": "8758cbc6-287e-40a7-b94e-88b35da48d76"
12+
13+
},
14+
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
15+
"fields": [
16+
"c0fd584b-ff6c-4805-93a4-12eaf7195c89",
17+
"672a6e9a-5923-4a74-9977-1ad535a2f31f",
18+
"b3f7e7ef-7711-46c1-b469-163fc4bd1858",
19+
"3c509d39-e8b2-4b65-8afe-7f2f70bde4f1",
20+
"1fe5e273-6087-44ae-9968-7a6724606864",
21+
"f6a2144e-50e7-46db-a01f-d80aa098fc08",
22+
"65ba7dc0-54ec-40b8-8879-f5dbe05c8303",
23+
"8758cbc6-287e-40a7-b94e-88b35da48d76"
24+
25+
]
26+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"url": "http://127.0.0.1:8080/newegg_cc.html",
3+
"field_mapping": {
4+
"card_number": "11111111-aaaa-bbbb-cccc-000000000000",
5+
"expiration_date": "22222222-bbbb-cccc-dddd-111111111111",
6+
"cvv": "33333333-cccc-dddd-eeee-222222222222"
7+
},
8+
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
9+
"skip": "True",
10+
"fields": [
11+
"11111111-aaaa-bbbb-cccc-000000000000",
12+
"22222222-bbbb-cccc-dddd-111111111111",
13+
"33333333-cccc-dddd-eeee-222222222222"
14+
]
15+
}

l10n_CM/region/PL.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"region": "PL",
33
"sites": [
44
"demo",
5-
"zalando"
5+
"zalando",
6+
"duka"
67
],
78
"tests": [
89
]

l10n_CM/run_l10n.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"diy",
4949
"tiffany",
5050
"assos",
51+
"duka",
5152
}
5253

5354
loaded_valid_sites = valid_l10n_mappings().keys()

l10n_CM/sites/duka/PL/duka_ad.html

Lines changed: 426 additions & 0 deletions
Large diffs are not rendered by default.

l10n_CM/sites/duka/PL/duka_cc.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Title</title>
6+
</head>
7+
<body>
8+
9+
</body>
10+
</html>

modules/util.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ def __init__(self):
104104
"Yukon": "YT",
105105
}
106106
# temporary fix until faker issue is resolved
107-
self.country_local_translation = {"Germany": "Deutschland", "Italy": "Italia", "Spain": "España"}
107+
self.country_local_translation = {
108+
"Germany": "Deutschland",
109+
"Italy": "Italia",
110+
"Spain": "España",
111+
"Poland": "Polska",
112+
}
108113
self.fake = None
109114
self.locale = None
110115

@@ -557,7 +562,7 @@ def normalize_regional_phone_numbers(self, phone: str, region: str) -> str:
557562
"GB": "44",
558563
"IT": "39",
559564
"PL": "48",
560-
"ES": "34"
565+
"ES": "34",
561566
}
562567

563568
# Sub out anything that matches this regex statement with an empty string to get rid of extensions in generated phone numbers

0 commit comments

Comments
 (0)