Update Default Locale Configuration - Fluid Topics - 3.6

Use Fluid Topics Web API

Product
Fluid Topics
FT_Version
3.6
Category
Technical Notes
language
English

This web service enables you to modify the default locales set for the portal.

To retrieve the current default language configuration, use the Get Default Locale Configuration web service.

Method

Endpoint

POST

/api/locales/default

Return codes

Return Code

Description

200 OK

Returns 0 or more results.

400 BAD REQUEST

Invalid JSON input.

Input Example

The input JSON expects the following parameters:

Parameter

Description

defaultUiLocale

The default language ISO code for the portal interface.

defaultContentLocale

The default language ISO code for the portal content.

defaultRegions

ISO codes for default regional languages. These correspondences are used to complete languages set without locales in the portal configuration and content.

The input JSON expects the following parameters:

{
"defaultUiLocale": {
"lang": "fr",
"region": "FR"
},
"defaultContentLocale": {
"lang": "fr",
"region": "FR"
},
"defaultRegions": [
{
"lang": "af",
"region": "ZA"
},
{
"lang": "sq",
"region": "AL"
},
{
"lang": "ar",
"region": "MA"
},
{
"lang": "hy",
"region": "AM"
},
...
{
"lang": "vi",
"region": "VN"
}
]
}