30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

List Locales

Locale tags are unforgiving. de_DE works, de-DE does not, and de is a different thing again.

translations/list-locales gives you the ones this site actually uses, the ones WordPress has language packs for, and the site default — so a locale can be chosen rather than guessed.

At a glance

Abilitytranslations/list-locales
ToolsetLoco Translate — toolset/loco-translate
GroupLoco Translate › Discovery
RequiresLoco Translate, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

The three lists answer different questions. site_locale is what visitors see by default. installed is what WordPress itself has packs for. in_use is what already has at least one PO file on this site.

A locale in in_use but not installed is a hand-made translation with no official pack behind it — worth knowing before anyone runs translations/fetch-translations expecting it to be maintained upstream.

Pass bundle to narrow the in-use list to one plugin or theme.

Input

NameTypeRequiredWhat it is
bundlestringNoRestrict the in-use list to one bundle. Omit for the whole site.

What comes back

NameTypeWhat it is
site_localestringThe locale the site runs in.
installedarrayLocales WordPress has language packs for.
in_usearrayLocales that already have at least one PO file.
in_use_countintegerHow many locales are in use.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

What languages is this site already translated into?

It resolves to one call:

{
  "ability": "translations/list-locales",
  "parameters": {}
}

Worth knowing

  • Copy a tag from here rather than typing one. Loco refuses malformed tags outright.
  • In use but not installed means somebody translated it by hand. Nothing upstream will update it.
  • The site default is not necessarily in use for every bundle.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading