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-onlyRetrieve 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.
More TranslatePress abilities
Add a translation language
Add a new translation language to TranslatePress, subject to the current license's language limit.
Enable Automatic Translation
Turns on TranslatePress's Automatic Translation, optionally selecting which translation engine to use.
List available language codes
Return the full catalog of locale codes TranslatePress recognizes, each with its English name.
Remove a translation language
Remove a configured translation language from TranslatePress.
Set the default language
Promote an already-configured language to be TranslatePress's site default.
Set TranslatePress license key
Save a TranslatePress license key and trigger a live validation check against TranslatePress's licensing servers.