51 lines
1.4 KiB
TypeScript
51 lines
1.4 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
export class CliOptions {
|
|
public basePath: string|null;
|
|
constructor({basePath = null}: {basePath?: string | null}) { this.basePath = basePath; }
|
|
}
|
|
|
|
export class I18nExtractionCliOptions extends CliOptions {
|
|
i18nFormat: string|null;
|
|
locale: string|null;
|
|
outFile: string|null;
|
|
|
|
constructor({i18nFormat = null, locale = null, outFile = null}: {
|
|
i18nFormat?: string,
|
|
locale?: string,
|
|
outFile?: string,
|
|
}) {
|
|
super({});
|
|
this.i18nFormat = i18nFormat;
|
|
this.locale = locale;
|
|
this.outFile = outFile;
|
|
}
|
|
}
|
|
|
|
export class NgcCliOptions extends CliOptions {
|
|
public i18nFormat: string|null;
|
|
public i18nFile: string|null;
|
|
public locale: string|null;
|
|
public missingTranslation: string|null;
|
|
|
|
constructor({i18nFormat = null, i18nFile = null, locale = null, missingTranslation = null,
|
|
basePath = null}: {
|
|
i18nFormat?: string | null,
|
|
i18nFile?: string|null,
|
|
locale?: string|null,
|
|
missingTranslation?: string|null,
|
|
basePath?: string|null
|
|
}) {
|
|
super({basePath: basePath});
|
|
this.i18nFormat = i18nFormat;
|
|
this.i18nFile = i18nFile;
|
|
this.locale = locale;
|
|
this.missingTranslation = missingTranslation;
|
|
}
|
|
}
|