-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support partial clones #4203
Comments
Weblate already uses shallow clones to reduce amount of the data. I don't think supporting sparse clones out of the box is doable in near future, here are issues I can see with it right now:
Overall, it seems that it would require a lot of code (potentially fragile) for a feature that most people would not use. |
This issue has been put aside. Currently, it is unclear whether it will ever be implemented as it seems to cover too narrow of a use case or doesn't seem to fit into Weblate. Please try to clarify the use case or consider proposing something more generic to make it useful to more users. |
To add a bit more details: My folder structure looks like this:
my .filterspec contains this:
Adding, removing files, adding languages, discovering new components, all works fine as long as it happens within the locales folder.
^ I don't get this point, I don't filter files inside my But I understand the position, not everyone would need it, and it is experimental. |
The only reason is that it works with your filter and repository structure. Doing this automatically by Weblate and make it work in all cases is not that easy. |
I also very much support this feature request. I am developing multiple apps that each are available for four platforms. In my repository I have the apps code (small in size), app assets like app icons (medium in size) and then additional resources for marketing like images and videos (very large in size). I am using Weblate in a shared hosting environment which has rather strict limitations when it comes to available storage. |
Duplicate of #1161 |
Is your feature request related to a problem? Please describe.
I am making a game. My repo is 8GB
the translation files are just about 3 MB
Checking out my entire repo will quickly fill up my weblate storage with irrelevant data.
Describe the solution you'd like
I would like weblate to use git partial clones if available when creating a component. See here for a short guide:
https://docs.gitlab.com/ee/topics/git/partial_clone.html
I was able to configure this manually: I cloned my repo with the guide provided above, put it where weblate would clone it and then I configured it as a component in weblate. It works like a charm. The cloned repo is roughly 18MB in size and it only has the translation files.
Describe alternatives you've considered
I have also tried keeping the translation files in a git submodule, but this negatively impacts my workflow.
The text was updated successfully, but these errors were encountered: