Get translations
Changed onGet translations for a project
Request
- Base URLhttps://api.simplelocalize.io
- AuthAPI key in header X-SimpleLocalize-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Filter by translation key
Filter by namespace
Filter by language key
Search by translation text (case-insensitive, uses 'contains'). Minimum length: 3 characters. Limits results to 10.
Search by translation text or translation key (case-insensitive, uses 'contains'). Minimum length: 3 characters. Limits results to 10.
Filter by translation text status
Filter by customer id (Business plan only)
Use true to get translations without customer translations, default value is false (Business plan only)
Filter by review status
Page number
Page size
Sort by field
Sort order
Use REVIEWED to get last reviewed version of translations if exists, otherwise it returns empty text
Response
OK
Example response
{
"data": {
"content": [
{
"key": "hello_world",
"namespace": "common",
"language": "en_EN",
"customerId": "acme",
"text": "Hello world",
"reviewStatus": "NOT_REVIEWED",
"review": {
"by": "reviewer@example.com",
"at": "2021-01-01T00:00:00.000Z"
},
"lastModifiedAt": "2021-01-01T00:00:00.000Z"
}
]
}
}Changes
- warning
added the new
NOT_REVIEWEDenum value to the///////response property for the response status - warning
added the new
NOT_REVIEWEDenum value to the///////response property for the response status - warning
added the new
REVIEWEDenum value to the///////response property for the response status - warning
added the new
REVIEWEDenum value to the///////response property for the response status - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status
- warning
- breaking
for the
queryrequest parameterreviewStatus, default valuewas added - breaking
for the
queryrequest parametertextStatus, default valuewas added - breaking
the response's body type changed from
objectto no type for status - breaking
added to the
response propertyoneOflist for the response status - breaking
the
response's property type changed fromarrayto no type for status - warning
deleted the
headerrequest parameterX-SimpleLocalize-Token - warning
removed the optional property
from the response with the status - info
api operation id
getTranslationsV2removed and replaced withgetTranslations - info
the endpoint scheme security
Project API Keywas added to the API - info
the endpoint scheme security
apiKeywas removed from the API - info
added the new optional
queryrequest parameterquery - info
added the new optional
queryrequest parametersortBy - info
added the new optional
queryrequest parametersortOrder - info
added the new optional
queryrequest parameterversion - info
for the
queryrequest parametertext, the maxLength was increased from100to2147483647 - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
the
response's property default valueOKwas added for the status - info
the
response's property default value200was added for the status
- breaking