Skip to content

Commit 1cf3991

Browse files
authored
feat(commerce): allow for locale-specific product name patterns (#3657)
1 parent 78c892b commit 1cf3991

File tree

25 files changed

+76
-1
lines changed

25 files changed

+76
-1
lines changed

src/definitions/commerce.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,9 @@ export interface CommerceProductNameDefinition {
3838
* Types of products (e.g. chair).
3939
*/
4040
product: string[];
41+
42+
/**
43+
* Patterns to generate localized product names.
44+
*/
45+
pattern: string[];
4146
}

src/locales/ar/commerce/product_name.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,7 @@ export default {
5656
'لوحة المفاتيح',
5757
'مناشف',
5858
],
59+
pattern: [
60+
'{{commerce.product}} {{commerce.productMaterial}} {{commerce.productAdjective}}',
61+
],
5962
};

src/locales/az/commerce/product_name.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ export default {
2222
'Stul',
2323
'Sviter',
2424
],
25+
pattern: [
26+
'{{commerce.productAdjective}} {{commerce.productMaterial}} {{commerce.product}}',
27+
],
2528
};

src/locales/da/commerce/product_name.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ export default {
6464
'Tastatur',
6565
'Tun',
6666
],
67+
pattern: [
68+
'{{commerce.productAdjective}} {{commerce.productMaterial}} {{commerce.product}}',
69+
],
6770
};

src/locales/el/commerce/product_name.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,7 @@ export default {
3535
'Υπολογιστής',
3636
'Ωάρι',
3737
],
38+
pattern: [
39+
'{{commerce.productAdjective}} {{commerce.productMaterial}} {{commerce.product}}',
40+
],
3841
};

src/locales/en/commerce/product_name.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,7 @@ export default {
7171
'Towels',
7272
'Tuna',
7373
],
74+
pattern: [
75+
'{{commerce.productAdjective}} {{commerce.productMaterial}} {{commerce.product}}',
76+
],
7477
};

src/locales/eo/commerce/product_name.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,7 @@ export default {
6565
'ĉemizo',
6666
'ŝuo',
6767
],
68+
pattern: [
69+
'{{commerce.productAdjective}} {{commerce.productMaterial}} {{commerce.product}}',
70+
],
6871
};

src/locales/es/commerce/product_name.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,7 @@ export default {
5252
'Toallas',
5353
'Zapatos',
5454
],
55+
pattern: [
56+
'{{commerce.product}} {{commerce.productAdjective}} de {{commerce.productMaterial}}',
57+
],
5558
};

src/locales/es_MX/commerce/product_name.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,7 @@ export default {
5555
'Tuna',
5656
'Zapatos',
5757
],
58+
pattern: [
59+
'{{commerce.product}} {{commerce.productAdjective}} de {{commerce.productMaterial}}',
60+
],
5861
};

src/locales/fa/commerce/product_name.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,7 @@ export default {
5353
'کلاه',
5454
'کیبورد',
5555
],
56+
pattern: [
57+
'{{commerce.product}} {{commerce.productMaterial}} {{commerce.productAdjective}}',
58+
],
5659
};

0 commit comments

Comments
 (0)