@@ -7,15 +7,19 @@ export type ILocaleKeys = {
7
7
order : {
8
8
shippingLabel: {
9
9
customerDetailsCard: {
10
- address : (data : Record <' firstName' | ' lastName' | ' addressLine1' | ' addressLine2' | ' city' | ' state' | ' zipCode' | ' country' , unknown >) => string , /* {{firstName}} {{lastName}}, {{addressLine1, suffix ', '}}{{addressLine2, suffix ', '}}{{city, concat ', '}}{{state, suffix ' '}}{{zipCode, suffix ', '}}{{country}} */
11
- },
10
+ /* order.shippingLabel.customerDetailsCard.address */
11
+ /* {{firstName}} {{lastName}}, {{addressLine1, suffix ', '}}{{addressLine2, suffix ', '}}{{city, concat ', '}}{{state, suffix ' '}}{{zipCode, suffix ', '}}{{country}} */
12
+ address : (data : Record <' firstName' | ' lastName' | ' addressLine1' | ' addressLine2' | ' city' | ' state' | ' zipCode' | ' country' , unknown >) => string ;
13
+ };
12
14
labelDetailsCard : {
13
15
shipFrom: {
14
- addressFormat : (data : Record <' addressLine1' | ' addressLine2' | ' city' | ' state' | ' zipCode' | ' country' , unknown >) => string , /* {{addressLine1, suffix ', '}}{{addressLine2, suffix ', '}}{{city, suffix ', '}}{{state}} {{zipCode, suffix ', '}}{{country}} */
15
- },
16
- },
17
- },
18
- },
16
+ /* order.shippingLabel.labelDetailsCard.shipFrom.addressFormat */
17
+ /* {{addressLine1, suffix ', '}}{{addressLine2, suffix ', '}}{{city, suffix ', '}}{{state}} {{zipCode, suffix ', '}}{{country}} */
18
+ addressFormat : (data : Record <' addressLine1' | ' addressLine2' | ' city' | ' state' | ' zipCode' | ' country' , unknown >) => string ;
19
+ };
20
+ };
21
+ };
22
+ };
19
23
} ;
20
24
const createProxyImpl = <R extends string >(
21
25
t = (...[k]: unknown[]) => k as R,
@@ -45,16 +49,32 @@ exports[`generator data interpolation icu snapshot 1`] = `
45
49
export type ILocaleKeys = {
46
50
common : {
47
51
people: {
48
- message : (data : Record <' numPersons' , unknown >) => string , /* Hey, {numPersons, plural, =0 {no one} =1 {one person} other {# persons}} */
49
- messageComplex : (data : Record <' name' | ' numPersons' | ' productsAmount' , unknown >) => string , /* Hey {name}, There are {numPersons, plural, =0 {no one} =1 {one person} other {# persons}} that want to change the {productsAmount, plural, =1 {price of 1 product} other {prices of # products}} */
50
- pluralMessage : (data : Record <' numPeople' , unknown >) => string , /* {numPeople, plural, =0 {No one is} =1 {One person is} other {# people are}} interested */
51
- ordinalMessage : (data : Record <' position' , unknown >) => string , /* {position, selectordinal, one {You're 1st} two {You're 2nd} few {You're 3rd} other {You're #th}} */
52
- dateMessage : (data : Record <' currentDate' , unknown >) => string , /* Today is {currentDate, date, long} */
53
- timeMessage : (data : Record <' currentTime' , unknown >) => string , /* The current time is {currentTime, time, short} */
54
- selectMessage : (data : Record <' gender' , unknown >) => string , /* {gender, select, male {He is} female {She is} other {They are} } interested */
55
- numberMessage : (data : Record <' numApples' , unknown >) => string , /* You have {numApples, number} apples */
56
- },
57
- },
52
+ /* common.people.message */
53
+ /* Hey, {numPersons, plural, =0 {no one} =1 {one person} other {# persons}} */
54
+ message : (data : Record <' numPersons' , unknown >) => string ;
55
+ /* common.people.messageComplex */
56
+ /* Hey {name}, There are {numPersons, plural, =0 {no one} =1 {one person} other {# persons}} that want to change the {productsAmount, plural, =1 {price of 1 product} other {prices of # products}} */
57
+ messageComplex : (data : Record <' name' | ' numPersons' | ' productsAmount' , unknown >) => string ;
58
+ /* common.people.pluralMessage */
59
+ /* {numPeople, plural, =0 {No one is} =1 {One person is} other {# people are}} interested */
60
+ pluralMessage : (data : Record <' numPeople' , unknown >) => string ;
61
+ /* common.people.ordinalMessage */
62
+ /* {position, selectordinal, one {You're 1st} two {You're 2nd} few {You're 3rd} other {You're #th}} */
63
+ ordinalMessage : (data : Record <' position' , unknown >) => string ;
64
+ /* common.people.dateMessage */
65
+ /* Today is {currentDate, date, long} */
66
+ dateMessage : (data : Record <' currentDate' , unknown >) => string ;
67
+ /* common.people.timeMessage */
68
+ /* The current time is {currentTime, time, short} */
69
+ timeMessage : (data : Record <' currentTime' , unknown >) => string ;
70
+ /* common.people.selectMessage */
71
+ /* {gender, select, male {He is} female {She is} other {They are} } interested */
72
+ selectMessage : (data : Record <' gender' , unknown >) => string ;
73
+ /* common.people.numberMessage */
74
+ /* You have {numApples, number} apples */
75
+ numberMessage : (data : Record <' numApples' , unknown >) => string ;
76
+ };
77
+ };
58
78
} ;
59
79
const createProxyImpl = <R extends string >(
60
80
t = (...[k]: unknown[]) => k as R,
@@ -84,10 +104,14 @@ exports[`generator data interpolation icu with nested params snapshot 1`] = `
84
104
export type ILocaleKeys = {
85
105
common : {
86
106
people: {
87
- message : (data : Record <' numPersons' , unknown >) => string , /* Hey, {numPersons, plural, =0 {no one} =1 {one person} other {# persons}} */
88
- messageNestedParams : (data : Record <' name' | ' numPersons' , unknown >) => string , /* Hey, {numPersons, plural, =0 {No one here.} one {{name}. You are the only person here.} other {{name} and # other persons are here.}} */
89
- },
90
- },
107
+ /* common.people.message */
108
+ /* Hey, {numPersons, plural, =0 {no one} =1 {one person} other {# persons}} */
109
+ message : (data : Record <' numPersons' , unknown >) => string ;
110
+ /* common.people.messageNestedParams */
111
+ /* Hey, {numPersons, plural, =0 {No one here.} one {{name}. You are the only person here.} other {{name} and # other persons are here.}} */
112
+ messageNestedParams : (data : Record <' name' | ' numPersons' , unknown >) => string ;
113
+ };
114
+ };
91
115
} ;
92
116
const createProxyImpl = <R extends string >(
93
117
t = (...[k]: unknown[]) => k as R,
@@ -117,10 +141,14 @@ exports[`generator data interpolation single quote snapshot 1`] = `
117
141
export type ILocaleKeys = {
118
142
common : {
119
143
loggedIn: {
120
- message : (data : Record <' username' , unknown >) => string , /* Hey, {username}, you have successfully logged in! */
121
- },
122
- },
123
- readingWarning : (data : Record <' reader' | ' writer' , unknown >) => string , /* {reader} reads message from {writer} */
144
+ /* common.loggedIn.message */
145
+ /* Hey, {username}, you have successfully logged in! */
146
+ message : (data : Record <' username' , unknown >) => string ;
147
+ };
148
+ };
149
+ /* readingWarning */
150
+ /* {reader} reads message from {writer} */
151
+ readingWarning : (data : Record <' reader' | ' writer' , unknown >) => string ;
124
152
} ;
125
153
const createProxyImpl = <R extends string >(
126
154
t = (...[k]: unknown[]) => k as R,
@@ -149,13 +177,17 @@ exports[`generator flat data snapshot 1`] = `
149
177
/* tslint:disable */
150
178
export type ILocaleKeys = {
151
179
common : {
152
- cancel : () => string , /* Cancel */
153
- },
180
+ /* common.cancel */
181
+ /* Cancel */
182
+ cancel : () => string ;
183
+ };
154
184
model : {
155
185
player: {
156
- name : () => string , /* Name */
157
- },
158
- },
186
+ /* model.player.name */
187
+ /* Name */
188
+ name : () => string ;
189
+ };
190
+ };
159
191
} ;
160
192
const createProxyImpl = <R extends string >(
161
193
t = (...[k]: unknown[]) => k as R,
@@ -184,13 +216,17 @@ exports[`generator nested data snapshot 1`] = `
184
216
/* tslint:disable */
185
217
export type ILocaleKeys = {
186
218
common : {
187
- create : () => string , /* Create */
188
- },
219
+ /* common.create */
220
+ /* Create */
221
+ create : () => string ;
222
+ };
189
223
model : {
190
224
user: {
191
- id : () => string , /* ID */
192
- },
193
- },
225
+ /* model.user.id */
226
+ /* ID */
227
+ id : () => string ;
228
+ };
229
+ };
194
230
} ;
195
231
const createProxyImpl = <R extends string >(
196
232
t = (...[k]: unknown[]) => k as R,
0 commit comments