mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
17 lines
739 B
TypeScript
17 lines
739 B
TypeScript
import { LanguageCode } from 'iso-639-1';
|
|
|
|
/** https://docs.joinmastodon.org/entities/Translation/ */
|
|
export interface MastodonTranslation {
|
|
/** HTML-encoded translated content of the status. */
|
|
content: string;
|
|
/** The translated spoiler warning of the status. */
|
|
spoiler_text: string;
|
|
/** The translated media descriptions of the status. */
|
|
media_attachments: { id: string; description: string }[];
|
|
/** The translated poll of the status. */
|
|
poll: { id: string; options: { title: string }[] } | null;
|
|
//** The language of the source text, as auto-detected by the machine translation provider. */
|
|
detected_source_language: LanguageCode;
|
|
/** The service that provided the machine translation. */
|
|
provider: string;
|
|
}
|