🎨 🐛 Rename file & path & remove unused file.
This commit is contained in:
9
assets/js/3rd/others/translate.js
Normal file
9
assets/js/3rd/others/translate.js
Normal file
@@ -0,0 +1,9 @@
|
||||
/* Google translate plugin */
|
||||
NexT.plugins.others.translate = function() {
|
||||
const element = '#gtranslate';
|
||||
if (!NexT.utils.checkDOMExist(element)) return;
|
||||
NexT.utils.lazyLoadComponent(element, function() {
|
||||
window.translateelement_styles='/css/google-translate.min.css';
|
||||
NexT.utils.getScript('/js/3rd/google-translate.min.js');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user