UNPKG

1.65 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const Command = require('../ember-cli/lib/models/command');
4const Xi18nCommand = Command.extend({
5 name: 'xi18n',
6 description: 'Extracts i18n messages from source code.',
7 works: 'insideProject',
8 availableOptions: [
9 {
10 name: 'i18n-format',
11 type: String,
12 default: 'xlf',
13 aliases: ['f', { 'xmb': 'xmb' }, { 'xlf': 'xlf' }, { 'xliff': 'xlf' }],
14 description: 'Output format for the generated file.'
15 },
16 {
17 name: 'output-path',
18 type: 'Path',
19 default: null,
20 aliases: ['op'],
21 description: 'Path where output will be placed.'
22 },
23 {
24 name: 'verbose',
25 type: Boolean,
26 default: false,
27 description: 'Adds more details to output logging.'
28 },
29 {
30 name: 'progress',
31 type: Boolean,
32 default: true,
33 description: 'Log progress to the console while running.'
34 },
35 {
36 name: 'app',
37 type: String,
38 aliases: ['a'],
39 description: 'Specifies app name to use.'
40 }
41 ],
42 run: function (commandOptions) {
43 const { Extracti18nTask } = require('../tasks/extract-i18n');
44 const xi18nTask = new Extracti18nTask({
45 ui: this.ui,
46 project: this.project
47 });
48 return xi18nTask.run(commandOptions);
49 }
50});
51exports.default = Xi18nCommand;
52//# sourceMappingURL=/users/hans/sources/angular-cli/commands/xi18n.js.map
\No newline at end of file