-
Notifications
You must be signed in to change notification settings - Fork 1.3k
docs: add multi-language output guide #534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Document how to configure OpenSpec to generate artifacts in languages other than English using the existing context field in config.yaml. Includes examples for Portuguese, Spanish, Chinese, Japanese, French, and German, plus tips for handling technical terminology.
d2d6ac7 to
31c78a5
Compare
Review CompleteYour review story is ready! Comment !reviewfast on this PR to re-generate the story. |
Greptile SummaryThis PR adds documentation for configuring OpenSpec to output artifacts in languages other than English. The guide leverages the existing Key additions:
The documentation is accurate - I verified against the codebase that the Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Config as openspec/config.yaml
participant CLI as OpenSpec CLI
participant Loader as Instruction Loader
participant AI as AI Assistant
User->>Config: Add language instruction to context field
Note over Config: context: |<br/> Language: Portuguese (pt-BR)<br/> All artifacts must be in Portuguese.
User->>CLI: openspec instructions proposal --change my-feature
CLI->>Loader: loadChangeContext()
Loader->>Config: readProjectConfig()
Config-->>Loader: Return config with context field
Loader->>Loader: generateInstructions()
Note over Loader: Inject context as XML block:<br/><context>..context..</context>
Loader-->>CLI: Return enriched template
CLI-->>User: Display instructions with context
User->>AI: Generate artifact using instructions
AI->>AI: Process instructions including language context
AI-->>User: Generate artifact in Portuguese
|
Summary
contextfield inconfig.yaml- no code changes neededlanguagefield may be added in a future releaseTest plan
openspec/config.yamland runningopenspec instructions🤖 Generated with Claude Code