Skip to content

How can I download/save translations from a Project in a file? #223

Answered by dies
LoveKhatri asked this question in Q&A
Discussion options

You must be logged in to vote

One of the ways to get both fileId and its translation progress is to use the Get Language Progress API method. Like this:

client.translationStatusApi.withFetchAll().getLanguageProgress(220, 'fr');

withFetchAll() is to get all results so you don't have to worry about pagination

'fr' is Crowdin language id,

220 is a project id.

The response you should expect is like following:

{
  "data": [
    {
      "data": {
        "fileId": 12,
        "eTag": "fd0ea167420ef1687fd16635b9fb67a3",
        "words": {
          "total": 7249,
          "translated": 3651,
          "approved": 3637
        },
        "phrases": {
          "total": 3041,
          "translated": 2631,
          "approved": 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LoveKhatri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants