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);