CLI: Upload files with context

Hello,
I found that only way how to upload file with context is via “file upload” command. This command has --context option. Unfortunately this command doesn’t have any option how to specify path after translation. Additionally, the context cannot be changed if the file has already been uploaded via “upload sources”.

Fortunately, it works the other way around. So I upload files with context one by one and than upload them again using “upload sources”.

It would be nice if “file upload” had a --translation option.
Another way could be to allow file context specification in crowdin.yml in “files” section.

Why I need this? I extract context from source file before uploading it to Crowdin.

For example, we use JavaScript and we add following comment to English resource file:

// TranslationContext: Date selection dialog.

As far as I know, it is not possible to specify context in plain sources.

Thank you in advance for considering this new feature.

Hello there,

Thank you for reaching out with your suggestion regarding the context specification for file uploads!

Your feedback is valuable, and I will certainly pass it on to our development team and check whether we will be able to implement such an option.

In the meantime, your current workaround of uploading files with context and then re-uploading them using “upload sources” is a valid approach.

Thank you in advance for your understanding and patience. If you have any further questions or need assistance, please don’t hesitate to contact us.

Best regards,