Skip to content

List Locales

EndpointMethod
/api/admin/settings/localesGET

Returns every locale configured in the store in the { data, meta } envelope. Use it to populate a locale picker, audit which languages a store supports, or look up a locale's id before a detail / update / delete call.

Pagination

ParameterDescription
pagePage number, 1-based. Default 1.
per_pageItems per page. Default 10, max 50.

Filters

Query parameters that narrow the result. Supplying more than one narrows further — they combine with logical AND. They mirror the admin Locales datagrid filters.

ParameterMatchExample
idExact. Single id or a comma-separated list.?id=1 · ?id=1,10,35
codePartial (contains).?code=en
namePartial (contains).?name=Eng
directionExact — ltr or rtl.?direction=rtl

Sorting

ParameterValues
sortid (default), code, name
orderasc, desc (default desc)

Both the compound form ?sort=name-asc and the split form ?sort=name&order=asc are accepted.

Notes

  • direction controls the text direction of the storefront when that locale is active.
  • logoPath is the stored relative path; logoUrl is its fully-qualified public URL. Both are null for locales without a logo.
  • Seeded core locales (such as English) may have null createdAt / updatedAt.

See the Locales overview for field meanings and behaviour.

Released under the MIT License.