How to customize my portal according to the current language

Anthony Pépin Updated by Anthony Pépin

One of the main reasons to customize your portal is to display its different parts, such as the header and footer, in different languages.

These are the parts of your portal that can be customized according to the language:

In your back office, go to Look & Feel > Theme, then click on the Header or Footer tab.

Here is a little code trick to display only what is inside the div, according to the current selected language.

<div ng-if="'fr'|currentLanguage">
{your custom French content here}
</div>
<div ng-if="'en'|currentLanguage">
{your custom English content here}
</div>

For example:

In the footer, all of the terms can be provided in English for the English-language version...

...and then provide the labels in French in the French-language version.

Languages and the code editor

If you have multiple langauges enabled on your portal, you can define content for each language in any pages you create with the Code editor. When editing one of your Code editor pages, simply select a language at the top of the window, and enter the appropriate content for that language.

Languages and basemaps

You can customize the labels you use in your basemaps. To do so, go to Look & Feel > Data visualization. Find the labels listed under "Basemaps," and enter the appropriate labels in each language:

Languages and a dataset's custom view

When you create a custom view on a dataset, you also have access to the HTML code. This means you can use the same trick as listed higher up on this page, under "Customizing your portal's header and footer."

<div ng-if="'fr'|currentLanguage">
{your custom French content here}
</div>
<div ng-if="'en'|currentLanguage">
{your custom English content here}
</div>

For instance, you can display one chart for English speakers and another for French speakers. Here is a Custom view tab that is displayed for English speakers:

And here is the tab displayed for French speakers:

How did we do?

Customizing portal themes

Managing the dataset themes

Contact

Powered by HelpDocs (opens in a new tab)