Ability to hide Request/Response fields

Is there a way to hide the lower form fields with the request / response example? I wouldn’t show them to my clients without IT background (in a self hosted environment).

Thanks in advance!

1 Like

Mm, currently you would need to modify the HTML code directly.

This could be improved, since we already have a LT_WEB environment variable that disables a few page elements on standalone installations. See https://github.com/LibreTranslate/LibreTranslate/blob/main/app/app.py#L216 as well as the main template which uses that variable. https://github.com/LibreTranslate/LibreTranslate/blob/main/app/templates/index.html

We’d welcome a PR to conditionally remove/hide the panels.

Alright, thank you for your reply. Maybe I’ll have a deeper look on it.

What do you think about allowing the user to provide either a custom HTML document, or provide a custom header and footer? The application could look for a file named /header.inc.html or /footer.inc.html and then include them before/after the translation part.

That would be cool too!