Newer Version Available

This content describes an older version of this product. View Latest

Set the Default Language on Your LWR Site

When you create an LWR site, the default site language is English (US). If you want to change it to a different default language, update the default language as soon as possible after you create the site to avoid losing content.

When you change the default site language, you remove all content in your original default language. If there’s translated content on your site in the new default language, you remove that, too. So it’s best to minimize the amount of content that you add to your site in either language until after you update the default language.

  1. In the Settings panel in Experience Builder, select Languages.
  2. If you haven’t added your intended new default language to the site, add it now.
  3. From the actions menu for your intended new default site language, select Set as default site language. On enhanced LWR sites, if a site language is disabled in your Salesforce org, you can’t select that language as your default site language.
    Actions menu for a language on the Site Languages list on the Languages panel, highlighting Set as default site language
  4. In the confirmation window, click Change.

If you did add content to your site in either language, and you want to preserve that content, export the translation before you change the default site language. The resulting .xlf file contains the content in both languages. The text in your original default language appears within the <source> tags in the file. The text in your intended new default language appears within the <target> tags in the file.

You can’t import this file back to your site, but you can paste the text back into each relevant field in the component property editor panels in Experience Builder.

Note