feat(copy): Spanish bot copy for hackathon analysis (spanish-copy 1/3) - #39
Merged
Merged
Conversation
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.
Summary
This is PR 1 of 3 for change
spanish-copy. From now on, all bot-authored Telegram text is in neutral Spanish (tuteo). This PR covers the hackathon analysis area. It changes copy only; behavior is unchanged.src/domain/copy.ts(new): the domain copy catalog. It holds the analysis labels ("Nombre:", "Premios:", "Fecha límite de entrega:", …), "…y N más", the job outcome replies, the link notes, and the "Analizando …" acknowledgement. The six fetch-failure kinds map to Spanish phrases through an exhaustiveRecord<PageFetchFailureKind, string>, so a new kind fails the typecheck.src/adapters/telegram/copy.ts(new): the adapter catalog, withcommonCopyandhackathonCopyin this PR. It imports the domain catalog and never the reverse.format.ts,text-limit.ts,run-hackathon-job.ts,link-analysis-to-topic.ts,request-hackathon-analysis.tsandhackathon-commands.ts.test/copy/catalog-language.test.ts(new): a guard that fails if a catalog contains common English words.openspec/changes/spanish-copy/adds the proposal, the delta specs (a newbot-copycapability and changes tohackathon-analysis), the design with the full copy table, the tasks and apply-progress.Unchanged
npm run harnessis not needed.Known interim
/reposstill prints the English "...and N more" until PR 2, which covers profile, team, membership and repo commands plus the team picker.Review
A bounded review ran at medium risk with the reliability lens on all 24 changed paths and found nothing. It confirmed that:
Tests
🤖 Generated with Claude Code