Pull/download creates and downloads a full bundle making it unnecessary slow / supporting "target file bundles" for pull/download? #886
Replies: 5 comments 6 replies
-
Hi @fabianlinz! By default, the Target file bundles allow you to set up separate bundles with their own file filters, and then you could build and download each of them separately. You can create a new bundle using either the UI or the CLI. Then you can download a specific bundle by using its unique ID. |
Beta Was this translation helpful? Give feedback.
-
Hi @andrii-bodnar, Thanks for your reply! The thing is that we would like to keep the functionality of unpacking the downloaded bundle and copying the relevant language files to the corresponding locations. From my perspective download/pull conveniently combines two features (1) "creating and downloading the full bundle" and (2) "applying the downloaded bundle". What I am looking for is an approach to change (1) to download a "target file bundle" instead of the full bundle, but afterwards I still want to apply the bundle. From my perspective extending the CLI would be the best approach (unless I overlooked an existing option). Extending the CLI would be possible in different ways IMHO (and of cause there are more approaches below)
Does such or a similar extension make sense for you? What would be the best way forward to make it a reality? Thanks and best regards, Fabian |
Beta Was this translation helpful? Give feedback.
-
thanks for the explanation. To be honest I am a little bit confused regarding how the "Resulting file after translation export" on the Crowdin server is used. What you write sounds reasonable, but so far I observed a different behaivour: When I execute
The command then copies the files to the folder where the english original is also located (the configured translation location):
That's why I came to the conclusion that the logic to copy the translated files to the correct translation folder is part of the CLI client code. Also the source code looked more complicated than just unpacking a zip file already containing the target structure [1]. Hope you can help me understanding the missing link. Thanks and best regards, Fabian |
Beta Was this translation helpful? Give feedback.
-
Hi @andrii-bodnar , below you find a screenshot of the target file bundle configuration. This resulting zip for the target file bundle is
The zip for the full bundle is
So from my perspective they have a compatible internal structure. That's why I would love to be able to use the smaller zip of the "target file bundle" for the second part of the So I want the files to be copied to
based on the configuration for subsystem1 (as it's done for
Best regards, Fabian |
Beta Was this translation helpful? Give feedback.
-
Hi @andrii-bodnar , Thank you for the time you took responding in this thread.
I agree that changing the default behaviour of 'crowdin bundle download' would be a breaking change and probably in many cases the current behaviour is exactly what's needed. Adding an addition parameter to opt into an extended unpacking approach might be an option. I think the other options mentioned options could allow the CLI to support this use case. Having a dedicated command for "unpacking a zip based on the configuration" (basically step (2) of the Reconsidering the options currently available I think we will use the branch feature for now. The wording is a little bit irritating, but beside that it does what we want ( |
Beta Was this translation helpful? Give feedback.
-
Hi,
we are working on a bigger system with several independent self-contained-systems. For enable a smooth usage of the Crowdin Editor we planed to push all translations to a single project having a folder per subsystem. In general this works fine, but always building and downloading the full bundle makes the approach noticeably slow.
Ideally it would be possible to make use of the "target file bundles" feature to limit the number of files considered for bundle creation and download (either automatically or by explicitly defining a "target file bundle". The later would probably be the easies to implement as it could work as the current pull/download command, just that not the full bundle is download but a names "target file bundle". But I did not find such an option in the current CLI.
So for now it seems we can
Build specific subdirectory of project, instead of entire project #578
Download only 1 folder of project #346
Are there other options or something that we missed? Does make using "target file bundles" sense for others as well?
Thanks and best regards,
Fabian
example:
subsystem1
"files": [
{
"source": "**/*-messages.properties",
"dest": "subsystem1/%original_file_name%",
"translation": "%original_path%/%file_name%_%two_letters_code%.%file_extension%"
}
]
subsystem2
"files": [
{
"source": "**/*-messages.properties",
"dest": "subsystem2/%original_file_name%",
"translation": "%original_path%/%file_name%_%two_letters_code%.%file_extension%"
}
]
Beta Was this translation helpful? Give feedback.
All reactions