@plentymarkets/shop-api / doCreateTranslations
Function: doCreateTranslations() ​
doCreateTranslations(
context,params):Promise<Data<CreateLocalizationTranslationResponse>>
Defined in: api/doCreateTranslations/index.ts:16
Method doCreateTranslations - Used to create translations for a specific language.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
CreateLocalizationTranslationParams
Returns ​
Promise<Data<CreateLocalizationTranslationResponse>>
Remarks ​
- Calls /rest/storefront/translations endpoint
- Method should be used create a translations for a specific language.
Example ​
ts
const { data } = await useSdk().plentysystems.doCreateTranslations({configId: 1, language: 'de', translations: []});