TransWikia.com

Setting site default language in SXA

Sitecore Asked by Mohamed Mosa on August 23, 2021

I’m using Sitecore 9 and SXA 1.7.

I can set the default language of the site at Site Grouping:

enter image description here

I want to know where to set the language programmatically in SXA.
Which dll to use, as I want to override this behavior?

One Answer

In SXA you don't need it to set it programmatically. SXA is designed with zero code approach, and almost everything is possible without editing the code.

for DLLm Check the Sitecore.XA.Foundation.Multisite

Before you create a new Website in Tenant, just add the new language you desire, for example Arabic. Go to `/sitecore/system/Languages/' and add the new language

enter image description here

Select Arabic and proceed till completion.

enter image description here

Once added, Go to your tenant, and create a new Site, There you will see the language you just created.

enter image description here

Answered by Sitecore Sam on August 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP