Download resource file
lingohub_download_resourceDownload one resource file as text, in one language. file_name is the file name as list_resources shows it (the folder goes in path). Long files are cut at 40000 characters (truncated: true); use request_export for a full copy. GET .../projects/{project_url}/resources/{file_name}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Folder of the file, when the file name alone is not unique. | |
| branch | No | Project branch name. Default: the project's default branch. An unknown branch is HTTP 422. | |
| language | No | Locale code to export (overrides the locale in the file name), e.g. de. | |
| file_name | Yes | Resource file name, e.g. messages_de.properties. | |
| project_url | Yes | Project URL slug (e.g. "feature-demo"); list_projects returns it as project_url. | |
| html_encoding | No | How HTML in a segment is escaped. | |
| workspace_url | Yes | Workspace URL slug (e.g. "lingohub-demo"); list_projects returns it as workspace_url. | |
| filter_by_status | No | Only export target segments in this state. | |
| blank_content_handling | No | What to export for a segment with no translation in the target language. |