Tailwind Logo

Building a Demo Site with Headless SXA - Part 8 Applying Japanese Resources

Headless SXAXM Cloud

Published: 2023-02-20

We will apply Japanese resources to the container and XM Cloud environment. This procedure was previously introduced in our blog, and this time, we are going to include it again in the steps.

Applying Japanese resources to container environments

Add Japanese resources to a locally launched Docker container image. This article has been previously introduced in this article.

In this case, we will work as follows

  1. Create docker\build\cm\App_Data
  2. Download and copy the Japanese resources to the path above
  3. Add a command to the Dockerfile to copy files

The following is an image of the situation where the files are located.

jajp01.png

Please add the following code to the file docker\build\cm\Dockerfile to be built.

Dockerfile
# resource copy
COPY .\App_Data\ .\App_Data

After the above code is written, you can import Japanese resources into the environment running locally by running docker compose build cm again.

jajp02.png

Updating Project Files

Extract the same resource file under src\platform.

jajp03.png

Then open the solution file for this project (located at the top) XmCloudSXAStarter.sln in Visual Studio. Add the appropriate files to the project and rebuild. The following page is after adding the file to the project.

jajp04.png

After the above changes are made and committed to the GitHub repository, the Deploy XM Cloud tool will automatically configure the new CMS and apply the tool's Japanese resources.

Japanese resources are applied to individual tools, not to the top tool Launch Pad or SaaS tools such as Pages. The following screen shows that Japanese resources are applied to the Content Editor.

jajp05.png

Summary

The Sitecore Cloud Portal screen is still in English, but there are some parts that refer to Japanese resources, so it is convenient to include Japanese resources first. The Sitecore Cloud Portal screen is still in English, but there are some parts that refer to Japanese resources, so it is convenient to include the Japanese resources first.

Tags