If you signed up before Aug 9, 2021, please click Previous plans to view your applicable plans.
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 }} | html | Generates 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:
Name | Code |
Arabic | ar |
Catalan | ca |
Czech | cs |
Danish | da |
German | de |
English | en |
Spanish (Latin America) | es-LA |
Spanish | es |
Estonian | et |
Finnish | fi |
French | fr |
Hungarian | hu |
Indonesian | id |
Italian | it |
Japanese | ja-JP |
Korean | ko |
Norwegian | nb-NO |
Dutch | nl |
Polish | pl |
Portuguese (BR) | pt-BR |
Portuguese/Portugal | pt-PT |
Russian | ru-RU |
Slovak | sk |
Slovenian | sl |
Swedish | sv-SE |
Turkish | tr |
Vietnamese | vi |
Chinese | zh-CN |
Ukrainian | uk |
Hebrew | he |
Thai | th |
Romanian | ro |
Chinese (Traditional) | zh-TW |