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.
You can configure a site's locale settings to enable content translation and improve SEO performance.
Call Get Locale Settings to retrieve and check the site's primary locale and its current configuration.
Enable multilingual mode so that a site can support multiple locales by calling Set Multilingual Mode and setting multilingualModeEnabled
to true
.
Improve the site's SEO performance by calling Update Locale Settings and setting urlStructure
to SUBDIRECTORY
.