stack

Home > @infiniteobjects/shopify-data-manager > AdminTypes > TranslationErrorCode

AdminTypes.TranslationErrorCode enum

Possible error codes that can be returned by TranslationUserError.

Signature:

export declare enum TranslationErrorCode 

Enumeration Members

Member Value Description
Blank "BLANK" The input value is blank.
FailsResourceValidation "FAILS_RESOURCE_VALIDATION" Translation value is invalid.
Invalid "INVALID" The input value is invalid.
InvalidCode "INVALID_CODE" Locale language code is invalid.
InvalidFormat "INVALID_FORMAT" Locale code format is invalid.
InvalidKeyForModel "INVALID_KEY_FOR_MODEL" Translation key is invalid.
InvalidLocaleForMarket "INVALID_LOCALE_FOR_MARKET" The locale is missing on the market corresponding to the marketId argument.
InvalidLocaleForShop "INVALID_LOCALE_FOR_SHOP" Locale is invalid for the shop.
InvalidMarketLocalizableContent "INVALID_MARKET_LOCALIZABLE_CONTENT" Market localizable content is invalid.
InvalidTranslatableContent "INVALID_TRANSLATABLE_CONTENT" Translatable content is invalid.
InvalidValueForHandleTranslation "INVALID_VALUE_FOR_HANDLE_TRANSLATION" The handle is already taken for this resource.
MarketCustomContentNotAllowed "MARKET_CUSTOM_CONTENT_NOT_ALLOWED" The shop isn’t allowed to operate on market custom content.
MarketDoesNotExist "MARKET_DOES_NOT_EXIST" The market corresponding to the marketId argument doesn’t exist.
MarketLocaleCreationFailed "MARKET_LOCALE_CREATION_FAILED" The market override locale creation failed.
ResourceNotFound "RESOURCE_NOT_FOUND" Resource does not exist.
ResourceNotMarketCustomizable "RESOURCE_NOT_MARKET_CUSTOMIZABLE" The specified resource can’t be customized for a market.
ResourceNotTranslatable "RESOURCE_NOT_TRANSLATABLE" Resource is not translatable.
TooManyKeysForResource "TOO_MANY_KEYS_FOR_RESOURCE" Too many translation keys for the resource.