It is possible to localize URLs to correspond to the UI language.
To do so, use the "localizedUrl" parameter instead of "url" parameter, as in the following example:
It is possible to localize URLs to correspond to the UI language.
To do so, use the "localizedUrl" parameter instead of "url" parameter, as in the following example:
"ui": {
...
"footer": {
"copyright": {
"en-US": "© Antidot 1999-2016"
},
"links": [
{
"localizedUrl": {
"en-US": "http://www.antidot.net/en/",
"fr-FR": "http://www.antidot.net/fr/"
},
"label": {
"en-US": "Antidot Website",
"fr-FR": "Site Antidot"
}
},
{
"localizedUrl": {
"en-US": "http://www.antidot.net/en/antidot/contact-access/",
"fr-FR": "http://www.antidot.net/fr/"
},
"label": {
"en-US": "Contact Us",
"fr-FR": "Contactez-nous"
}
},
{
"localizedUrl": {
"en-US": "http://www.antidot.net/en/antidot/jobs/",
"fr-FR": "http://www.antidot.net/antidot/recrutement/"
},
"label": {
"en-US": "Work With Us",
"fr-FR": "Nous recrutons"
}
}
]
},
...
Using both parameters "localizedUrl" and "url" in the same conf.json file raises an error.