Add translations field to conversation_part and ticket_part (Preview) - #621
Draft
cathalging wants to merge 1 commit into
Draft
Add translations field to conversation_part and ticket_part (Preview)#621cathalging wants to merge 1 commit into
cathalging wants to merge 1 commit into
Conversation
…_part
Model the new `translations` object on the Preview conversation_part and
ticket_part schemas. It is a map keyed by locale code: the special `original`
key holds the source locale code of the reply, and every other key is a locale
code whose value is the reply text translated into that locale, e.g.
{ "original": "en", "en": "Hello", "fr": "Bonjour" }.
This backs the new `conversation.admin.replied.translated` and
`ticket.admin.replied.translated` webhook topics. The existing `body` field is
unchanged and stays in the original source language. The field is Preview-only
(descriptions/0), so it is gated by the Preview API version.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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?
Admin reply parts can now be delivered in multiple locales, and the new
conversation.admin.replied.translatedandticket.admin.replied.translatedwebhook topics carry those translations. The Preview spec did not model that data, so integrators had no schema for it.How?
Adds a nullable
translationsmap (keyed by locale code, with anoriginalkey naming the source locale) to the Preview conversation part and ticket part schemas, leaving the existing reply text untouched.Notes for reviewers
The field is Preview-only, so it is added to
descriptions/0alone and not to any stable2.xversion. Example value:{ "original": "en", "en": "Hello", "fr": "Bonjour" }. A companion PR inintercom/developer-docssyncs the same schema addition into the developer-docs Preview mirror and adds a changelog entry.Generated with Claude Code