Mastodon
  • 什么是 Mastodon?
  • 使用 Mastodon
    • 注册帐户
    • 设置你的个人资料
    • 在你的账户发布内容
    • 使用网络功能
    • 处理不想看到的内容
    • 推广你和他人
    • 进行偏好设置
    • 更多设置
    • 在站点外使用 Mastodon
    • 迁移或离开账户
    • 运行你自己的站点
  • 运营 Mastodon
    • 准备你的服务器
    • 从源代码安装
    • 配置你的环境
    • 安装可选功能
      • 对象存储
      • 洋葱服务
      • 验证码
      • 单点登录
    • 配置全文搜索
    • 设置你的新实例
    • 使用管理 CLI
    • 升级到新版本
    • 备份你的服务器
    • 迁移到新机器
    • 扩大你的站点规模
    • 审核操作
    • 故障排除
      • 数据库索引损坏
    • 用户组
  • 开发 Mastodon 应用
    • API 入门指南
    • 使用公开数据
    • 获取客户端应用访问权限
    • 使用帐户登录
    • 库与实现
  • 向 Mastodon 项目做贡献
    • 技术概览
    • 设置开发环境
    • 代码结构
    • 路由
    • 漏洞赏金与责任披露
  • 遵循的标准
    • ActivityPub
    • WebFinger
    • 安全性
    • Microformats
    • OAuth
    • Bearcaps
  • REST API
    • Datetime 格式
    • 指南与最佳实践
    • OAuth 令牌
    • OAuth 作用域
    • 速率限制
  • API 方法
    • apps
      • oauth
      • emails
    • accounts
      • bookmarks
      • favourites
      • mutes
      • blocks
      • domain_blocks
      • filters
      • reports
      • follow_requests
      • endorsements
      • featured_tags
      • preferences
      • followed_tags
      • suggestions
      • tags
    • profile
    • statuses
      • media
      • polls
      • scheduled_statuses
    • timelines
      • conversations
      • lists
      • markers
      • streaming
    • grouped notifications
    • notifications
      • push
    • search
    • instance
      • trends
      • directory
      • custom_emojis
      • announcements
    • admin
      • accounts
      • canonical_email_blocks
      • dimensions
      • domain_allows
      • domain_blocks
      • email_domain_blocks
      • ip_blocks
      • measures
      • reports
      • retention
      • trends
    • proofs
    • oembed
  • API 实体
    • Account
    • AccountWarning
    • Admin::Account
    • Admin::CanonicalEmailBlock
    • Admin::Cohort
    • Admin::Dimension
    • Admin::DomainAllow
    • Admin::DomainBlock
    • Admin::EmailDomainBlock
    • Admin::Ip
    • Admin::IpBlock
    • Admin::Measure
    • Admin::Report
    • Announcement
    • Appeal
    • Application
    • Context
    • Conversation
    • CustomEmoji
    • DomainBlock
    • Error
    • ExtendedDescription
    • FamiliarFollowers
    • FeaturedTag
    • Filter
    • FilterKeyword
    • FilterResult
    • FilterStatus
    • IdentityProof
    • Instance
    • List
    • Marker
    • MediaAttachment
    • Notification
    • NotificationPolicy
    • NotificationRequest
    • Poll
    • Preferences
    • PreviewCard
    • PreviewCardAuthor
    • PrivacyPolicy
    • Reaction
    • Relationship
    • RelationshipSeveranceEvent
    • Report
    • Role
    • Rule
    • ScheduledStatus
    • Search
    • Status
    • StatusEdit
    • StatusSource
    • Suggestion
    • Tag
    • TermsOfService
    • Token
    • Translation
    • V1::Filter
    • V1::Instance
    • V1::NotificationPolicy
    • WebPushSubscription

Translation

表示机器翻译某些嘟文内容的结果

    • 示例
    • 属性
      • content
      • spoiler_text
      • poll 可选
      • media_attachments
      • detected_source_language
      • provider
    • Translation::Poll 属性
      • id
      • options
    • Translation::Poll::Option 属性
      • title
    • Translation::Attachment 属性
      • id
      • description
    • 参见

示例

包含内容警告和媒体的嘟文翻译

{
  "content": "<p>Hello world</p>",
  "spoiler_text": "Greatings ahead",
  "media_attachments": [
    {
      "id": "22345792",
      "description": "Status author waving at the camera"
    }
  ],
  "poll": null,
  "detected_source_language": "es",
  "provider": "DeepL.com"
}

包含投票的嘟文翻译:

{
  "content": "<p>Should I stay or should I go?</p>",
  "spoiler_text": "",
  "media_attachments": [],
  "poll": {
    "id": "34858",
    "options": [
      {
        "title": "Stay" 
      },
      {
        "title": "Go"
      }
    ]
  },
  "detected_source_language": "ja",
  "provider": "DeepL.com"
}

属性

content

描述: 嘟文的HTML编码的翻译内容。
类型: 字符串 (HTML)
版本历史:
4.0.0 - 添加

spoiler_text

描述: 嘟文翻译后的内容警告。
类型: 字符串
版本历史:
4.2.0 - 添加

poll 可选

描述: 嘟文翻译后的投票。
类型: Translation::Poll
版本历史:
4.2.0 - 添加

media_attachments

描述: 嘟文翻译后的媒体描述。
类型: Translation::Attachment 的数组
版本历史:
4.2.0 - 添加

detected_source_language

描述: 源文本的语言,由机器翻译提供商自动检测。
类型: 字符串 (ISO 639 语言代码)
版本历史:
4.0.0 - 添加

provider

描述: 机器翻译提供商。 类型: 字符串
版本历史:
4.0.0 - 添加

Translation::Poll 属性

id

描述: 投票的 ID。
类型: 字符串(从整数转换而来,但不保证是数字)
版本历史:
4.2.0 - 添加

options

描述: 翻译后的投票选项。
类型: Translation::Poll::Option 的数组
版本历史:
4.2.0 - 添加

Translation::Poll::Option 属性

title

描述: 投票选项的翻译后的标题。
类型: 字符串
版本历史:
4.2.0 - 添加

Translation::Attachment 属性

id

描述: 附件的 id。
类型: 字符串(从整数转换而来,但不保证是数字)
版本历史:
4.2.0 - 添加

description

描述: 媒体附件翻译后的描述。
类型: 字符串
版本历史:
4.2.0 - 添加

参见

POST /api/v1/statuses/:id/translate
app/serializers/rest/translation_serializer.rb

翻译状态: 本文是英文页面 Translation 的翻译,最后翻译时间:2025-04-21,点击这里可以查看翻译后页面的改动。

最后更新于 April 21, 2025 · 改进此页面
也可在此找到: English

赞助商

Dotcom-Monitor LoadView Stephen Tures Swayable SponsorMotion

加入Mastodon · 博客 ·

查看源代码 · CC BY-SA 4.0 · 版权信息