Hi!! Someone can help us?
Not quite the same solution, but if simply changing the websites language would work, this is what I use for my website, I’m not sure if there is a limit on the api as to how many translations it can run but it has worked for me: Website Translator Widget
Hey I would suggest using a class for your links and add a bit of code like this
$(document).ready(function () {
if (window.location.href.indexOf(“/country/”) > -1) {
$(“redirectclass”).attr(“href”, “https://yourpage.com/country/”);
}
});
And then add more if you have more countries, also is a very easy overview to keep track of your links
EDIT: Just adding more clarification
If you have a english page and danish page and your danish slug is /da/ then you add it in /country/ and afterwards the same to the href
$(document).ready(function () {
if (window.location.href.indexOf(“/da/”) > -1) {
$(“danishlink”).attr(“href”, “https://yourpage.com/da/country/”);
}
});