FT_LOCALES - Fluid Topics - 4.2

Fluid Topics Integration Guide

Operating system
RHEL
Category
Reference Guides
Audience
public
Version
4.2

The FT_LOCALES cookie provides information about the content language and interface language defined for a Fluid Topics portal when a user searches for data in the Knowledge Hub.

Its format is as follows:

ui:{ft-ui-locale}:{ft-ui-locale-choice-type}/content:{ft-content-locale}:{ft-content-locale-choice-type}

Where:

  1. The value of ft-ui-locale is the combination of an ISO 639-1 language code in lowercase and an ISO 3166-1 country code in uppercase, separated by a hyphen. For example, en-US, fr-FR, etc.
  2. ft-ui-locale-choice-type is optional. It contains the origin of the value set in ft-ui-locale. The origin is DEFAULT when a user accesses the portal for the first time, for example. As soon as that user defines an interface language, the origin becomes USER.
  3. The value of ft-content-locale is the combination of an ISO 639-1 language code in lowercase and an ISO 3166-1 country code in uppercase, separated by a hyphen. For example, en-US, fr-FR, etc.
  4. ft-content-locale-choice-type is optional. It contains the origin of the value set in ft-content-locale. The origin is DEFAULT when a user accesses the portal for the first time, for example. As soon as that user defines a content language, the origin becomes USER.

Use case

A user accesses doc.antidot.net for the first time, where the default interface language and the default content language are both en-US. The FT_LOCALES cookie contains the following information:

ui:en-US/content:en-US

The user switches the interface language to fr-FR. The FT_LOCALES cookie now contains the following information:

ui:fr-FR/content:en-US