sumn2u / learn-javascript

A book that teaches JavaScript 📗💻📖
https://javascript.sumankunwar.com.np/en/
Apache License 2.0
868 stars 127 forks source link

Automate reports on english sections to be translated into other languages #131

Closed moustaphaotf closed 8 months ago

moustaphaotf commented 8 months ago

Is your feature request related to a problem? Please describe. I'm new to github and workflows... through the process of trqnslations there may occur sometimes that translators need to know which sections they have to must focus on. Given some changes in one section of a chapter, it may be interesting to signal that in other language there may be fixes to be done for coherence (and what have been updated to the original version)

Describe the solution you'd like Nothing in mind currently.

Describe alternatives you've considered N/A

Additional context N/A

moustaphaotf commented 8 months ago

Hello ! I've been working on a solution up to this time what I've made up is to use github workflows to listen up to push & pull_request close event and then check if there have been changes made to the main folder en/. After that, the workflow finds out the differences and create a new issue with labels | assignees | description based on what the diffs are made of.

Here is the description of the whole process:

  1. A user forks the repository.
  2. They make contributions and push changes to their forked repository.
  3. They submit a pull request to the repository to have their changes merged into the main branch.
  4. After the pull request is merged, a check is performed to test if there are updates to the "en/" folder in the main repository.
  5. If there are updates to the "en/" folder, the workflow automaticaly create a GitHub issue to notify maintainers that there is a need for translation.

I have a bare solution that I experienced with where u can see workflows automaticaly generated.

Check it out and let's talk about it ! I'm also open to propositions to enhance the process

moustaphaotf commented 8 months ago

@sumn2u if you get some free time, we'll have to discuss about this solution or find alternatives if possible.

sumn2u commented 8 months ago

@sumn2u if you get some free time, we'll have to discuss about this solution or find alternatives if possible.

Thanks @moustaphaotf for the awesome script. Is there a way to setup in our current workflow? Would love to see it in action.