@worldware/msg-cli 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-WGI2EFOS.mjs → chunk-HZHAP6XM.mjs} +2 -2
- package/dist/{chunk-PQJA3H4Z.mjs → chunk-QMSV2PP2.mjs} +1 -1
- package/dist/{chunk-3MCULZ7L.mjs → chunk-WOGVKE3R.mjs} +45 -23
- package/dist/{chunk-HH6ZOHO4.mjs → chunk-Z7H6FUD6.mjs} +2 -6
- package/dist/commands/export.cjs +1 -3
- package/dist/commands/export.mjs +3 -3
- package/dist/commands/import.cjs +44 -24
- package/dist/commands/import.mjs +3 -3
- package/dist/lib/export-helpers.cjs +1 -3
- package/dist/lib/export-helpers.mjs +3 -3
- package/dist/lib/import-helpers.cjs +44 -24
- package/dist/lib/import-helpers.mjs +3 -3
- package/dist/lib/pgs-mf1.cjs +1 -3
- package/dist/lib/pgs-mf1.mjs +2 -2
- package/dist/lib/pgs-mf2.cjs +2 -6
- package/dist/lib/pgs-mf2.d.mts +1 -1
- package/dist/lib/pgs-mf2.d.ts +1 -1
- package/dist/lib/pgs-mf2.mjs +1 -1
- package/package.json +1 -1
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-Q775ZGC5.mjs";
|
|
5
5
|
import {
|
|
6
6
|
mf1MessageToPgsExport
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QMSV2PP2.mjs";
|
|
8
8
|
import {
|
|
9
9
|
selectMessageToPgsExport
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Z7H6FUD6.mjs";
|
|
11
11
|
import {
|
|
12
12
|
dynamicImportFromUrl
|
|
13
13
|
} from "./chunk-KRQA4FRY.mjs";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-Q775ZGC5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
pgsImportToMf1Message
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QMSV2PP2.mjs";
|
|
7
7
|
import {
|
|
8
8
|
pgsImportToSelectMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Z7H6FUD6.mjs";
|
|
10
10
|
import {
|
|
11
11
|
dynamicImportFromUrl
|
|
12
12
|
} from "./chunk-KRQA4FRY.mjs";
|
|
@@ -89,7 +89,18 @@ async function importMsgProject(projectsDir, projectName) {
|
|
|
89
89
|
}
|
|
90
90
|
var xmlParser = new XMLParser({
|
|
91
91
|
ignoreAttributes: false,
|
|
92
|
-
attributeNamePrefix: "@_"
|
|
92
|
+
attributeNamePrefix: "@_",
|
|
93
|
+
// Keep segment content as raw XML: the default (non-order-preserving) mode
|
|
94
|
+
// groups mixed content by tag, scrambling text around inline elements.
|
|
95
|
+
// extractSegmentText re-parses it in document order.
|
|
96
|
+
stopNodes: ["*.source", "*.target"]
|
|
97
|
+
});
|
|
98
|
+
var inlineContentParser = new XMLParser({
|
|
99
|
+
ignoreAttributes: false,
|
|
100
|
+
attributeNamePrefix: "@_",
|
|
101
|
+
preserveOrder: true,
|
|
102
|
+
trimValues: false,
|
|
103
|
+
parseTagValue: false
|
|
93
104
|
});
|
|
94
105
|
function parseXliff20(xml) {
|
|
95
106
|
try {
|
|
@@ -118,28 +129,39 @@ function categoryToNoteType(category) {
|
|
|
118
129
|
function extractSegmentText(segment) {
|
|
119
130
|
if (segment == null) return "";
|
|
120
131
|
const seg = segment;
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
if (
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
132
|
+
const content = seg.target ?? seg.source;
|
|
133
|
+
const raw = content && typeof content === "object" ? content["#text"] : content;
|
|
134
|
+
if (typeof raw !== "string" || raw === "") return "";
|
|
135
|
+
const [root] = inlineContentParser.parse(`<c>${raw}</c>`);
|
|
136
|
+
return extractInlineText(root.c).trim();
|
|
137
|
+
}
|
|
138
|
+
function codePointFromHex(hex) {
|
|
139
|
+
const cp = /^[0-9a-f]{1,6}$/i.test(hex ?? "") ? parseInt(hex, 16) : NaN;
|
|
140
|
+
return cp <= 1114111 ? String.fromCodePoint(cp) : "\uFFFD";
|
|
127
141
|
}
|
|
128
|
-
function extractInlineText(
|
|
142
|
+
function extractInlineText(nodes) {
|
|
129
143
|
let text = "";
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
for (const node of nodes) {
|
|
145
|
+
if ("#text" in node) {
|
|
146
|
+
text += String(node["#text"]);
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
const tag = Object.keys(node).find((k) => k !== ":@");
|
|
150
|
+
const attrs = node[":@"] ?? {};
|
|
151
|
+
switch (tag) {
|
|
152
|
+
case "ph":
|
|
153
|
+
case "sc":
|
|
154
|
+
case "ec":
|
|
155
|
+
text += attrs["@_equiv"] ?? attrs["@_disp"] ?? "";
|
|
156
|
+
break;
|
|
157
|
+
case "cp":
|
|
158
|
+
text += codePointFromHex(attrs["@_hex"]);
|
|
159
|
+
break;
|
|
160
|
+
case "sm":
|
|
161
|
+
case "em":
|
|
162
|
+
break;
|
|
163
|
+
default:
|
|
164
|
+
if (tag) text += extractInlineText(node[tag]);
|
|
143
165
|
}
|
|
144
166
|
}
|
|
145
167
|
return text;
|
|
@@ -39,9 +39,7 @@ function getFunctionName(expr) {
|
|
|
39
39
|
return expr.functionRef?.name;
|
|
40
40
|
}
|
|
41
41
|
function getOption(opts, key) {
|
|
42
|
-
|
|
43
|
-
if (opts instanceof Map) return opts.get(key);
|
|
44
|
-
return opts[key];
|
|
42
|
+
return opts?.[key];
|
|
45
43
|
}
|
|
46
44
|
function getSelectOptionOrdinal(expr) {
|
|
47
45
|
const sel = getOption(expr.functionRef?.options, "select");
|
|
@@ -183,9 +181,7 @@ function pgsImportToSelectMessage(switchAttr, segments) {
|
|
|
183
181
|
}
|
|
184
182
|
});
|
|
185
183
|
} else if (kind === "ordinal") {
|
|
186
|
-
const opts =
|
|
187
|
-
["select", { type: "literal", value: "ordinal" }]
|
|
188
|
-
]);
|
|
184
|
+
const opts = { select: { type: "literal", value: "ordinal" } };
|
|
189
185
|
declarations.push({
|
|
190
186
|
type: "input",
|
|
191
187
|
name,
|
package/dist/commands/export.cjs
CHANGED
|
@@ -171,9 +171,7 @@ function getFunctionName(expr) {
|
|
|
171
171
|
return expr.functionRef?.name;
|
|
172
172
|
}
|
|
173
173
|
function getOption(opts, key) {
|
|
174
|
-
|
|
175
|
-
if (opts instanceof Map) return opts.get(key);
|
|
176
|
-
return opts[key];
|
|
174
|
+
return opts?.[key];
|
|
177
175
|
}
|
|
178
176
|
function getSelectOptionOrdinal(expr) {
|
|
179
177
|
const sel = getOption(expr.functionRef?.options, "select");
|
package/dist/commands/export.mjs
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
importMsgResourcesFromPaths,
|
|
6
6
|
serializeResourceGroupsToXliff,
|
|
7
7
|
writeXliffFiles
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-HZHAP6XM.mjs";
|
|
9
9
|
import "../chunk-Q775ZGC5.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-QMSV2PP2.mjs";
|
|
11
|
+
import "../chunk-Z7H6FUD6.mjs";
|
|
12
12
|
import "../chunk-KRQA4FRY.mjs";
|
|
13
13
|
import {
|
|
14
14
|
loadPackageJsonForMsg
|
package/dist/commands/import.cjs
CHANGED
|
@@ -200,9 +200,7 @@ function pgsImportToSelectMessage(switchAttr, segments) {
|
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
} else if (kind === "ordinal") {
|
|
203
|
-
const opts =
|
|
204
|
-
["select", { type: "literal", value: "ordinal" }]
|
|
205
|
-
]);
|
|
203
|
+
const opts = { select: { type: "literal", value: "ordinal" } };
|
|
206
204
|
declarations.push({
|
|
207
205
|
type: "input",
|
|
208
206
|
name,
|
|
@@ -443,7 +441,18 @@ async function importMsgProject(projectsDir, projectName) {
|
|
|
443
441
|
}
|
|
444
442
|
var xmlParser = new import_fast_xml_parser.XMLParser({
|
|
445
443
|
ignoreAttributes: false,
|
|
446
|
-
attributeNamePrefix: "@_"
|
|
444
|
+
attributeNamePrefix: "@_",
|
|
445
|
+
// Keep segment content as raw XML: the default (non-order-preserving) mode
|
|
446
|
+
// groups mixed content by tag, scrambling text around inline elements.
|
|
447
|
+
// extractSegmentText re-parses it in document order.
|
|
448
|
+
stopNodes: ["*.source", "*.target"]
|
|
449
|
+
});
|
|
450
|
+
var inlineContentParser = new import_fast_xml_parser.XMLParser({
|
|
451
|
+
ignoreAttributes: false,
|
|
452
|
+
attributeNamePrefix: "@_",
|
|
453
|
+
preserveOrder: true,
|
|
454
|
+
trimValues: false,
|
|
455
|
+
parseTagValue: false
|
|
447
456
|
});
|
|
448
457
|
function parseXliff20(xml) {
|
|
449
458
|
try {
|
|
@@ -472,28 +481,39 @@ function categoryToNoteType(category) {
|
|
|
472
481
|
function extractSegmentText(segment) {
|
|
473
482
|
if (segment == null) return "";
|
|
474
483
|
const seg = segment;
|
|
475
|
-
const
|
|
476
|
-
|
|
477
|
-
if (
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
484
|
+
const content = seg.target ?? seg.source;
|
|
485
|
+
const raw = content && typeof content === "object" ? content["#text"] : content;
|
|
486
|
+
if (typeof raw !== "string" || raw === "") return "";
|
|
487
|
+
const [root] = inlineContentParser.parse(`<c>${raw}</c>`);
|
|
488
|
+
return extractInlineText(root.c).trim();
|
|
489
|
+
}
|
|
490
|
+
function codePointFromHex(hex) {
|
|
491
|
+
const cp = /^[0-9a-f]{1,6}$/i.test(hex ?? "") ? parseInt(hex, 16) : NaN;
|
|
492
|
+
return cp <= 1114111 ? String.fromCodePoint(cp) : "\uFFFD";
|
|
481
493
|
}
|
|
482
|
-
function extractInlineText(
|
|
494
|
+
function extractInlineText(nodes) {
|
|
483
495
|
let text = "";
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
496
|
+
for (const node of nodes) {
|
|
497
|
+
if ("#text" in node) {
|
|
498
|
+
text += String(node["#text"]);
|
|
499
|
+
continue;
|
|
500
|
+
}
|
|
501
|
+
const tag = Object.keys(node).find((k) => k !== ":@");
|
|
502
|
+
const attrs = node[":@"] ?? {};
|
|
503
|
+
switch (tag) {
|
|
504
|
+
case "ph":
|
|
505
|
+
case "sc":
|
|
506
|
+
case "ec":
|
|
507
|
+
text += attrs["@_equiv"] ?? attrs["@_disp"] ?? "";
|
|
508
|
+
break;
|
|
509
|
+
case "cp":
|
|
510
|
+
text += codePointFromHex(attrs["@_hex"]);
|
|
511
|
+
break;
|
|
512
|
+
case "sm":
|
|
513
|
+
case "em":
|
|
514
|
+
break;
|
|
515
|
+
default:
|
|
516
|
+
if (tag) text += extractInlineText(node[tag]);
|
|
497
517
|
}
|
|
498
518
|
}
|
|
499
519
|
return text;
|
package/dist/commands/import.mjs
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
parseXliffFilename,
|
|
6
6
|
processXliffFile,
|
|
7
7
|
writeTranslationFiles
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-WOGVKE3R.mjs";
|
|
9
9
|
import "../chunk-Q775ZGC5.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-QMSV2PP2.mjs";
|
|
11
|
+
import "../chunk-Z7H6FUD6.mjs";
|
|
12
12
|
import "../chunk-KRQA4FRY.mjs";
|
|
13
13
|
import {
|
|
14
14
|
loadPackageJsonForMsg
|
|
@@ -108,9 +108,7 @@ function getFunctionName(expr) {
|
|
|
108
108
|
return expr.functionRef?.name;
|
|
109
109
|
}
|
|
110
110
|
function getOption(opts, key) {
|
|
111
|
-
|
|
112
|
-
if (opts instanceof Map) return opts.get(key);
|
|
113
|
-
return opts[key];
|
|
111
|
+
return opts?.[key];
|
|
114
112
|
}
|
|
115
113
|
function getSelectOptionOrdinal(expr) {
|
|
116
114
|
const sel = getOption(expr.functionRef?.options, "select");
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
importMsgResourcesFromPaths,
|
|
6
6
|
serializeResourceGroupsToXliff,
|
|
7
7
|
writeXliffFiles
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-HZHAP6XM.mjs";
|
|
9
9
|
import "../chunk-Q775ZGC5.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-QMSV2PP2.mjs";
|
|
11
|
+
import "../chunk-Z7H6FUD6.mjs";
|
|
12
12
|
import "../chunk-KRQA4FRY.mjs";
|
|
13
13
|
import "../chunk-F7XZRKP7.mjs";
|
|
14
14
|
export {
|
|
@@ -141,9 +141,7 @@ function pgsImportToSelectMessage(switchAttr, segments) {
|
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
} else if (kind === "ordinal") {
|
|
144
|
-
const opts =
|
|
145
|
-
["select", { type: "literal", value: "ordinal" }]
|
|
146
|
-
]);
|
|
144
|
+
const opts = { select: { type: "literal", value: "ordinal" } };
|
|
147
145
|
declarations.push({
|
|
148
146
|
type: "input",
|
|
149
147
|
name,
|
|
@@ -384,7 +382,18 @@ async function importMsgProject(projectsDir, projectName) {
|
|
|
384
382
|
}
|
|
385
383
|
var xmlParser = new import_fast_xml_parser.XMLParser({
|
|
386
384
|
ignoreAttributes: false,
|
|
387
|
-
attributeNamePrefix: "@_"
|
|
385
|
+
attributeNamePrefix: "@_",
|
|
386
|
+
// Keep segment content as raw XML: the default (non-order-preserving) mode
|
|
387
|
+
// groups mixed content by tag, scrambling text around inline elements.
|
|
388
|
+
// extractSegmentText re-parses it in document order.
|
|
389
|
+
stopNodes: ["*.source", "*.target"]
|
|
390
|
+
});
|
|
391
|
+
var inlineContentParser = new import_fast_xml_parser.XMLParser({
|
|
392
|
+
ignoreAttributes: false,
|
|
393
|
+
attributeNamePrefix: "@_",
|
|
394
|
+
preserveOrder: true,
|
|
395
|
+
trimValues: false,
|
|
396
|
+
parseTagValue: false
|
|
388
397
|
});
|
|
389
398
|
function parseXliff20(xml) {
|
|
390
399
|
try {
|
|
@@ -413,28 +422,39 @@ function categoryToNoteType(category) {
|
|
|
413
422
|
function extractSegmentText(segment) {
|
|
414
423
|
if (segment == null) return "";
|
|
415
424
|
const seg = segment;
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
-
if (
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
425
|
+
const content = seg.target ?? seg.source;
|
|
426
|
+
const raw = content && typeof content === "object" ? content["#text"] : content;
|
|
427
|
+
if (typeof raw !== "string" || raw === "") return "";
|
|
428
|
+
const [root] = inlineContentParser.parse(`<c>${raw}</c>`);
|
|
429
|
+
return extractInlineText(root.c).trim();
|
|
430
|
+
}
|
|
431
|
+
function codePointFromHex(hex) {
|
|
432
|
+
const cp = /^[0-9a-f]{1,6}$/i.test(hex ?? "") ? parseInt(hex, 16) : NaN;
|
|
433
|
+
return cp <= 1114111 ? String.fromCodePoint(cp) : "\uFFFD";
|
|
422
434
|
}
|
|
423
|
-
function extractInlineText(
|
|
435
|
+
function extractInlineText(nodes) {
|
|
424
436
|
let text = "";
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
const
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
437
|
+
for (const node of nodes) {
|
|
438
|
+
if ("#text" in node) {
|
|
439
|
+
text += String(node["#text"]);
|
|
440
|
+
continue;
|
|
441
|
+
}
|
|
442
|
+
const tag = Object.keys(node).find((k) => k !== ":@");
|
|
443
|
+
const attrs = node[":@"] ?? {};
|
|
444
|
+
switch (tag) {
|
|
445
|
+
case "ph":
|
|
446
|
+
case "sc":
|
|
447
|
+
case "ec":
|
|
448
|
+
text += attrs["@_equiv"] ?? attrs["@_disp"] ?? "";
|
|
449
|
+
break;
|
|
450
|
+
case "cp":
|
|
451
|
+
text += codePointFromHex(attrs["@_hex"]);
|
|
452
|
+
break;
|
|
453
|
+
case "sm":
|
|
454
|
+
case "em":
|
|
455
|
+
break;
|
|
456
|
+
default:
|
|
457
|
+
if (tag) text += extractInlineText(node[tag]);
|
|
438
458
|
}
|
|
439
459
|
}
|
|
440
460
|
return text;
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
processXliffFile,
|
|
10
10
|
writeTranslationFiles,
|
|
11
11
|
xliffDirSegments
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-WOGVKE3R.mjs";
|
|
13
13
|
import "../chunk-Q775ZGC5.mjs";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-QMSV2PP2.mjs";
|
|
15
|
+
import "../chunk-Z7H6FUD6.mjs";
|
|
16
16
|
import "../chunk-KRQA4FRY.mjs";
|
|
17
17
|
import "../chunk-F7XZRKP7.mjs";
|
|
18
18
|
export {
|
package/dist/lib/pgs-mf1.cjs
CHANGED
|
@@ -62,9 +62,7 @@ function getFunctionName(expr) {
|
|
|
62
62
|
return expr.functionRef?.name;
|
|
63
63
|
}
|
|
64
64
|
function getOption(opts, key) {
|
|
65
|
-
|
|
66
|
-
if (opts instanceof Map) return opts.get(key);
|
|
67
|
-
return opts[key];
|
|
65
|
+
return opts?.[key];
|
|
68
66
|
}
|
|
69
67
|
function getSelectOptionOrdinal(expr) {
|
|
70
68
|
const sel = getOption(expr.functionRef?.options, "select");
|
package/dist/lib/pgs-mf1.mjs
CHANGED
package/dist/lib/pgs-mf2.cjs
CHANGED
|
@@ -63,9 +63,7 @@ function getFunctionName(expr) {
|
|
|
63
63
|
return expr.functionRef?.name;
|
|
64
64
|
}
|
|
65
65
|
function getOption(opts, key) {
|
|
66
|
-
|
|
67
|
-
if (opts instanceof Map) return opts.get(key);
|
|
68
|
-
return opts[key];
|
|
66
|
+
return opts?.[key];
|
|
69
67
|
}
|
|
70
68
|
function getSelectOptionOrdinal(expr) {
|
|
71
69
|
const sel = getOption(expr.functionRef?.options, "select");
|
|
@@ -207,9 +205,7 @@ function pgsImportToSelectMessage(switchAttr, segments) {
|
|
|
207
205
|
}
|
|
208
206
|
});
|
|
209
207
|
} else if (kind === "ordinal") {
|
|
210
|
-
const opts =
|
|
211
|
-
["select", { type: "literal", value: "ordinal" }]
|
|
212
|
-
]);
|
|
208
|
+
const opts = { select: { type: "literal", value: "ordinal" } };
|
|
213
209
|
declarations.push({
|
|
214
210
|
type: "input",
|
|
215
211
|
name,
|
package/dist/lib/pgs-mf2.d.mts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* (`pgs:switch` / `pgs:case`, urn:oasis:names:tc:xliff:pgs:1.0).
|
|
4
4
|
*
|
|
5
5
|
* Ordinal vs cardinal :number uses the `select` option passed to PluralRules
|
|
6
|
-
* (`select=ordinal` in MF2 syntax → options
|
|
6
|
+
* (`select=ordinal` in MF2 syntax → options key `select`, literal `ordinal`).
|
|
7
7
|
*/
|
|
8
8
|
/** PGS selector keywords (XLIFF 2.2 Extended Part 2 §4.9). */
|
|
9
9
|
type PgsSelectorKind = "plural" | "ordinal" | "gender" | "select";
|
package/dist/lib/pgs-mf2.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* (`pgs:switch` / `pgs:case`, urn:oasis:names:tc:xliff:pgs:1.0).
|
|
4
4
|
*
|
|
5
5
|
* Ordinal vs cardinal :number uses the `select` option passed to PluralRules
|
|
6
|
-
* (`select=ordinal` in MF2 syntax → options
|
|
6
|
+
* (`select=ordinal` in MF2 syntax → options key `select`, literal `ordinal`).
|
|
7
7
|
*/
|
|
8
8
|
/** PGS selector keywords (XLIFF 2.2 Extended Part 2 §4.9). */
|
|
9
9
|
type PgsSelectorKind = "plural" | "ordinal" | "gender" | "select";
|
package/dist/lib/pgs-mf2.mjs
CHANGED