• Resolved Alaa Rihan

    (@alaa-rihan)


    Hi,

    How can I translate Vue components, my plugin has vue component, please check the link and play with filters to see what’s happen to description column, I know you added a listener to dom changes to handle the translation for ajax strings but it doesn’t seems working in my case..

    Best Regards

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Cristian Antohe

    (@sareiodata)

    Can you please tell me what WooCommerce addon you’re using?

    I’ll want to have a look on a local install and see if I can replicate it.

    Thread Starter Alaa Rihan

    (@alaa-rihan)

    Thread Starter Alaa Rihan

    (@alaa-rihan)

    Hi,

    Any updates in this issue?

    Best Regards

    Plugin Author Cristian Antohe

    (@sareiodata)

    Hi,

    I finally had some time to have a closer look at the issue, and our MutationObserver implementation fails to detect Vue changes properly. Now, we kinda figured out why that’s happening, for some reason Vue makes changes to entire nodes at once and we’re looking for individual string changes.

    However, the main problem is that we’re turning ON MutationObserver after jQuery.ready function and there is no way around this.

    We need jQuery for our Translation Editor, so even if we enabled it sooner (to catch the first rendering of the Vue template) we would not be able to send those strings to the editor. (there are workarounds, but they require refactoring on our part)

    What I’m trying to say, is that for now, we have no simple way fix this, in way that’s generalist enough so that it will work with ALL Vue components.

    I’ve created an issue and we’ll probably revisit this in the future, but for the time being, there is no quick fix unfortunately.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘VueJS table can’t be translated!’ is closed to new replies.