Skip to content

fix: translate template section headings to target language for non-English users#4072

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1771430424-translate-template-headings
Open

fix: translate template section headings to target language for non-English users#4072
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1771430424-translate-template-headings

Conversation

@devin-ai-integration
Copy link
Contributor

fix: instruct LLM to translate section headings for non-English users

Summary

Adds a prompt instruction in the non-English conditional block of enhance.system.md.jinja telling the LLM to translate template section headings into the user's language. This addresses a report that when using Mistral in German, the enhanced note section headings stayed in English while the body content was correctly in German.

The change is a single line in the system prompt, gated behind {% if !(language|is_english) %}.

Review & Testing Checklist for Human

  • The instruction assumes templates are always authored in English ("Template section titles are provided in English for reference only"). If users can create templates with non-English titles, this wording could confuse the LLM into "translating" already-correct headings. Consider whether the wording should be softened.
  • Test with Mistral + German (the original reporter's setup) to verify headings are actually translated in the generated output. Unit tests only validate template rendering, not LLM behavior.
  • Verify the instruction doesn't cause regressions with other non-English languages (e.g., Korean, French) where heading translation was already working acceptably.

Notes

…nglish users

Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
@netlify
Copy link

netlify bot commented Feb 18, 2026

Deploy Preview for hyprnote-storybook ready!

Name Link
🔨 Latest commit a8c116d
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/6995e2945f88f900084ac3ed
😎 Deploy Preview https://deploy-preview-4072--hyprnote-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@netlify
Copy link

netlify bot commented Feb 18, 2026

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit a8c116d
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/6995e29485f7d30008eeadc1
😎 Deploy Preview https://deploy-preview-4072--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments