I followed the below steps to enable a new Language (Arabic, which is not already in the supported languages list), noting that I am on-premises, but couldn't see the Languages Selector, since the portal is detecting only on language (English).
- Installed the Language Pack on the environment.
- Created a new record under Portals > Portal Languages with the below information:
- Name: Arabic - Saudi Arabia
- Display Name: عربي
- Dynamics 365 language: 1,025
- LCID: 1,025
- Code: ar-SA
- Navigate to Settings > Administration > Languages, selected "Arabic" and clicked Apply.
- The language status became "Enabled".
- Navigate to Portals > Websites, open the only website I have "Community Portal".
- In the Supported Languages section, I created a new record where,
- Portal Language: Arabic - Saudi Arabia
- Publishing State: Published
- Website: Community Portal
- Step 6 has automatically cloned "Content Snippets" & "Web Link Sets" for the new enabled language.
- Step 6 should let the language selector appear in the header of the portal, but it is not appearing now even after restarting the website and recycling its pool.
- The below partial code exists in "Header" Web Template in case you're asking:
{% if website.languages.size > 1 %}
<li class="dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" title="{{ website.selected_language.name | escape }}">
<span class="drop_language">{{ website.selected_language.name | escape }}</span>
<span class="caret"></span>
</a>
{% include 'Languages Dropdown' %}
</li>
<li class="divider-vertical"></li>
{% endif %}
Thanks in advance!