Repository navigation
feat(next-steps): a language option for the suggestions - #69
Merged
Merged
Conversation
The suggestions are always in English, so a person working in another language has to translate each one in their head before deciding whether it is what they meant to type next — which costs more than writing the prompt themselves. Set `language` and the model writes the lines in it. Empty, the default, adds nothing to the system prompt, so the English behaviour is unchanged byte for byte. File names, commands and code identifiers are kept as they are: a drafted prompt is only useful if you can send it, and `signup.ts` translated is not. 18 tests pass (16 existing + 2). Removing the new clause fails the new test.
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
next-stepsalways writes its suggestions in English. Working in another language, you read each line, translate it in your head, and only then decide whether it is what you meant to type next. That costs more than just writing the prompt yourself, so the band stops earning its place.What
A
languageuser config. Set it, and the model writes the lines in that language.signup.tstranslated is not. The second sentence of the clause is what keeps a suggestion pasteable.Changes
hooks/register.tsxregister(on, options), one conditional clause on the system prompt.claude-plugin/plugin.jsonuserConfig.language, version 0.1.1 → 0.2.0.claude-plugin/marketplace.jsonREADME.md,docs/mods.mdtests/next-steps.test.tsChecks
claude plugin validate mods/next-steps→ passedCLAUDE_CONFIG_DIR=$(mktemp -d) claude plugin test mods/next-steps→ 18 pass, 0 fail (16 existing + 2)languageguard withfalsefails one and leaves the other 17 greenThe test helper now records the system prompt the mod sends, so both the new tests assert on what the model is actually asked, not on a flag.
Note
Used in Korean day to day, which is where this came from.