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/uls/overview.md.
  • 中文
  • Universal Language Selector

    Interfaces

    InterfaceDescription
    ApiUlsLocalizationMetadataMetadata block of a ULS localization bundle, carried over from the source i18n files. Only the keys the wiki's ULS files actually use appear.
    ApiUlsLocalizationResponseResponse of action=ulslocalization: the ULS message bundle for one language (its fallback chain merged in), returned raw as JSON — there is no envelope and no ulslocalization wrapper. Keys are ULS message ids (e.g. uls-region-WW) mapped to their translation; @metadata holds the source file credits. The module is internal to ULS; responses are cached publicly for 28 days.
    ApiUlsSetLanguageResponseResponse of action=ulssetlang (CSRF-token POST): stores the interface language in the named user's preferences. A success response carries no payload keys. Anonymous callers only succeed when $wgULSAnonCanChangeLanguage is enabled (then only a cookie is set, likewise with no payload).