Hi STM,
Just wondering if anyone has a script which can call out the User's GEO but in their own language or browser language.
For example, in English "Wien" is "Vienna" but if I had a German LP it wouldn't make sense for us to call out the user location in English.
Any solutions for this??
Simple solution, but you need to manually write every city combo:
function getURLParameter(name) {return decodeURI((RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] ||'' );}
var city = getURLParameter("city");
if (city == "Vienna") {
city = "Wien";
}
else if (city == "EnglishName1") {
city = "LocalName1";
}
else if (city == "EnglishName2") {
city = "LocalName2";
}