Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translations not working in vue-email-editor #115

Open
federicobartoli opened this issue Dec 27, 2024 · 1 comment
Open

Translations not working in vue-email-editor #115

federicobartoli opened this issue Dec 27, 2024 · 1 comment

Comments

@federicobartoli
Copy link

federicobartoli commented Dec 27, 2024

Description

Unable to change editor language from English despite trying multiple approaches with locale and translations.

Steps to Reproduce

  1. Set locale to 'it-IT' either via prop or options
  2. Provide translations object
  3. 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

  1. Is translation support working in this version?
  2. What is the correct way to set translations?

Any help appreciated.

@agiovinazzi
Copy link

I have this issue too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants