List configured languages is a WordPress ability from TranslatePress — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

List configured languages

Read-only
TranslatePress Content & Tools translatepress/list-languages

Retrieve the languages currently configured in TranslatePress, including which is the default and which are published.

Requires the TranslatePress plugin on WordPress 6.9+ (or the Abilities API feature plugin). All abilities require the current user to have the 'manage_options' capability.

What it does

This ability reads the trp_settings option and returns every configured translation language with its human-readable name, URL slug, publish state, and whether it is the site's default language. It takes no input parameters. Because it is marked read-only in its Abilities API annotations, it's safe to call at any time without changing site configuration, making it a natural first step before adding, updating, or removing a language.

See it in action

You ask your AI assistant

"List all the languages currently configured in TranslatePress on my site, and tell me which one is the default."

Returns

An object with the default_language code and an array of configured languages, each with code, name, slug, published (boolean), and is_default (boolean).

Permission

The current user must have the 'manage_options' capability; otherwise the ability returns a 403 WP_Error.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.