• Documentation
  • API
  • Formats

Formats

Fetch the details of all the i18n formats supported by Transifex.

Fetching file format details

URL: /formats/

GET

The answer to the request is JSON-encoded and contains the fields descriptionmimetypefile-extensions for each i18n format supported by Transifex.

Example reply:

$ curl -i -L --user username:password -X GET https://www.transifex.com/api/2/formats/

{
    "YML_KEY": {
        "mimetype": "text/plain",
        "file-extensions": ".yml, .yaml",
        "description": "YAML Files based on the content"
    },
    "PHP_INI_KEY": {
        "mimetype": "text/plain",
        "file-extensions": ".ini",
        "description": "PHP INI Files based on content"
    },
    "XLIFF": {
        "mimetype": "text/xml",
        "file-extensions": ".xlf, .xliff, .xml",
        "description": "XLIFF file"
    },
    ...
}