@plentymarkets/shop-api / getTranslations
Function: getTranslations() ​
getTranslations(
context
,params
):Promise
<Data
<string
>>
Defined in: api/getTranslations/index.ts:30
Method getTranslations - Used to get the translations.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
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',
});