@plentymarkets/shop-api / getAllTranslationsByLanguage
Function: getAllTranslationsByLanguage() ​
getAllTranslationsByLanguage(
context,params):Promise<Data<LocalizationTranslation>>
Defined in: api/getAllTranslationsByLanguage/index.ts:16
Method getAllTranslationsByLanguage - Used to get a list of all translations by locale.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
LocalizationGetTranslationWithLanguageParams
Returns ​
Promise<Data<LocalizationTranslation>>
Remarks ​
- Calls /rest/storefront/translations/{configId}/{language} endpoint
- Method should be used to get a list of all translations by locale.
Example ​
ts
const { data } = await useSdk().plentysystems.getAllTranslationsByLanguage({configId: 1, lang: 'de'});