vue-i18n-routing
Advanced tools
Comparing version 0.12.2 to 0.13.0
@@ -816,3 +816,10 @@ var VueI18nRouting = function(exports, VueRouter3, vueDemi, vueI18nBridge) { | ||
addHreflangLinks.call(this, locales, vueDemi.unref(i18n.baseUrl), metaObject.link, identifierAttribute); | ||
addCanonicalLinks.call(this, vueDemi.unref(i18n.baseUrl), metaObject.link, identifierAttribute, addSeoAttributes); | ||
addCanonicalLinksAndOgUrl.call( | ||
this, | ||
vueDemi.unref(i18n.baseUrl), | ||
metaObject.link, | ||
metaObject.meta, | ||
identifierAttribute, | ||
addSeoAttributes | ||
); | ||
addCurrentOgLocale(currentLocale, currentLocaleIso, metaObject.meta, identifierAttribute); | ||
@@ -865,3 +872,3 @@ addAlternateOgLocales(locales, currentLocaleIso, metaObject.meta, identifierAttribute); | ||
} | ||
function addCanonicalLinks(baseUrl, link, identifierAttribute, seoAttributesOptions) { | ||
function addCanonicalLinksAndOgUrl(baseUrl, link, meta, identifierAttribute, seoAttributesOptions) { | ||
const route = this.route; | ||
@@ -898,2 +905,7 @@ const currentRoute = localeRoute.call(this, { | ||
}); | ||
meta.push({ | ||
[identifierAttribute]: "i18n-og-url", | ||
property: "og:url", | ||
content: href | ||
}); | ||
} | ||
@@ -1123,3 +1135,3 @@ } | ||
} | ||
const VERSION = "0.12.2"; | ||
const VERSION = "0.13.0"; | ||
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL; | ||
@@ -1126,0 +1138,0 @@ exports.DEFAULT_DETECTION_DIRECTION = DEFAULT_DETECTION_DIRECTION; |
@@ -819,3 +819,10 @@ "use strict"; | ||
addHreflangLinks.call(this, locales, vueDemi.unref(i18n.baseUrl), metaObject.link, identifierAttribute); | ||
addCanonicalLinks.call(this, vueDemi.unref(i18n.baseUrl), metaObject.link, identifierAttribute, addSeoAttributes); | ||
addCanonicalLinksAndOgUrl.call( | ||
this, | ||
vueDemi.unref(i18n.baseUrl), | ||
metaObject.link, | ||
metaObject.meta, | ||
identifierAttribute, | ||
addSeoAttributes | ||
); | ||
addCurrentOgLocale(currentLocale, currentLocaleIso, metaObject.meta, identifierAttribute); | ||
@@ -868,3 +875,3 @@ addAlternateOgLocales(locales, currentLocaleIso, metaObject.meta, identifierAttribute); | ||
} | ||
function addCanonicalLinks(baseUrl, link, identifierAttribute, seoAttributesOptions) { | ||
function addCanonicalLinksAndOgUrl(baseUrl, link, meta, identifierAttribute, seoAttributesOptions) { | ||
const route = this.route; | ||
@@ -901,2 +908,7 @@ const currentRoute = localeRoute.call(this, { | ||
}); | ||
meta.push({ | ||
[identifierAttribute]: "i18n-og-url", | ||
property: "og:url", | ||
content: href | ||
}); | ||
} | ||
@@ -1126,3 +1138,3 @@ } | ||
} | ||
const VERSION = "0.12.2"; | ||
const VERSION = "0.13.0"; | ||
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL; | ||
@@ -1129,0 +1141,0 @@ exports.DEFAULT_DETECTION_DIRECTION = DEFAULT_DETECTION_DIRECTION; |
{ | ||
"name": "vue-i18n-routing", | ||
"description": "The i18n routing with using vue-i18n", | ||
"version": "0.12.2", | ||
"version": "0.13.0", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "dev": "vite", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
163686
4510