Translations not working in vue-email-editor
Description
Unable to change editor language from English despite trying multiple approaches with locale and translations.
Steps to Reproduce
- Set locale to 'it-IT' either via prop or options
- Provide translations object
- Editor remains in English
Code Example
// Approach 1: Direct prop
<EmailEditor locale="it-IT" />
// Approach 2: Via options
const editorConfig = {
locale: 'it-IT',
translations: {
'it-IT': {
'widgets.content.button.name': 'Bottone',
'widgets.buttons.add_content': 'Aggiungi contenuto',
// ... other translations
}
}
}
<EmailEditor :options="editorConfig" />
Current Behavior
- Editor always displays in English
- No console errors
- Callbacks are successful
Expected Behavior
Editor should display in Italian when locale is set to 'it-IT'
Environment
- Vue 3.5.13
- Browser: Chrome/Safari
- OS: macOS 24.1.0
Questions
- Is translation support working in this version?
- What is the correct way to set translations?
Any help appreciated.
I have this issue too!
+1 not working in fresh installation
I'm having the same issue, any updates on this or possible workarounds?
Seems like changing most settings including the locale requires the projectid to be correctly set and also the Allowed domains in https://console.unlayer.com/ to be configured.
Project -> Builder -> Settings -> Allowed Domains
When i added my localhost url: https://myproject.localhost:8080 it converted it to -> myproject.localhost and immediately all settings started working in the editor.