rtfpessoa / diff2html

Pretty diff to html javascript library (diff2html)
https://diff2html.xyz
MIT License
2.87k stars 278 forks source link

Multilingual support #428

Open Angelk90 opened 2 years ago

Angelk90 commented 2 years ago

Step -1: Before filling an issue check out troubleshooting section

Step 0: Describe your environment

Step 1: Describe the problem:

https://github.com/rtfpessoa/diff2html/blob/9ed73c7a66b618723745fb74441136a552c53e58/src/templates/file-summary-wrapper.mustache#L3-L5

As you can see from the code above the texts are permanent, it would be possible to make it so that the end user can modify the texts as he prefers. In case the texts are not changed, set the default one.

rtfpessoa commented 2 years ago

👋 Currently there is not direct support for this. The closest you have is to override the templates using the flags described here.

If you are interested in contributing a feature feel free to propose a solution and we can discuss it here in the ticket and then you can move on with the implementation.