This application allows you to run custom code against any exported file.
This application allows you to edit any file with your own JavaScript code after export and before download. It can be useful if you want to edit the file content before using translated resource files.
JavaScript code is executed in a sandboxed environment with no access to I/O (file system, network) or external NPM modules.
This application will expose the following variables in the global environment:
content
- the content of the uploaded file;fileName
- the name of the uploaded file;projectId
- Crowdin project ID;languageId
- target language Crowdin ID;error
- the error message you want to return. If set, the import will be aborted and the error message will be shown to the user;You can edit content
and fileName
to make the changes you need.
content = content.replace("Test", "Check");
Crowdin is a platform that helps you manage and translate content into different languages. Integrate Crowdin with your repo, CMS, or other systems. Source content is always up to date for your translators, and translated content is returned automatically.
Learn MoreReleased on Sep 23, 2023
Updated on Aug 29, 2024
Published by Awesome Crowdin
Identifier:custom-post-export-processor