Skip to content

Commit e99d860

Browse files
GoodwineIgorMinar
authored andcommitted
feat(compiler): add "original" placeholder value on extracted XMB (angular#25079)
Update XMB placeholders(<ph>) to include the original value on top of an example. Placeholders can by definition have one example(<ex>) tag and a text node. The text node is used by TC as the "original" value from the placeholder, while the example should represent a dummy value. For example: <ph name="PET"><ex>Gopher</ex>{{ petName }}</ph>. This change makes sure that we have the original text, but it *DOES NOT* make sure that the example is correct. The example has the same wrong behavior of showing the interpolation text rather than a useful example. No breaking changes, but tools that depend on the previous behavior and don't consider the full XMB definition may fail to parse the XMB. Fixes b/72565847 PR Close angular#25079
1 parent 24789e9 commit e99d860

File tree

6 files changed

+171
-39
lines changed

6 files changed

+171
-39
lines changed

packages/compiler-cli/test/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jasmine_node_test(
4343
],
4444
deps = [
4545
":extract_i18n_lib",
46+
"//packages/common:npm_package",
4647
"//packages/core",
4748
"//tools/testing:node",
4849
],

packages/compiler-cli/test/extract_i18n_spec.ts

Lines changed: 119 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ const EXPECTED_XMB = `<?xml version="1.0" encoding="UTF-8" ?>
4646
<msg id="8136548302122759730" desc="desc" meaning="meaning"><source>src/basic.html:1</source><source>src/comp2.ts:1</source><source>src/basic.html:1</source>translate me</msg>
4747
<msg id="9038505069473852515"><source>src/basic.html:3,4</source><source>src/comp2.ts:3,4</source><source>src/comp2.ts:2,3</source><source>src/basic.html:3,4</source>
4848
Welcome</msg>
49+
<msg id="5611534349548281834" desc="with ICU"><source>src/icu.html:1,3</source><source>src/icu.html:5</source>{VAR_PLURAL, plural, =1 {book} other {books} }</msg>
50+
<msg id="5811701742971715242" desc="with ICU and other things"><source>src/icu.html:4,6</source>
51+
foo <ph name="ICU"><ex>{ count, plural, =1 {...} other {...}}</ex>{ count, plural, =1 {...} other {...}}</ph>
52+
</msg>
53+
<msg id="7254052530614200029" desc="with placeholders"><source>src/placeholders.html:1</source>Name: <ph name="START_BOLD_TEXT"><ex>&lt;b&gt;</ex>&lt;b&gt;</ph><ph name="NAME"><ex>{{
54+
name // i18n(ph=&quot;name&quot;)
55+
}}</ex>{{
56+
name // i18n(ph=&quot;name&quot;)
57+
}}</ph><ph name="CLOSE_BOLD_TEXT"><ex>&lt;/b&gt;</ex>&lt;/b&gt;</ph></msg>
4958
</messagebundle>
5059
`;
5160

@@ -90,6 +99,41 @@ const EXPECTED_XLIFF = `<?xml version="1.0" encoding="UTF-8" ?>
9099
<context context-type="linenumber">3</context>
91100
</context-group>
92101
</trans-unit>
102+
<trans-unit id="83937c05b1216e7f4c02a85454260e28fd72d1e3" datatype="html">
103+
<source>{VAR_PLURAL, plural, =1 {book} other {books} }</source>
104+
<context-group purpose="location">
105+
<context context-type="sourcefile">src/icu.html</context>
106+
<context context-type="linenumber">1</context>
107+
</context-group>
108+
<note priority="1" from="description">with ICU</note>
109+
</trans-unit>
110+
<trans-unit id="540c5f481129419ef21017f396b6c2d0869ca4d2" datatype="html">
111+
<source>
112+
foo <x id="ICU" equiv-text="{ count, plural, =1 {...} other {...}}"/>
113+
</source>
114+
<context-group purpose="location">
115+
<context context-type="sourcefile">src/icu.html</context>
116+
<context context-type="linenumber">4</context>
117+
</context-group>
118+
<note priority="1" from="description">with ICU and other things</note>
119+
</trans-unit>
120+
<trans-unit id="ca7678090fddd04441d63b1218177af65f23342d" datatype="html">
121+
<source>{VAR_PLURAL, plural, =1 {book} other {books} }</source>
122+
<context-group purpose="location">
123+
<context context-type="sourcefile">src/icu.html</context>
124+
<context context-type="linenumber">5</context>
125+
</context-group>
126+
</trans-unit>
127+
<trans-unit id="9311399c1ca7c75f771d77acb129e50581c6ec1f" datatype="html">
128+
<source>Name: <x id="START_BOLD_TEXT" ctype="x-b" equiv-text="&lt;b&gt;"/><x id="NAME" equiv-text="{{
129+
name // i18n(ph=&quot;name&quot;)
130+
}}"/><x id="CLOSE_BOLD_TEXT" ctype="x-b" equiv-text="&lt;/b&gt;"/></source>
131+
<context-group purpose="location">
132+
<context context-type="sourcefile">src/placeholders.html</context>
133+
<context context-type="linenumber">1</context>
134+
</context-group>
135+
<note priority="1" from="description">with placeholders</note>
136+
</trans-unit>
93137
</body>
94138
</file>
95139
</xliff>
@@ -122,6 +166,38 @@ const EXPECTED_XLIFF2 = `<?xml version="1.0" encoding="UTF-8" ?>
122166
Welcome</source>
123167
</segment>
124168
</unit>
169+
<unit id="5611534349548281834">
170+
<notes>
171+
<note category="description">with ICU</note>
172+
<note category="location">src/icu.html:1,3</note>
173+
<note category="location">src/icu.html:5</note>
174+
</notes>
175+
<segment>
176+
<source>{VAR_PLURAL, plural, =1 {book} other {books} }</source>
177+
</segment>
178+
</unit>
179+
<unit id="5811701742971715242">
180+
<notes>
181+
<note category="description">with ICU and other things</note>
182+
<note category="location">src/icu.html:4,6</note>
183+
</notes>
184+
<segment>
185+
<source>
186+
foo <ph id="0" equiv="ICU" disp="{ count, plural, =1 {...} other {...}}"/>
187+
</source>
188+
</segment>
189+
</unit>
190+
<unit id="7254052530614200029">
191+
<notes>
192+
<note category="description">with placeholders</note>
193+
<note category="location">src/placeholders.html:1</note>
194+
</notes>
195+
<segment>
196+
<source>Name: <pc id="0" equivStart="START_BOLD_TEXT" equivEnd="CLOSE_BOLD_TEXT" type="fmt" dispStart="&lt;b&gt;" dispEnd="&lt;/b&gt;"><ph id="1" equiv="NAME" disp="{{
197+
name // i18n(ph=&quot;name&quot;)
198+
}}"/></pc></source>
199+
</segment>
200+
</unit>
125201
</file>
126202
</xliff>
127203
`;
@@ -132,7 +208,7 @@ describe('extract_i18n command line', () => {
132208
let write: (fileName: string, content: string) => void;
133209
let errorSpy: jasmine.Spy&((s: string) => void);
134210

135-
function writeConfig(tsconfig: string = '{"extends": "./tsconfig-base.json"}') {
211+
function writeConfig(tsconfig = '{"extends": "./tsconfig-base.json"}') {
136212
write('tsconfig.json', tsconfig);
137213
}
138214

@@ -147,7 +223,7 @@ describe('extract_i18n command line', () => {
147223
basePath = makeTempDir();
148224
write = (fileName: string, content: string) => {
149225
const dir = path.dirname(fileName);
150-
if (dir != '.') {
226+
if (dir !== '.') {
151227
const newDir = path.join(basePath, dir);
152228
if (!fs.existsSync(newDir)) fs.mkdirSync(newDir);
153229
}
@@ -223,14 +299,54 @@ describe('extract_i18n command line', () => {
223299
})
224300
export class BasicCmp3 {}`);
225301

302+
write('src/placeholders.html', `<div i18n="with placeholders">Name: <b>{{
303+
name // i18n(ph="name")
304+
}}</b></div>`);
305+
306+
write('src/placeholder_cmp.ts', `
307+
import {Component} from '@angular/core';
308+
309+
@Component({
310+
selector: 'placeholders',
311+
templateUrl: './placeholders.html',
312+
})
313+
export class PlaceholderCmp { name = 'whatever'; }`);
314+
315+
write('src/icu.html', `<div i18n="with ICU">{
316+
count, plural, =1 {book} other {books}
317+
}</div>
318+
<div i18n="with ICU and other things">
319+
foo { count, plural, =1 {book} other {books} }
320+
</div>`);
321+
322+
write('src/icu_cmp.ts', `
323+
import {Component} from '@angular/core';
324+
325+
@Component({
326+
selector: 'icu',
327+
templateUrl: './icu.html',
328+
})
329+
export class IcuCmp { count = 3; }`);
330+
226331
write('src/module.ts', `
227332
import {NgModule} from '@angular/core';
333+
import {CommonModule} from '@angular/common';
228334
import {BasicCmp1} from './comp1';
229335
import {BasicCmp2, BasicCmp4} from './comp2';
230336
import {BasicCmp3} from './comp3';
337+
import {PlaceholderCmp} from './placeholder_cmp';
338+
import {IcuCmp} from './icu_cmp';
231339
232340
@NgModule({
233-
declarations: [BasicCmp1, BasicCmp2, BasicCmp3, BasicCmp4]
341+
declarations: [
342+
BasicCmp1,
343+
BasicCmp2,
344+
BasicCmp3,
345+
BasicCmp4,
346+
PlaceholderCmp,
347+
IcuCmp,
348+
],
349+
imports: [CommonModule],
234350
})
235351
export class I18nModule {}
236352
`);

packages/compiler/src/i18n/serializers/xmb.ts

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import * as xml from './xml_helper';
1515
const _MESSAGES_TAG = 'messagebundle';
1616
const _MESSAGE_TAG = 'msg';
1717
const _PLACEHOLDER_TAG = 'ph';
18-
const _EXEMPLE_TAG = 'ex';
18+
const _EXAMPLE_TAG = 'ex';
1919
const _SOURCE_TAG = 'source';
2020

2121
const _DOCTYPE = `<!ELEMENT messagebundle (msg)*>
@@ -115,30 +115,45 @@ class _Visitor implements i18n.Visitor {
115115
}
116116

117117
visitTagPlaceholder(ph: i18n.TagPlaceholder, context?: any): xml.Node[] {
118-
const startEx = new xml.Tag(_EXEMPLE_TAG, {}, [new xml.Text(`<${ph.tag}>`)]);
119-
const startTagPh = new xml.Tag(_PLACEHOLDER_TAG, {name: ph.startName}, [startEx]);
118+
const startTagAsText = new xml.Text(`<${ph.tag}>`);
119+
const startEx = new xml.Tag(_EXAMPLE_TAG, {}, [startTagAsText]);
120+
// TC requires PH to have a non empty EX, and uses the text node to show the "original" value.
121+
const startTagPh =
122+
new xml.Tag(_PLACEHOLDER_TAG, {name: ph.startName}, [startEx, startTagAsText]);
120123
if (ph.isVoid) {
121124
// void tags have no children nor closing tags
122125
return [startTagPh];
123126
}
124127

125-
const closeEx = new xml.Tag(_EXEMPLE_TAG, {}, [new xml.Text(`</${ph.tag}>`)]);
126-
const closeTagPh = new xml.Tag(_PLACEHOLDER_TAG, {name: ph.closeName}, [closeEx]);
128+
const closeTagAsText = new xml.Text(`</${ph.tag}>`);
129+
const closeEx = new xml.Tag(_EXAMPLE_TAG, {}, [closeTagAsText]);
130+
// TC requires PH to have a non empty EX, and uses the text node to show the "original" value.
131+
const closeTagPh =
132+
new xml.Tag(_PLACEHOLDER_TAG, {name: ph.closeName}, [closeEx, closeTagAsText]);
127133

128134
return [startTagPh, ...this.serialize(ph.children), closeTagPh];
129135
}
130136

131137
visitPlaceholder(ph: i18n.Placeholder, context?: any): xml.Node[] {
132-
const exTag = new xml.Tag(_EXEMPLE_TAG, {}, [new xml.Text(`{{${ph.value}}}`)]);
133-
return [new xml.Tag(_PLACEHOLDER_TAG, {name: ph.name}, [exTag])];
138+
const interpolationAsText = new xml.Text(`{{${ph.value}}}`);
139+
// Example tag needs to be not-empty for TC.
140+
const exTag = new xml.Tag(_EXAMPLE_TAG, {}, [interpolationAsText]);
141+
return [
142+
// TC requires PH to have a non empty EX, and uses the text node to show the "original" value.
143+
new xml.Tag(_PLACEHOLDER_TAG, {name: ph.name}, [exTag, interpolationAsText])
144+
];
134145
}
135146

136147
visitIcuPlaceholder(ph: i18n.IcuPlaceholder, context?: any): xml.Node[] {
137-
const exTag = new xml.Tag(_EXEMPLE_TAG, {}, [
138-
new xml.Text(
139-
`{${ph.value.expression}, ${ph.value.type}, ${Object.keys(ph.value.cases).map((value: string) => value + ' {...}').join(' ')}}`)
140-
]);
141-
return [new xml.Tag(_PLACEHOLDER_TAG, {name: ph.name}, [exTag])];
148+
const icuExpression = ph.value.expression;
149+
const icuType = ph.value.type;
150+
const icuCases = Object.keys(ph.value.cases).map((value: string) => value + ' {...}').join(' ');
151+
const icuAsText = new xml.Text(`{${icuExpression}, ${icuType}, ${icuCases}}`);
152+
const exTag = new xml.Tag(_EXAMPLE_TAG, {}, [icuAsText]);
153+
return [
154+
// TC requires PH to have a non empty EX, and uses the text node to show the "original" value.
155+
new xml.Tag(_PLACEHOLDER_TAG, {name: ph.name}, [exTag, icuAsText])
156+
];
142157
}
143158

144159
serialize(nodes: i18n.Node[]): xml.Node[] {
@@ -161,7 +176,7 @@ class ExampleVisitor implements xml.IVisitor {
161176
if (tag.name === _PLACEHOLDER_TAG) {
162177
if (!tag.children || tag.children.length == 0) {
163178
const exText = new xml.Text(tag.attrs['name'] || '...');
164-
tag.children = [new xml.Tag(_EXEMPLE_TAG, {}, [exText])];
179+
tag.children = [new xml.Tag(_EXAMPLE_TAG, {}, [exText])];
165180
}
166181
} else if (tag.children) {
167182
tag.children.forEach(node => node.visit(this));

packages/compiler/test/i18n/integration_xmb_xtb_spec.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,32 +91,32 @@ const XTB = `
9191
const XMB = `<msg id="615790887472569365"><source>file.ts:3</source>i18n attribute on tags</msg>
9292
<msg id="3707494640264351337"><source>file.ts:5</source>nested</msg>
9393
<msg id="5539162898278769904" meaning="different meaning"><source>file.ts:7</source>nested</msg>
94-
<msg id="3780349238193953556"><source>file.ts:9</source><source>file.ts:10</source><ph name="START_ITALIC_TEXT"><ex>&lt;i&gt;</ex></ph>with placeholders<ph name="CLOSE_ITALIC_TEXT"><ex>&lt;/i&gt;</ex></ph></msg>
95-
<msg id="5415448997399451992"><source>file.ts:11</source><ph name="START_TAG_DIV"><ex>&lt;div&gt;</ex></ph>with <ph name="START_TAG_DIV"><ex>&lt;div&gt;</ex></ph>nested<ph name="CLOSE_TAG_DIV"><ex>&lt;/div&gt;</ex></ph> placeholders<ph name="CLOSE_TAG_DIV"><ex>&lt;/div&gt;</ex></ph></msg>
94+
<msg id="3780349238193953556"><source>file.ts:9</source><source>file.ts:10</source><ph name="START_ITALIC_TEXT"><ex>&lt;i&gt;</ex>&lt;i&gt;</ph>with placeholders<ph name="CLOSE_ITALIC_TEXT"><ex>&lt;/i&gt;</ex>&lt;/i&gt;</ph></msg>
95+
<msg id="5415448997399451992"><source>file.ts:11</source><ph name="START_TAG_DIV"><ex>&lt;div&gt;</ex>&lt;div&gt;</ph>with <ph name="START_TAG_DIV"><ex>&lt;div&gt;</ex>&lt;div&gt;</ph>nested<ph name="CLOSE_TAG_DIV"><ex>&lt;/div&gt;</ex>&lt;/div&gt;</ph> placeholders<ph name="CLOSE_TAG_DIV"><ex>&lt;/div&gt;</ex>&lt;/div&gt;</ph></msg>
9696
<msg id="5525133077318024839"><source>file.ts:14</source>on not translatable node</msg>
9797
<msg id="2174788525135228764"><source>file.ts:14</source>&lt;b&gt;bold&lt;/b&gt;</msg>
9898
<msg id="8670732454866344690"><source>file.ts:15</source>on translatable node</msg>
99-
<msg id="4593805537723189714"><source>file.ts:20</source><source>file.ts:37</source>{VAR_PLURAL, plural, =0 {zero} =1 {one} =2 {two} other {<ph name="START_BOLD_TEXT"><ex>&lt;b&gt;</ex></ph>many<ph name="CLOSE_BOLD_TEXT"><ex>&lt;/b&gt;</ex></ph>} }</msg>
99+
<msg id="4593805537723189714"><source>file.ts:20</source><source>file.ts:37</source>{VAR_PLURAL, plural, =0 {zero} =1 {one} =2 {two} other {<ph name="START_BOLD_TEXT"><ex>&lt;b&gt;</ex>&lt;b&gt;</ph>many<ph name="CLOSE_BOLD_TEXT"><ex>&lt;/b&gt;</ex>&lt;/b&gt;</ph>} }</msg>
100100
<msg id="703464324060964421"><source>file.ts:22,24</source>
101-
<ph name="ICU"><ex>{sex, select, male {...} female {...} other {...}}</ex></ph>
101+
<ph name="ICU"><ex>{sex, select, male {...} female {...} other {...}}</ex>{sex, select, male {...} female {...} other {...}}</ph>
102102
</msg>
103103
<msg id="5430374139308914421"><source>file.ts:23</source>{VAR_SELECT, select, male {m} female {f} other {other} }</msg>
104104
<msg id="1300564767229037107"><source>file.ts:25,27</source>
105-
<ph name="ICU"><ex>{sexB, select, male {...} female {...}}</ex></ph>
105+
<ph name="ICU"><ex>{sexB, select, male {...} female {...}}</ex>{sexB, select, male {...} female {...}}</ph>
106106
</msg>
107107
<msg id="2500580913783245106"><source>file.ts:26</source>{VAR_SELECT, select, male {m} female {f} }</msg>
108-
<msg id="4851788426695310455"><source>file.ts:29</source><ph name="INTERPOLATION"><ex>{{ &quot;count = &quot; + count }}</ex></ph></msg>
109-
<msg id="9013357158046221374"><source>file.ts:30</source>sex = <ph name="INTERPOLATION"><ex>{{ sex }}</ex></ph></msg>
110-
<msg id="8324617391167353662"><source>file.ts:31</source><ph name="CUSTOM_NAME"><ex>{{ &quot;custom name&quot; //i18n(ph=&quot;CUSTOM_NAME&quot;) }}</ex></ph></msg>
108+
<msg id="4851788426695310455"><source>file.ts:29</source><ph name="INTERPOLATION"><ex>{{ &quot;count = &quot; + count }}</ex>{{ &quot;count = &quot; + count }}</ph></msg>
109+
<msg id="9013357158046221374"><source>file.ts:30</source>sex = <ph name="INTERPOLATION"><ex>{{ sex }}</ex>{{ sex }}</ph></msg>
110+
<msg id="8324617391167353662"><source>file.ts:31</source><ph name="CUSTOM_NAME"><ex>{{ &quot;custom name&quot; //i18n(ph=&quot;CUSTOM_NAME&quot;) }}</ex>{{ &quot;custom name&quot; //i18n(ph=&quot;CUSTOM_NAME&quot;) }}</ph></msg>
111111
<msg id="7685649297917455806"><source>file.ts:36</source><source>file.ts:54</source>in a translatable section</msg>
112112
<msg id="2329001734457059408"><source>file.ts:34,38</source>
113-
<ph name="START_HEADING_LEVEL1"><ex>&lt;h1&gt;</ex></ph>Markers in html comments<ph name="CLOSE_HEADING_LEVEL1"><ex>&lt;/h1&gt;</ex></ph>
114-
<ph name="START_TAG_DIV"><ex>&lt;div&gt;</ex></ph><ph name="CLOSE_TAG_DIV"><ex>&lt;/div&gt;</ex></ph>
115-
<ph name="START_TAG_DIV_1"><ex>&lt;div&gt;</ex></ph><ph name="ICU"><ex>{count, plural, =0 {...} =1 {...} =2 {...} other {...}}</ex></ph><ph name="CLOSE_TAG_DIV"><ex>&lt;/div&gt;</ex></ph>
113+
<ph name="START_HEADING_LEVEL1"><ex>&lt;h1&gt;</ex>&lt;h1&gt;</ph>Markers in html comments<ph name="CLOSE_HEADING_LEVEL1"><ex>&lt;/h1&gt;</ex>&lt;/h1&gt;</ph>
114+
<ph name="START_TAG_DIV"><ex>&lt;div&gt;</ex>&lt;div&gt;</ph><ph name="CLOSE_TAG_DIV"><ex>&lt;/div&gt;</ex>&lt;/div&gt;</ph>
115+
<ph name="START_TAG_DIV_1"><ex>&lt;div&gt;</ex>&lt;div&gt;</ph><ph name="ICU"><ex>{count, plural, =0 {...} =1 {...} =2 {...} other {...}}</ex>{count, plural, =0 {...} =1 {...} =2 {...} other {...}}</ph><ph name="CLOSE_TAG_DIV"><ex>&lt;/div&gt;</ex>&lt;/div&gt;</ph>
116116
</msg>
117-
<msg id="1491627405349178954"><source>file.ts:40</source>it <ph name="START_BOLD_TEXT"><ex>&lt;b&gt;</ex></ph>should<ph name="CLOSE_BOLD_TEXT"><ex>&lt;/b&gt;</ex></ph> work</msg>
117+
<msg id="1491627405349178954"><source>file.ts:40</source>it <ph name="START_BOLD_TEXT"><ex>&lt;b&gt;</ex>&lt;b&gt;</ph>should<ph name="CLOSE_BOLD_TEXT"><ex>&lt;/b&gt;</ex>&lt;/b&gt;</ph> work</msg>
118118
<msg id="i18n16"><source>file.ts:42</source>with an explicit ID</msg>
119-
<msg id="i18n17"><source>file.ts:43</source>{VAR_PLURAL, plural, =0 {zero} =1 {one} =2 {two} other {<ph name="START_BOLD_TEXT"><ex>&lt;b&gt;</ex></ph>many<ph name="CLOSE_BOLD_TEXT"><ex>&lt;/b&gt;</ex></ph>} }</msg>
120-
<msg id="4085484936881858615" desc="desc"><source>file.ts:46,52</source>{VAR_PLURAL, plural, =0 {Found no results} =1 {Found one result} other {Found <ph name="INTERPOLATION"><ex>{{response.getItemsList().length}}</ex></ph> results} }</msg>
121-
<msg id="4035252431381981115"><source>file.ts:54</source>foo<ph name="START_LINK"><ex>&lt;a&gt;</ex></ph>bar<ph name="CLOSE_LINK"><ex>&lt;/a&gt;</ex></ph></msg>
122-
<msg id="5339604010413301604"><source>file.ts:56</source><ph name="MAP_NAME"><ex>{{ &apos;test&apos; //i18n(ph=&quot;map name&quot;) }}</ex></ph></msg>`;
119+
<msg id="i18n17"><source>file.ts:43</source>{VAR_PLURAL, plural, =0 {zero} =1 {one} =2 {two} other {<ph name="START_BOLD_TEXT"><ex>&lt;b&gt;</ex>&lt;b&gt;</ph>many<ph name="CLOSE_BOLD_TEXT"><ex>&lt;/b&gt;</ex>&lt;/b&gt;</ph>} }</msg>
120+
<msg id="4085484936881858615" desc="desc"><source>file.ts:46,52</source>{VAR_PLURAL, plural, =0 {Found no results} =1 {Found one result} other {Found <ph name="INTERPOLATION"><ex>{{response.getItemsList().length}}</ex>{{response.getItemsList().length}}</ph> results} }</msg>
121+
<msg id="4035252431381981115"><source>file.ts:54</source>foo<ph name="START_LINK"><ex>&lt;a&gt;</ex>&lt;a&gt;</ph>bar<ph name="CLOSE_LINK"><ex>&lt;/a&gt;</ex>&lt;/a&gt;</ph></msg>
122+
<msg id="5339604010413301604"><source>file.ts:56</source><ph name="MAP_NAME"><ex>{{ &apos;test&apos; //i18n(ph=&quot;map name&quot;) }}</ex>{{ &apos;test&apos; //i18n(ph=&quot;map name&quot;) }}</ph></msg>`;

0 commit comments

Comments
 (0)