Skip to content

quality: AI prompt omits the language guide that translate includes #9

Description

@mhenrixon

Problem

Manager#translation_prompt injects language_guide_section(locale) (manager.rb:313 in 0.4.2), but QualityChecker#quality_prompt does not — the AI quality pass reviews translations with only config.context and the glossary.

Concrete consequence (found dogfooding in cosmos): the German guide mandates per-namespace register (du-form for yoga.*, Sie-form elsewhere). lingo quality --ai cannot flag register violations because it never sees the rule — the one check a style guide exists for.

Fix

Append language_guide_section(locale) (same helper as translate) to quality_prompt, e.g. after the glossary section.

https://claude.ai/code/session_012LRBpVd5KU2gp48AwyK1o9

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions