List available language codes 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 available language codes

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

Return the full catalog of locale codes TranslatePress recognizes, each with its English name.

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 returns every language code and English name in TranslatePress's built-in locale catalog, regardless of whether that language is currently configured on the site. It takes no input parameters and is marked read-only in its Abilities API annotations. It's useful for discovering the exact locale code (e.g. fr_FR, de_DE) to pass to the add-language, remove-language, update-language, or set-default-language abilities.

See it in action

You ask your AI assistant

"Show me the list of all language codes TranslatePress supports so I can pick one to add."

Returns

An object with a languages array, each entry containing a locale code and its English name.

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.