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/ApiTranslateMessageGroup.md.
  • 中文
  • Interface: ApiTranslateMessageGroup

    Defined in: extensions/translate.ts:39

    One meta=messagegroups entry. mgprop controls which fields appear. The groups themselves are site-defined (wiki pages, YAML files, aggregate definitions), so ids beyond the dynamic !recent / !additions ones are open-ended.

    Properties

    class?

    optional class?: string

    Defined in: extensions/translate.ts:50

    PHP class backing the group, e.g. WikiPageMessageGroup. mgprop=class.


    description?

    optional description?: string

    Defined in: extensions/translate.ts:47

    Localized group description. mgprop=description.


    exists?

    optional exists?: boolean

    Defined in: extensions/translate.ts:60

    Whether the group currently exists (real boolean). mgprop=exists.


    groupcount?

    optional groupcount?: number

    Defined in: extensions/translate.ts:104

    Number of nested groups folded into this entry (mgformat=tree with mgdepth reached).


    groups?

    optional groups?: ApiTranslateMessageGroup[]

    Defined in: extensions/translate.ts:107

    Child groups (mgformat=tree above the depth cutoff).


    icon?

    optional icon?: Record<string, unknown>

    Defined in: extensions/translate.ts:65

    Icon URLs keyed by size. mgprop=icon; absent for groups without an icon.


    id?

    optional id?: string

    Defined in: extensions/translate.ts:41

    Group id, e.g. page-Example, !recent. mgprop=id.


    label?

    optional label?: string

    Defined in: extensions/translate.ts:44

    Localized group label. mgprop=label.


    namespace?

    optional namespace?: number | false

    Defined in: extensions/translate.ts:57

    Namespace the group's messages live in, e.g. 1198 (the Translations namespace) for page groups; false for groups without a namespace (the dynamic !recent / !additions ones). mgprop=namespace.


    priority?

    optional priority?: string & object | "default"

    Defined in: extensions/translate.ts:71

    Translation priority. Beyond the core default, values are site-defined (set through the group's priority metadata).


    priorityforce?

    optional priorityforce?: boolean

    Defined in: extensions/translate.ts:83

    Whether translation to non-priority languages is prevented. mgprop=priorityforce.


    prioritylangs?

    optional prioritylangs?: false | string[]

    Defined in: extensions/translate.ts:77

    Priority languages of the group, or false when unset. mgprop=prioritylangs.


    sourcelanguage?

    optional sourcelanguage?: string

    Defined in: extensions/translate.ts:92

    Source language of the group's messages. mgprop=sourcelanguage.


    subscription?

    optional subscription?: boolean

    Defined in: extensions/translate.ts:98

    Whether the current user is subscribed to group updates. mgprop=subscription; absent when group subscription is disabled or unavailable to the user.


    workflowstates?

    optional workflowstates?: false | Record<string, ApiTranslateWorkflowState>

    Defined in: extensions/translate.ts:89

    Workflow states of the group keyed by state id, or false when the group has none. mgprop=workflowstates.