diff --git a/frontend/templates/api_tokens.html b/frontend/templates/api_tokens.html index bb8f7f2e..5e4633cf 100644 --- a/frontend/templates/api_tokens.html +++ b/frontend/templates/api_tokens.html @@ -1,32 +1,30 @@ {% extends "base.html" %} -{% block title %}API Tokens – DocuElevate{% endblock %} +{% block title %}{{ _("api_tokens.page_title") }}{% endblock %} {% block content %}

- API Tokens + {{ _("api_tokens.heading") }}

- Create personal API tokens to interact with the DocuElevate API programmatically. - Use tokens for webhook uploads, CI/CD pipelines, or any script that needs to upload - or retrieve documents. + {{ _("api_tokens.intro") }}

-

Create New Token

+

{{ _("api_tokens.create_heading") }}

- + - + @@ -54,9 +52,9 @@
-

Token created successfully!

+

{{ _("api_tokens.token_created") }}

- Copy this token now — it will not be shown again. + {{ _("api_tokens.copy_warning_1") }} {{ _("api_tokens.copy_warning_2") }}.

- +
@@ -88,11 +86,11 @@

- Usage Example + {{ _("api_tokens.usage_heading") }}

- Use your API token in the Authorization - header with any API request: + {{ _("api_tokens.usage_intro_pre") }} Authorization + {{ _("api_tokens.usage_intro_post") }}

curl -X POST "/api/files/ui-upload" \
@@ -104,7 +102,7 @@
         class="absolute top-2 right-2 px-2 py-1 bg-gray-700 text-gray-300 rounded text-xs hover:bg-gray-600
                focus:outline-none focus:ring-2 focus:ring-indigo-500 transition-colors"
         style="min-height:30px; min-width:30px;"
-        aria-label="Copy upload example to clipboard"
+        aria-label="{{ _('api_tokens.copy_upload_example') }}"
       >
         
       
@@ -114,14 +112,14 @@
   
   
-

Your Tokens

+

{{ _("api_tokens.your_tokens") }}

@@ -129,24 +127,24 @@