Languages and translations
Languages
- In
GET /languages, you get only the languages added to the store, each withlocale,name,primaryandpublished. Theid,locale_code,direction,wording,is_defaultandis_currentfields are removed. See Listing languages. - With
POST /languagesandlocale, you add a language to the store. The language is added unpublished. See Add a language. - With
PUT /languages/{locale}andpublished, 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 hasliveset totrue. The classic theme hassystemset toclassic, and every other theme hasthemes. See Listing themes.
MCP tools
add_language,publish_languageandremove_languagecall the language endpoints.list_translatable_resources,get_translations,register_translationsandremove_translationscall the translation endpoints.list_themescallsGET /themes.