2016-08-12 14:45:36 -07:00
|
|
|
/**
|
|
|
|
* @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;
|
|
|
|
constructor({basePath = null}: {basePath?: string}) { this.basePath = basePath; }
|
|
|
|
}
|
|
|
|
|
|
|
|
export class I18nExtractionCliOptions extends CliOptions {
|
|
|
|
public i18nFormat: string;
|
2017-02-16 17:03:18 +01:00
|
|
|
public locale: string;
|
2016-08-12 14:45:36 -07:00
|
|
|
|
2017-02-16 17:03:18 +01:00
|
|
|
constructor({i18nFormat = null, locale = null}: {i18nFormat?: string, locale: string|null}) {
|
2016-08-12 14:45:36 -07:00
|
|
|
super({});
|
|
|
|
this.i18nFormat = i18nFormat;
|
2017-02-16 17:03:18 +01:00
|
|
|
this.locale = locale;
|
2016-08-12 14:45:36 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class NgcCliOptions extends CliOptions {
|
|
|
|
public i18nFormat: string;
|
|
|
|
public i18nFile: string;
|
|
|
|
public locale: string;
|
|
|
|
|
|
|
|
constructor({i18nFormat = null, i18nFile = null, locale = null, basePath = null}:
|
|
|
|
{i18nFormat?: string, i18nFile?: string, locale?: string, basePath?: string}) {
|
|
|
|
super({basePath: basePath});
|
|
|
|
this.i18nFormat = i18nFormat;
|
|
|
|
this.i18nFile = i18nFile;
|
|
|
|
this.locale = locale;
|
|
|
|
}
|
|
|
|
}
|