List locales
What it does
Section titled “What it does”Returns the catalog of supported locale codes and names (with optional regions). Use this when creating or updating a project’s base language and translation languages. No authentication is required.
Request
Section titled “Request”GET /api/v1/locales
| Auth | Not required |
| Path parameters | None |
| Query parameters | None |
| Body | None |
Example
Section titled “Example”curl -sS https://collingo.app/api/v1/localesResponse
Section titled “Response”200 OK
Section titled “200 OK”Content-Type: application/json — array of locales:
[ { "code": "en", "name": "English", "regions": [ { "code": "US", "name": "United States" }, { "code": "GB", "name": "United Kingdom" } ] }, { "code": "de", "name": "German", "regions": [ { "code": "DE", "name": "Germany" } ] }]regions may be null when a language has no regional variants in the catalog.
Errors
Section titled “Errors”OpenAPI documents only the successful 200 response for this public endpoint.