feat(compiler-cli): add a locale
option to ng-xi18n
Fixes #12303 Closes #14537
This commit is contained in:
@ -12,10 +12,12 @@ export class CliOptions {
|
||||
|
||||
export class I18nExtractionCliOptions extends CliOptions {
|
||||
public i18nFormat: string;
|
||||
public locale: string;
|
||||
|
||||
constructor({i18nFormat = null}: {i18nFormat?: string}) {
|
||||
constructor({i18nFormat = null, locale = null}: {i18nFormat?: string, locale: string|null}) {
|
||||
super({});
|
||||
this.i18nFormat = i18nFormat;
|
||||
this.locale = locale;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user