universal-dev-standards 3.5.0-beta.26 → 3.5.0-beta.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/uds.js +9 -2
- package/package.json +1 -1
- package/src/commands/check.js +155 -141
- package/src/commands/configure.js +56 -53
- package/src/commands/init.js +72 -76
- package/src/commands/list.js +14 -11
- package/src/commands/skills.js +15 -12
- package/src/commands/update.js +82 -74
- package/src/i18n/messages.js +1489 -2
- package/src/prompts/integrations.js +55 -39
- package/standards-registry.json +3 -3
package/bin/uds.js
CHANGED
|
@@ -8,6 +8,7 @@ import { checkCommand } from '../src/commands/check.js';
|
|
|
8
8
|
import { updateCommand } from '../src/commands/update.js';
|
|
9
9
|
import { configureCommand } from '../src/commands/configure.js';
|
|
10
10
|
import { skillsCommand } from '../src/commands/skills.js';
|
|
11
|
+
import { setLanguage, detectLanguage } from '../src/i18n/messages.js';
|
|
11
12
|
|
|
12
13
|
const require = createRequire(import.meta.url);
|
|
13
14
|
const pkg = require('../package.json');
|
|
@@ -15,7 +16,14 @@ const pkg = require('../package.json');
|
|
|
15
16
|
program
|
|
16
17
|
.name('uds')
|
|
17
18
|
.description('CLI tool for adopting Universal Development Standards')
|
|
18
|
-
.version(pkg.version)
|
|
19
|
+
.version(pkg.version)
|
|
20
|
+
.option('--ui-lang <lang>', 'UI language (en, zh-tw, auto) [default: auto]')
|
|
21
|
+
.hook('preAction', (thisCommand) => {
|
|
22
|
+
const opts = thisCommand.opts();
|
|
23
|
+
const uiLang = opts.uiLang || 'auto';
|
|
24
|
+
const detectedLang = uiLang === 'auto' ? detectLanguage(null) : uiLang;
|
|
25
|
+
setLanguage(detectedLang);
|
|
26
|
+
});
|
|
19
27
|
|
|
20
28
|
program
|
|
21
29
|
.command('list')
|
|
@@ -39,7 +47,6 @@ program
|
|
|
39
47
|
.option('--locale <locale>', 'Locale extension (zh-tw)')
|
|
40
48
|
.option('--skills-location <location>', 'Skills location (marketplace, user, project, none) [default: marketplace]')
|
|
41
49
|
.option('--content-mode <mode>', 'Content mode for integration files (minimal, index, full) [default: index]')
|
|
42
|
-
.option('--ui-lang <lang>', 'UI language for prompts (en, zh-tw, auto) [default: auto]')
|
|
43
50
|
.option('-y, --yes', 'Use defaults, skip interactive prompts')
|
|
44
51
|
.option('-E, --experimental', 'Enable experimental features (methodology)')
|
|
45
52
|
.action(initCommand);
|