The FT_LOCALES
cookie provides information about the current content language and interface language on a Fluid Topics portal.
Its format is as follows:
ui:{ft-ui-locale}/content:{ft-content-locale}
Where:
- 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. It corresponds to the portal's current interface language. - 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. It corresponds to the current publication's content language.
Use case
A user accesses doc.fluidtopics.com
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 contains the following information:
ui:fr-FR/content:en-US