@plentymarkets/shop-api / getTranslations
Function: getTranslations() ​
getTranslations(
context
,params
):Promise
<Data
<string
>>
Method getTranslations - Used to get the translations.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: GetTranslationsParams
locale: locale of the translations to fetch.
Returns ​
Promise
<Data
<string
>>
translations string.
Remarks ​
- Calls /rest/storefront/i18n/translations/{locale} endpoint.
- Method should be used to get the translations for application.
Example ​
ts
const { data } = await useSdk().plentysystems.getTranslations({
locale: 'en',
});