I would rather suggest implementing changes via PHP hooks and translating them as regular strings.
Also, please note that we currently are not able to provide support for custom work within this forum which will be required for translating something from inside Javascript. I, however, tried to point you in the correct direction.
If my directions are not enough I suggest contacting one of our 3rd party contractors that specialize in custom work with WPML (https://wpml.org/contractors/) or a developer of your choice.
I hope that you will find this answer insightful.
Let us know if any other questions or anything we can do to help.
Regards,
Drazen
The topic ‘[Closed] Translation of code snippet’ is closed to new replies.