Sample Use Cases and Flows

This article present a possible use case you can support using the Locale Settings API. This can be a helpful jumping off point as you plan your implementation.

Configure locale settings to support a multilingual site

You can configure a site's locale settings to enable content translation and improve SEO performance.

  1. Call Get Locale Settings to retrieve and check the site's primary locale and its current configuration.

  2. Enable multilingual mode so that a site can support multiple locales by calling Set Multilingual Mode and setting multilingualModeEnabled to true.

  3. Improve the site's SEO performance by calling Update Locale Settings and setting urlStructure to SUBDIRECTORY.

Did this help?