@@ -152,7 +152,6 @@ export default class GetText {
152
152
"references" : null ,
153
153
"flags" : null ,
154
154
"extractedComments" : null ,
155
- "domains" : null ,
156
155
} ;
157
156
158
157
// message id
@@ -169,8 +168,6 @@ export default class GetText {
169
168
message . pluralId = options . plural ;
170
169
if ( options . isTemplate ) message . flags = [ "javascript-format" ] ;
171
170
}
172
-
173
- message . domains = options . domain ;
174
171
}
175
172
176
173
// extracted comments
@@ -232,7 +229,6 @@ export default class GetText {
232
229
const res = {
233
230
"plural" : null ,
234
231
"isTemplate" : null ,
235
- "domain" : null ,
236
232
} ;
237
233
238
234
if ( node . type !== "ObjectExpression" ) return res ;
@@ -259,18 +255,6 @@ export default class GetText {
259
255
res . isTemplate = plural . isTemplate ;
260
256
}
261
257
}
262
-
263
- // domain
264
- else if ( key === "domain" ) {
265
- if ( property . value . type === "Literal" ) {
266
- res . domain = property . value . value ;
267
- }
268
- else if ( property . value . type === "TemplateLiteral" ) {
269
- if ( property . value . quasis . length === 1 ) {
270
- res . domain = property . value . quasis . map ( node => node . value . cooked ) . join ( "${n}" ) ;
271
- }
272
- }
273
- }
274
258
}
275
259
276
260
return res ;
@@ -317,22 +301,20 @@ export default class GetText {
317
301
318
302
#parseYaml ( poFile , content , file ) {
319
303
const locale = {
320
- l10n ( msgId , { plural, pluralNumber, domain } = { } ) {
304
+ l10n ( msgId , { plural, pluralNumber } = { } ) {
321
305
poFile . addMessages ( {
322
306
[ msgId ] : {
323
307
"pluralId" : plural ,
324
308
"references" : [ file ] ,
325
- "domains" : domain ,
326
309
} ,
327
310
} ) ;
328
311
} ,
329
312
330
- l10nt ( msgId , { plural, pluralNumber, domain } = { } ) {
313
+ l10nt ( msgId , { plural, pluralNumber } = { } ) {
331
314
poFile . addMessages ( {
332
315
[ msgId ] : {
333
316
"pluralId" : plural ,
334
317
"references" : [ file ] ,
335
- "domains" : domain ,
336
318
} ,
337
319
} ) ;
338
320
} ,
0 commit comments