As I found out, to get the list of available locales, I need to make request like this:
baseAdress/i18n/locales
And the response is array of locales with fields id
, name
, code
, createdAt
, updatedAt
, isDefault
.
But I need to get all published locales, not drafts, Because I need the opportunity to turn off some locales to edit it in Admin panel.
Also I’ve tried to make request with some params:
baseAdress/i18n/locales?_publicationState=draft&published_at_null=true
But I still get all locales, not only published or drafts