Skip to content

The CLI cannot write the evidence report in Spanish #77

Description

@peopleworks

signsofai check <file> --lang es --report out.md writes the evidence report in English. --lang is the language of the text (the help says so), and the CLI builds its ReportOptions without ever setting InterfaceLanguage (src/SignsOfAI.Cli/Program.cs, the block that writes the report), so the Spanish resource in report.es.json is unreachable from the command line. Setting LANG/LC_ALL changes nothing.

The web and desktop apps pick the interface language from their own switch, so this only affects the CLI — but the CLI is what a script or an LMS integration would call, and the teacher package is bilingual on purpose.

Fix is small: a --report-lang <en|es> option (default: follow --lang when it is a language the report supports, else English), passed into ReportOptions.InterfaceLanguage, with a test that a Spanish report carries no fallback markers. Found by the code review of #76.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions