Anchor to section titled 'undefined'

TranslationErrorCode
enum

Possible error codes that can be returned by TranslationUserError.


The input value is blank.

value-failsresourcevalidation
FAILS_RESOURCE_VALIDATION

Translation value is invalid.

The input value is invalid.

value-invalidcode
INVALID_CODE

Locale language code is invalid.

value-invalidformat
INVALID_FORMAT

Locale code format is invalid.

value-invalidkeyformodel
INVALID_KEY_FOR_MODEL

Translation key is invalid.

value-invalidlocaleforshop
INVALID_LOCALE_FOR_SHOP

Locale is invalid for the shop.

value-invalidmarketlocalizablecontent
INVALID_MARKET_LOCALIZABLE_CONTENT

Market localizable content is invalid.

value-invalidtranslatablecontent
INVALID_TRANSLATABLE_CONTENT

Translatable content is invalid.

value-invalidvalueforhandletranslation
INVALID_VALUE_FOR_HANDLE_TRANSLATION

The handle is already taken for this resource.

value-marketcustomcontentnotallowed
MARKET_CUSTOM_CONTENT_NOT_ALLOWED

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

value-marketdoesnotexist
MARKET_DOES_NOT_EXIST

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

value-marketlocalecreationfailed
MARKET_LOCALE_CREATION_FAILED

The market override locale creation failed.

value-resourcenotfound
RESOURCE_NOT_FOUND

Resource does not exist.

value-resourcenotmarketcustomizable
RESOURCE_NOT_MARKET_CUSTOMIZABLE

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

value-resourcenottranslatable
RESOURCE_NOT_TRANSLATABLE

Resource is not translatable.

value-toomanykeysforresource
TOO_MANY_KEYS_FOR_RESOURCE

Too many translation keys for the resource.

value-invalidlocaleformarket
INVALID_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?

The error code.


Was this section helpful?
Map
TranslationErrorCode

Fields from