Translation
Calling the function will return a promise that will be resolved with the translation of the given component name. For more information, please read the full documentation.
JavaScript Copy JavaScript
const componentName = 'event-content-decision';
const translations = await window.e.utils.getTranslation(componentName);
const translatedTitle = translations[componentName].title;
Method
| Name | Description |
|---|---|
window.e.utils.getTranslation(componentName) | Returns promise that resolves with the translation object. |