This article provides details about the placeholders you can use if you have Multilingual Support on the portal.


Placeholder for Language Switcher 

In the portal, users have the option to switch between the supported languages by using the language switcher. 

Placeholder

Return Type

What they mean

{{ portal | language_list }}htmlGenerates the language switcher on the portal


The code {{ portal | language_list }} will be automatically included with appropriate styles when {{ portal | welcome_navigation }} is already available. In case it is not available, then you have to add the code for the language switcher. 


Note: You need to ensure that the styles match your brand, so it is always recommended to check the changes in draft mode before publishing it. 


Placeholder for Dynamic Text

In the portal, when you want to translate any of your hardcoded text such as the page header, title, or footer, similar to the Freshdesk support portal, it can be translated to the required languages and loaded based on the language selected by the users. 


For example, if you want to translate the page title 'We are here to help!' in any other supported language, the translated text can be added based on the current portal language selection which can be accessed as {{ portal.current_language.code }} or {{ portal.current_language.name }}


Here is an example code that needs to be used on your portal customization code: 

<h1>
{% if portal.current_language.code == "en" %}
We are here to help!
{% elsif portal.current_language.code == "fr" %}
Nous sommes ici pour aider!
{% elsif portal.current_language.code == "de" %}
Wir sind hier um zu helfen!
{% endif %}
</h1>

 

The following list shows all the supported languages and their respective codes:

NameCode
Arabicar
Catalanca
Czechcs
Danishda
Germande
Englishen
Spanish (Latin America)es-LA
Spanishes
Estonianet
Finnishfi
Frenchfr
Hungarianhu
Indonesianid
Italianit
Japaneseja-JP
Koreanko
Norwegiannb-NO
Dutchnl
Polishpl
Portuguese (BR)pt-BR
Portuguese/Portugalpt-PT
Russianru-RU
Slovaksk
Sloveniansl
Swedishsv-SE
Turkishtr
Vietnamesevi
Chinesezh-CN
Ukrainianuk
Hebrewhe
Thaith
Romanianro
Chinese (Traditional)zh-TW

   

Here's the list of placeholders for other categories: