[mirotalksfu] - move translate

هذا الالتزام موجود في:
Miroslav Pejic
2024-05-09 09:21:18 +02:00
الأصل d9534e0fb1
التزام a0d4c2449b
2 ملفات معدلة مع 11 إضافات و10 حذوفات

10
public/js/Translate.js Normal file
عرض الملف

@@ -0,0 +1,10 @@
'use strict';
const script = document.createElement('script');
script.setAttribute('async', '');
script.setAttribute('src', 'https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit');
document.head.appendChild(script);
function googleTranslateElementInit() {
new google.translate.TranslateElement({ pageLanguage: 'en' }, 'google_translate_element');
}