Skip to main content

Get available locales

GET /locales
devhttps://api.sandbox.ovok.com

Fetch the enabled locales and the default locale for localization.

Responses

CodeDescription
200Success.
400The request could not be operated by the server.
401The resource owner or authorization server denied the request.
404The requested resource could not be found.
422The request could not be validated by the server.
500The server encountered an unexpected condition. Please try again later.

200LocaleBodyDto (application/json)

  • languages: string[] (required) — At least one locale code. Used to register a project's active locale set.
  • defaultLanguage: string (required) — The locale to fall back to when a request omits or specifies an unmapped one.

Example

{
"languages": [
"en-US",
"fr-FR",
"de-DE"
],
"defaultLanguage": "en-US"
}