61 lines
1.9 KiB
JSON
61 lines
1.9 KiB
JSON
{
|
|
"name": "extract-i18n",
|
|
"implementation": "/packages/angular/src/executors/extract-i18n/extract-i18n.impl.ts",
|
|
"schema": {
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"title": "Schema for Nx extract-i18n Executor",
|
|
"description": "Extracts i18n messages from source code.",
|
|
"outputCapture": "direct-nodejs",
|
|
"type": "object",
|
|
"properties": {
|
|
"buildTarget": {
|
|
"type": "string",
|
|
"description": "A builder target to extract i18n messages in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
|
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
|
|
},
|
|
"format": {
|
|
"type": "string",
|
|
"description": "Output format for the generated file.",
|
|
"default": "xlf",
|
|
"enum": [
|
|
"xmb",
|
|
"xlf",
|
|
"xlif",
|
|
"xliff",
|
|
"xlf2",
|
|
"xliff2",
|
|
"json",
|
|
"arb",
|
|
"legacy-migrate"
|
|
]
|
|
},
|
|
"progress": {
|
|
"type": "boolean",
|
|
"description": "Log progress to the console.",
|
|
"default": true
|
|
},
|
|
"outputPath": {
|
|
"type": "string",
|
|
"description": "Path where output will be placed."
|
|
},
|
|
"outFile": {
|
|
"type": "string",
|
|
"description": "Name of the file to output."
|
|
},
|
|
"i18nDuplicateTranslation": {
|
|
"type": "string",
|
|
"description": "How to handle duplicate translations. _Note: this is only available in Angular 20.0.0 and above._",
|
|
"enum": ["error", "warning", "ignore"]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["buildTarget"],
|
|
"presets": []
|
|
},
|
|
"description": "Extracts i18n messages from source code.",
|
|
"aliases": [],
|
|
"hidden": false,
|
|
"path": "/packages/angular/src/executors/extract-i18n/schema.json",
|
|
"type": "executor"
|
|
}
|