Quick hack for using google translate (or other services) in Nuxt/Vue.js
Hey guys, here’s a quick way of making google translate play nice using setInterval. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 export default { mounted: function() { this.$nextTick(() => { this.googleTranslateInit(); }); }, methods: { googleTranslateInit: function() { let checkIfGoogleLoaded = setInterval(() => { if (google.translate.TranslateElement !...