Get locales for all content - Fluid Topics - Latest

Fluid Topics API Reference Guide

Category
Reference Guides
Audience
public
Version
Latest

This web service returns all used content locales, with the count of Knowledge Hub items for each locale.

Method Endpoint
GET
/api/khub/locales

Response body

{
    "contentLocales": [
       {
           "lang": "fr-FR",
            "label": "Français",
            "count": 42
        },
        {
            "lang": "zh-CN",
            "label": "中文 (大陆)",
            "count": 42
        }
    ]
}
Field Type Description
contentLocales Array The content language ISO code.
    lang String The content language ISO code.
    label String The language as displayed on the portal.
    count Number The number of Knowledge Hub items corresponding to the given language.
Return code Description
200 OK Returns 0 or more results.