feat: Support custom response language (#510)
* feat: Support custom response language * fix: Add default values for response language in config-manager.js * chore: Update configuration file and add default response language settings * feat: Support MCP/CLI custom response language * chore: Update test comments to English for consistency * docs: Auto-update and format models.md * chore: fix format --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com>
This commit is contained in:
@@ -766,6 +766,44 @@ function createProjectStructure(
|
||||
}
|
||||
// =====================================
|
||||
|
||||
// === Add Response Language Step ===
|
||||
if (!isSilentMode() && !dryRun && !options?.yes) {
|
||||
console.log(
|
||||
boxen(chalk.cyan('Configuring Response Language...'), {
|
||||
padding: 0.5,
|
||||
margin: { top: 1, bottom: 0.5 },
|
||||
borderStyle: 'round',
|
||||
borderColor: 'blue'
|
||||
})
|
||||
);
|
||||
log(
|
||||
'info',
|
||||
'Running interactive response language setup. Please input your preferred language.'
|
||||
);
|
||||
try {
|
||||
execSync('npx task-master lang --setup', {
|
||||
stdio: 'inherit',
|
||||
cwd: targetDir
|
||||
});
|
||||
log('success', 'Response Language configured.');
|
||||
} catch (error) {
|
||||
log('error', 'Failed to configure response language:', error.message);
|
||||
log('warn', 'You may need to run "task-master lang --setup" manually.');
|
||||
}
|
||||
} else if (isSilentMode() && !dryRun) {
|
||||
log(
|
||||
'info',
|
||||
'Skipping interactive response language setup in silent (MCP) mode.'
|
||||
);
|
||||
log(
|
||||
'warn',
|
||||
'Please configure response language using "task-master models --set-response-language" or the "models" MCP tool.'
|
||||
);
|
||||
} else if (dryRun) {
|
||||
log('info', 'DRY RUN: Skipping interactive response language setup.');
|
||||
}
|
||||
// =====================================
|
||||
|
||||
// === Add Model Configuration Step ===
|
||||
if (!isSilentMode() && !dryRun && !options?.yes) {
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user