64 lines
2.1 KiB
JavaScript
Executable File
64 lines
2.1 KiB
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
import {createRequire as __cjsCompatRequire} from 'module';
|
|
const require = __cjsCompatRequire(import.meta.url);
|
|
const __ESM_IMPORT_META_URL__ = import.meta.url;
|
|
|
|
import {
|
|
main,
|
|
readCommandLineAndConfiguration
|
|
} from "../../chunk-E2GZPTV2.js";
|
|
import {
|
|
EmitFlags
|
|
} from "../../chunk-7BIXVSI3.js";
|
|
import "../../chunk-QYEU7OV5.js";
|
|
import "../../chunk-ALSLKTUB.js";
|
|
import "../../chunk-TOW3O33K.js";
|
|
import "../../chunk-DSVWG4QJ.js";
|
|
import {
|
|
NodeJSFileSystem,
|
|
setFileSystem
|
|
} from "../../chunk-E7DPJFUS.js";
|
|
import "../../chunk-4F26FKLW.js";
|
|
import "../../chunk-NDREJTCS.js";
|
|
|
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.mjs
|
|
import "reflect-metadata";
|
|
|
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/extract_i18n.mjs
|
|
import yargs from "yargs";
|
|
function mainXi18n(args2, consoleError = console.error) {
|
|
const config = readXi18nCommandLineAndConfiguration(args2);
|
|
return main(args2, consoleError, config, void 0, void 0, void 0);
|
|
}
|
|
function readXi18nCommandLineAndConfiguration(args2) {
|
|
const options = {};
|
|
const parsedArgs = yargs(args2).option("i18nFormat", { type: "string" }).option("locale", { type: "string" }).option("outFile", { type: "string" }).parseSync();
|
|
if (parsedArgs.outFile)
|
|
options.i18nOutFile = parsedArgs.outFile;
|
|
if (parsedArgs.i18nFormat)
|
|
options.i18nOutFormat = parsedArgs.i18nFormat;
|
|
if (parsedArgs.locale)
|
|
options.i18nOutLocale = parsedArgs.locale;
|
|
const config = readCommandLineAndConfiguration(args2, options, [
|
|
"outFile",
|
|
"i18nFormat",
|
|
"locale"
|
|
]);
|
|
return { ...config, emitFlags: EmitFlags.I18nBundle };
|
|
}
|
|
|
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.mjs
|
|
process.title = "Angular i18n Message Extractor (ng-xi18n)";
|
|
var args = process.argv.slice(2);
|
|
setFileSystem(new NodeJSFileSystem());
|
|
process.exitCode = mainXi18n(args);
|
|
/**
|
|
* @license
|
|
* Copyright Google LLC 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
|
|
*/
|
|
//# sourceMappingURL=ng_xi18n.js.map
|