pleku / wysiwyg-e-java

Rich Text Editor for Vaadin 14
https://vaadin.com/directory/component/edit/wysiwyg-e-rich-text-editor-component-for-java/
MIT License
3 stars 3 forks source link

Localization support #13

Open pleku opened 4 years ago

pleku commented 4 years ago

Based on feedback from https://vaadin.com/directory/component/wysiwyg-e-rich-text-editor-component-for-java/discussions

Hi, is there a way to set the locale? I found your comment in code about it beeing a function. Could you expand on that or maybe point me towards a possible way? Best regards Sascha

IIRC it should be possible to customize the at least the redo/undo captions/tooltips. This could be done via Java API and then passed to the element, but it will remain the responsibility of the developer to update the value on locale change.

sascha-broich commented 4 years ago

Vaadin Flow seems to use a I18n class approach (e. g. com.vaadin.flow.component.upload.UploadI18N) to set the locale specific texts. On the other hand, the Polymer component already has some languages under it's belt that could (should?) be used. So only the additional UI texts would be needed.