Get Translations

Same as getTranslation but accept an array with multiple component name.

For new applications we prefer using TEW integration for translation. Please check our documentation documentation.

Usage

Name Description
window.e.utils.v2.translation.getTranslations(componentNames) Returns promise that resolves with the translation object for multiple components

Parameters

Name Description Type Required Default value
componentNames Array of component names yes

Example

const componentName1 = 'example';
const componentName2 = 'event-content-decision';
const translations = await window.e.utils.getTranslations([componentName1, componentName2]);
const firstComponentTitle = translations[componentName1].title;
const secondComponentTitle = translations[componentName2].title;
New AI Feature!

Try our new AI skill to implement designs easier and faster with guided generation and best-practice patterns. For more info, visit this page.