vault backup: 2026-04-19 14:16:41

This commit is contained in:
2026-04-19 14:16:41 +08:00
parent 505c2214a0
commit e4676d1c77
12 changed files with 1591 additions and 1355 deletions

View File

@@ -7,7 +7,7 @@
"author": "",
"mode": 0,
"automaticUpdate": true,
"llmApi": 1,
"llmApi": "openai",
"llmResponseFormat": "text",
"llmLanguage": "简体中文",
"llmStyle": "无",
@@ -17,9 +17,6 @@
"llmRegexPrompt": "# Role & Context\nYou are an expert Software Localization Specialist & Technical Translator.\nYour task is to translate extracted text snippets from source code and UI elements into the target language, while keeping all code-level syntax 100% intact.\n\n# Core Output Rules (CRITICAL: Failure will crash the system)\n1. ONLY return a valid JSON array string.\n - ❌ NO Markdown formatting (e.g., ```json).\n - ❌ NO conversational text.\n - ✅ Starts exactly with `[` and ends with `]`.\n2. Array Structure & Integrity\n - Input: Array of objects with `i` (ID) and `s` (Source).\n - Output: Array of objects with EXACTLY two fields: `i` and `t` (Target/Translation).\n - The output MUST be an array of objects matching the input length exactly.\n - The `i` fields MUST be kept EXACTLY as they are. DO NOT MODIFY OR OMIT THEM.\n\n# Translation & Safety Rules (CRITICAL)\n1. Absolute Code Protection (Highest Priority)\n - DO NOT translate any non-natural language syntax. This includes:\n * `camelCase` or `snake_case` variables\n * Interpolated variables and formatters (e.g., `${filename}`, `{{val}}`, `%s`, `{0}`)\n * HTML/XML tags (e.g., `<span>`, `<br>`)\n * URLs, file paths, and regex symbols\n - Example: `Error occurred in ${moduleName}` -> `${moduleName} 中发生错误` (Variable preserved).\n2. Pure Code Key Recognition\n - If the `s` string looks entirely like a code key (e.g., `user_not_found_error`), DO NOT force a translation. Output it exactly as it is in the `t` field.\n3. Punctuation & Spacing Alignment\n - Preserve punctuation and spaces exactly.\n4. Unicode Encoding Preservation (CRITICAL)\n - If the source string `s` is formatted using Unicode escape sequences (e.g., `\\uXXXX`), your translated text `t` MUST ALSO be converted entirely into Unicode escape sequences.\n - ❌ Never return standard plain text if the source is Unicode-escaped.\n - Example: If `s` is `Hello` (\"Hello\"), and the translation is \"Hola\", `t` must be `Hola`.\n\n# Translation Requirements\n- **Target Language:** {{targetLanguage}}\n- **Translation Style:** {{translationStyle}}\n- Output must read naturally in the {{targetLanguage}} while adhering strictly to software UI and technical documentation conventions.\n\n# Example\n[Input]\n[{\"i\":101, \"s\":\"Settings\"}, {\"i\":102, \"s\":\"Save changes\"}, {\"i\":103, \"s\":\"Open\"}]\n\n[Output]\n[{\"i\":101, \"t\":\"设置\"}, {\"i\":102, \"t\":\"保存更改\"}, {\"i\":103, \"t\":\"打开\"}]\n\n{{glossarySection}}\n\n# Quality Checklist (Self-Verify Before Output)\n- [ ] Is the output a totally naked JSON array?\n- [ ] Does each object ONLY contain `i` and `t`?\n- [ ] Are all `i` fields present and unmodified?\n- [ ] Are all code variables (`${...}`) completely intact in the `t`?\n- [ ] If `s` used Unicode escapes (`\\uXXXX`), is `t` correctly encoded as Unicode escapes?",
"llmAstPrompt": "# Role & Context\nYou are an expert Software Localization Specialist & UI Translator.\nYour task is to translate abstract syntax tree (AST) text nodes from a user interface into the target language, while keeping all code-level structure and syntax completely intact.\n\n# Core Output Rules (CRITICAL: Failure will crash the system)\n1. ONLY return a valid JSON array string.\n - ❌ NO Markdown formatting (e.g., ```json).\n - ❌ NO conversational text.\n - ✅ Starts exactly with `[` and ends with `]`.\n2. Property Gatekeeper (CRITICAL)\n - Input structure: `i` (ID), `s` (Source), `y` (Type), and `n` (Name).\n - Output structure: Return objects with EXACTLY two fields: `i` and `t` (Target/Translation).\n - DO NOT MODIFY `i`.\n - The `y` (type) and `n` (name) fields are for YOUR CONTEXT ONLY. Do not include them in output.\n\n# Translation & Safety Rules (CRITICAL)\n1. Absolute Code Protection\n - DO NOT translate any non-natural language syntax (e.g., `{{count}}`, `<span/>`, `\\n`).\n2. Context Awareness via y & n Fields\n - Use the `y` (node type) and `n` (node name) fields to infer context.\n - Example: `y=\"Button\"`, `n=\"submit\"` -> Translate as an action verb.\n3. Pure Code Key Handling\n - If `s` is a code key, return it as-is in `t`.\n\n# Translation Requirements\n- **Target Language:** {{targetLanguage}}\n- **Translation Style:** {{translationStyle}}\n\n{{glossarySection}}\n\n# Example\n[Input]\n[{\"i\":50, \"s\":\"Open\", \"y\":\"Button\", \"n\":\"openFile\"}, {\"i\":51, \"s\":\"⇧ Shift\", \"y\":\"Text\", \"n\":\"shortcut\"}]\n\n[Output]\n[{\"i\":50, \"t\":\"打开\"}, {\"i\":51, \"t\":\"⇧ Shift\"}]\n\n# Quality Checklist (Self-Verify Before Output)\n- [ ] Is the output a totally naked JSON array?\n- [ ] Does each object ONLY contain `i` and `t`?\n- [ ] Are `i` fields unaltered?\n- [ ] Are code variables/tags intact in `t`?",
"llmThemePrompt": "# Role & Context\nYou are an expert CSS Theme Localizer & UI Translator.\nYour task is to translate Obsidian theme setting labels and descriptions into the target language.\n\n# Core Output Rules (CRITICAL: Failure will crash the system)\n1. ONLY return a valid JSON array string.\n - ❌ NO Markdown formatting (e.g., ```json).\n - ❌ NO conversational text.\n - ✅ Starts exactly with `[` and ends with `]`.\n2. Property Gatekeeper (CRITICAL)\n - Input structure: `i` (ID), `s` (Source), `y` (Type).\n - Output structure: Return objects with EXACTLY two fields: `i` and `t` (Target/Translation).\n - DO NOT MODIFY `i`.\n - The `y` (type) field is for YOUR CONTEXT ONLY. Do not include it in output.\n\n# Translation & Safety Rules (CRITICAL)\n1. Context Awareness via y Field\n - `y` value tells you if text is a `name`, `title`, `description`, `label`, or `markdown`.\n2. Code Protection\n - DO NOT translate CSS class names or variables.\n3. Brevity for UI\n - Keep translations concise for settings UI.\n4. Unicode Encoding Preservation (CRITICAL)\n - If the source string `s` is formatted using Unicode escape sequences (e.g., `\\uXXXX`), your translated text `t` MUST ALSO be converted entirely into Unicode escape sequences.\n - ❌ Never return standard plain text if the source is Unicode-escaped.\n - Example: If `s` is `\\u0048\\u0065\\u006c\\u006c\\u006f` (\"Hello\"), and the translation is \"Hola\", `t` must be `\\u0048\\u006f\\u006c\\u0061`.\n\n# Translation Requirements\n- **Target Language:** {{targetLanguage}}\n- **Translation Style:** {{translationStyle}}\n\n{{glossarySection}}\n\n# Example\n[Input]\n[{\"i\":201, \"s\":\"Accent color\", \"y\":\"name\"}, {\"i\":202, \"s\":\"The color of active elements.\", \"y\":\"description\"}]\n\n[Output]\n[{\"i\":201, \"t\":\"强调色\"}, {\"i\":202, \"t\":\"激活状态元素的颜色。\"}]\n\n# Quality Checklist (Self-Verify Before Output)\n- [ ] Is the output a totally naked JSON array?\n- [ ] Does each object ONLY contain `i` and `t`?\n- [ ] Are `i` fields unaltered?\n- [ ] If `s` used Unicode escapes (`\\uXXXX`), is `t` correctly encoded as Unicode escapes?",
"llmOpenaiUrl": "",
"llmOpenaiKey": "",
"llmOpenaiModel": "gpt-4o-mini",
"llmOpenaiProfiles": [
{
"id": "default",
@@ -33,11 +30,6 @@
}
],
"llmOpenaiActiveProfileId": "default",
"llmUseCustomPrice": true,
"llmPriceInputCustom": 0,
"llmPriceOutputCustom": 0,
"llmGeminiKey": "",
"llmGeminiModel": "gemini-2.0-flash",
"llmGeminiProfiles": [
{
"id": "default",
@@ -51,8 +43,6 @@
}
],
"llmGeminiActiveProfileId": "default",
"llmOllamaUrl": "http://localhost:11434",
"llmOllamaModel": "",
"llmOllamaProfiles": [
{
"id": "default",
@@ -66,8 +56,6 @@
}
],
"llmOllamaActiveProfileId": "default",
"llmDeepseekKey": "",
"llmDeepseekModel": "deepseek-chat",
"llmDeepseekProfiles": [
{
"id": "default",
@@ -81,8 +69,6 @@
}
],
"llmDeepseekActiveProfileId": "default",
"llmZhipuKey": "",
"llmZhipuModel": "glm-4-flash",
"llmZhipuProfiles": [
{
"id": "default",
@@ -96,8 +82,6 @@
}
],
"llmZhipuActiveProfileId": "default",
"llmMoonshotKey": "",
"llmMoonshotModel": "moonshot-v1-8k",
"llmMoonshotProfiles": [
{
"id": "default",
@@ -111,8 +95,6 @@
}
],
"llmMoonshotActiveProfileId": "default",
"llmAliyunKey": "",
"llmAliyunModel": "qwen-plus",
"llmAliyunProfiles": [
{
"id": "default",
@@ -126,8 +108,6 @@
}
],
"llmAliyunActiveProfileId": "default",
"llmBaiduKey": "",
"llmBaiduModel": "ernie-4.0-8k-preview",
"llmBaiduProfiles": [
{
"id": "default",
@@ -141,8 +121,6 @@
}
],
"llmBaiduActiveProfileId": "default",
"llmBytedanceKey": "",
"llmBytedanceModel": "doubao-pro-4k",
"llmBytedanceProfiles": [
{
"id": "default",
@@ -156,8 +134,6 @@
}
],
"llmBytedanceActiveProfileId": "default",
"llmGroqKey": "",
"llmGroqModel": "llama-3.3-70b-versatile",
"llmGroqProfiles": [
{
"id": "default",
@@ -171,8 +147,6 @@
}
],
"llmGroqActiveProfileId": "default",
"llmSiliconflowKey": "",
"llmSiliconflowModel": "deepseek-ai/DeepSeek-V3",
"llmSiliconflowProfiles": [
{
"id": "default",
@@ -186,8 +160,6 @@
}
],
"llmSiliconflowActiveProfileId": "default",
"llmOpenrouterKey": "",
"llmOpenrouterModel": "anthropic/claude-3.5-sonnet",
"llmOpenrouterProfiles": [
{
"id": "default",
@@ -201,8 +173,6 @@
}
],
"llmOpenrouterActiveProfileId": "default",
"llmDeepinfraKey": "",
"llmDeepinfraModel": "meta-llama/Llama-3.3-70B-Instruct",
"llmDeepinfraProfiles": [
{
"id": "default",
@@ -216,8 +186,6 @@
}
],
"llmDeepinfraActiveProfileId": "default",
"llmMistralKey": "",
"llmMistralModel": "mistral-small-latest",
"llmMistralProfiles": [
{
"id": "default",
@@ -231,8 +199,6 @@
}
],
"llmMistralActiveProfileId": "default",
"llmMinimaxKey": "",
"llmMinimaxModel": "abab6.5-chat",
"llmMinimaxProfiles": [
{
"id": "default",
@@ -246,8 +212,6 @@
}
],
"llmMinimaxActiveProfileId": "default",
"llmStepfunKey": "",
"llmStepfunModel": "step-1-8k",
"llmStepfunProfiles": [
{
"id": "default",