Translations for Product Modifiers (Beta)
Translations for Product Modifiers (Beta)
Translations for Product Modifiers (Beta)
The Translations Admin GraphQL API for managing product modifier translations is available on Catalyst storefronts only.
The following entities are translatable for product modifiers:
display_name — The name of the option shown on the storefrontconfig.checkbox_label — (checkbox type) Label displayed next to the checkboxconfig.default_value — (text, multi_line_text, numbers_only_text, date types) Default value shown in the fieldlabel — The text displayed for the option value on the storefront (e.g., “Yes”, “No”, “Red”)For more on product modifiers and modifier types, see Product modifiers.
The entities listed above are referenced differently based on resource type and must use the following values in the queries outlined below:
Data is returned in the current locale determined by the context (e.g., Accept-Language header, channel settings, or session locale). Product options on the storefront include modifier display names and value labels; when translations exist for the requested locale, those translated values are returned.
Product modifier translation management (list, update, delete) is available via the Admin GraphQL API. These mutations and queries are not available on the Storefront API.
The request below uses several variables for reusability. Replace {{resourceType}}, {{channel_id}}, and {{locale_code}} with the appropriate values for your use case. Use PRODUCT_MODIFIERS or PRODUCT_MODIFIER_VALUES depending on whether you are querying modifiers or modifier values.
This query returns a paginated list of translations with a maximum of 50 results per request. Use the cursor from the response in a subsequent request to fetch more results.
The request below uses several variables for reusability. Replace {{resourceId}}, {{resourceType}}, {{channel_id}}, and {{locale_code}} with appropriate values for your use case. Make sure resourceId follows the format from the Resource fields table.
The request below is for updating a product modifier. For product modifier values, replace resourceType and resourceId with appropriate values from the Resource fields table.
The request below is for deleting translations on a product modifier. For product modifier values, replace resourceType and resourceId with appropriate values from the Resource fields table.