[PR #67] [CLOSED] feat: add report language support for i18n output #100

Closed
opened 2026-02-27 07:20:25 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/KeygraphHQ/shannon/pull/67
Author: @Mr-Neutr0n
Created: 2/6/2026
Status: Closed

Base: mainHead: feat/language-support


📝 Commits (1)

  • eb4c6ca feat: add report language support for i18n output

📊 Changes

6 files changed (+104 additions, -1 deletions)

View changed files

📝 .env.example (+8 -0)
📝 README.md (+39 -0)
📝 configs/config-schema.json (+8 -1)
📝 src/config-parser.ts (+3 -0)
📝 src/prompts/prompt-manager.ts (+44 -0)
📝 src/types/config.ts (+2 -0)

📄 Description

Summary

Add support for generating security reports in different languages via:

  • REPORT_LANGUAGE environment variable
  • report_language config file option

Changes

  • Add report_language field to Config and DistributedConfig types
  • Add report_language to JSON schema validation
  • Update distributeConfig to read from config or environment variable
  • Add buildLanguageInstruction() in prompt-manager to inject language instructions into prompts
  • Update .env.example with REPORT_LANGUAGE option
  • Document language support in README with supported language codes table

Supported Languages

Code Language
en English (default)
zh, zh-cn Chinese (Simplified)
zh-tw Chinese (Traditional)
es Spanish
ja Japanese
ko Korean
fr French
de German
pt Portuguese
And more...

Usage

# Via environment variable
export REPORT_LANGUAGE=zh
./shannon start URL=https://example.com REPO=/path/to/repo

# Via config file
report_language: ja

Test plan

  • Set REPORT_LANGUAGE=zh and verify report is generated in Chinese
  • Set report_language: ja in config file and verify Japanese output
  • Verify default (no language set) produces English report

Closes #60


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/KeygraphHQ/shannon/pull/67 **Author:** [@Mr-Neutr0n](https://github.com/Mr-Neutr0n) **Created:** 2/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/language-support` --- ### 📝 Commits (1) - [`eb4c6ca`](https://github.com/KeygraphHQ/shannon/commit/eb4c6ca5d97cba02351b1e776831729fac968817) feat: add report language support for i18n output ### 📊 Changes **6 files changed** (+104 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+8 -0) 📝 `README.md` (+39 -0) 📝 `configs/config-schema.json` (+8 -1) 📝 `src/config-parser.ts` (+3 -0) 📝 `src/prompts/prompt-manager.ts` (+44 -0) 📝 `src/types/config.ts` (+2 -0) </details> ### 📄 Description ## Summary Add support for generating security reports in different languages via: - `REPORT_LANGUAGE` environment variable - `report_language` config file option ## Changes - Add `report_language` field to `Config` and `DistributedConfig` types - Add `report_language` to JSON schema validation - Update `distributeConfig` to read from config or environment variable - Add `buildLanguageInstruction()` in prompt-manager to inject language instructions into prompts - Update `.env.example` with `REPORT_LANGUAGE` option - Document language support in README with supported language codes table ## Supported Languages | Code | Language | |------|----------| | en | English (default) | | zh, zh-cn | Chinese (Simplified) | | zh-tw | Chinese (Traditional) | | es | Spanish | | ja | Japanese | | ko | Korean | | fr | French | | de | German | | pt | Portuguese | | And more... | ## Usage ```bash # Via environment variable export REPORT_LANGUAGE=zh ./shannon start URL=https://example.com REPO=/path/to/repo # Via config file report_language: ja ``` ## Test plan - [ ] Set `REPORT_LANGUAGE=zh` and verify report is generated in Chinese - [ ] Set `report_language: ja` in config file and verify Japanese output - [ ] Verify default (no language set) produces English report Closes #60 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:20:25 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shannon-KeygraphHQ#100
No description provided.