diff --git a/src/cli/cli.ts b/src/cli/cli.ts index 33a94f1..f3ea9c8 100755 --- a/src/cli/cli.ts +++ b/src/cli/cli.ts @@ -30,7 +30,7 @@ export const cli = yargs }) .option('patterns', { alias: 'p', - describe: 'Input file patterns to parse', + describe: 'Extract strings from the following file patterns', type: 'array', default: ['/**/*.html', '/**/*.ts'] }) @@ -56,7 +56,7 @@ export const cli = yargs }) .option('sort', { alias: 's', - describe: 'Sort translations in the output file in alphabetical order', + describe: 'Sort strings in alphabetical order when saving', default: false, type: 'boolean' }) diff --git a/src/cli/tasks/extract.task.ts b/src/cli/tasks/extract.task.ts index 17fcc8d..d3dec1e 100644 --- a/src/cli/tasks/extract.task.ts +++ b/src/cli/tasks/extract.task.ts @@ -95,7 +95,7 @@ export class ExtractTask implements TaskInterface { const normalizedOutput: string = path.resolve(output); let dir: string = normalizedOutput; - let filename: string = `template.${this._compiler.extension}`; + let filename: string = `strings.${this._compiler.extension}`; if (!fs.existsSync(normalizedOutput) || !fs.statSync(normalizedOutput).isDirectory()) { dir = path.dirname(normalizedOutput); filename = path.basename(normalizedOutput);