I'm using Sitecore 9 and SXA 1.7.
I can set the default language of the site at Site Grouping:
I want to know where to set the language programmatically in SXA. Which dll to use, as I want to override this behavior?
I'm using Sitecore 9 and SXA 1.7.
I can set the default language of the site at Site Grouping:
I want to know where to set the language programmatically in SXA. Which dll to use, as I want to override this behavior?
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
Select Arabic and proceed till completion.
Once added, Go to your tenant, and create a new Site, There you will see the language you just created.
<setting name="DefaultLanguage" value="en" />
check this answer, it will help sitecore.stackexchange.com/questions/8211/…
Commented
Feb 25, 2019 at 10:33