Skip to content

feat: add translations to the public API - #923

Open
razajahangir wants to merge 1 commit into
dev-null-sh:productionfrom
razajahangir:feat/api-translations
Open

razajahangir wants to merge 1 commit into
dev-null-sh:productionfrom
razajahangir:feat/api-translations

Conversation

@razajahangir

@razajahangir razajahangir commented Oct 21, 2026 •

Copy link
Copy Markdown

Summary

  • Signed requests can read a commit's cached translation, generate one, and save the account's translation language.
  • This reuses the web translator, cache, and the shared limit of 10 generations a minute.
  • Covers the translations item in Please ship the following features to /api/v1 (in due course?) #853. The rest of that issue stays open.

Test plan

  • Pest covers guests, signed generate, preference save, hidden commits, invalid languages, provider failure, and the shared rate limit
  • An unsigned translate or language save returns 401, and a public commit has no translation field
  • A signed generate against a live OpenCode key still needs a device key and OPENCODE_API_KEY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant