From 34b81801836abb2ab85c5bb7750a9b969c7c1861 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Sat, 27 Oct 2018 09:22:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=BF=BB=E8=AF=91?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/tools/translator/bin/translate-one.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aio/tools/translator/bin/translate-one.ts b/aio/tools/translator/bin/translate-one.ts index 69d48b7117..31edeef06c 100644 --- a/aio/tools/translator/bin/translate-one.ts +++ b/aio/tools/translator/bin/translate-one.ts @@ -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);