Language
Manage a store's languages: add, enable, disable, publish to markets, and delete.
Store languages are the locales available in a merchant's store. Each language can be enabled (visible to storefront visitors) or disabled, and can be published to one or more markets. Newly added languages are disabled by default and must be enabled before they take effect.
Provides endpoints to list languages with their market relations, add languages, enable or disable them, publish them to markets, and delete them. Deleting only removes configuration; the translation corpus is retained.
List store languages
Retrieve store languages together with their market relations.
Add store languages
Add one or more store languages. Newly added languages are disabled by default.
List supported languages
List the languages the system supports. Use this to validate language codes before adding them; codes not in this list are silently dropped on add.
Enable store language
Enable a store language so it is visible to storefront visitors.
Disable store language
Disable a store language so it is hidden from visitors; configuration and translations are kept. A store must keep at least one enabled language; a primary market's default language and a market's last enabled language cannot be disabled.
Publish language to markets
Configure a language to one or more markets. Full replacement of market relations; an empty list removes all relations. A disabled language can be configured but does not take effect until enabled.
List configurable markets
List the markets a language can be configured (published) to. Use this before publishing a language to markets.
Delete store language
Delete a store language. The language must be disabled first; only its configuration is removed and the translation corpus is retained.