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: packages/translate/src/openai.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -222,7 +222,8 @@ async function translateChunk(
222
222
• NEVER start a frontmatter value with inline code (text between \`backticks\`)
223
223
• NEVER start a frontmatter value with single quotes ('text')
224
224
• NEVER start a frontmatter value with double quotes ("text")
225
-
• NEVER use colon (:) character in frontmatter values as it conflicts with YAML syntax
225
+
• NEVER use colon (:) character in frontmatter values as it conflicts with YAML syntax (e.g., \`headline: Fondations React : À propos de React et Next.js\` is NOT allowed)
226
+
• NEVER wrap frontmatter values in single quotes ('') - values should be written directly without quotes (e.g., use \`headline: Fondations React\` instead of \`headline: 'Fondations React'\`)
226
227
• This applies to ALL inline code including \`<Component>\` tags, \`functions\`, variables, etc.
227
228
• This applies to ALL quoted text including 'use cache', "API design", 'components', etc.
228
229
• In frontmatter (sections between --- marks), ALWAYS rearrange sentences so inline code and quoted text appears AFTER some text
0 commit comments