List the translations of a language
curl --request GET \
--url https://api.tolk.every-day.io/v1/translations/{locale} \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tolk.every-day.io/v1/translations/{locale}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tolk.every-day.io/v1/translations/{locale}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"hash": "<string>",
"namespace": "<string>",
"key": "<string>",
"context": "<string>",
"isPlural": true,
"value": "<string>",
"forms": {},
"isTranslated": true,
"isOutdated": true,
"issues": [
{
"rule": "laravel.missing",
"level": "error",
"placeholder": "<string>",
"form": "<string>",
"suggestion": "<string>"
}
],
"version": 123,
"updatedAt": "<string>"
}
],
"meta": {
"nextCursor": "<string>",
"limit": 123
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}Translations
List the translations of a language
One page of the active keys of the project with their translation in this language, ordered by key id, also
the keys without a translation yet (value, forms and version are then null). The source language can be
read too. Filter on status, namespace, tag name (untagged for keys without a tag) and the last change of the
translation; follow meta.nextCursor for the next page.
GET
/
translations
/
{locale}
List the translations of a language
curl --request GET \
--url https://api.tolk.every-day.io/v1/translations/{locale} \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tolk.every-day.io/v1/translations/{locale}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tolk.every-day.io/v1/translations/{locale}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"hash": "<string>",
"namespace": "<string>",
"key": "<string>",
"context": "<string>",
"isPlural": true,
"value": "<string>",
"forms": {},
"isTranslated": true,
"isOutdated": true,
"issues": [
{
"rule": "laravel.missing",
"level": "error",
"placeholder": "<string>",
"form": "<string>",
"suggestion": "<string>"
}
],
"version": 123,
"updatedAt": "<string>"
}
],
"meta": {
"nextCursor": "<string>",
"limit": 123
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Which rows GET /v1/translations/{locale} lists: every active key (the default), only the translated ones, or only the ones without a translation.
Available options:
all, translated, untranslated Maximum string length:
191Maximum string length:
50Maximum string length:
200Required range:
1 <= x <= 1000