ng-xi18nツールを使用してi18nファイルを作成します。 "./node_modules/.bin/ng-xi18n"
messages.xlfファイルが作成されます。問題は、すべてのコードがコンパイルされていることです。 js、js.map、metadata.jsonファイルが作成されますが、私はそれらを必要としません。 joe、js.map、metadta.jsonファイルを使わずにmessages.xlfを作成するには?コード編集なしの角2インターナリゼーション(ng-xi18nツール)
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"noEmitHelpers": true,
"strictNullChecks": false,
"baseUrl": "./src",
"paths": {
},
"lib": [
"dom",
"es6"
],
"types": [
"hammerjs",
"jasmine",
"node",
"protractor",
"selenium-webdriver",
"source-map",
"uglify-js",
"webpack"
]
},
"exclude": [
"node_modules",
"dist"
],
"awesomeTypescriptLoaderOptions": {
"forkChecker": true,
"useWebpackText": true
},
"compileOnSave": false,
"buildOnSave": false,
"atom": { "rewriteTsconfig": false }
}
コンパイラ[問題](https://github.com/angular/angular/pull/14115)です。角度4で固定されます – Luka