GET /v1/:account/projects/:project/resources/:filename

Download a file for the specified resources’ generated content.

Path Parameters

  • account (username of project owner)
  • project (project url, e.g. “Sample Project” -> “sample-project”)
  • filename

Required Parameters

Optional Parameters

  • iso2_slug (Only extract phrases from the locale selected)
  • path (the path information as stored on Lingohub for the file to download, if a file with the same filename is imported from different path locations, eg. via repository import)
  • source:blankContentHandling ([“skip”, “blank”, “master_locale”] – overrides the empty content handling export setting for the source locale)
  • target:blankContentHandling ([“skip”, “blank”, “master_locale”] – overrides the empty content handling export setting for the target locale)
  • source:filterByStatus ([“all”, “translated_and_reviewed”, “reviewed”] – overrides the export text segments with status export setting for the source locale)
  • target:filterByStatus ([“all”, “translated_and_reviewed”, “reviewed”] – overrides the export text segments with status export setting for the target locale)
  • encoding (any name of a valid character encoding – sets the encoding of the exported files)
  • addLocaleInformationToFilename ([“both”, “target”, “none”] – overrides the add language information to filename export setting)
  • escapeCharacters ([“true”, “false”] – overrides the use character escaping export setting)
  • exportDescription ([“true”, “false”] – overrides the export comments export setting)

Example

curl -X GET https://api.lingohub.com/v1/acme/projects/kaboom/resources/countries.de.yml?path=/config/locales&auth_token=token
"The raw content of the given resource file."


Was this Helpful ?   yes     no Chat with us