Skip to main content

Module locales

Module locales 

Source
Expand description

GET /api/v2/locales/ — which content locales this tenant serves.

Without this a headless client has to hard-code the language list, and it cannot tell a typo from a real code: ?locale= falls back to the tenant default silently on anything it doesn’t recognise (translation::resolve_locale), so fr-typo and fr both return 200 and only the content differs.

Inactive locales are omitted. A locale that exists but is switched off is not something a client should offer a reader.

Functions§

list
GET /api/v2/locales/
list_inner