feat(defaults): change default promptLanguage from zh to auto

New installs default to auto-detect language from the document rather
than hardcoding Chinese output. Matches the uiLanguage default of auto.

https://claude.ai/code/session_012cK5rUGQvqkuxUZ59x7dLn
This commit is contained in:
Claude 2026-04-29 08:18:41 +00:00
parent 06a416569a
commit 12906bda7c
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ export const DEFAULT_SETTINGS: PluginSettings = {
apiMaxTokens: 4096,
maxDocChars: MAX_DOC_CHARS,
maxCacheEntries: DEFAULT_MAX_CACHE_ENTRIES,
promptLanguage: 'zh',
promptLanguage: 'auto',
minCards: 5,
maxCards: 15,
customSystemPrompt: '',

View file

@ -83,7 +83,7 @@ const { assert, requireBundledModule, cleanup } = require('./direct-test-setup')
// ── buildPrompts: invalid promptLanguage falls back ──
const badLang = prompt.buildPrompts('doc', { ...base, promptLanguage: 'xyz' });
assert.ok(badLang.system.includes('中文'), 'invalid promptLanguage falls back to zh default');
assert.ok(badLang.system.includes('main language'), 'invalid promptLanguage falls back to auto default');
// ── buildPrompts: card count normalization ──
// 0 is falsy so || picks DEFAULT (5), then Math.max(1, 5) = 5