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

    Defined in: core/query/languageinfo.ts:10

    Information about one language (meta=languageinfo, keyed by code).

    Properties

    autonym?

    optional autonym?: string

    Defined in: core/query/languageinfo.ts:21

    Name in the language itself. liprop=autonym.


    bcp47?

    optional bcp47?: string

    Defined in: core/query/languageinfo.ts:15

    BCP 47 language tag. liprop=bcp47.


    code?

    optional code?: string

    Defined in: core/query/languageinfo.ts:12

    Language code. liprop=code.


    digitgroupingpattern?

    optional digitgroupingpattern?: string

    Defined in: core/query/languageinfo.ts:53

    CLDR digit-grouping pattern (e.g. #,##0.###). liprop=digitgroupingpattern.

    Since

    MediaWiki 1.47


    digittransforms?

    optional digittransforms?: string[] | Record<string, string>

    Defined in: core/query/languageinfo.ts:46

    Digit transforms: an ASCII-digit → localized-digit mapping. liprop=digittransforms. A PHP map keyed 0..9; when a language omits some entries it serializes as an object, and an empty table surfaces as [].

    Since

    MediaWiki 1.47


    dir?

    optional dir?: "ltr" | "rtl"

    Defined in: core/query/languageinfo.ts:18

    Writing direction. liprop=dir.


    fallbacks?

    optional fallbacks?: string[]

    Defined in: core/query/languageinfo.ts:27

    Fallback language codes, in order. liprop=fallbacks.


    minimumgroupingdigits?

    optional minimumgroupingdigits?: number

    Defined in: core/query/languageinfo.ts:60

    Minimum number of digits required before grouping applies. liprop=minimumgroupingdigits.

    Since

    MediaWiki 1.47


    name?

    optional name?: string

    Defined in: core/query/languageinfo.ts:24

    Name in the content/uselang language. liprop=name.


    namespacealiases?

    optional namespacealiases?: Record<string, number>

    Defined in: core/query/languageinfo.ts:76

    Localized namespace aliases, mapping each alias to its namespace id. liprop=namespacealiases.

    Since

    MediaWiki 1.47


    namespacenames?

    optional namespacenames?: Record<string, string>

    Defined in: core/query/languageinfo.ts:68

    Localized namespace names, keyed by numeric namespace id. liprop=namespacenames; the main namespace's value is the empty string.

    Since

    MediaWiki 1.47


    variantnames?

    optional variantnames?: Record<string, string>

    Defined in: core/query/languageinfo.ts:37

    Variant display names, keyed by variant code. liprop=variantnames.

    Since

    MediaWiki 1.40


    variants?

    optional variants?: string[]

    Defined in: core/query/languageinfo.ts:30

    Language-variant codes. liprop=variants.