For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/extensions/translate/ApiTtmServerSuggestion.md.
  • 中文
  • Interface: ApiTtmServerSuggestion

    Defined in: extensions/translate.ts:337

    One suggestion of action=ttmserver: a translation-memory hit for the requested text. The fields are supplied by the configured translation-memory service; a unit from the local memory carries the fields below.

    Properties

    context

    context: string

    Defined in: extensions/translate.ts:345

    Message key of the stored unit, e.g. Translations:Example/1.


    location

    location: string

    Defined in: extensions/translate.ts:348

    Canonical URL of the translation page the unit came from.


    quality

    quality: number

    Defined in: extensions/translate.ts:351

    Match quality as a ratio between 0 and 1 (1 is a perfect match).


    source

    source: string

    Defined in: extensions/translate.ts:339

    Source text of the stored translation unit.


    target

    target: string

    Defined in: extensions/translate.ts:342

    Translation text of the stored unit.