Statistics
There are some available statistics for each resource, like the translated
and untranslated
entities per resource. These statistics can be accessed under the following URLs:
Downloading project statistics
URLs (DEPRECATED):
/project/
<project_slug>
/resource/<resource_slug>
/stats//project/
<project_slug>
/resource/<resource_slug>
/stats/<lang_code>
/
The latter should be used, if one is interested in the statistics for a particular language.
GET
Return the statistics for the specified resource. If the lang_code
part is given, statistics are returned only for that specific language. Otherwise, statistics are returned for all available languages. The specific data returned per language are:
completed
- The percentage of the resource that has been translated for the language.translated_entities
- The number of entities that have been translated for the language.untranslated_entities
- The number of entities that have not been translated for the language.translated_words
- The number of words that have been translated for the language.untranslated_words
- The number of words that have not been translated for the language.last_update
- The date and time that the last update for this translation took place.last_committer
- The username of the last user to have updated the translation for the language.reviewed
- The number of entities which have been reviewed for the language.reviewed_percentage
- The percentage of entities that have been reviewed for the language.
Example:
$curl -i -L --user api:<token> -X GET https://www.transifex.com/api/2/project/transifex/resource/core/stats/
HTTP/1.1 200 OK
...
{
"en": {
"reviewed_percentage": "0%",
"completed": "100%",
"untranslated_words": 0,
"last_commiter": "diegobz",
"reviewed": 0,
"translated_entities": 2165,
"translated_words": 16629,
"last_update": "2014-02-20 14:25:06",
"untranslated_entities": 0
},
"uk": {
"reviewed_percentage": "49%",
"completed": "100%",
"untranslated_words": 0,
"last_commiter": "yurchor",
"reviewed": 1079,
"translated_entities": 2165,
"translated_words": 16629,
"last_update": "2014-02-20 16:31:13",
"untranslated_entities": 0
},
"pt_BR": {
"reviewed_percentage": "92%",
"completed": "93%",
"untranslated_words": 1209,
"last_commiter": "diegobz",
"reviewed": 27,
"translated_entities": 2035,
"translated_words": 15420,
"last_update": "2014-02-20 14:25:01",
"untranslated_entities": 130
},
...
}
Additionally, we have implemented a new API endpoint that returns statistics on project/language level. You can find more information about this here.