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") }}
-
Loading tokens…
+
{{ _("api_tokens.loading_tokens") }}
@@ -129,24 +127,24 @@
-
No API tokens yet
-
Create your first token above to get started.
+
{{ _("api_tokens.no_tokens_heading") }}
+
{{ _("api_tokens.no_tokens_help") }}
-
+
- Name
- Token Prefix
- Created
- Last Used
- Last IP
- Status
- Actions
+ {{ _("api_tokens.col_name") }}
+ {{ _("api_tokens.col_prefix") }}
+ {{ _("api_tokens.col_created") }}
+ {{ _("api_tokens.col_last_used") }}
+ {{ _("api_tokens.col_last_ip") }}
+ {{ _("common.status") }}
+ {{ _("common.actions") }}
@@ -159,7 +157,7 @@
-
+
—
@@ -168,7 +166,7 @@
@@ -181,10 +179,10 @@
dark:text-red-400 dark:hover:text-red-300 hover:bg-red-50 dark:hover:bg-red-900/20 rounded-md
focus:outline-none focus:ring-2 focus:ring-red-500 disabled:opacity-50 transition-colors"
style="min-height:36px; min-width:44px;"
- :aria-label="'Revoke token ' + token.name"
+ :aria-label="'{{ _('api_tokens.revoke_prefix') }} ' + token.name"
>
- Revoke
+ {{ _("api_tokens.revoke") }}
diff --git a/frontend/templates/backup.html b/frontend/templates/backup.html
index 58423eea..53471e29 100644
--- a/frontend/templates/backup.html
+++ b/frontend/templates/backup.html
@@ -1,5 +1,5 @@
{% extends "base.html" %}
-{% block title %}Backup Management{% endblock %}
+{% block title %}{{ _("backup.page_title") }}{% endblock %}
{% block content %}
@@ -9,10 +9,10 @@
- Backup Management
+ {{ _("backup.heading") }}
- Database backups are created automatically: hourly (4 days), daily (3 weeks), weekly (13 weeks).
+ {{ _("backup.subtitle") }}
@@ -21,26 +21,26 @@
:disabled="triggering"
type="button"
class="inline-flex items-center px-3 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 disabled:opacity-50 min-h-[44px]">
- Backup Now (Hourly)
+ {{ _("backup.trigger_hourly") }}
- Backup Now (Daily)
+ {{ _("backup.trigger_daily") }}
- Backup Now (Weekly)
+ {{ _("backup.trigger_weekly") }}
- Clean Up
+ title="{{ _('backup.cleanup_title') }}">
+ {{ _("backup.clean_up") }}
@@ -60,18 +60,18 @@
role="dialog" aria-modal="true" :aria-labelledby="'confirmTitle'">
-
Confirm action
+
{{ _("backup.confirm_title") }}
- Cancel
+ {{ _("common.cancel") }}
- Confirm
+ {{ _("backup.confirm_btn") }}
@@ -81,36 +81,36 @@
-
Auto-backup
+
{{ _("backup.config_auto_backup") }}
- {% if backup_enabled %} Enabled
- {% else %} Disabled{% endif %}
+ {% if backup_enabled %} {{ _("common.enabled") }}
+ {% else %} {{ _("common.disabled") }}{% endif %}
-
Remote destination
+
{{ _("backup.config_remote_dest") }}
{% if backup_remote_destination %}
{{ backup_remote_destination }}
{% else %}
- Local only
+ {{ _("backup.local_only") }}
{% endif %}
-
Retention
+
{{ _("backup.config_retention") }}
- {{ backup_retain_hourly }} hourly ·
- {{ backup_retain_daily }} daily ·
- {{ backup_retain_weekly }} weekly
+ {{ backup_retain_hourly }} {{ _("backup.type_hourly") }} ·
+ {{ backup_retain_daily }} {{ _("backup.type_daily") }} ·
+ {{ backup_retain_weekly }} {{ _("backup.type_weekly") }}
-
Total local size
+
{{ _("backup.config_total_size") }}
{{ (total_size / 1048576) | round(2) }} MB
@@ -120,17 +120,17 @@
- Restore from File
+ {{ _("backup.restore_heading") }}
- Upload a .db.gz backup archive to restore the database.
- This will overwrite all current data.
+ {{ _("backup.restore_desc_pre") }} .db.gz {{ _("backup.restore_desc_mid") }}
+ {{ _("backup.restore_desc_warning") }}