fix(compiler-cli): use --locale
parameter for transformers (#18988)
PR Close #18988
This commit is contained in:

committed by
Miško Hevery

parent
590b8052fe
commit
22c409029c
@ -97,6 +97,9 @@ function readCommandLineAndConfiguration(args: any): ParsedConfiguration {
|
||||
const allDiagnostics: Diagnostics = [];
|
||||
const config = readConfiguration(project);
|
||||
const options = mergeCommandLineParams(args, config.options);
|
||||
if (options.locale) {
|
||||
options.i18nInLocale = options.locale;
|
||||
}
|
||||
return {project, rootNames: config.rootNames, options, errors: config.errors};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user