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.