Skip to content
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

Multilingual support #428

Open
Angelk90 opened this issue Mar 3, 2022 · 1 comment
Open

Multilingual support #428

Angelk90 opened this issue Mar 3, 2022 · 1 comment

Comments

@Angelk90
Copy link

Angelk90 commented Mar 3, 2022

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

Step 0: Describe your environment

  • OS: Kubuntu 21.04
  • diff2html version: 3.4.11
  • Using diff2html directly or using diff2html-ui helper: _
  • Extra flags: _

Step 1: Describe the problem:

<span class="d2h-file-list-title">Files changed ({{filesNumber}})</span>
<a class="d2h-file-switch d2h-hide">hide</a>
<a class="d2h-file-switch d2h-show">show</a>

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
Copy link
Owner

👋 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants