globalseo
Advanced tools
Comparing version 2.2.12 to 2.2.13
@@ -84,3 +84,12 @@ const { isBrowser, BRAND } = require("./utils/configs"); | ||
const customLinksAttribute = window.translationScriptTag.getAttribute(DATA_CUSTOM_LINKS); | ||
const DATA_ACTIVE_SUBDOMAIN = "data-active-subdomain"; // default: undefined | ||
const activeSubdomain = window.translationScriptTag.getAttribute(DATA_ACTIVE_SUBDOMAIN); | ||
// prevent initial translation for subdomain (but allow translation on dynamic content) | ||
if (activeSubdomain) { | ||
window.preventInitialTranslation = true; | ||
window.activeSubdomain = activeSubdomain; | ||
} | ||
const customLinksAttribute = window.translationScriptTag.getAttribute(`${DATA_CUSTOM_LINKS}-${activeSubdomain}`); | ||
let customLinks = {}; | ||
@@ -100,11 +109,2 @@ try { | ||
const DATA_ACTIVE_SUBDOMAIN = "data-active-subdomain"; // default: undefined | ||
const activeSubdomain = window.translationScriptTag.getAttribute(DATA_ACTIVE_SUBDOMAIN); | ||
// prevent initial translation for subdomain (but allow translation on dynamic content) | ||
if (activeSubdomain) { | ||
window.preventInitialTranslation = true; | ||
window.activeSubdomain = activeSubdomain; | ||
} | ||
// FEATURE: Prevent Google Translate from translating the page | ||
@@ -111,0 +111,0 @@ // Set the 'translate' attribute of the HTML tag to 'no' |
{ | ||
"name": "globalseo", | ||
"version": "2.2.12", | ||
"version": "2.2.13", | ||
"description": "Translate your React.js or Next.js app with AI", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
568705