nhn / toast-ui.vue-editor

This repository is DEPRECATED! GO TO 👉 https://github.com/nhn/tui.editor/tree/master/apps/vue-editor
MIT License
229 stars 47 forks source link

Dynamically change the language #22

Open ram-you opened 5 years ago

ram-you commented 5 years ago

Hi, can you help me please to dynamically change the language ? onEditorLoad(instance) { this.tuiEditor = instance; },

then changed language by : this.tuiEditor.i18n.setCode('fr_FR') console.log( this.tuiEditor.i18n) gives me this response:

I18n {__ob__: Observer}
_code: "fr_FR"
_langs: (...)

But the toolbar still in English (original) Need to refresh or reload the component and I dont know how. Thank you in advance.

sohee-lee7 commented 5 years ago

tui.editor can not dynamically change the language. 😢 There is already registered issues related to this. https://github.com/nhn/tui.editor/issues/80 We are dealing with more important issues and the implementation is delaying. I will try to change the language dynamically in the near future.

ram-you commented 5 years ago

I think the solution would be to expose a public method to reload : (remove + init)