Quick hack for using google translate (or other services) in Nuxt/Vue.js

added by JavaScript Kicks
5/28/2018 7:26:48 AM

1905 Views

Hey guys, here's a quick way of making google translate play nice using setInterval. export default { mounted : function () { this . $nextTick (() => { this . googleTranslateInit (); }); }, methods : { googleTranslateInit : function () { let checkIfGoogleLoaded = setInterval (() => { if ( google .


0 comments