diff --git a/packages/compiler-cli/integrationtest/test/i18n_spec.ts b/packages/compiler-cli/integrationtest/test/i18n_spec.ts index 533141fa91469..dde96ecbe1ee6 100644 --- a/packages/compiler-cli/integrationtest/test/i18n_spec.ts +++ b/packages/compiler-cli/integrationtest/test/i18n_spec.ts @@ -47,7 +47,6 @@ const EXPECTED_XLIFF = ` translate me - src/basic.ts 1 @@ -57,7 +56,6 @@ const EXPECTED_XLIFF = ` Welcome - src/basic.ts 5 @@ -70,7 +68,6 @@ const EXPECTED_XLIFF = ` other-3rdP-component multi-lines - node_modules/third_party/other_comp.d.ts 1 diff --git a/packages/compiler/src/i18n/serializers/xliff.ts b/packages/compiler/src/i18n/serializers/xliff.ts index f64e9a58f15df..5e054f468e55c 100644 --- a/packages/compiler/src/i18n/serializers/xliff.ts +++ b/packages/compiler/src/i18n/serializers/xliff.ts @@ -53,7 +53,7 @@ export class Xliff extends Serializer { const transUnit = new xml.Tag(_UNIT_TAG, {id: message.id, datatype: 'html'}); transUnit.children.push( new xml.CR(8), new xml.Tag(_SOURCE_TAG, {}, visitor.serialize(message.nodes)), - new xml.CR(8), new xml.Tag(_TARGET_TAG), ...contextTags); + ...contextTags); if (message.description) { transUnit.children.push( diff --git a/packages/compiler/test/i18n/integration_xliff_spec.ts b/packages/compiler/test/i18n/integration_xliff_spec.ts index a71c95be2e83b..7f2a394e5645d 100644 --- a/packages/compiler/test/i18n/integration_xliff_spec.ts +++ b/packages/compiler/test/i18n/integration_xliff_spec.ts @@ -162,7 +162,6 @@ const XLIFF_TOMERGE = ` const XLIFF_EXTRACTED = ` i18n attribute on tags - file.ts 3 @@ -170,7 +169,6 @@ const XLIFF_EXTRACTED = ` nested - file.ts 5 @@ -178,7 +176,6 @@ const XLIFF_EXTRACTED = ` nested - file.ts 7 @@ -187,7 +184,6 @@ const XLIFF_EXTRACTED = ` with placeholders - file.ts 9 @@ -199,7 +195,6 @@ const XLIFF_EXTRACTED = ` on not translatable node - file.ts 13 @@ -207,7 +202,6 @@ const XLIFF_EXTRACTED = ` on translatable node - file.ts 14 @@ -215,7 +209,6 @@ const XLIFF_EXTRACTED = ` {VAR_PLURAL, plural, =0 {zero} =1 {one} =2 {two} other {many} } - file.ts 19 @@ -229,7 +222,6 @@ const XLIFF_EXTRACTED = ` - file.ts 21 @@ -237,7 +229,6 @@ const XLIFF_EXTRACTED = ` {VAR_SELECT, select, m {male} f {female} } - file.ts 22 @@ -247,7 +238,6 @@ const XLIFF_EXTRACTED = ` - file.ts 24 @@ -255,7 +245,6 @@ const XLIFF_EXTRACTED = ` {VAR_SELECT, select, m {male} f {female} } - file.ts 25 @@ -263,7 +252,6 @@ const XLIFF_EXTRACTED = ` - file.ts 28 @@ -271,7 +259,6 @@ const XLIFF_EXTRACTED = ` sex = - file.ts 29 @@ -279,7 +266,6 @@ const XLIFF_EXTRACTED = ` - file.ts 30 @@ -287,7 +273,6 @@ const XLIFF_EXTRACTED = ` in a translatable section - file.ts 35 @@ -303,7 +288,6 @@ const XLIFF_EXTRACTED = ` - file.ts 33 @@ -311,7 +295,6 @@ const XLIFF_EXTRACTED = ` it should work - file.ts 39 @@ -319,7 +302,6 @@ const XLIFF_EXTRACTED = ` with an explicit ID - file.ts 41 @@ -327,7 +309,6 @@ const XLIFF_EXTRACTED = ` {VAR_PLURAL, plural, =0 {zero} =1 {one} =2 {two} other {many} } - file.ts 42 @@ -335,7 +316,6 @@ const XLIFF_EXTRACTED = ` {VAR_PLURAL, plural, =0 {Found no results} =1 {Found one result} other {Found results} } - file.ts 45 @@ -344,7 +324,6 @@ const XLIFF_EXTRACTED = ` foobar - file.ts 53 @@ -352,7 +331,6 @@ const XLIFF_EXTRACTED = ` - file.ts 55 diff --git a/packages/compiler/test/i18n/serializers/xliff_spec.ts b/packages/compiler/test/i18n/serializers/xliff_spec.ts index 56e929f3967ac..1a1071abf11c0 100644 --- a/packages/compiler/test/i18n/serializers/xliff_spec.ts +++ b/packages/compiler/test/i18n/serializers/xliff_spec.ts @@ -35,7 +35,6 @@ const WRITE_XLIFF = ` translatable attribute - file.ts 2 @@ -43,7 +42,6 @@ const WRITE_XLIFF = ` translatable element with placeholders - file.ts 3 @@ -51,7 +49,6 @@ const WRITE_XLIFF = ` {VAR_PLURAL, plural, =0 {test} } - file.ts 4 @@ -59,7 +56,6 @@ const WRITE_XLIFF = ` foo - file.ts 5 @@ -73,7 +69,6 @@ const WRITE_XLIFF = ` foo - file.ts 7 @@ -83,7 +78,6 @@ const WRITE_XLIFF = ` foo - file.ts 8 @@ -91,7 +85,6 @@ const WRITE_XLIFF = ` - file.ts 9 @@ -100,7 +93,6 @@ const WRITE_XLIFF = ` {VAR_PLURAL, plural, =0 {{VAR_SELECT, select, other {deeply nested} } } } - file.ts 10 @@ -108,7 +100,6 @@ const WRITE_XLIFF = ` {VAR_PLURAL, plural, =0 {{VAR_SELECT, select, other {deeply nested} } } } - file.ts 11 @@ -117,7 +108,6 @@ const WRITE_XLIFF = ` multi lines - file.ts 12