Feature Request: Add Comprehensive Multilingual Support for OpenSpec Artifacts (i18n)
🎯 Goal To introduce multilingual support for OpenSpec's core workflow files, ensuring developers and AI assistants globally can seamlessly generate, understand, and utilize OpenSpec specification files in languages other than English.
💡 The Need OpenSpec's core function is to standardize the workflow for AI coding assistants. Currently, the workflow and examples are primarily English-centric. To boost global adoption, we must ensure the core OpenSpec files themselves—especially those generated by the AI assistant—can be created and processed in non-English languages.
Since files like tasks.md and proposal.md are AI outputs, it is critical that the AI assistant follows the user/project's preferred language when generating these artifacts.
✨ Proposed Features Core Artifact Multilingualism:
Ensure AI assistants can generate and process non-English versions of proposal.md, tasks.md, and spec.md files.
AI assistants should be able to read and understand project contexts and conventions defined in non-English within openspec/project.md.
The structure and headers of core files should remain consistent, but the content should be generated in the target language.
AI Assistant Integration & Configuration:
Consider adding a --lang option to openspec init to initialize project.md templates and update the AGENTS.md instructions accordingly.
Clearly instruct compatible AI assistants to use the user-specified language when generating new OpenSpec files.
Key Documentation Translation:
Translate core documentation, such as instructions in AGENTS.md, into major international languages.
Instead of creating templates in each language, you could tell the agent to communicate in the choosen one (e.g. BMad is doing that https://github.com/search?q=repo%3Abmad-code-org%2FBMAD-METHOD%20communication_language&type=code)
Ideally a configuration file could support granular language settings ie write specifications, plans, and tasks in their native language (for better understanding by stakeholders, product owners, and team members) Generate code in English (industry standard for variable names, function names, comments, and technical documentation).
languages:
specs: fr-FR
code:
variables: en-US
functions: en-US
comments: en-US
docs: fr-FR # README, user-facing documentation (optional)
Currently things heavily fail because of the validator https://github.com/Fission-AI/OpenSpec/blob/4108563731fd5607c1b3bd9f781a9c4f44112034/src/core/validation/validator.ts#L434
I would also note that for different languages these words are not 1-to-1 translatable because sometimes the word differs in single/plural and feminine/masculine subjects. So they either should be all translated in this core repo or moved to schema to be extendable at user discretion.
Same issue I ran into for Dutch specs, keeping SHALL/MUST in English makes the sentences awkward. Dutch also has singular/plural forms (MOET/MOETEN), so one word per language wouldn't be enough.
If localized keywords (like this old PR #840 ) aren't planned soon, maybe in docs/multi-language.md or somewhere else could this trade-off be mentioned?