From 9c73ab8e5963ae061c5ca3b494efb5620d4c8468 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 14:11:42 +0000 Subject: [PATCH] feat(ui): localize license page with i18n translation keys Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- frontend/templates/license.html | 25 ++++++++++++------------- frontend/translations/en.json | 13 +++++++++++++ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/frontend/templates/license.html b/frontend/templates/license.html index cbbe6406..1982cd11 100644 --- a/frontend/templates/license.html +++ b/frontend/templates/license.html @@ -1,36 +1,35 @@ {% extends "base.html" %} -{% block title %}DocuElevate - License{% endblock %} +{% block title %}{{ _("license.page_title") }}{% endblock %} {% block content %}
-

License Information

+

{{ _("license.heading") }}

-

Apache License 2.0

+

{{ _("license.apache_heading") }}

{{ license_text }}

- DocuElevate is distributed under the Apache License 2.0, which is a permissive - open-source software license that allows you to use, modify, distribute, and - contribute to the project. + {{ _("license.apache_description") }}

-

Related Information

+

{{ _("license.related_heading") }}

- While this license governs the use of our software, please also review our - Terms of Service and - Privacy Policy for - information about using the DocuElevate service. + {{ _("license.related_p1_pre") }} + {{ _("license.related_terms_link") }} + {{ _("license.related_and") }} + {{ _("license.related_privacy_link") }} + {{ _("license.related_p1_post") }}

- For more information about DocuElevate, please visit the - About page. + {{ _("license.related_p2_pre") }} + {{ _("license.related_about_link") }}{{ _("license.related_p2_post") }}

diff --git a/frontend/translations/en.json b/frontend/translations/en.json index 9dafd33a..824a0a25 100644 --- a/frontend/translations/en.json +++ b/frontend/translations/en.json @@ -751,6 +751,19 @@ "integrations.webhook_security_tip": "Create a dedicated API token for each integration and revoke it immediately if compromised. Tokens can be managed on the API Tokens page.", "integrations.webhook_step1": "Go to {api_tokens_link} and create a personal token.", "integrations.webhook_upload_with_token": "Use the token to upload documents via the API:", + "license.apache_description": "DocuElevate is distributed under the Apache License 2.0, which is a permissive open-source software license that allows you to use, modify, distribute, and contribute to the project.", + "license.apache_heading": "Apache License 2.0", + "license.heading": "License Information", + "license.page_title": "License Information - DocuElevate", + "license.related_about_link": "About page", + "license.related_and": "and", + "license.related_heading": "Related Information", + "license.related_p1_post": "for information about using the DocuElevate service.", + "license.related_p1_pre": "While this license governs the use of our software, please also review our", + "license.related_p2_post": ".", + "license.related_p2_pre": "For more information about DocuElevate, please visit the", + "license.related_privacy_link": "Privacy Policy", + "license.related_terms_link": "Terms of Service", "language.bg": "Български", "language.ca": "Català", "language.change_success": "Language changed to {language}",