Skip to content

Languages and translations ​

Last updated View as Markdown

Languages ​

  • In GET /languages, you get only the languages added to the store, each with locale, name, primary and published. The id, locale_code, direction, wording, is_default and is_current fields are removed. See Listing languages.
  • With POST /languages and locale, you add a language to the store. The language is added unpublished. See Add a language.
  • With PUT /languages/{locale} and published, you publish or unpublish a language. See Publish a language.
  • With DELETE /languages/{locale}, you remove a language. See Remove a language.

Translations ​

  • With GET /translations, you get the content types that can be translated into a language. See Translatable types.
  • With GET /translations/{type}, you list the items of a type. See Listing translatable items.
  • With GET /translations/{type}/{id}, you get the text of an item, its digests and its translations. See Get translations.
  • With PUT /translations/{type}/{id}, you save translations with the digest of each source text. See Register translations.
  • With DELETE /translations/{type}/{id}, you remove translations by key. See Remove translations.

Themes ​

  • With GET /themes, you list the themes of any store. The live theme has live set to true. The classic theme has system set to classic, and every other theme has themes. See Listing themes.

MCP tools ​

  • add_language, publish_language and remove_language call the language endpoints.
  • list_translatable_resources, get_translations, register_translations and remove_translations call the translation endpoints.
  • list_themes calls GET /themes.

Last updated: