@@ -2,7 +2,6 @@ import { getGlobalVariable } from '../../utils/env';
2
2
import {
3
3
appendToFile ,
4
4
copyFile ,
5
- expectFileToExist ,
6
5
expectFileToMatch ,
7
6
replaceInFile ,
8
7
writeFile ,
@@ -15,10 +14,6 @@ import { readNgVersion } from '../../utils/version';
15
14
const snapshots = require ( '../../ng-snapshot/package.json' ) ;
16
15
17
16
export default async function ( ) {
18
- // TEMP: disable pending i18n updates
19
- // TODO: when re-enabling, use setupI18nConfig and helpers like other i18n tests.
20
- return ;
21
-
22
17
const isSnapshotBuild = getGlobalVariable ( 'argv' ) [ 'ng-snapshots' ] ;
23
18
24
19
await updateJsonFile ( 'package.json' , ( packageJson ) => {
@@ -79,7 +74,6 @@ export default async function () {
79
74
serverOptions . localize = true ;
80
75
81
76
// Add locale definitions to the project
82
- // tslint:disable-next-line: no-any
83
77
const i18n : Record < string , any > = ( appProject . i18n = { locales : { } } ) ;
84
78
for ( const { lang } of langTranslations ) {
85
79
if ( lang == 'en-US' ) {
@@ -105,7 +99,6 @@ export default async function () {
105
99
106
100
// Extract the translation messages and copy them for each language.
107
101
await ng ( 'extract-i18n' , '--output-path=src/locale' ) ;
108
- await expectFileToExist ( 'src/locale/messages.xlf' ) ;
109
102
await expectFileToMatch ( 'src/locale/messages.xlf' , `source-language="en-US"` ) ;
110
103
await expectFileToMatch ( 'src/locale/messages.xlf' , `An introduction header for this sample` ) ;
111
104
@@ -131,7 +124,6 @@ export default async function () {
131
124
132
125
// Build each locale and verify the output.
133
126
await ng ( 'run' , 'test-project:app-shell' ) ;
134
-
135
127
for ( const { lang, translation } of langTranslations ) {
136
128
await expectFileToMatch ( `${ browserBaseDir } /${ lang } /index.html` , translation ) ;
137
129
}
0 commit comments