Version Locales Resource

REST interface for configured version locales.

See Also
GET Project Version

GET /projects/p/{projectSlug}/iterations/i/{iterationSlug}/locales

Returns list of active locales for a single project-version. This may be the list of locales inherited from the project. This also returns locale aliases.

See Also
GET Project Version
Response Body
media type data type description
application/json array of Locale Details (JSON) OK 200 containing the list of LocaleDetails NOT FOUND 404 if the project-version does not exist
application/vnd.zanata.project.locales+json array of Locale Details (JSON)
application/vnd.zanata.project.locales+xml list of Locale Details (XML)
application/xml list of Locale Details (XML)

Example

Request
GET /projects/p/{projectSlug}/iterations/i/{iterationSlug}/locales
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "localeId" : "es-ES",
  "displayName" : "Spanish (Spain)",
  "alias" : "es",
  "nativeName" : "Español",
  "enabled" : true,
  "enabledByDefault" : true,
  "pluralForms" : "nplurals=2; plural=(n != 1)",
  "rtl" : true
} ]
                
              
See Also
Project locales Project locales

GET /projects/p/{projectSlug}/iterations/i/{iterationSlug}/locales/source

Returns list of active source locales of all documents for a single project-version.

Response Codes
code condition
200 Content contains a list of source locale details
404 The project version is not found
Response Body
media type data type description
application/json array of SourceLocaleDetails (JSON) OK 200 containing the list of SourceLocaleDetails NOT FOUND 404 if the project does not exist

Example

Request
GET /projects/p/{projectSlug}/iterations/i/{iterationSlug}/locales/source
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "docCount" : 12345,
  "localeDetails" : {
    "localeId" : "es-ES",
    "displayName" : "Spanish (Spain)",
    "alias" : "es",
    "nativeName" : "Español",
    "enabled" : true,
    "enabledByDefault" : true,
    "pluralForms" : "nplurals=2; plural=(n != 1)",
    "rtl" : true
  }
} ]