fix: 修改翻译脚本

This commit is contained in:
Zhicheng Wang 2018-10-27 09:22:46 +08:00
parent 9342e862f5
commit 34b8180183
1 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,8 @@
#!/usr/bin/env ts-node
import { dirs } from '../dirs';
import * as path from 'path';
import { translateFile } from '../translate';
const filename = 'guide/reactive-forms.md';
translateFile(__dirname + '/../../../../../angular/aio/content/' + filename, dirs.content + filename);
const filename = path.join(dirs.content, process.argv[2]);
translateFile(filename, filename);