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
@@ -129,6 +135,8 @@ async function translateChunk(
129
135
'description: \\`useState\\` примеры использования хука',
130
136
"description: 'use cache' функциональность и преимущества API",
131
137
'description: "Button" руководство по использованию компонента',
138
+
'title: Безопасность в Next.js: основные принципы',
139
+
'title: Next.js: руководство по безопасности',
132
140
],
133
141
},
134
142
de: {
@@ -214,10 +222,12 @@ async function translateChunk(
214
222
• NEVER start a frontmatter value with inline code (text between \`backticks\`)
215
223
• NEVER start a frontmatter value with single quotes ('text')
216
224
• NEVER start a frontmatter value with double quotes ("text")
225
+
• NEVER use colon (:) character in frontmatter values as it conflicts with YAML syntax
217
226
• This applies to ALL inline code including \`<Component>\` tags, \`functions\`, variables, etc.
218
227
• This applies to ALL quoted text including 'use cache', "API design", 'components', etc.
219
228
• In frontmatter (sections between --- marks), ALWAYS rearrange sentences so inline code and quoted text appears AFTER some text
220
229
• If a frontmatter value would start with inline code or quotes after translation, ALWAYS rewrite the sentence so that some descriptive text comes before the inline code or quotes. For example, instead of ${langExamples.incorrect[0]}, use ${langExamples.correct[0]}.
230
+
• If a translation would include a colon (:), ALWAYS rephrase to avoid it (e.g., "Security in Next.js: principles" becomes "Security principles in Next.js" or "Next.js security principles")
221
231
• This rule applies to ALL frontmatter keys (title, description, etc.), not just description.
222
232
• ALWAYS preserve both the opening and closing frontmatter delimiters (---) - never omit the closing delimiter
223
233
• Maintain the exact structure of frontmatter - beginning with ---, followed by key-value pairs, and ending with ---
These rules apply ONLY to frontmatter (between --- marks) and are CRITICAL for proper document rendering.
247
-
REMEMBER: You must NEVER start with inline code in frontmatter values and ALWAYS include both opening and closing --- delimiters.`;
257
+
REMEMBER: You must NEVER start with inline code in frontmatter values, NEVER use colons (:) in frontmatter values, and ALWAYS include both opening and closing --- delimiters.`;
0 commit comments