Creates a new language translation for this account.

Accepted content-types: * multipart/form-data * application/octet-stream

Example multipart/form-data request:

{
  "language_translation" : {
    "description" : "custom description",
    "file_input" : file attachment
  }
}

NOTE: The filename will be extracted from the attached file and must be a valid .ini file.

Example application/octet-stream request:

{
  "language_translation":{
    "name" : "CustomLanguage.ini"
    "description" : "custom description"
  }
}

NOTE: The file to upload will be extracted from the raw POST request.

An example successful response:

{
  "status": "success",
  "message": "success",
  "result": {
    "id"=>134,
    "name"=>"CustomLanguage.ini",
    "description"=>"custom description",
    "checksum"=>1583191961,
    "created_at"=>Mon, 02 Mar 2020 23:32:41 UTC +00:00,
    "updated_at"=>Mon, 02 Mar 2020 23:32:41 UTC +00:00
  }
}

Params

Param name Description
language_translation["description"]
required

The description of the language file

Validations:

  • Must be a String

language_translation["file_input"]
optional

The file to upload when using multipart/form-data content type.

Validations:

  • Must be a File