Get 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 returns all default locales set for the portal.

When a language is not set with its regional extension, Fluid Topics refers to this mapping table to switch to the region-extended equivalent of the language code.

Method

Endpoint

GET

/api/locales/default

Return codes

Return Code

Description

200 OK

Returns 0 or more results.

Output Example

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

With 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.