Skip to main content

Translations

ReplaceEntityTranslationโ€‹

Translations can be made by means of the standard translation service: ReplaceEntityTranslation.

Below you can find an example of such a translation, specified for the ReturnableStatusReason:

{
"EntityID": "Cancelled",
"EntityType": "ReturnableStatusReason",
"EntityField": "Reason",
"LanguageID": "nl",
"Value": "Regel is geannuleerd"
}

This example shows how the Dutch translation will be shown in the Reason field in the response of GetReturnableStatusForOrder.

CodeDefault translation
IsReturnLineIs return line
NotShippedNot shipped
AlreadyReturnedAlready returned
CancelledCancelled
UnspecifiedUnspecified
OfflineModeOffline mode can't determine returnable status
DiscountsAreReturnedAutomaticallyDiscounts are returned automatically
ReturnedAutomaticallyAre returned automatically
NotShippedAndNotInvoicedNot shipped and not invoiced
ReturnablePeriodExpiredReturnable period is expired
ProductMarkedNonReturnableProduct is marked as non-returnable
CanOnlyBeReturnedToThis line can only be returned in the return organizationunit: %OrganizationUnitName%
CanOnlyBeReturnedToOriginalStoreThis line can only be returned in the original store: %OrganizationUnitName%
CrossBorderNotAllowedCross-border returns are not allowed by configuration
ReturnsShouldBeCreatedInGoogleExpressReturns should be created in Google Express

As you can see, the GetReturnableStatusForOrder has two reasons which mention an organization unit:

CanOnlyBeReturnedTo - default translation: This line can only be returned in the return organizationunit: %OrganizationUnitName%

CanOnlyBeReturnedToOriginalStore - default translation: This line can only be returned in the original store: %OrganizationUnitName%

So for translations, the placeholder %OrganizationUnit% can be used.

Available placeholders:

  • OrganizationUnit (for above-mentioned reasons)

  • ReasonCode (always available)

Functionalitiesโ€‹

Translations can also be used for the Functionality descriptions.

Example call to ReplaceEntityTranslation:

{
"EntityID": "Settings",
"EntityType": "Functionality",
"EntityField": "Description",
"LanguageID": "NL",
"Value": "Instellingen"
}

'EntityID' is filled with the name of the functionality.