Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to TranslationErrorCode

TranslationErrorCode

enum

Possible error codes that can be returned by TranslationUserError.

•

The input value is blank.

Anchor to FAILS_RESOURCE_VALIDATIONFAILS_RESOURCE_VALIDATION
•

Translation value is invalid.

•

The input value is invalid.

•

Locale language code is invalid.

•

Locale code format is invalid.

Anchor to INVALID_KEY_FOR_MODELINVALID_KEY_FOR_MODEL
•

Translation key is invalid.

Anchor to INVALID_LOCALE_FOR_SHOPINVALID_LOCALE_FOR_SHOP
•

Locale is invalid for the shop.

Anchor to INVALID_MARKET_LOCALIZABLE_CONTENTINVALID_MARKET_LOCALIZABLE_CONTENT
•

Market localizable content is invalid.

Anchor to INVALID_TRANSLATABLE_CONTENTINVALID_TRANSLATABLE_CONTENT
•

Translatable content is invalid.

Anchor to INVALID_VALUE_FOR_HANDLE_TRANSLATIONINVALID_VALUE_FOR_HANDLE_TRANSLATION
•

The handle is already taken for this resource.

Anchor to MARKET_CUSTOM_CONTENT_NOT_ALLOWEDMARKET_CUSTOM_CONTENT_NOT_ALLOWED
•

The shop isn't allowed to operate on market custom content.

Anchor to MARKET_DOES_NOT_EXISTMARKET_DOES_NOT_EXIST
•

The market corresponding to the marketId argument doesn't exist.

Anchor to MARKET_LOCALE_CREATION_FAILEDMARKET_LOCALE_CREATION_FAILED
•

The market override locale creation failed.

•

Resource does not exist.

Anchor to RESOURCE_NOT_MARKET_CUSTOMIZABLERESOURCE_NOT_MARKET_CUSTOMIZABLE
•

The specified resource can't be customized for a market.

Anchor to RESOURCE_NOT_TRANSLATABLERESOURCE_NOT_TRANSLATABLE
•

Resource is not translatable.

Anchor to TOO_MANY_KEYS_FOR_RESOURCETOO_MANY_KEYS_FOR_RESOURCE
•

Too many translation keys for the resource.

Anchor to INVALID_LOCALE_FOR_MARKETINVALID_LOCALE_FOR_MARKET
•
Deprecated

The locale is missing on the market corresponding to the marketId argument. invalid_locale_for_market is deprecated because the creation of a locale that's specific to a market no longer needs to be tied to that market's URL.


Was this section helpful?


Was this section helpful?