Localize URLs in the Footer - Fluid Topics - 3.4 - Technical Notes

Manage Languages in Fluid Topics

Product
Fluid Topics
Fluid Topics Version
3.4
Category
Technical Notes
Target Audience
public

It is possible to localize footer URLs according to the interface language.

To do so, use the localizedUrl parameter instead of the url parameter, as shown in the following example:

"ui": {
  ...
  "footer": {
    "copyright": {
      "en-US": "© Antidot 1999-2016"
    },
  "links": [
     {
        "localizedUrl": {
          "en-US": "https://www.antidot.net/en/",
          "fr-FR": "https://www.antidot.net/fr/"
        },
        "label": {
          "en-US": "Antidot Website",
          "fr-FR": "Site Antidot"
        }
      },
      {
        "localizedUrl": {
          "en-US": "https://www.antidot.net/en/antidot/contact-access/",
          "fr-FR": "https://www.antidot.net/fr/"
        },
        "label": {
          "en-US": "Contact Us",
          "fr-FR": "Contactez-nous"
        }
      },
      {
        "localizedUrl": {
          "en-US": "https://www.antidot.net/en/antidot/jobs/",
          "fr-FR": "https://www.antidot.net/antidot/recrutement/"
        },
        "label": {
          "en-US": "Work With Us",
          "fr-FR": "Nous recrutons"
        }
      }
   ]
  },
  ...
Tip: Using both the localizedUrl and the url parameters in the same conf.json file results in an error.