Import Translated Content to Your LWR Site

After you add a language to your site, you can enter translations for that language directly into the component property editor panels in Experience Builder. Alternatively, to upload an entire site translation at once, export the site content for translation, then import the translated content in an .xlf file.

In Experience Builder, you can import translated content to your LWR site only in an .xlf file. Each file can contain only one translation, and you can import only one .xlf file at a time. File uploads of greater than 1 MB can take a few minutes. In that case, we send you an email when the import is complete.

If you exported your site content before Summer ’22, export it again to ensure that you and your translator are working with the most recent version of the .xlf format. You can’t upload older versions of the .xlf format to your site.

Note

Importing a site translation overwrites your existing content in that language, but it doesn’t overwrite your default language content or content in other languages.

Avoid updating your site, including adding or removing components, while the site is being translated because the translation is based on the earlier (pre-updated) version of the site.

  1. In the Settings panel in Experience Builder, select Languages.
  2. In the Languages panel, click Upload File and navigate to the translation file, or drag the file to the Drop File field.
  3. To view the translated content in Experience Builder, select that language from the language selector.
    Language selector icon and menu in Experience Builder

The file that you exported for translation didn’t include any CMS content that’s on your site or any items in your site’s navigation menu. Translate the CMS content in your CMS Workspace in the Digital Experiences app. Use Translation Workbench to translate the items in the site’s navigation menu.

You can also import a translation programmatically using ExperienceBundle. See ExperienceBundle in the Metadata API Developer Guide.

Note