File Post-Export Processing Module
The post-export module allows you to modify your files after exporting them from Crowdin. With the post-export module, you can apply automated modifications to selected files. This module can work with a wide range of file formats, such as TXT, XML, JSON, and many more, to customize their contents.
By using the post-export module in your Crowdin app, you can adjust the file format, structure, and content. Since the module is executed after Crowdin exports the file, you can fine-tune the content after the file is processed by the system.
Access
You can grant access to this module to one of the following user categories:
For Crowdin:
- Only me (i.e., project owner)
- All project members
- Selected users
For Crowdin Enterprise:
- Only organization admins
- All users in the organization projects
- Selected users
Structure
Properties
key | Type: Required: yes Description: Module identifier within the Crowdin app. |
url | Type: Required: yes Description: The relative URL triggered on file export. |
signaturePatterns | Type: Description: Contains |
Communication between File Processing App and Crowdin
When exporting a file, Crowdin detects an appropriate module using the signaturePatterns
parameter and makes an HTTP request to the app’s URL ($baseUrl . $url
) for further processing.
Additionally, during the file export, Crowdin will also validate the file name and content to ensure they match the appropriate file processing app modules. This process can include the pre-export processing module to modify the strings before the export and the post-export processing module to modify the content of the file after it is exported.
To modify the file content, the system first locates the appropriate post-export module and sends the file content to it. The module then performs the predetermined modifications, which may include file format changes, structure, and content updates.
Once the post-export module has completed the file modifications, Crowdin returns the modified file content, as well as a new file name or extension if applicable.
Request to the File Processing App
Request payload example:
Properties:
jobType | Type: Value: Description: Specifies the action of the file post-export module. |
file.content , file.contentUrl | Type: Description: Parameters used to pass the base64 encoded exported file content ( |
file.rawContent , file.rawContentUrl | Type: Description: Parameters used to pass the base64 encoded source file content ( |
Expected Response from the App
Response payload example:
Properties:
data.content , data.contentUrl | Type(data.content): Type(data.contentUrl): Description: Parameters used to pass the base64 encoded modified file content ( |
exportPattern | Type: Description: Optional parameter used to overwrite export pattern for a resulting file. |
error.message | Type: Description: An error message that can be passed from the app to Crowdin and will be visible to a user in the UI. |