-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add download_sources
option
#74
Comments
Hi there! Thank you for the details, checking them |
I got it working, but it's not trivial to align commit & push with I have some suggestions below on how to make this more obvious, but I certainly underestimated the complexity of such change. Commit and push options are currently documented and used as download translations options, so I see two ways of setting up
In any case, action would benefit from aliasing Also, there is a catch in option 1. If I disable I hope Crowdin developers have more insight into which alternative would benefit their users more, but after some thought I consider using Crowdin CLI directly because our workflow seem to be too specific for general-purpose action. |
Hi there! Glad to hear that you got it working, it looks to us that your current realization is pretty simple and flexible. Regarding your options, the more new parameters would be added, the more complex the GitHub action would be. You may also specify |
Hi @sazarubin! Is the provided solution above is clear for you? This solution will be flexible and simple In any case, we can discuss this in more detail 🙂 |
Problem
I'm trying to implement workflow, where Crowdin and not the repo is the source of truth both for source strings and translations.
It would go like this:
But when I add a new string to a source file using Crowdin UI and then GitHub action from (2) triggers, it removes new string from Crowdin instead of adding it to the repo.
I couldn't find an option to download source files from Crowdin, but it exists in Crowdin CLI.
Solution I'd like
It would be convenient and also seems pretty logical and easy to add a
download_sources
option symmetric toupload_sources
. The default value would befalse
, so it won't surprise or break existing integrations.I'm not sure if this option would be useful for most Crowdin Action users, but it sure won't harm anyone being off by default, nor would it add much complexity to the action code.
Alternatives I've considered
I could change workflow, but it would harm developer experience, because when developer adds a new string by commiting to repo, he or she would also need to go to UI to add context, screenshot, translations for his/her native languages and so on. So, it seems to me that starting the process from Crowdin UI would be more straightforward.
I also could use Crowdin CLI directly, but I like using this action 😃
I'm glad to send PR if that helps in any way.
The text was updated successfully, but these errors were encountered: