Transifex

  • Documentation
  • API 2.0 (Deprecated)
  • Pseudo translations

Pseudo translations

We are deprecating the API versions namely API v2 and v2.5, to make way for the more usable and maintainable API v3.

As of April 7th, 2022 the API versions 2 and 2.5 will no longer be operational and relevant requests will begin to fail.

The following API endpoint generates pseudolocalization files. You can find more information on the topic here.

Downloading pseudolocalization files

URL: /project/<project_slug>/resource/<resource_slug>/pseudo/?pseudo_type=MIXED

GET

Returns a JSON dictionary containing the content of the pseudolocalization file and the mimetype of the corresponding source file.

Example:

$ curl -i -L --user api:<token> -X GET https://www.transifex.com/api/2/project/transifex/resource/core/pseudo/?pseudo_type=MIXED

HTTP/1.0 200 OK
...
{
    "content": '# Translation file for Transifex.\n# Copyright (C) 2007-2010 Indifex Ltd.\n# This file is distributed under the same license as the Transifex package.\n# \n# Translators:\n# Translators:\nmsgid ""\nmsgstr ""\n"Project-Id-Version: Transifex\n"\n"Report-Msgid-Bugs-To: \n"\n"POT-Creation-Date: 2014-09-22 22:59+0000\n"\n"PO-Revision-Date: 2014-09-16 11:46+0000\n"\n"Last-Translator: Themis Savvidis <themhs@gmail.com>\n"\n"Language-Team: English (https://www.transifex.com/projects/p/transifex/language/en/)\n"\n"MIME-Version: 1.0\n"\n"Content-Type: text/plain; charset=UTF-8\n"\n"Content-Transfer-Encoding: 8bit\n"\n"Language: en\n"\n"Plural-Forms: nplurals=2; plural=(n != 1);\n"\n\n#: accounts/forms.py:28\nmsgid "Full name is required."\nmsgstr "[Ƒŭŀŀ ƞȧḿḗ īş řḗɋŭīřḗḓ. ςſDžDž ΰNjςϱ Nj]"\n\n#: accounts/forms.py:37\nmsgid "Transifex does not support this role."\nmsgstr "[Ŧřȧƞşīƒḗẋ ḓǿḗş ƞǿŧ şŭƥƥǿřŧ ŧħīş řǿŀḗ. ıϐϐ鶱衋LjΐDžDz]"\n\n#: accounts/forms.py:51 accounts/forms.py:293\nmsgid "Username"\nmsgstr "[Ŭşḗřƞȧḿḗ ϕ靐ẛẛ靐衋ı鶱]"',
    "mimetype": "text/x-po"
}

If the GET parameter file is also specified, then the pseudotranslations are downloaded in the corresponding file format.

For example:

$ curl -i -L --user api:<token> -X GET https://www.transifex.com/api/2/project/transifex/resource/core/pseudo/?pseudo_type=MIXED&file