Polyconseil / vue-gettext

Translate your Vue.js applications with gettext.
MIT License
278 stars 55 forks source link

Add $listeners to translate component #110

Open HenryLie opened 4 years ago

HenryLie commented 4 years ago

Right now, to attach an event to the translate component, we need to use the .native modifier.

Probably it will be better if the component can pass $listeners to the root element instead, since the user can modify the root element with tag attribute? This will allow us to attach event listeners without having to remember to add the .native modifier.

I can try making a PR if this idea is accepted.