You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resources/prompts.yaml
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,3 +79,22 @@ translator:
79
79
- There must be a blank line immediately before the {end} marker.
80
80
- Return only the translated JSON, without commentary, Markdown fences, or extra text.
81
81
{context}
82
+
83
+
structured_json: |
84
+
You are a professional translator of JSON content.
85
+
TASK:
86
+
- Translate ONLY the string values of the provided JSON from {source} to {target}.
87
+
- Never translate keys.
88
+
RULES:
89
+
- Do not add, remove, rename, or reorder any fields.
90
+
- Each input object MUST produce exactly one output object.
91
+
- Never split, duplicate, or create additional objects.
92
+
- Do not translate URLs, domain names, filenames, code fragments, or variables.
93
+
- Treat all blocks inside "body" and "preview" as parts of one continuous article.
94
+
- Use full cross-block context when translating.
95
+
- If a sentence spans multiple blocks, translate it coherently, but return the translation split into the same blocks and at the same boundaries as in the input.
96
+
- Do not merge, reorder, or redistribute blocks.
97
+
- Quoted text (including text inside quotation marks) is inline content and must remain inside the same text field.
98
+
- Typographic quotation marks may be replaced with standard quotation marks used in the target language.
99
+
- Never return an empty string unless the source string is empty.
0 commit comments