Skip to content

Modern Docker Management, Designed for Everyone

chore(translations): translate files

Kyle Mendelld75a3fcf684a
diff --git a/.github/ISSUE_TEMPLATE/language-request.yml b/.github/ISSUE_TEMPLATE/language-request.yml
new file mode 100644
index 000000000..bfc85e49c
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/language-request.yml
@@ -0,0 +1,20 @@
+name: '🌐 Language request'
+description: "You want to contribute to a language that isn't on Crowdin yet?"
+title: '🌐 Language Request: <language name in english>'
+type: 'Language Request'
+body:
+ - type: input
+ id: language-name-native
+ attributes:
+ label: '🌐 Language Name (native)'
+ placeholder: 'Schweizerdeutsch'
+ validations:
+ required: true
+ - type: input
+ id: language-code
+ attributes:
+ label: '🌐 ISO 639-1 Language Code'
+ description: 'You can find your language code [here](https://www.andiamo.co.uk/resources/iso-language-codes/).'
+ placeholder: 'de-CH'
+ validations:
+ required: true
diff --git a/backend/internal/api/user_handler.go b/backend/internal/api/user_handler.go
index e09918ae8..740365454 100644
--- a/backend/internal/api/user_handler.go
+++ b/backend/internal/api/user_handler.go
@@ -115,6 +115,7 @@ func (h *UserHandler) CreateUser(c *gin.Context) {
DisplayName: req.DisplayName,
Email: req.Email,
Roles: req.Roles,
+ Locale: req.Locale,
BaseModel: models.BaseModel{
CreatedAt: time.Now(),
},
@@ -205,6 +206,9 @@ func (h *UserHandler) UpdateUser(c *gin.Context) {
if req.Roles != nil {
user.Roles = req.Roles
}
+ if req.Locale != nil {
+ user.Locale = req.Locale
+ }
now := time.Now()
user.UpdatedAt = &now
diff --git a/backend/internal/dto/user_dto.go b/backend/internal/dto/user_dto.go
index 89c645146..e05b5ad7c 100644
--- a/backend/internal/dto/user_dto.go
+++ b/backend/internal/dto/user_dto.go
@@ -6,12 +6,14 @@ type CreateUserDto struct {
DisplayName *string `json:"displayName,omitempty"`
Email *string `json:"email,omitempty"`
Roles []string `json:"roles,omitempty"`
+ Locale *string `json:"locale,omitempty"`
}
type UpdateUserDto struct {
DisplayName *string `json:"displayName,omitempty"`
Email *string `json:"email,omitempty"`
Roles []string `json:"roles,omitempty"`
+ Locale *string `json:"locale,omitempty"`
}
type UserResponseDto struct {
@@ -21,6 +23,7 @@ type UserResponseDto struct {
Email *string `json:"email,omitempty"`
Roles []string `json:"roles"`
OidcSubjectId *string `json:"oidcSubjectId,omitempty"`
+ Locale *string `json:"locale,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
}
diff --git a/backend/internal/models/user.go b/backend/internal/models/user.go
index 55f029978..51ebdd75e 100644
--- a/backend/internal/models/user.go
+++ b/backend/internal/models/user.go
@@ -12,6 +12,7 @@ type User struct {
Roles StringSlice `json:"roles" gorm:"type:text;not null;default:'[]'"`
OidcSubjectId *string `json:"oidcSubjectId,omitempty" gorm:"column:oidc_subject_id"`
LastLogin *time.Time `json:"lastLogin,omitempty" gorm:"column:last_login"`
+ Locale *string `json:"locale,omitempty" gorm:"column:locale"`
// OIDC provider tokens
OidcAccessToken *string `json:"-" gorm:"type:text"`
diff --git a/backend/internal/services/user_service.go b/backend/internal/services/user_service.go
index e4a3dcb58..d1bc39218 100644
--- a/backend/internal/services/user_service.go
+++ b/backend/internal/services/user_service.go
@@ -324,6 +324,7 @@ func toUserResponseDto(user models.User) dto.UserResponseDto {
Email: user.Email,
Roles: user.Roles,
OidcSubjectId: user.OidcSubjectId,
+ Locale: user.Locale,
CreatedAt: user.CreatedAt.Format("2006-01-02T15:04:05.999999Z"),
UpdatedAt: user.UpdatedAt.Format("2006-01-02T15:04:05.999999Z"),
}
diff --git a/backend/resources/migrations/postgres/012_add_user_locale.down.sql b/backend/resources/migrations/postgres/012_add_user_locale.down.sql
new file mode 100644
index 000000000..af8112074
--- /dev/null
+++ b/backend/resources/migrations/postgres/012_add_user_locale.down.sql
@@ -0,0 +1 @@
+ALTER TABLE users DROP COLUMN IF EXISTS locale;
\ No newline at end of file
diff --git a/backend/resources/migrations/postgres/012_add_user_locale.up.sql b/backend/resources/migrations/postgres/012_add_user_locale.up.sql
new file mode 100644
index 000000000..72a293360
--- /dev/null
+++ b/backend/resources/migrations/postgres/012_add_user_locale.up.sql
@@ -0,0 +1 @@
+ALTER TABLE users ADD COLUMN IF NOT EXISTS locale TEXT;
\ No newline at end of file
diff --git a/backend/resources/migrations/sqlite/012_add_user_locale.down.sql b/backend/resources/migrations/sqlite/012_add_user_locale.down.sql
new file mode 100644
index 000000000..5e16673d8
--- /dev/null
+++ b/backend/resources/migrations/sqlite/012_add_user_locale.down.sql
@@ -0,0 +1 @@
+-- SQLite down migration: to rollback, recreate the users table without the 'locale' column and copy data back.
\ No newline at end of file
diff --git a/backend/resources/migrations/sqlite/012_add_user_locale.up.sql b/backend/resources/migrations/sqlite/012_add_user_locale.up.sql
new file mode 100644
index 000000000..99644e0c9
--- /dev/null
+++ b/backend/resources/migrations/sqlite/012_add_user_locale.up.sql
@@ -0,0 +1 @@
+ALTER TABLE users ADD COLUMN locale TEXT;
\ No newline at end of file
diff --git a/frontend/messages/en.json b/frontend/messages/en.json
new file mode 100644
index 000000000..30f425e87
--- /dev/null
+++ b/frontend/messages/en.json
@@ -0,0 +1,1049 @@
+{
+ "$schema": "https://inlang.com/schema/inlang-message-format",
+ "layout_title": "Arcane",
+ "error_occurred": "An Error Occured",
+ "error_not_found": "Not Found",
+ "error_generic": "Something went wrong",
+ "volumes_title": "Volumes",
+ "volumes_subtitle": "Manage your Docker volumes",
+ "volumes_create_button": "Create Volume",
+ "volumes_stat_total": "Total Volumes",
+ "volumes_stat_used": "Used Volumes",
+ "volumes_stat_unused": "Unused Volumes",
+ "volumes_created_success": "Volume \"{name}\" Created Successfully.",
+ "volumes_create_failed": "Failed to Create Volume \"{name}\"",
+ "volumes_refresh_failed": "Failed to Refresh Volumes",
+ "volumes_remove_title": "Remove Volume",
+ "volumes_remove_confirm_message": "Are you sure you want to remove the volume \"{name}\"? This action cannot be undone and will permanently delete all data stored in this volume.",
+ "volumes_remove_failed": "Failed to Remove Volume \"{name}\"",
+ "volumes_remove_success": "Volume \"{name}\" Removed Successfully.",
+ "volumes_bulk_remove_success_one": "Successfully removed 1 volume",
+ "volumes_bulk_remove_success_many": "Successfully removed {count} volumes",
+ "volumes_bulk_remove_failed_one": "Failed to remove 1 volume",
+ "volumes_bulk_remove_failed_many": "Failed to remove {count} volumes",
+ "common_refresh": "Refresh",
+ "common_unknown": "Unknown",
+ "common_remove": "Remove",
+ "common_id": "ID",
+ "common_name": "Name",
+ "common_status": "Status",
+ "common_driver": "Driver",
+ "common_created": "Created",
+ "common_in_use": "In Use",
+ "common_unused": "Unused",
+ "common_open_menu": "Open menu",
+ "common_inspect": "Inspect",
+ "common_view": "View",
+ "common_scope": "Scope",
+ "common_mountpoint": "Mountpoint",
+ "common_labels": "Labels",
+ "common_driver_options": "Driver Options",
+ "volumes_remove_in_use_warning": "Warning: This volume is currently in use by containers. Forcing removal may cause data loss or container issues.",
+ "volumes_details_title": "Volume Details",
+ "volumes_details_description": "Basic information about this Docker volume",
+ "volumes_containers_using_title": "Containers Using This Volume",
+ "volumes_containers_using_description": "List of containers currently referencing this volume",
+ "volumes_no_containers_using": "No containers are currently using this volume.",
+ "volumes_labels_description": "User-defined metadata attached to this volume",
+ "volumes_driver_options_description": "Volume driver-specific options",
+ "volumes_no_labels_or_options": "This volume has no additional labels or driver options.",
+ "volumes_not_found_title": "Volume Not Found",
+ "volumes_not_found_description": "The requested volume could not be found or is no longer available.",
+ "common_back_to_volumes": "Back to Volumes",
+ "users_title": "Users",
+ "users_subtitle": "Manage system users and permissions",
+ "users_create_button": "Create User",
+ "users_total": "Total Users",
+ "users_administrators": "Administrators",
+ "users_regular": "Regular Users",
+ "users_update_failed": "Failed to update user \"{username}\"",
+ "users_update_success": "User \"{username}\" updated successfully.",
+ "users_create_failed": "Failed to create user \"{username}\"",
+ "users_create_success": "User \"{username}\" created successfully.",
+ "common_username_required": "Username is required",
+ "common_username": "Username",
+ "common_display_name": "Display Name",
+ "common_email": "Email",
+ "common_role": "Role",
+ "common_edit": "Edit",
+ "common_delete": "Delete",
+ "common_admin": "Admin",
+ "common_user": "User",
+ "users_delete_selected_title": "Delete {count} user(s)",
+ "users_delete_selected_message": "Are you sure you want to delete the selected user(s)? This action cannot be undone.",
+ "users_delete_selected_item_failed": "Failed to delete user {id}",
+ "users_delete_success_one": "Successfully deleted 1 user",
+ "users_delete_success_many": "Successfully deleted {count} users",
+ "users_delete_failed_one": "Failed to delete 1 user",
+ "users_delete_failed_many": "Failed to delete {count} users",
+ "users_delete_user_title": "Delete User \"{username}\"",
+ "users_delete_user_message": "Are you sure you want to delete the user \"{username}\"? This action cannot be undone.",
+ "users_delete_user_failed": "Failed to delete user \"{username}\"",
+ "users_delete_user_success": "User \"{username}\" deleted successfully.",
+ "security_title": "Security Settings",
+ "security_description": "Configure authentication methods, session timeouts, and other security-related options.",
+ "general_title": "General Settings",
+ "general_description": "Core configuration settings for the application",
+ "security_authentication_heading": "Authentication",
+ "security_local_auth_label": "Local Authentication",
+ "security_local_auth_description": "Username and password stored by Arcane. Keep enabled as a fallback.",
+ "security_oidc_auth_label": "OIDC Authentication",
+ "security_oidc_auth_description": "Use an external OIDC provider",
+ "security_oidc_auth_description_forced": "Use an external OIDC provider (forced by server)",
+ "security_server_forces_oidc_missing_env": "Server forces OIDC, but env vars missing. Configure or fix server env.",
+ "security_oidc_configured_forced_view": "OIDC configured & forced by server. View status.",
+ "security_manage_oidc_config": "Manage OIDC configuration",
+ "security_session_heading": "Session",
+ "security_session_timeout_label": "Session Timeout (minutes)",
+ "security_session_timeout_placeholder": "60",
+ "security_session_timeout_description": "Inactive sessions will be logged out automatically (15–1440 minutes).",
+ "security_session_timeout_required": "Session timeout is required",
+ "security_session_timeout_integer": "Must be an integer",
+ "security_session_timeout_min": "Minimum is 15 minutes",
+ "security_session_timeout_max": "Maximum is 1440 minutes",
+ "security_password_policy_label": "Password Policy",
+ "security_password_policy_basic": "Basic",
+ "security_password_policy_standard": "Standard",
+ "security_password_policy_strong": "Strong",
+ "security_password_policy_basic_tooltip": "Minimum 8 characters.",
+ "security_password_policy_standard_tooltip": "10+ chars with upper, lower, and a number.",
+ "security_password_policy_strong_tooltip": "12+ chars with upper, lower, number, and symbol.",
+ "security_enable_one_provider": "Enable at least one authentication provider.",
+ "security_enable_one_provider_error": "At least one authentication provider must be enabled.",
+ "security_settings_saved": "Settings saved successfully.",
+ "security_local_enabled_info": "Local Authentication enabled to ensure at least one provider is active.",
+ "security_oidc_saved": "OIDC configuration saved successfully.",
+ "security_save_instructions": "Save your updated settings.",
+ "common_save": "Save",
+ "common_saving": "Saving…",
+ "general_projects_heading": "Project Paths",
+ "general_projects_description": "Configure where Arcane looks for your Compose files.",
+ "general_projects_directory_label": "Projects Directory",
+ "general_projects_directory_placeholder": "data/projects",
+ "general_projects_directory_help": "Directory where Docker Compose files are stored (this is inside the container)",
+ "general_projects_directory_required": "Projects directory is required",
+ "general_base_url_label": "Base Server URL",
+ "general_base_url_placeholder": "localhost",
+ "general_base_url_help": "The Base URL for your docker host. Used when opening containers from the service links",
+ "general_base_url_required": "Base server URL is required",
+ "general_user_avatars_heading": "User Avatars",
+ "general_user_avatars_description": "Control Gravatar usage for profile images.",
+ "general_enable_gravatar_label": "Enable Gravatar",
+ "general_enable_gravatar_description": "Whether to use Gravatar-based avatars for user accounts",
+ "general_settings_saved": "Settings Updated Successfully",
+ "general_save_instructions": "Save your updated settings.",
+ "docker_enable_polling_label": "Enable Image Polling",
+ "docker_enable_polling_description": "Periodically check registries for newer image versions",
+ "docker_polling_interval_label": "Polling Interval (minutes)",
+ "docker_polling_interval_placeholder": "60",
+ "docker_polling_interval_description": "How often to check for new images (5-1440 minutes)",
+ "docker_auto_update_label": "Auto-update Containers",
+ "docker_auto_update_description": "Automatically update containers when newer images are found",
+ "docker_auto_update_interval_label": "Auto-update Interval (minutes)",
+ "docker_auto_update_interval_placeholder": "60",
+ "docker_auto_update_interval_description": "How often to perform automatic updates (5-1440 minutes)",
+ "docker_auto_update_alert_title": "Auto-update Enabled",
+ "docker_auto_update_alert_description": "Automatic container updates are active with polling enabled",
+ "docker_rate_limit_warning_title": "Rate Limiting Warning",
+ "docker_rate_limit_warning_description": "Polling intervals below 30 minutes may trigger registry rate limits. Prefer longer intervals in production.",
+ "docker_prune_all": "All",
+ "docker_prune_all_description": "Remove all images not referenced by containers and include named, unused volumes during System Prune.",
+ "docker_prune_dangling": "Dangling",
+ "docker_prune_dangling_description": "Remove only dangling (untagged) images and anonymous volumes during System Prune.",
+ "docker_prune_mode_description": "Choose how unused images and volumes should be pruned.",
+ "docker_prune_action_label": "Docker Prune Action Behavior",
+ "docker_prune_placeholder": "Docker PruneMode",
+ "docker_prune_group_label": "Prune Modes",
+ "docker_title": "Docker Settings",
+ "docker_description": "Configure Docker automation behavior and settings.",
+ "networks_delete_title": "Delete Network",
+ "networks_delete_confirm_message": "Are you sure you want to delete network \"{name}\"? This action cannot be undone.",
+ "networks_delete_failed": "Failed to Remove Network \"{name}\"",
+ "networks_delete_success": "Network \"{name}\" Removed Successfully.",
+ "networks_delete_selected_title": "Delete {count} network(s)",
+ "networks_delete_selected_message": "Are you sure you want to delete {count} selected network(s)? This action cannot be undone.",
+ "networks_cannot_delete_default": "Cannot delete default network: {name}",
+ "networks_cannot_delete_default_many": "Cannot delete default networks: {names}",
+ "networks_empty_title": "No networks found",
+ "networks_empty_description": "Create a new network using the Create Network button above or use the Docker CLI.",
+ "networks_title": "Networks",
+ "networks_subtitle": "Manage your Docker networks",
+ "networks_create_button": "Create Network",
+ "networks_created_success": "Network \"{name}\" Created Successfully.",
+ "networks_create_failed": "Failed to Create Network \"{name}\"",
+ "networks_refresh_failed": "Failed to Refresh Networks",
+ "networks_total": "Total Networks",
+ "networks_bridge": "Bridge",
+ "networks_host": "Host",
+ "networks_overlay": "Overlay",
+ "networks_macvlan": "Macvlan",
+ "networks_none": "None",
+ "networks_driver": "Driver",
+ "networks_name": "Name",
+ "networks_id": "ID",
+ "networks_created": "Created",
+ "networks_scope": "Scope",
+ "networks_labels": "Labels",
+ "networks_options": "Options",
+ "networks_details_title": "Network Details",
+ "networks_details_description": "Basic information about this Docker network",
+ "networks_no_additional_info": "No additional information available for this network.",
+ "networks_not_found_title": "Network Not Found",
+ "networks_not_found_description": "The requested network could not be found or is no longer available.",
+ "networks_remove_title": "Remove Network",
+ "networks_remove_confirm_message": "Are you sure you want to remove the network \"{name}\"? This action cannot be undone.",
+ "networks_remove_failed": "Failed to Remove Network \"{name}\"",
+ "networks_remove_success": "Network \"{name}\" Removed Successfully.",
+ "networks_bulk_remove_success_one": "Successfully removed 1 network",
+ "networks_bulk_remove_success_many": "Successfully removed {count} networks",
+ "networks_bulk_remove_failed_one": "Failed to remove 1 network",
+ "networks_bulk_remove_failed_many": "Failed to remove {count} networks",
+ "common_back_to_networks": "Back to Networks",
+ "common_view_details": "View Details",
+ "common_no_networks_found": "No networks found. Create a new network to get started.",
+ "networks_missing_id": "Network ID is missing",
+ "networks_in_use_count": "In Use ({count})",
+ "networks_predefined": "Predefined",
+ "common_yes": "Yes",
+ "common_no": "No",
+ "networks_ipam_title": "IPAM Configuration",
+ "networks_ipam_description": "IP Address Management settings for this network",
+ "networks_ipam_subnet_label": "Subnet",
+ "networks_ipam_gateway_label": "Gateway",
+ "networks_ipam_iprange_label": "IP Range",
+ "networks_ipam_aux_addresses_label": "Auxiliary Addresses",
+ "networks_ipam_driver_label": "IPAM Driver",
+ "networks_ipam_options_label": "IPAM Options",
+ "networks_connected_containers_title": "Connected Containers",
+ "networks_connected_containers_description": "{count} container(s) connected to this network",
+ "networks_labels_title": "Labels",
+ "networks_labels_description": "User-defined metadata attached to this network",
+ "networks_options_title": "Options",
+ "networks_options_description": "Network driver-specific options",
+ "action_failed": "Action Failed",
+ "attachable": "Attachable",
+ "ipv6_enabled": "IPv6 Enabled",
+ "internal": "Internal",
+ "images_remove_selected_title": "Remove {count} Image(s)",
+ "images_remove_selected_message": "Are you sure you want to remove the selected image(s)? This action cannot be undone.",
+ "images_remove_failed": "Failed to remove image",
+ "images_remove_success_one": "Successfully removed 1 image",
+ "images_remove_success_many": "Successfully removed {count} images",
+ "images_remove_failed_one": "Failed to remove 1 image",
+ "images_remove_failed_many": "Failed to remove {count} images",
+ "images_remove_title": "Remove Image",
+ "images_remove_message": "Are you sure you want to remove this image? This action cannot be undone.",
+ "images_remove_success": "Image removed successfully",
+ "images_pull_no_tag": "Cannot pull image without repository tag",
+ "images_pull_failed": "Failed to pull image",
+ "images_pull_success": "Successfully pulled {repoTag}",
+ "images_pulling": "Pulling…",
+ "images_pull": "Pull",
+ "images_untagged": "Untagged",
+ "common_na": "N/A",
+ "images_repository": "Repository",
+ "images_image_id": "Image ID",
+ "images_size": "Size",
+ "images_updates": "Updates",
+ "images_title": "Images",
+ "images_subtitle": "View and Manage your Container Images",
+ "images_pull_image": "Pull Image",
+ "images_check_updates": "Check Updates",
+ "images_prune_unused": "Prune Unused",
+ "images_total": "Total Images",
+ "images_total_size": "Total Size",
+ "images_prune_failed": "Failed to Prune Images",
+ "images_pruned_success": "Images Pruned Successfully",
+ "images_update_check_completed": "Update check completed",
+ "images_update_check_failed": "Failed to check for updates",
+ "images_refresh_failed": "Failed to Refresh Images",
+ "images_prune_confirm_title": "Prune Unused Images",
+ "images_prune_confirm_description": "Removes unused Docker images (prune mode: {mode}). This frees disk space and cannot be undone. Images referenced by any container will not be removed.",
+ "common_cancel": "Cancel",
+ "images_prune_action": "Prune Images",
+ "images_pruning": "Pruning…",
+ "images_checking": "Checking…",
+ "images_details_title": "Image Details",
+ "images_tags_title": "Tags",
+ "images_env_vars_title": "Environment Variables",
+ "images_architecture": "Architecture",
+ "images_os": "OS",
+ "images_not_found_title": "Image not found.",
+ "common_back_to_images": "Back to Images",
+ "events_delete_title": "Delete Event",
+ "events_delete_confirm_message": "Are you sure you want to delete the event \"{title}\"? This action cannot be undone.",
+ "events_delete_failed": "Failed to delete event \"{title}\"",
+ "events_delete_success": "Event \"{title}\" deleted successfully.",
+ "events_col_severity": "Severity",
+ "events_col_type": "Type",
+ "events_col_resource": "Resource",
+ "events_col_time": "Time",
+ "events_title": "Event Log",
+ "events_subtitle": "Monitor events that have taken place in Arcane.",
+ "events_refresh_failed": "Failed to refresh events",
+ "events_remove_selected": "Remove Selected",
+ "events_delete_selected_title": "Delete {count} Event(s)",
+ "events_delete_selected_message": "Are you sure you want to delete the selected event(s)? This action cannot be undone.",
+ "events_delete_item_failed": "Failed to delete event {id}",
+ "events_delete_success_one": "Successfully deleted 1 event",
+ "events_delete_success_many": "Successfully deleted {count} events",
+ "events_delete_failed_one": "Failed to delete 1 event",
+ "events_delete_failed_many": "Failed to delete {count} events",
+ "events_total": "Total Events",
+ "events_total_subtitle": "All recorded events",
+ "events_info": "Info",
+ "events_info_subtitle": "Information events",
+ "events_success": "Success",
+ "events_success_subtitle": "Successful operations",
+ "events_warning": "Warning",
+ "events_warning_subtitle": "Warning events",
+ "events_error": "Error",
+ "events_error_subtitle": "Error events",
+ "environments_remove_selected_title": "Remove {count} Environment(s)",
+ "environments_remove_selected_message": "Are you sure you want to remove the selected environment(s)? This action cannot be undone.",
+ "environments_bulk_remove_success_one": "Removed 1 environment",
+ "environments_bulk_remove_success_many": "Removed {count} environments",
+ "environments_bulk_remove_failed_one": "Failed to remove 1 environment",
+ "environments_bulk_remove_failed_many": "Failed to remove {count} environments",
+ "environments_delete_title": "Remove Environment",
+ "environments_delete_message": "Are you sure you want to remove \"{name}\"? This action cannot be undone.",
+ "environments_delete_failed": "Failed to remove environment \"{name}\"",
+ "environments_delete_success": "Removed \"{name}\"",
+ "environments_test_connection": "Test Connection",
+ "environments_test_connection_failed": "Failed to test connection",
+ "environments_test_connection_success": "Connection successful",
+ "environments_test_connection_error": "Connection failed",
+ "environments_api_url": "API URL",
+ "common_enabled": "Enabled",
+ "common_disabled": "Disabled",
+ "common_online": "Online",
+ "common_offline": "Offline",
+ "environments_title": "Environment Management",
+ "environments_subtitle": "Manage and monitor your Arcane environments",
+ "environments_remove_selected_button": "Remove Selected",
+ "environments_add_button": "Add Environment",
+ "environments_refresh_failed": "Failed to refresh environments",
+ "environments_created_success": "Environment added successfully",
+ "environments_page_subtitle": "Environment details and management",
+ "environments_sections_title": "Sections",
+ "environments_section_overview": "Overview",
+ "environments_section_connection": "Connection",
+ "environments_section_pairing": "Pair/Rotate",
+ "environments_overview_title": "Environment Overview",
+ "environments_environment_id_label": "Environment ID",
+ "environments_connection_title": "Connection Details",
+ "environments_testing_connection": "Testing Connection...",
+ "environments_pair_rotate_title": "Pair / Rotate Agent Token",
+ "environments_pair_rotate_description": "The token is stored securely on the server and not displayed. Use a Bootstrap Token to pair or rotate.",
+ "environments_bootstrap_label": "Bootstrap Token",
+ "environments_bootstrap_placeholder": "Enter AGENT_BOOTSTRAP_TOKEN",
+ "environments_pair_rotate_action": "Pair / Rotate",
+ "environments_refreshing": "Refreshing...",
+ "common_clear": "Clear",
+ "dashboard_title": "Dashboard",
+ "dashboard_subtitle": "Overview of your Container Environment",
+ "dashboard_system_overview": "System Overview",
+ "dashboard_start_all_failed": "Failed to start all containers",
+ "dashboard_start_all_success": "All containers started successfully",
+ "dashboard_stop_all_title": "Stop All Containers",
+ "dashboard_stop_all_confirm": "Are you sure you want to stop all running containers?",
+ "dashboard_stop_all_failed": "Failed to stop all running containers",
+ "dashboard_stop_all_success": "All containers stopped successfully",
+ "dashboard_prune_failed": "Failed to prune {types}",
+ "dashboard_prune_success_one": "{types} was pruned successfully.",
+ "dashboard_prune_success_many": "{types} were pruned successfully.",
+ "dashboard_meter_running": "Running Containers",
+ "dashboard_meter_running_desc": "Active containers",
+ "dashboard_meter_cpu": "CPU Usage",
+ "dashboard_meter_cpu_desc": "Processor utilization",
+ "dashboard_meter_memory": "Memory Usage",
+ "dashboard_meter_memory_desc": "RAM utilization",
+ "dashboard_meter_disk": "Disk Usage",
+ "dashboard_meter_disk_desc": "Storage utilization",
+ "dashboard_docker_details_title": "Docker Details",
+ "common_confirm": "Confirm",
+ "containers_title": "Containers",
+ "containers_recent": "Recent containers",
+ "common_view_all": "View All",
+ "common_image": "Image",
+ "common_state": "State",
+ "containers_showing_of_total": "Showing {shown} of {total} containers",
+ "images_tag": "Tag",
+ "images_top_largest": "Top 5 Largest Images",
+ "images_showing_of_total": "Showing {shown} of {total} images",
+ "images_none_label": "<none>",
+ "images_tag_latest": "latest",
+ "registry_docker_hub": "Docker Hub",
+ "registry_github_container_registry": "GitHub Container Registry",
+ "registry_google_container_registry": "Google Container Registry",
+ "registry_quay_io": "Quay.io Registry",
+ "registries_remove_selected_title": "Remove {count} Registry(ies)",
+ "registries_remove_selected_message": "Are you sure you want to remove the selected registry(ies)? This action cannot be undone.",
+ "registries_bulk_remove_success": "Removed {count} registries",
+ "registries_bulk_remove_failed": "Failed to remove {count} registries",
+ "registries_remove_title": "Remove Registry",
+ "registries_remove_message": "Are you sure you want to remove the registry \"{url}\"? This action cannot be undone.",
+ "registries_delete_failed": "Failed to delete registry \"{url}\"",
+ "registries_delete_success": "Registry \"{url}\" removed successfully.",
+ "registries_test_connection": "Test Connection",
+ "registries_test_failed": "Failed to test registry \"{url}\"",
+ "registries_test_success": "Registry test passed: {url} - {message}",
+ "registries_url": "Registry URL",
+ "common_description": "Description",
+ "common_no_description": "No description provided",
+ "registries_title": "Container Registries",
+ "registries_subtitle": "Configure access credentials for private Docker registries and container repositories",
+ "registries_add_button": "Add Registry",
+ "registries_refreshed": "Registries Refreshed!",
+ "registries_refresh_failed": "Failed to Refresh Registries",
+ "registries_credentials_title": "Docker Registry Credentials",
+ "registries_credentials_description": "Manage authentication credentials for private Docker registries like Docker Hub, GitHub Container Registry, Google Container Registry, and custom registries",
+ "registries_info_title": "Registry Information",
+ "registries_info_description": "Common registry URLs and authentication requirements",
+ "registries_popular_public_title": "Popular Public Registries",
+ "registry_docker_hub_url": "docker.io",
+ "registry_github_url": "ghcr.io",
+ "registry_google_url": "gcr.io",
+ "registry_quay_url": "quay.io",
+ "registries_auth_notes_title": "Authentication Notes",
+ "registries_auth_notes_bullet_docker_hub": "Docker Hub requires credentials for private repositories",
+ "registries_auth_notes_bullet_github": "GitHub uses personal access tokens as passwords",
+ "registries_auth_notes_bullet_anonymous": "Some registries support anonymous access for public images",
+ "registries_auth_notes_bullet_encrypted": "Credentials are encrypted and stored securely",
+ "registries_update_success": "Registry updated successfully",
+ "registries_create_success": "Registry created successfully",
+ "registries_save_failed": "Failed to save registry",
+ "templates_title": "Template Settings",
+ "templates_subtitle": "Manage Docker Compose template sources and registries",
+ "templates_learn_more": "Learn more",
+ "templates_refresh": "Refresh Templates",
+ "templates_local_templates": "Local Templates",
+ "templates_remote_templates": "Remote Templates",
+ "templates_registries": "Registries",
+ "templates_registries_section_title": "Template Registries",
+ "templates_alert_remote_registries_title": "Remote Registries",
+ "templates_alert_remote_registries_description": "Add remote template registries to access community templates. Registries should provide a JSON manifest with template definitions and download URLs.",
+ "templates_community_registry_title": "Community Registry",
+ "templates_community_registry_description": "Get started quickly with our community registry containing popular templates:",
+ "templates_no_registries_title": "No registries configured",
+ "templates_no_registries_description": "Add a remote template registry to access community templates",
+ "templates_registry_not_found": "Registry not found",
+ "templates_registry_removed_success": "Registry removed successfully",
+ "templates_refreshed": "Templates refreshed successfully",
+ "templates_refresh_failed": "Failed to refresh templates",
+ "containers_start_failed": "Failed to start container",
+ "containers_start_success": "Container started successfully",
+ "containers_stop_failed": "Failed to stop container",
+ "containers_stop_success": "Container stopped successfully",
+ "containers_restart_failed": "Failed to restart container",
+ "containers_restart_success": "Container restarted successfully",
+ "containers_remove_confirm_title": "Confirm Container Removal",
+ "containers_remove_confirm_message": "Are you sure you want to remove this container? This action cannot be undone.",
+ "containers_remove_force_label": "Force remove (kill the container if running)",
+ "containers_remove_volumes_label": "Remove container volumes",
+ "containers_remove_failed": "Failed to remove container",
+ "containers_remove_success": "Container removed successfully",
+ "containers_action_error": "An error occurred while performing the action",
+ "common_start": "Start",
+ "common_restart": "Restart",
+ "common_stop": "Stop",
+ "containers_subtitle": "View and Manage your Containers",
+ "containers_create_button": "Create Container",
+ "containers_check_updates": "Update Containers",
+ "containers_total": "Total",
+ "containers_running": "Running",
+ "containers_stopped": "Stopped",
+ "containers_check_updates_failed": "Failed to Check Containers for Updates",
+ "containers_check_updates_success": "Containers Updated Successfully.",
+ "containers_refresh_failed": "Failed to Refresh Containers",
+ "containers_create_failed": "Failed to Create Container",
+ "containers_create_success": "Container Created Successfully.",
+ "common_back": "Back",
+ "common_back_to_containers": "Back to Containers",
+ "common_retry": "Retry",
+ "common_autoscroll": "Auto-scroll",
+ "common_live": "Live",
+ "common_rw": "RW",
+ "common_ro": "RO",
+ "containers_nav_overview": "Overview",
+ "containers_nav_metrics": "Metrics",
+ "containers_nav_logs": "Logs",
+ "containers_nav_config": "Configuration",
+ "containers_nav_networks": "Networks",
+ "containers_nav_storage": "Storage",
+ "containers_details_title": "Container Details",
+ "containers_details_description": "Identity, runtime, and system metadata",
+ "containers_ip_address": "IP Address",
+ "containers_command": "Command",
+ "containers_system": "System",
+ "containers_working_directory": "Working Directory",
+ "containers_health_label": "Health",
+ "containers_health_last_check": "Last check: {time}",
+ "containers_resource_metrics": "Resource Metrics",
+ "containers_network_io": "Network I/O",
+ "containers_network_received": "Received",
+ "containers_network_transmitted": "Transmitted",
+ "containers_block_io": "Block I/O",
+ "containers_block_io_read": "Read",
+ "containers_block_io_write": "Write",
+ "containers_process_count": "Process count:",
+ "containers_stats_unavailable": "Container is not running. Stats unavailable.",
+ "containers_stats_loading": "Loading stats...",
+ "containers_logs_title": "Container Logs",
+ "containers_configuration_title": "Configuration",
+ "containers_env_ports_labels_title": "Environment, Ports & Labels",
+ "containers_env_ports_labels_description": "Runtime configuration and metadata for this container",
+ "containers_env_vars_title": "Environment Variables",
+ "containers_no_env_vars": "No environment variables",
+ "containers_port_mappings": "Port Mappings",
+ "containers_not_published": "Not published",
+ "containers_no_labels_defined": "No labels defined",
+ "containers_networks_title": "Networks",
+ "containers_no_networks_connected": "No networks connected",
+ "containers_storage_title": "Storage & Mounts",
+ "containers_mount_type_tmpfs": "Temporary filesystem",
+ "containers_mount_type_volume": "Docker volume",
+ "containers_mount_type_bind": "Host directory",
+ "containers_mount_label_container": "Container:",
+ "containers_mount_label_volume": "Volume:",
+ "containers_mount_label_host": "Host:",
+ "containers_mount_label_source": "Source:",
+ "containers_no_mounts_configured": "No volumes or mounts configured",
+ "containers_not_found_title": "Container Not Found",
+ "containers_not_found_description": "Could not load container data. It may have been removed or the Docker engine is not accessible.",
+ "containers_gateway": "Gateway",
+ "containers_mac_address": "MAC Address",
+ "containers_subnet": "Subnet",
+ "containers_aliases": "Aliases",
+ "compose_services": "Services",
+ "compose_start_failed": "Failed to start project",
+ "compose_start_success": "Project started successfully.",
+ "compose_stop_failed": "Failed to stop project",
+ "compose_stop_success": "Project stopped successfully.",
+ "compose_restart_failed": "Failed to restart project",
+ "compose_restart_success": "Project restarted successfully.",
+ "compose_pull_failed": "Failed to pull project",
+ "compose_pull_success": "Project pulled successfully.",
+ "compose_pull_redeploy": "Pull & Redeploy",
+ "compose_confirm_removal_title": "Confirm Removal",
+ "compose_confirm_removal_message": "Are you sure you want to remove this Project? This action cannot be undone.",
+ "compose_destroy_failed": "Failed to remove project",
+ "compose_destroy_success": "Project removed successfully.",
+ "compose_destroy": "Destroy",
+ "compose_title": "Compose Projects",
+ "compose_subtitle": "View and Manage Compose Projects",
+ "compose_update_projects": "Update Projects",
+ "compose_create_project": "Create Project",
+ "compose_total": "Total Projects",
+ "compose_running": "Running",
+ "compose_stopped": "Stopped",
+ "compose_update_failed": "Failed to Check Compose Projects for Updates",
+ "compose_update_success": "Compose Projects Updated Successfully.",
+ "compose_refresh_failed": "Failed to Refresh Projects",
+ "compose_new_title": "Create New Project",
+ "compose_converter_title": "Docker Run to Compose Converter",
+ "compose_converter_description": "Convert existing docker run commands to Docker Compose format",
+ "compose_docker_run_command_label": "Docker Run Command",
+ "compose_docker_run_placeholder": "docker run -d --name my-app -p 8080:80 nginx:alpine",
+ "compose_example_commands_label": "Example Commands:",
+ "compose_example_command_1": "docker run -d --name nginx -p 8080:80 -v nginx_data:/usr/share/nginx/html nginx:alpine",
+ "compose_example_command_2": "docker run -d --name postgres -e POSTGRES_DB=mydb -e POSTGRES_USER=user -e POSTGRES_PASSWORD=pass -v postgres_data:/var/lib/postgresql/data postgres:15",
+ "compose_example_command_3": "docker run -d --name redis -p 6379:6379 --restart unless-stopped redis:alpine",
+ "compose_converting": "Converting...",
+ "compose_convert_action": "Convert to Compose",
+ "compose_use_template": "Use Template",
+ "compose_convert_from_docker_run": "Convert from Docker Run",
+ "compose_creating": "Creating...",
+ "compose_project_name_required": "Project name is required",
+ "compose_project_name_invalid": "Only letters, numbers, and hyphens are allowed",
+ "compose_compose_content_required": "Compose content is required",
+ "compose_name_placeholder": "e.g., my-web-app",
+ "compose_name_hint": "Use letters, numbers, and hyphens only.",
+ "compose_compose_file_title": "Docker Compose File",
+ "compose_yaml_label": "YAML",
+ "compose_env_title": "Environment (.env)",
+ "compose_env_kv_label": "Key=Value",
+ "compose_compose_placeholder": "Enter YAML...",
+ "compose_env_placeholder": "Enter environment variables...",
+ "compose_convert_failed": "Failed to Convert Docker Run Command",
+ "compose_convert_success": "Docker run command converted successfully!",
+ "compose_enter_docker_run_command": "Please enter a docker run command",
+ "compose_template_loaded": "Template \"{name}\" loaded successfully!",
+ "compose_create_failed": "Failed to Create Project",
+ "compose_create_success": "Project \"{name}\" created successfully.",
+ "compose_name_label": "Project Name",
+ "compose_nav_overview": "Overview",
+ "compose_nav_services": "Services",
+ "compose_nav_config": "Configuration",
+ "compose_nav_logs": "Logs",
+ "compose_overview_title": "Overview",
+ "compose_exposed_ports": "Exposed Ports",
+ "compose_port_label": "Port {port}",
+ "compose_services_header": "Services ({count})",
+ "compose_ports_label_one": "port",
+ "compose_ports_label_many": "ports",
+ "compose_no_services_found": "No services found for this project",
+ "compose_service_not_created": "Not created",
+ "compose_configuration_title": "Configuration",
+ "compose_name_change_not_allowed": "Project name cannot be changed while running. Please stop the project first.",
+ "compose_logs_title": "Project Logs",
+ "compose_error_loading_stack_title": "Error Loading Stack",
+ "compose_not_found_title": "Project Not Found",
+ "compose_not_found_description": "Could not load Project data. It may have been removed or the Docker engine is not accessible.",
+ "compose_back_to_projects": "Back to Projects",
+ "auth_welcome_back_title": "Welcome back",
+ "auth_login_subtitle": "Sign in to manage your containers",
+ "auth_login_problem_title": "Login Problem",
+ "auth_oidc_invalid_response": "There was an issue with the OIDC login response. Please try again.",
+ "auth_oidc_misconfigured": "OIDC is not configured correctly on the server. Please contact an administrator.",
+ "auth_oidc_userinfo_failed": "Could not retrieve your user information from the OIDC provider.",
+ "auth_oidc_missing_sub": "Your OIDC provider did not return a subject identifier.",
+ "auth_oidc_email_collision": "An account with your email already exists but is linked to a different OIDC identity. Please contact an administrator.",
+ "auth_oidc_token_error": "There was an error obtaining tokens from the OIDC provider.",
+ "auth_user_processing_failed": "An error occurred while processing your user account.",
+ "auth_unexpected_error": "An unexpected error occurred. Please try again.",
+ "auth_failed_title": "Authentication Failed",
+ "auth_no_login_methods_title": "No Login Methods Configured",
+ "auth_no_login_methods_description": "There are currently no login methods enabled. Please contact an administrator.",
+ "auth_oidc_signin": "Sign in with OIDC Provider",
+ "auth_enter_credentials_required": "Please enter both username and password",
+ "auth_welcome_back_toast": "Welcome Back, {name}",
+ "auth_username_placeholder": "Enter your username or email",
+ "auth_password_placeholder": "Enter your password",
+ "auth_signing_in": "Signing in...",
+ "auth_signin_button": "Sign in to Arcane",
+ "auth_or_continue": "Or continue with",
+ "auth_tagline": "Modern Docker Management, Designed for Everyone.",
+ "common_password": "Password",
+ "common_view_on_github": "View on GitHub",
+ "auth_login_failed": "Login failed",
+ "auth_processing_login": "Processing Login...",
+ "auth_processing_login_description": "Please wait while we complete your authentication.",
+ "auth_authentication_error_title": "Authentication Error",
+ "auth_redirecting_to_login": "Redirecting you back to login...",
+ "auth_oidc_provider_error": "Authentication was cancelled or failed.",
+ "auth_oidc_access_denied": "Access was denied. You may have cancelled the login or lack permission.",
+ "auth_oidc_invalid_request": "Invalid authentication request. Please try again.",
+ "auth_oidc_auth_failed": "Authentication failed. Please try again.",
+ "auth_oidc_state_mismatch": "Security validation failed. Please try logging in again.",
+ "auth_oidc_session_expired": "Authentication session expired. Please try again.",
+ "auth_oidc_user_info_missing": "Authentication succeeded but user information is missing.",
+ "auth_oidc_callback_error": "An error occurred during authentication. Please try again.",
+ "auth_oidc_network_error": "Network error during authentication. Please check your connection and try again.",
+ "auth_oidc_url_generation_failed": "Unable to generate authentication URL. Please try again or contact your administrator.",
+ "auth_oidc_init_failed": "Failed to initiate OIDC login. Please try again.",
+ "auth_oidc_redirecting_title": "Redirecting to Login...",
+ "auth_oidc_redirecting_description": "Please wait while we redirect you to your identity provider.",
+ "quick_actions_title": "Quick Actions",
+ "quick_actions_start_all": "Start All Stopped",
+ "quick_actions_stop_all": "Stop All Running",
+ "quick_actions_prune_system": "Prune System",
+ "quick_actions_prune_description": "Clean unused resources",
+ "quick_actions_containers": "{count} containers",
+ "progress_title": "Progress",
+ "progress_subtitle": "Working…",
+ "progress_preparing": "Preparing...",
+ "progress_pull_completed": "Pull Completed",
+ "progress_in_progress_note": "This may take a while depending on size and connection.",
+ "progress_completed_success": "Completed successfully!",
+ "meter_footer_usage": "{percent}% of resources being used",
+ "log_stream_connection_lost": "Connection to {type} log stream lost",
+ "log_stream_closed_by_server": "{type} log stream was closed by server",
+ "log_stream_failed_connect": "Failed to connect to {type} log stream",
+ "log_viewer_stopping": "Stopping {type} log stream",
+ "log_viewer_connected": "{type} log stream connected",
+ "log_viewer_no_selection": "No {type} selected",
+ "log_viewer_no_logs_available": "No logs available. Start streaming to see logs.",
+ "log_viewer_waiting_for_logs": "Waiting for logs...",
+ "common_container": "Container",
+ "common_stack": "Stack",
+ "common_project": "Project",
+ "common_loading": "Loading...",
+ "image_update_auth_credential": "Credential",
+ "image_update_auth_credential_with_user": "Credential ({username})",
+ "image_update_auth_anonymous": "Anonymous",
+ "image_update_auth_none": "No Auth",
+ "image_update_check_failed_title": "Update Check Failed",
+ "image_update_could_not_query_registry": "Could not query the registry",
+ "image_update_error_label": "Error:",
+ "image_update_image_label": "Image:",
+ "image_update_up_to_date_title": "Up to Date",
+ "image_update_up_to_date_desc": "No updates available",
+ "image_update_running_prefix": "Running",
+ "image_update_digest_title": "Digest Update",
+ "image_update_digest_desc": "Security or bug fixes available",
+ "image_update_current_label": "Current",
+ "image_update_latest_digest_label": "Latest Digest",
+ "image_update_version_title": "Version Update",
+ "image_update_version_desc": "New version available",
+ "image_update_latest_label": "Latest",
+ "image_update_tag_description": "Update available",
+ "image_update_tag_description_new": "Update to {version} available",
+ "image_update_unknown_type": "Update type unknown",
+ "image_update_recheck_button": "Re-check Updates",
+ "image_update_checking_title": "Checking Updates",
+ "image_update_querying_registry": "Querying registry for latest version...",
+ "image_update_status_unknown": "Status Unknown",
+ "image_update_click_to_check": "Click to check for updates from registry.",
+ "image_update_unable_check_tags": "Unable to check updates for images without proper tags.",
+ "image_update_auth": "Auth: {label}",
+ "error_go_to_dashboard": "Go to Dashboard",
+ "docker_engine_title": "Docker Engine",
+ "docker_engine_subtitle": "{os} • {arch}",
+ "docker_containers_running_badge": "{count} running",
+ "docker_containers_total_badge": "total {count}",
+ "docker_containers_stopped_badge": "stopped {count}",
+ "docker_images_subtitle": "Total images discovered",
+ "action_confirm_removal_title": "Confirm Removal",
+ "action_confirm_removal_message": "Are you sure you want to remove this {type}? This action is DESTRUCTIVE and cannot be undone.",
+ "confirm_remove_project_files": "Remove project files",
+ "confirm_remove_volumes_warning": "Remove volumes (Warning: Data will be lost)",
+ "action_confirm_redeploy_title": "Confirm Redeploy",
+ "action_confirm_redeploy_message": "Are you sure you want to redeploy this stack? This will STOP, PULL, and START the Project.",
+ "action_redeploy": "Redeploy",
+ "action_redeploy_success": "{type} Redeployed Successfully",
+ "action_started_success": "{type} Started Successfully",
+ "action_stopped_success": "{type} Stopped Successfully",
+ "action_restarted_success": "{type} Restarted Successfully",
+ "action_removed_success": "{type} Removed Successfully",
+ "action_destroyed_success": "{type} Destroyed Successfully",
+ "action_failed_generic": "Failed to {action} {type}",
+ "images_pulled_success": "Images pulled successfully!",
+ "images_pull_initiating": "Initiating pull...",
+ "images_pull_processing_final_layers": "Processing final layers...",
+ "images_pull_server_error": "Failed to pull images. Server returned an error.",
+ "images_pull_stream_error": "An error occurred during pull stream",
+ "images_pull_failed_with_error": "Failed: {error}",
+ "progress_pulling_images": "Pulling Images",
+ "action_down": "Down",
+ "action_confirm_destroy_message": "Are you sure you want to destroy this {type}? This action is DESTRUCTIVE and will remove associated resources and cannot be undone.",
+ "sidebar_environment_label": "Environment",
+ "sidebar_select_environment": "Select Environment",
+ "sidebar_no_environments": "No environments available",
+ "sidebar_no_environment": "No Environment",
+ "sidebar_select_one": "Select one",
+ "sidebar_local_docker_socket": "unix:///var/run/docker.sock",
+ "sidebar_manage_environments": "Manage Environments",
+ "sidebar_version": "v{version}",
+ "sidebar_update_available": "Update available",
+ "sidebar_update_available_tooltip": "Update available: {version}",
+ "common_toggle_theme": "Toggle theme",
+ "common_logout": "Logout",
+ "sidebar_management": "Management",
+ "sidebar_customization": "Customization",
+ "sidebar_environments": "Environments",
+ "sidebar_administration": "Administration",
+ "templates_add_registry_title": "Add Template Registry",
+ "templates_add_registry_description": "Add a remote template registry to access community templates.",
+ "templates_registry_url_label": "Registry URL *",
+ "templates_registry_url_placeholder": "https://templates.arcane.ofkm.dev/registry.json",
+ "templates_registry_url_description": "URL to the registry JSON manifest",
+ "templates_registry_url_required": "Registry URL is required",
+ "templates_enable_registry_label": "Enable Registry",
+ "templates_enable_registry_description": "Enable this registry to fetch templates",
+ "templates_registry_validation_error_title": "Validation Error",
+ "templates_registry_validate_failed": "Failed to validate registry URL",
+ "templates_registry_invalid_format": "Invalid registry format: missing required fields (name, templates)",
+ "templates_add_registry_button": "Add Registry",
+ "registries_edit_title": "Edit Container Registry",
+ "registries_add_description": "Enter the details for the new container registry.",
+ "registries_edit_description": "Update the details for this container registry.",
+ "registries_url_placeholder": "e.g., docker.io, ghcr.io, gcr.io, quay.io",
+ "registries_url_description": "Leave empty or use 'docker.io' for Docker Hub",
+ "registries_url_required": "Registry URL is required",
+ "registries_token_label": "Token",
+ "registries_token_keep_placeholder": "Leave empty to keep current token",
+ "registries_token_placeholder": "Your registry password or token",
+ "registries_token_description": "Use a Personal Access Token or your password if the registry supports it.",
+ "registries_description_placeholder": "Optional description for this registry",
+ "registries_enabled_description": "Enable this registry for authentication",
+ "registries_allow_insecure_label": "Allow Insecure Connection",
+ "registries_allow_insecure_description": "Allow HTTP connections",
+ "registries_save_changes": "Save Changes",
+ "create_network_title": "Create New Network",
+ "create_network_description": "Configure and create a new Docker network.",
+ "network_name_label": "Network Name *",
+ "network_name_placeholder": "e.g., my-app-network",
+ "network_name_description": "Unique name for the network",
+ "network_name_required": "Network name is required",
+ "network_driver_label": "Network Driver",
+ "network_driver_description": "Choose the network driver type",
+ "network_driver_placeholder": "Select a driver",
+ "network_driver_required": "Driver is required",
+ "networks_ipvlan": "IPvlan",
+ "network_check_duplicate_label": "Check Duplicate",
+ "network_internal_label": "Internal Network",
+ "add_label_button": "Add Label",
+ "labels_key_value_label": "Key-Value Labels",
+ "network_labels_text_label": "Additional Labels (Text Format)",
+ "network_labels_placeholder": "com.example.description=Production network\ncom.example.department=Backend",
+ "network_labels_description": "Enter additional labels as key=value pairs, one per line",
+ "network_enable_ipam_label": "Enable IPAM Configuration",
+ "network_subnet_description": "Network subnet in CIDR notation",
+ "network_gateway_description": "Gateway IP address for the network",
+ "networks_creating": "Creating...",
+ "create_volume_title": "Create New Volume",
+ "create_volume_description": "Enter the details for the new Docker volume.",
+ "volume_name_label": "Volume Name *",
+ "volume_name_placeholder": "e.g., my-app-data",
+ "volume_name_description": "Unique name for the volume",
+ "volume_name_required": "Volume name is required",
+ "volume_driver_label": "Volume Driver",
+ "volume_driver_placeholder": "Select a driver",
+ "volume_driver_description": "Choose the storage driver for your volume",
+ "volume_driver_required": "Driver is required",
+ "volume_driver_local": "Local",
+ "volume_driver_nfs": "NFS",
+ "volume_driver_aws_ebs": "AWS EBS",
+ "volume_driver_azure_disk": "Azure Disk",
+ "volume_driver_gce_pd": "GCE Persistent Disk",
+ "volume_advanced_settings": "Advanced Settings",
+ "volume_driver_options_placeholder": "key=value\nkey2=value2",
+ "volume_driver_options_description": "Enter driver-specific options as key=value pairs, one per line",
+ "volume_labels_placeholder": "com.example.description=Production data\ncom.example.department=Finance",
+ "volumes_creating": "Creating...",
+ "images_pull_description": "Enter the image reference you want to pull from a registry.",
+ "images_image_name_label": "Image Name *",
+ "images_image_name_placeholder": "nginx, redis, ubuntu, etc.",
+ "images_image_name_description": "Enter the image name from Docker Hub or other registries",
+ "images_image_required": "Image name is required",
+ "images_tag_description": "Specify a tag version (defaults to 'latest')",
+ "images_pull_unexpected_error": "An unexpected error occurred while pulling the image.",
+ "images_pull_in_progress_toast": "Pull operation is in progress.",
+ "images_pull_wait_message": "This may take a while depending on the image size and your internet connection.",
+ "environments_manage_description": "Add and manage remote Arcane servers in Agent Mode.",
+ "environments_name_placeholder": "My Lab Server",
+ "environments_name_required": "Environment name is required",
+ "environments_name_too_long": "Name too long (max 25 characters)",
+ "common_invalid_url": "Must be a valid URL",
+ "environments_server_url_required": "Server URL is required",
+ "environments_api_url_placeholder": "http://192.168.1.100:3553",
+ "environments_api_url_description": "Full URL to the Arcane server endpoint",
+ "environments_create_failed": "Failed to create environment",
+ "users_edit_title": "Edit User",
+ "users_create_new_title": "Create New User",
+ "users_edit_description": "Update the details for {username}",
+ "users_create_description": "Add a new user to your system with the required permissions",
+ "users_password_required_label": "Password *",
+ "users_password_managed_oidc": "Managed by your identity provider",
+ "users_password_leave_empty": "Leave empty to keep current password",
+ "users_password_enter": "Enter password",
+ "users_password_description_oidc": "Password is managed by your OIDC provider",
+ "users_password_description_edit": "Leave empty to keep current password",
+ "users_password_description_create": "Password for the user account",
+ "users_display_name_placeholder": "Full name or display name",
+ "users_display_name_description": "Optional display name for the user",
+ "users_email_placeholder": "[email protected]",
+ "users_email_description": "Email address for the user",
+ "users_username_description": "Unique username for the user",
+ "users_administrator_description": "Grant administrator privileges to this user",
+ "users_save_changes": "Save Changes",
+ "common_invalid_email": "Must be a valid email",
+ "common_select_option": "Select an option",
+ "events_details_title": "Event Details",
+ "events_resource_id_label": "Resource ID",
+ "events_resource_name_label": "Resource Name",
+ "events_metadata_title": "Metadata",
+ "events_raw_event_title": "Raw Event",
+ "events_no_metadata_provided": "No metadata provided.",
+ "events_copy_resource_id_title": "Copy resource id",
+ "events_copy_resource_name_title": "Copy resource name",
+ "events_copy_metadata_json_title": "Copy metadata JSON",
+ "events_copy_full_event_json_title": "Copy full event JSON",
+ "events_environment_label": "Environment",
+ "common_copy": "Copy",
+ "common_copy_json": "Copy JSON",
+ "common_copied": "Copied to clipboard",
+ "common_copy_failed": "Failed to copy",
+ "common_close": "Close",
+ "oidc_viewmode_description": "OIDC authentication is configured and forced ON by server-side environment variables. These settings are read-only.",
+ "oidc_configure_description": "Configure the OIDC settings for your application. These settings will be saved to the database and used for OIDC authentication.",
+ "oidc_server_env_config_title": "Server Environment Configuration",
+ "oidc_server_env_config_description": "The following OIDC settings are loaded from the server environment:",
+ "oidc_client_id_label": "Client ID",
+ "oidc_client_id_placeholder": "Provided by your OIDC Provider",
+ "oidc_client_secret_label": "Client Secret",
+ "oidc_client_secret_placeholder": "Provided by your OIDC Provider (leave blank to keep existing)",
+ "oidc_client_secret_hidden": "(Sensitive - Not Displayed)",
+ "oidc_issuer_url_label": "Issuer URL",
+ "oidc_issuer_url_placeholder": "https://id.example.com",
+ "oidc_issuer_url_description": "The issuer URL will be used to auto-discover OIDC endpoints.",
+ "oidc_scopes_label": "Scopes",
+ "oidc_scopes_placeholder": "openid email profile",
+ "oidc_admin_claim_label": "Admin Claim",
+ "oidc_admin_value_label": "Required Value(s)",
+ "oidc_admin_role_mapping_title": "Admin Role Mapping",
+ "oidc_admin_role_mapping_description": "Map an OIDC claim to grant the admin role. Examples: roles=admin, groups=admin, or admin=true.",
+ "oidc_admin_claim_placeholder": "e.g., roles, groups, realm_access.roles, admin",
+ "oidc_admin_value_placeholder": "e.g., admin (comma-separated)",
+ "oidc_admin_value_help": "Leave empty for boolean claims (admin=true).",
+ "oidc_env_config_missing": "OIDC configuration details not found in effective settings.",
+ "oidc_env_changes_note": "Changes to these settings must be made in your server's environment configuration.",
+ "oidc_server_override_warning_title": "Server Override Warning",
+ "oidc_redirect_uri_title": "Redirect URI Configuration",
+ "oidc_redirect_uri_description": "Configure this redirect URI in your OIDC provider:",
+ "oidc_status_title": "Status",
+ "oidc_status_env_forced": "Env Forced",
+ "oidc_status_env_forced_hint": "Server forces OIDC",
+ "oidc_status_env_configured": "Env Configured",
+ "oidc_status_env_configured_hint": "Server OIDC vars present",
+ "oidc_tips_title": "Tips",
+ "oidc_tip_1": "If your server forces OIDC, app settings become read-only.",
+ "oidc_tip_2": "Use issuer discovery; avoid hardcoding endpoints.",
+ "oidc_tip_3": "Keep client secrets out of the UI when possible.",
+ "oidc_basic_configuration_title": "Basic Configuration",
+ "oidc_basic_description": "Essential OIDC provider settings",
+ "prune_confirm_system_title": "Confirm System Prune",
+ "prune_confirm_description": "Select the resources you want to prune. This action permanently removes unused data and cannot be undone.",
+ "prune_stopped_containers": "Stopped Containers",
+ "prune_unused_images": "Unused Images",
+ "prune_images_mode_dangling": "Dangling Only",
+ "prune_images_mode_all": "All Unused",
+ "prune_unused_networks": "Unused Networks",
+ "prune_unused_volumes": "Unused Volumes",
+ "prune_potentially_destructive": "(Potentially Destructive!)",
+ "prune_volumes_guidance": "Only enable this if you are certain no important data resides in unused volumes.",
+ "prune_volumes_warning_title": "Warning: Pruning Volumes",
+ "prune_volumes_warning_description": "Pruning volumes permanently deletes data. Ensure you have backups if necessary.",
+ "prune_button": "Prune Selected ({count})",
+ "templates_choose_title": "Choose a Template",
+ "templates_choose_description": "Browse templates from your registries or local downloads. Scroll to see more, select to use immediately, or download for offline use.",
+ "templates_group_by_registry_label": "Group by registry",
+ "templates_group_by_registry_description": "Enable Collapsible Sections for each registry",
+ "templates_sort_name_asc": "Name (A-Z)",
+ "templates_sort_name_desc": "Name (Z-A)",
+ "templates_no_templates": "No templates available",
+ "templates_add_registry_prompt_part1": "Add a template registry in ",
+ "templates_add_registry_prompt_part2": " to access community templates.",
+ "templates_template_settings": "Template Settings",
+ "templates_remote": "Remote",
+ "templates_local": "Local",
+ "templates_remote_template_label": "Remote template",
+ "templates_local_template_label": "Local template",
+ "templates_downloading": "Downloading...",
+ "templates_download": "Download",
+ "templates_loading": "Loading...",
+ "templates_use_now": "Use Now",
+ "templates_load_failed": "Failed to load template content",
+ "templates_loaded_success": "Template \"{name}\" loaded successfully!",
+ "templates_download_failed": "Failed to download template",
+ "templates_downloaded_success": "Template \"{name}\" downloaded successfully!",
+ "common_sort_by": "Sort by",
+ "editor_placeholder": "Enter code...",
+ "common_no_results_found": "No results found.",
+ "common_clear_filters": "Clear filters",
+ "common_selected_count": "{count} selected",
+ "common_search": "Search...",
+ "common_usage": "Usage",
+ "common_reset": "Reset",
+ "common_remove_selected": "Remove Selected ({count})",
+ "common_toggle_columns": "Toggle columns",
+ "common_select_all": "Select all",
+ "common_select_row": "Select row",
+ "common_showing_of_total": "Showing {shown} of {total} item(s).",
+ "common_rows_per_page": "Rows per page",
+ "common_go_first_page": "Go to first page",
+ "common_go_prev_page": "Go to previous page",
+ "common_go_next_page": "Go to next page",
+ "common_go_last_page": "Go to last page",
+ "common_page_of": "Page {page} of {total}",
+ "common_sort_asc": "Asc",
+ "common_sort_desc": "Desc",
+ "common_hide": "Hide",
+ "images_has_updates": "Has Updates",
+ "images_no_updates": "No Updates",
+ "common_processing": "Processing...",
+ "common_loading_label": "Loading - {label}",
+ "action_deploy": "Deploy",
+ "action_deploying": "Deploying...",
+ "action_starting": "Starting...",
+ "action_stopping": "Stopping...",
+ "action_removing": "Removing...",
+ "action_restarting": "Restarting...",
+ "action_redeploying": "Redeploying...",
+ "action_inspecting": "Inspecting...",
+ "action_confirming": "Confirming...",
+ "common_create": "Create",
+ "common_creating": "Creating...",
+ "action_use_template": "Use Template",
+ "common_logs": "Logs",
+ "action_cancelling": "Cancelling...",
+ "action_fetching_logs": "Fetching...",
+ "sidebar_settings": "Settings",
+ "common_select_locale": "Select locale",
+ "create_container_title": "Create New Container",
+ "create_container_description": "Configure and create a new Docker container.",
+ "tabs_basic": "Basic",
+ "tabs_environment": "Environment",
+ "tabs_ports": "Ports",
+ "tabs_volumes": "Volumes",
+ "tabs_network_security": "Network & Security",
+ "tabs_advanced": "Advanced",
+ "container_name_label": "Container Name *",
+ "container_name_placeholder": "e.g., my-app-container",
+ "container_name_description": "Unique name for the container",
+ "container_name_required": "Container name is required",
+ "container_image_label": "Image *",
+ "container_image_placeholder": "e.g., nginx:latest",
+ "container_image_description": "Docker image to use for the container",
+ "container_image_required": "Image is required",
+ "container_command_label": "Command",
+ "container_command_placeholder": "e.g., /bin/bash -c 'echo hello'",
+ "container_command_description": "Command to run in the container",
+ "container_working_directory_label": "Working Directory",
+ "container_working_directory_placeholder": "/app",
+ "container_working_directory_description": "Working directory inside the container",
+ "container_user_label": "User",
+ "container_user_placeholder": "1000:1000",
+ "container_user_description": "User to run the container as",
+ "container_hostname_label": "Hostname",
+ "container_hostname_placeholder": "my-container",
+ "container_domain_label": "Domain Name",
+ "container_domain_placeholder": "example.com",
+ "io_settings_title": "I/O Settings",
+ "io_attach_stdout": "Attach Stdout",
+ "io_attach_stderr": "Attach Stderr",
+ "io_attach_stdin": "Attach Stdin",
+ "io_allocate_tty": "Allocate TTY",
+ "io_open_stdin": "Open Stdin",
+ "io_stdin_once": "Stdin Once",
+ "env_dynamic_title": "Dynamic Environment Variables",
+ "env_text_format_title": "Text Format Environment Variables",
+ "env_text_placeholder": "NODE_ENV=production\nPORT=3000\nDEBUG=true",
+ "env_text_description": "Enter environment variables as KEY=value pairs, one per line",
+ "add_env_var_button": "Add Environment Variable",
+ "port_mappings_title": "Port Mappings",
+ "port_label_host": "Host:",
+ "port_label_container": "Container:",
+ "add_port_mapping_button": "Add Port Mapping",
+ "port_configuration_title": "Port Configuration",
+ "exposed_ports_label": "Exposed Ports",
+ "exposed_ports_placeholder": "80,443,8080/tcp",
+ "exposed_ports_description": "Comma-separated list of ports to expose",
+ "publish_all_ports_label": "Publish All Ports",
+ "volume_mounts_title": "Volume Mounts",
+ "add_volume_mount_button": "Add Volume Mount",
+ "volumes_text_title": "Text Format Volume Binds",
+ "volumes_text_placeholder": "/host/path:/container/path\n/host/path2:/container/path2:ro\nmyvolume:/app/data",
+ "volumes_text_description": "Enter volume binds as source:destination[:options], one per line",
+ "read_only_label": "Read Only",
+ "network_settings_title": "Network Settings",
+ "disable_network_label": "Disable Network",
+ "security_settings_title": "Security Settings",
+ "privileged_label": "Privileged",
+ "readonly_rootfs_label": "Read-only Root Filesystem",
+ "auto_remove_label": "Auto Remove",
+ "restart_policy_title": "Restart Policy",
+ "restart_policy_label": "Restart Policy",
+ "restart_policy_description": "Container restart behavior",
+ "restart_policy_placeholder": "Select restart policy",
+ "restart_policy_no": "No",
+ "restart_policy_always": "Always",
+ "restart_policy_unless_stopped": "Unless Stopped",
+ "restart_policy_on_failure": "On Failure",
+ "max_retry_label": "Maximum Retry Count",
+ "max_retry_placeholder": "5",
+ "max_retry_description": "Maximum number of restart attempts",
+ "containers_labels_description": "Enter metadata labels as key=value pairs, one per line",
+ "containers_creating": "Creating..."
+}
diff --git a/frontend/messages/es.json b/frontend/messages/es.json
new file mode 100644
index 000000000..30f425e87
--- /dev/null
+++ b/frontend/messages/es.json
@@ -0,0 +1,1049 @@
+{
+ "$schema": "https://inlang.com/schema/inlang-message-format",
+ "layout_title": "Arcane",
+ "error_occurred": "An Error Occured",
+ "error_not_found": "Not Found",
+ "error_generic": "Something went wrong",
+ "volumes_title": "Volumes",
+ "volumes_subtitle": "Manage your Docker volumes",
+ "volumes_create_button": "Create Volume",
+ "volumes_stat_total": "Total Volumes",
+ "volumes_stat_used": "Used Volumes",
+ "volumes_stat_unused": "Unused Volumes",
+ "volumes_created_success": "Volume \"{name}\" Created Successfully.",
+ "volumes_create_failed": "Failed to Create Volume \"{name}\"",
+ "volumes_refresh_failed": "Failed to Refresh Volumes",
+ "volumes_remove_title": "Remove Volume",
+ "volumes_remove_confirm_message": "Are you sure you want to remove the volume \"{name}\"? This action cannot be undone and will permanently delete all data stored in this volume.",
+ "volumes_remove_failed": "Failed to Remove Volume \"{name}\"",
+ "volumes_remove_success": "Volume \"{name}\" Removed Successfully.",
+ "volumes_bulk_remove_success_one": "Successfully removed 1 volume",
+ "volumes_bulk_remove_success_many": "Successfully removed {count} volumes",
+ "volumes_bulk_remove_failed_one": "Failed to remove 1 volume",
+ "volumes_bulk_remove_failed_many": "Failed to remove {count} volumes",
+ "common_refresh": "Refresh",
+ "common_unknown": "Unknown",
+ "common_remove": "Remove",
+ "common_id": "ID",
+ "common_name": "Name",
+ "common_status": "Status",
+ "common_driver": "Driver",
+ "common_created": "Created",
+ "common_in_use": "In Use",
+ "common_unused": "Unused",
+ "common_open_menu": "Open menu",
+ "common_inspect": "Inspect",
+ "common_view": "View",
+ "common_scope": "Scope",
+ "common_mountpoint": "Mountpoint",
+ "common_labels": "Labels",
+ "common_driver_options": "Driver Options",
+ "volumes_remove_in_use_warning": "Warning: This volume is currently in use by containers. Forcing removal may cause data loss or container issues.",
+ "volumes_details_title": "Volume Details",
+ "volumes_details_description": "Basic information about this Docker volume",
+ "volumes_containers_using_title": "Containers Using This Volume",
+ "volumes_containers_using_description": "List of containers currently referencing this volume",
+ "volumes_no_containers_using": "No containers are currently using this volume.",
+ "volumes_labels_description": "User-defined metadata attached to this volume",
+ "volumes_driver_options_description": "Volume driver-specific options",
+ "volumes_no_labels_or_options": "This volume has no additional labels or driver options.",
+ "volumes_not_found_title": "Volume Not Found",
+ "volumes_not_found_description": "The requested volume could not be found or is no longer available.",
+ "common_back_to_volumes": "Back to Volumes",
+ "users_title": "Users",
+ "users_subtitle": "Manage system users and permissions",
+ "users_create_button": "Create User",
+ "users_total": "Total Users",
+ "users_administrators": "Administrators",
+ "users_regular": "Regular Users",
+ "users_update_failed": "Failed to update user \"{username}\"",
+ "users_update_success": "User \"{username}\" updated successfully.",
+ "users_create_failed": "Failed to create user \"{username}\"",
+ "users_create_success": "User \"{username}\" created successfully.",
+ "common_username_required": "Username is required",
+ "common_username": "Username",
+ "common_display_name": "Display Name",
+ "common_email": "Email",
+ "common_role": "Role",
+ "common_edit": "Edit",
+ "common_delete": "Delete",
+ "common_admin": "Admin",
+ "common_user": "User",
+ "users_delete_selected_title": "Delete {count} user(s)",
+ "users_delete_selected_message": "Are you sure you want to delete the selected user(s)? This action cannot be undone.",
+ "users_delete_selected_item_failed": "Failed to delete user {id}",
+ "users_delete_success_one": "Successfully deleted 1 user",
+ "users_delete_success_many": "Successfully deleted {count} users",
+ "users_delete_failed_one": "Failed to delete 1 user",
+ "users_delete_failed_many": "Failed to delete {count} users",
+ "users_delete_user_title": "Delete User \"{username}\"",
+ "users_delete_user_message": "Are you sure you want to delete the user \"{username}\"? This action cannot be undone.",
+ "users_delete_user_failed": "Failed to delete user \"{username}\"",
+ "users_delete_user_success": "User \"{username}\" deleted successfully.",
+ "security_title": "Security Settings",
+ "security_description": "Configure authentication methods, session timeouts, and other security-related options.",
+ "general_title": "General Settings",
+ "general_description": "Core configuration settings for the application",
+ "security_authentication_heading": "Authentication",
+ "security_local_auth_label": "Local Authentication",
+ "security_local_auth_description": "Username and password stored by Arcane. Keep enabled as a fallback.",
+ "security_oidc_auth_label": "OIDC Authentication",
+ "security_oidc_auth_description": "Use an external OIDC provider",
+ "security_oidc_auth_description_forced": "Use an external OIDC provider (forced by server)",
+ "security_server_forces_oidc_missing_env": "Server forces OIDC, but env vars missing. Configure or fix server env.",
+ "security_oidc_configured_forced_view": "OIDC configured & forced by server. View status.",
+ "security_manage_oidc_config": "Manage OIDC configuration",
+ "security_session_heading": "Session",
+ "security_session_timeout_label": "Session Timeout (minutes)",
+ "security_session_timeout_placeholder": "60",
+ "security_session_timeout_description": "Inactive sessions will be logged out automatically (15–1440 minutes).",
+ "security_session_timeout_required": "Session timeout is required",
+ "security_session_timeout_integer": "Must be an integer",
+ "security_session_timeout_min": "Minimum is 15 minutes",
+ "security_session_timeout_max": "Maximum is 1440 minutes",
+ "security_password_policy_label": "Password Policy",
+ "security_password_policy_basic": "Basic",
+ "security_password_policy_standard": "Standard",
+ "security_password_policy_strong": "Strong",
+ "security_password_policy_basic_tooltip": "Minimum 8 characters.",
+ "security_password_policy_standard_tooltip": "10+ chars with upper, lower, and a number.",
+ "security_password_policy_strong_tooltip": "12+ chars with upper, lower, number, and symbol.",
+ "security_enable_one_provider": "Enable at least one authentication provider.",
+ "security_enable_one_provider_error": "At least one authentication provider must be enabled.",
+ "security_settings_saved": "Settings saved successfully.",
+ "security_local_enabled_info": "Local Authentication enabled to ensure at least one provider is active.",
+ "security_oidc_saved": "OIDC configuration saved successfully.",
+ "security_save_instructions": "Save your updated settings.",
+ "common_save": "Save",
+ "common_saving": "Saving…",
+ "general_projects_heading": "Project Paths",
+ "general_projects_description": "Configure where Arcane looks for your Compose files.",
+ "general_projects_directory_label": "Projects Directory",
+ "general_projects_directory_placeholder": "data/projects",
+ "general_projects_directory_help": "Directory where Docker Compose files are stored (this is inside the container)",
+ "general_projects_directory_required": "Projects directory is required",
+ "general_base_url_label": "Base Server URL",
+ "general_base_url_placeholder": "localhost",
+ "general_base_url_help": "The Base URL for your docker host. Used when opening containers from the service links",
+ "general_base_url_required": "Base server URL is required",
+ "general_user_avatars_heading": "User Avatars",
+ "general_user_avatars_description": "Control Gravatar usage for profile images.",
+ "general_enable_gravatar_label": "Enable Gravatar",
+ "general_enable_gravatar_description": "Whether to use Gravatar-based avatars for user accounts",
+ "general_settings_saved": "Settings Updated Successfully",
+ "general_save_instructions": "Save your updated settings.",
+ "docker_enable_polling_label": "Enable Image Polling",
+ "docker_enable_polling_description": "Periodically check registries for newer image versions",
+ "docker_polling_interval_label": "Polling Interval (minutes)",
+ "docker_polling_interval_placeholder": "60",
+ "docker_polling_interval_description": "How often to check for new images (5-1440 minutes)",
+ "docker_auto_update_label": "Auto-update Containers",
+ "docker_auto_update_description": "Automatically update containers when newer images are found",
+ "docker_auto_update_interval_label": "Auto-update Interval (minutes)",
+ "docker_auto_update_interval_placeholder": "60",
+ "docker_auto_update_interval_description": "How often to perform automatic updates (5-1440 minutes)",
+ "docker_auto_update_alert_title": "Auto-update Enabled",
+ "docker_auto_update_alert_description": "Automatic container updates are active with polling enabled",
+ "docker_rate_limit_warning_title": "Rate Limiting Warning",
+ "docker_rate_limit_warning_description": "Polling intervals below 30 minutes may trigger registry rate limits. Prefer longer intervals in production.",
+ "docker_prune_all": "All",
+ "docker_prune_all_description": "Remove all images not referenced by containers and include named, unused volumes during System Prune.",
+ "docker_prune_dangling": "Dangling",
+ "docker_prune_dangling_description": "Remove only dangling (untagged) images and anonymous volumes during System Prune.",
+ "docker_prune_mode_description": "Choose how unused images and volumes should be pruned.",
+ "docker_prune_action_label": "Docker Prune Action Behavior",
+ "docker_prune_placeholder": "Docker PruneMode",
+ "docker_prune_group_label": "Prune Modes",
+ "docker_title": "Docker Settings",
+ "docker_description": "Configure Docker automation behavior and settings.",
+ "networks_delete_title": "Delete Network",
+ "networks_delete_confirm_message": "Are you sure you want to delete network \"{name}\"? This action cannot be undone.",
+ "networks_delete_failed": "Failed to Remove Network \"{name}\"",
+ "networks_delete_success": "Network \"{name}\" Removed Successfully.",
+ "networks_delete_selected_title": "Delete {count} network(s)",
+ "networks_delete_selected_message": "Are you sure you want to delete {count} selected network(s)? This action cannot be undone.",
+ "networks_cannot_delete_default": "Cannot delete default network: {name}",
+ "networks_cannot_delete_default_many": "Cannot delete default networks: {names}",
+ "networks_empty_title": "No networks found",
+ "networks_empty_description": "Create a new network using the Create Network button above or use the Docker CLI.",
+ "networks_title": "Networks",
+ "networks_subtitle": "Manage your Docker networks",
+ "networks_create_button": "Create Network",
+ "networks_created_success": "Network \"{name}\" Created Successfully.",
+ "networks_create_failed": "Failed to Create Network \"{name}\"",
+ "networks_refresh_failed": "Failed to Refresh Networks",
+ "networks_total": "Total Networks",
+ "networks_bridge": "Bridge",
+ "networks_host": "Host",
+ "networks_overlay": "Overlay",
+ "networks_macvlan": "Macvlan",
+ "networks_none": "None",
+ "networks_driver": "Driver",
+ "networks_name": "Name",
+ "networks_id": "ID",
+ "networks_created": "Created",
+ "networks_scope": "Scope",
+ "networks_labels": "Labels",
+ "networks_options": "Options",
+ "networks_details_title": "Network Details",
+ "networks_details_description": "Basic information about this Docker network",
+ "networks_no_additional_info": "No additional information available for this network.",
+ "networks_not_found_title": "Network Not Found",
+ "networks_not_found_description": "The requested network could not be found or is no longer available.",
+ "networks_remove_title": "Remove Network",
+ "networks_remove_confirm_message": "Are you sure you want to remove the network \"{name}\"? This action cannot be undone.",
+ "networks_remove_failed": "Failed to Remove Network \"{name}\"",
+ "networks_remove_success": "Network \"{name}\" Removed Successfully.",
+ "networks_bulk_remove_success_one": "Successfully removed 1 network",
+ "networks_bulk_remove_success_many": "Successfully removed {count} networks",
+ "networks_bulk_remove_failed_one": "Failed to remove 1 network",
+ "networks_bulk_remove_failed_many": "Failed to remove {count} networks",
+ "common_back_to_networks": "Back to Networks",
+ "common_view_details": "View Details",
+ "common_no_networks_found": "No networks found. Create a new network to get started.",
+ "networks_missing_id": "Network ID is missing",
+ "networks_in_use_count": "In Use ({count})",
+ "networks_predefined": "Predefined",
+ "common_yes": "Yes",
+ "common_no": "No",
+ "networks_ipam_title": "IPAM Configuration",
+ "networks_ipam_description": "IP Address Management settings for this network",
+ "networks_ipam_subnet_label": "Subnet",
+ "networks_ipam_gateway_label": "Gateway",
+ "networks_ipam_iprange_label": "IP Range",
+ "networks_ipam_aux_addresses_label": "Auxiliary Addresses",
+ "networks_ipam_driver_label": "IPAM Driver",
+ "networks_ipam_options_label": "IPAM Options",
+ "networks_connected_containers_title": "Connected Containers",
+ "networks_connected_containers_description": "{count} container(s) connected to this network",
+ "networks_labels_title": "Labels",
+ "networks_labels_description": "User-defined metadata attached to this network",
+ "networks_options_title": "Options",
+ "networks_options_description": "Network driver-specific options",
+ "action_failed": "Action Failed",
+ "attachable": "Attachable",
+ "ipv6_enabled": "IPv6 Enabled",
+ "internal": "Internal",
+ "images_remove_selected_title": "Remove {count} Image(s)",
+ "images_remove_selected_message": "Are you sure you want to remove the selected image(s)? This action cannot be undone.",
+ "images_remove_failed": "Failed to remove image",
+ "images_remove_success_one": "Successfully removed 1 image",
+ "images_remove_success_many": "Successfully removed {count} images",
+ "images_remove_failed_one": "Failed to remove 1 image",
+ "images_remove_failed_many": "Failed to remove {count} images",
+ "images_remove_title": "Remove Image",
+ "images_remove_message": "Are you sure you want to remove this image? This action cannot be undone.",
+ "images_remove_success": "Image removed successfully",
+ "images_pull_no_tag": "Cannot pull image without repository tag",
+ "images_pull_failed": "Failed to pull image",
+ "images_pull_success": "Successfully pulled {repoTag}",
+ "images_pulling": "Pulling…",
+ "images_pull": "Pull",
+ "images_untagged": "Untagged",
+ "common_na": "N/A",
+ "images_repository": "Repository",
+ "images_image_id": "Image ID",
+ "images_size": "Size",
+ "images_updates": "Updates",
+ "images_title": "Images",
+ "images_subtitle": "View and Manage your Container Images",
+ "images_pull_image": "Pull Image",
+ "images_check_updates": "Check Updates",
+ "images_prune_unused": "Prune Unused",
+ "images_total": "Total Images",
+ "images_total_size": "Total Size",
+ "images_prune_failed": "Failed to Prune Images",
+ "images_pruned_success": "Images Pruned Successfully",
+ "images_update_check_completed": "Update check completed",
+ "images_update_check_failed": "Failed to check for updates",
+ "images_refresh_failed": "Failed to Refresh Images",
+ "images_prune_confirm_title": "Prune Unused Images",
+ "images_prune_confirm_description": "Removes unused Docker images (prune mode: {mode}). This frees disk space and cannot be undone. Images referenced by any container will not be removed.",
+ "common_cancel": "Cancel",
+ "images_prune_action": "Prune Images",
+ "images_pruning": "Pruning…",
+ "images_checking": "Checking…",
+ "images_details_title": "Image Details",
+ "images_tags_title": "Tags",
+ "images_env_vars_title": "Environment Variables",
+ "images_architecture": "Architecture",
+ "images_os": "OS",
+ "images_not_found_title": "Image not found.",
+ "common_back_to_images": "Back to Images",
+ "events_delete_title": "Delete Event",
+ "events_delete_confirm_message": "Are you sure you want to delete the event \"{title}\"? This action cannot be undone.",
+ "events_delete_failed": "Failed to delete event \"{title}\"",
+ "events_delete_success": "Event \"{title}\" deleted successfully.",
+ "events_col_severity": "Severity",
+ "events_col_type": "Type",
+ "events_col_resource": "Resource",
+ "events_col_time": "Time",
+ "events_title": "Event Log",
+ "events_subtitle": "Monitor events that have taken place in Arcane.",
+ "events_refresh_failed": "Failed to refresh events",
+ "events_remove_selected": "Remove Selected",
+ "events_delete_selected_title": "Delete {count} Event(s)",
+ "events_delete_selected_message": "Are you sure you want to delete the selected event(s)? This action cannot be undone.",
+ "events_delete_item_failed": "Failed to delete event {id}",
+ "events_delete_success_one": "Successfully deleted 1 event",
+ "events_delete_success_many": "Successfully deleted {count} events",
+ "events_delete_failed_one": "Failed to delete 1 event",
+ "events_delete_failed_many": "Failed to delete {count} events",
+ "events_total": "Total Events",
+ "events_total_subtitle": "All recorded events",
+ "events_info": "Info",
+ "events_info_subtitle": "Information events",
+ "events_success": "Success",
+ "events_success_subtitle": "Successful operations",
+ "events_warning": "Warning",
+ "events_warning_subtitle": "Warning events",
+ "events_error": "Error",
+ "events_error_subtitle": "Error events",
+ "environments_remove_selected_title": "Remove {count} Environment(s)",
+ "environments_remove_selected_message": "Are you sure you want to remove the selected environment(s)? This action cannot be undone.",
+ "environments_bulk_remove_success_one": "Removed 1 environment",
+ "environments_bulk_remove_success_many": "Removed {count} environments",
+ "environments_bulk_remove_failed_one": "Failed to remove 1 environment",
+ "environments_bulk_remove_failed_many": "Failed to remove {count} environments",
+ "environments_delete_title": "Remove Environment",
+ "environments_delete_message": "Are you sure you want to remove \"{name}\"? This action cannot be undone.",
+ "environments_delete_failed": "Failed to remove environment \"{name}\"",
+ "environments_delete_success": "Removed \"{name}\"",
+ "environments_test_connection": "Test Connection",
+ "environments_test_connection_failed": "Failed to test connection",
+ "environments_test_connection_success": "Connection successful",
+ "environments_test_connection_error": "Connection failed",
+ "environments_api_url": "API URL",
+ "common_enabled": "Enabled",
+ "common_disabled": "Disabled",
+ "common_online": "Online",
+ "common_offline": "Offline",
+ "environments_title": "Environment Management",
+ "environments_subtitle": "Manage and monitor your Arcane environments",
+ "environments_remove_selected_button": "Remove Selected",
+ "environments_add_button": "Add Environment",
+ "environments_refresh_failed": "Failed to refresh environments",
+ "environments_created_success": "Environment added successfully",
+ "environments_page_subtitle": "Environment details and management",
+ "environments_sections_title": "Sections",
+ "environments_section_overview": "Overview",
+ "environments_section_connection": "Connection",
+ "environments_section_pairing": "Pair/Rotate",
+ "environments_overview_title": "Environment Overview",
+ "environments_environment_id_label": "Environment ID",
+ "environments_connection_title": "Connection Details",
+ "environments_testing_connection": "Testing Connection...",
+ "environments_pair_rotate_title": "Pair / Rotate Agent Token",
+ "environments_pair_rotate_description": "The token is stored securely on the server and not displayed. Use a Bootstrap Token to pair or rotate.",
+ "environments_bootstrap_label": "Bootstrap Token",
+ "environments_bootstrap_placeholder": "Enter AGENT_BOOTSTRAP_TOKEN",
+ "environments_pair_rotate_action": "Pair / Rotate",
+ "environments_refreshing": "Refreshing...",
+ "common_clear": "Clear",
+ "dashboard_title": "Dashboard",
+ "dashboard_subtitle": "Overview of your Container Environment",
+ "dashboard_system_overview": "System Overview",
+ "dashboard_start_all_failed": "Failed to start all containers",
+ "dashboard_start_all_success": "All containers started successfully",
+ "dashboard_stop_all_title": "Stop All Containers",
+ "dashboard_stop_all_confirm": "Are you sure you want to stop all running containers?",
+ "dashboard_stop_all_failed": "Failed to stop all running containers",
+ "dashboard_stop_all_success": "All containers stopped successfully",
+ "dashboard_prune_failed": "Failed to prune {types}",
+ "dashboard_prune_success_one": "{types} was pruned successfully.",
+ "dashboard_prune_success_many": "{types} were pruned successfully.",
+ "dashboard_meter_running": "Running Containers",
+ "dashboard_meter_running_desc": "Active containers",
+ "dashboard_meter_cpu": "CPU Usage",
+ "dashboard_meter_cpu_desc": "Processor utilization",
+ "dashboard_meter_memory": "Memory Usage",
+ "dashboard_meter_memory_desc": "RAM utilization",
+ "dashboard_meter_disk": "Disk Usage",
+ "dashboard_meter_disk_desc": "Storage utilization",
+ "dashboard_docker_details_title": "Docker Details",
+ "common_confirm": "Confirm",
+ "containers_title": "Containers",
+ "containers_recent": "Recent containers",
+ "common_view_all": "View All",
+ "common_image": "Image",
+ "common_state": "State",
+ "containers_showing_of_total": "Showing {shown} of {total} containers",
+ "images_tag": "Tag",
+ "images_top_largest": "Top 5 Largest Images",
+ "images_showing_of_total": "Showing {shown} of {total} images",
+ "images_none_label": "<none>",
+ "images_tag_latest": "latest",
+ "registry_docker_hub": "Docker Hub",
+ "registry_github_container_registry": "GitHub Container Registry",
+ "registry_google_container_registry": "Google Container Registry",
+ "registry_quay_io": "Quay.io Registry",
+ "registries_remove_selected_title": "Remove {count} Registry(ies)",
+ "registries_remove_selected_message": "Are you sure you want to remove the selected registry(ies)? This action cannot be undone.",
+ "registries_bulk_remove_success": "Removed {count} registries",
+ "registries_bulk_remove_failed": "Failed to remove {count} registries",
+ "registries_remove_title": "Remove Registry",
+ "registries_remove_message": "Are you sure you want to remove the registry \"{url}\"? This action cannot be undone.",
+ "registries_delete_failed": "Failed to delete registry \"{url}\"",
+ "registries_delete_success": "Registry \"{url}\" removed successfully.",
+ "registries_test_connection": "Test Connection",
+ "registries_test_failed": "Failed to test registry \"{url}\"",
+ "registries_test_success": "Registry test passed: {url} - {message}",
+ "registries_url": "Registry URL",
+ "common_description": "Description",
+ "common_no_description": "No description provided",
+ "registries_title": "Container Registries",
+ "registries_subtitle": "Configure access credentials for private Docker registries and container repositories",
+ "registries_add_button": "Add Registry",
+ "registries_refreshed": "Registries Refreshed!",
+ "registries_refresh_failed": "Failed to Refresh Registries",
+ "registries_credentials_title": "Docker Registry Credentials",
+ "registries_credentials_description": "Manage authentication credentials for private Docker registries like Docker Hub, GitHub Container Registry, Google Container Registry, and custom registries",
+ "registries_info_title": "Registry Information",
+ "registries_info_description": "Common registry URLs and authentication requirements",
+ "registries_popular_public_title": "Popular Public Registries",
+ "registry_docker_hub_url": "docker.io",
+ "registry_github_url": "ghcr.io",
+ "registry_google_url": "gcr.io",
+ "registry_quay_url": "quay.io",
+ "registries_auth_notes_title": "Authentication Notes",
+ "registries_auth_notes_bullet_docker_hub": "Docker Hub requires credentials for private repositories",
+ "registries_auth_notes_bullet_github": "GitHub uses personal access tokens as passwords",
+ "registries_auth_notes_bullet_anonymous": "Some registries support anonymous access for public images",
+ "registries_auth_notes_bullet_encrypted": "Credentials are encrypted and stored securely",
+ "registries_update_success": "Registry updated successfully",
+ "registries_create_success": "Registry created successfully",
+ "registries_save_failed": "Failed to save registry",
+ "templates_title": "Template Settings",
+ "templates_subtitle": "Manage Docker Compose template sources and registries",
+ "templates_learn_more": "Learn more",
+ "templates_refresh": "Refresh Templates",
+ "templates_local_templates": "Local Templates",
+ "templates_remote_templates": "Remote Templates",
+ "templates_registries": "Registries",
+ "templates_registries_section_title": "Template Registries",
+ "templates_alert_remote_registries_title": "Remote Registries",
+ "templates_alert_remote_registries_description": "Add remote template registries to access community templates. Registries should provide a JSON manifest with template definitions and download URLs.",
+ "templates_community_registry_title": "Community Registry",
+ "templates_community_registry_description": "Get started quickly with our community registry containing popular templates:",
+ "templates_no_registries_title": "No registries configured",
+ "templates_no_registries_description": "Add a remote template registry to access community templates",
+ "templates_registry_not_found": "Registry not found",
+ "templates_registry_removed_success": "Registry removed successfully",
+ "templates_refreshed": "Templates refreshed successfully",
+ "templates_refresh_failed": "Failed to refresh templates",
+ "containers_start_failed": "Failed to start container",
+ "containers_start_success": "Container started successfully",
+ "containers_stop_failed": "Failed to stop container",
+ "containers_stop_success": "Container stopped successfully",
+ "containers_restart_failed": "Failed to restart container",
+ "containers_restart_success": "Container restarted successfully",
+ "containers_remove_confirm_title": "Confirm Container Removal",
+ "containers_remove_confirm_message": "Are you sure you want to remove this container? This action cannot be undone.",
+ "containers_remove_force_label": "Force remove (kill the container if running)",
+ "containers_remove_volumes_label": "Remove container volumes",
+ "containers_remove_failed": "Failed to remove container",
+ "containers_remove_success": "Container removed successfully",
+ "containers_action_error": "An error occurred while performing the action",
+ "common_start": "Start",
+ "common_restart": "Restart",
+ "common_stop": "Stop",
+ "containers_subtitle": "View and Manage your Containers",
+ "containers_create_button": "Create Container",
+ "containers_check_updates": "Update Containers",
+ "containers_total": "Total",
+ "containers_running": "Running",
+ "containers_stopped": "Stopped",
+ "containers_check_updates_failed": "Failed to Check Containers for Updates",
+ "containers_check_updates_success": "Containers Updated Successfully.",
+ "containers_refresh_failed": "Failed to Refresh Containers",
+ "containers_create_failed": "Failed to Create Container",
+ "containers_create_success": "Container Created Successfully.",
+ "common_back": "Back",
+ "common_back_to_containers": "Back to Containers",
+ "common_retry": "Retry",
+ "common_autoscroll": "Auto-scroll",
+ "common_live": "Live",
+ "common_rw": "RW",
+ "common_ro": "RO",
+ "containers_nav_overview": "Overview",
+ "containers_nav_metrics": "Metrics",
+ "containers_nav_logs": "Logs",
+ "containers_nav_config": "Configuration",
+ "containers_nav_networks": "Networks",
+ "containers_nav_storage": "Storage",
+ "containers_details_title": "Container Details",
+ "containers_details_description": "Identity, runtime, and system metadata",
+ "containers_ip_address": "IP Address",
+ "containers_command": "Command",
+ "containers_system": "System",
+ "containers_working_directory": "Working Directory",
+ "containers_health_label": "Health",
+ "containers_health_last_check": "Last check: {time}",
+ "containers_resource_metrics": "Resource Metrics",
+ "containers_network_io": "Network I/O",
+ "containers_network_received": "Received",
+ "containers_network_transmitted": "Transmitted",
+ "containers_block_io": "Block I/O",
+ "containers_block_io_read": "Read",
+ "containers_block_io_write": "Write",
+ "containers_process_count": "Process count:",
+ "containers_stats_unavailable": "Container is not running. Stats unavailable.",
+ "containers_stats_loading": "Loading stats...",
+ "containers_logs_title": "Container Logs",
+ "containers_configuration_title": "Configuration",
+ "containers_env_ports_labels_title": "Environment, Ports & Labels",
+ "containers_env_ports_labels_description": "Runtime configuration and metadata for this container",
+ "containers_env_vars_title": "Environment Variables",
+ "containers_no_env_vars": "No environment variables",
+ "containers_port_mappings": "Port Mappings",
+ "containers_not_published": "Not published",
+ "containers_no_labels_defined": "No labels defined",
+ "containers_networks_title": "Networks",
+ "containers_no_networks_connected": "No networks connected",
+ "containers_storage_title": "Storage & Mounts",
+ "containers_mount_type_tmpfs": "Temporary filesystem",
+ "containers_mount_type_volume": "Docker volume",
+ "containers_mount_type_bind": "Host directory",
+ "containers_mount_label_container": "Container:",
+ "containers_mount_label_volume": "Volume:",
+ "containers_mount_label_host": "Host:",
+ "containers_mount_label_source": "Source:",
+ "containers_no_mounts_configured": "No volumes or mounts configured",
+ "containers_not_found_title": "Container Not Found",
+ "containers_not_found_description": "Could not load container data. It may have been removed or the Docker engine is not accessible.",
+ "containers_gateway": "Gateway",
+ "containers_mac_address": "MAC Address",
+ "containers_subnet": "Subnet",
+ "containers_aliases": "Aliases",
+ "compose_services": "Services",
+ "compose_start_failed": "Failed to start project",
+ "compose_start_success": "Project started successfully.",
+ "compose_stop_failed": "Failed to stop project",
+ "compose_stop_success": "Project stopped successfully.",
+ "compose_restart_failed": "Failed to restart project",
+ "compose_restart_success": "Project restarted successfully.",
+ "compose_pull_failed": "Failed to pull project",
+ "compose_pull_success": "Project pulled successfully.",
+ "compose_pull_redeploy": "Pull & Redeploy",
+ "compose_confirm_removal_title": "Confirm Removal",
+ "compose_confirm_removal_message": "Are you sure you want to remove this Project? This action cannot be undone.",
+ "compose_destroy_failed": "Failed to remove project",
+ "compose_destroy_success": "Project removed successfully.",
+ "compose_destroy": "Destroy",
+ "compose_title": "Compose Projects",
+ "compose_subtitle": "View and Manage Compose Projects",
+ "compose_update_projects": "Update Projects",
+ "compose_create_project": "Create Project",
+ "compose_total": "Total Projects",
+ "compose_running": "Running",
+ "compose_stopped": "Stopped",
+ "compose_update_failed": "Failed to Check Compose Projects for Updates",
+ "compose_update_success": "Compose Projects Updated Successfully.",
+ "compose_refresh_failed": "Failed to Refresh Projects",
+ "compose_new_title": "Create New Project",
+ "compose_converter_title": "Docker Run to Compose Converter",
+ "compose_converter_description": "Convert existing docker run commands to Docker Compose format",
+ "compose_docker_run_command_label": "Docker Run Command",
+ "compose_docker_run_placeholder": "docker run -d --name my-app -p 8080:80 nginx:alpine",
+ "compose_example_commands_label": "Example Commands:",
+ "compose_example_command_1": "docker run -d --name nginx -p 8080:80 -v nginx_data:/usr/share/nginx/html nginx:alpine",
+ "compose_example_command_2": "docker run -d --name postgres -e POSTGRES_DB=mydb -e POSTGRES_USER=user -e POSTGRES_PASSWORD=pass -v postgres_data:/var/lib/postgresql/data postgres:15",
+ "compose_example_command_3": "docker run -d --name redis -p 6379:6379 --restart unless-stopped redis:alpine",
+ "compose_converting": "Converting...",
+ "compose_convert_action": "Convert to Compose",
+ "compose_use_template": "Use Template",
+ "compose_convert_from_docker_run": "Convert from Docker Run",
+ "compose_creating": "Creating...",
+ "compose_project_name_required": "Project name is required",
+ "compose_project_name_invalid": "Only letters, numbers, and hyphens are allowed",
+ "compose_compose_content_required": "Compose content is required",
+ "compose_name_placeholder": "e.g., my-web-app",
+ "compose_name_hint": "Use letters, numbers, and hyphens only.",
+ "compose_compose_file_title": "Docker Compose File",
+ "compose_yaml_label": "YAML",
+ "compose_env_title": "Environment (.env)",
+ "compose_env_kv_label": "Key=Value",
+ "compose_compose_placeholder": "Enter YAML...",
+ "compose_env_placeholder": "Enter environment variables...",
+ "compose_convert_failed": "Failed to Convert Docker Run Command",
+ "compose_convert_success": "Docker run command converted successfully!",
+ "compose_enter_docker_run_command": "Please enter a docker run command",
+ "compose_template_loaded": "Template \"{name}\" loaded successfully!",
+ "compose_create_failed": "Failed to Create Project",
+ "compose_create_success": "Project \"{name}\" created successfully.",
+ "compose_name_label": "Project Name",
+ "compose_nav_overview": "Overview",
+ "compose_nav_services": "Services",
+ "compose_nav_config": "Configuration",
+ "compose_nav_logs": "Logs",
+ "compose_overview_title": "Overview",
+ "compose_exposed_ports": "Exposed Ports",
+ "compose_port_label": "Port {port}",
+ "compose_services_header": "Services ({count})",
+ "compose_ports_label_one": "port",
+ "compose_ports_label_many": "ports",
+ "compose_no_services_found": "No services found for this project",
+ "compose_service_not_created": "Not created",
+ "compose_configuration_title": "Configuration",
+ "compose_name_change_not_allowed": "Project name cannot be changed while running. Please stop the project first.",
+ "compose_logs_title": "Project Logs",
+ "compose_error_loading_stack_title": "Error Loading Stack",
+ "compose_not_found_title": "Project Not Found",
+ "compose_not_found_description": "Could not load Project data. It may have been removed or the Docker engine is not accessible.",
+ "compose_back_to_projects": "Back to Projects",
+ "auth_welcome_back_title": "Welcome back",
+ "auth_login_subtitle": "Sign in to manage your containers",
+ "auth_login_problem_title": "Login Problem",
+ "auth_oidc_invalid_response": "There was an issue with the OIDC login response. Please try again.",
+ "auth_oidc_misconfigured": "OIDC is not configured correctly on the server. Please contact an administrator.",
+ "auth_oidc_userinfo_failed": "Could not retrieve your user information from the OIDC provider.",
+ "auth_oidc_missing_sub": "Your OIDC provider did not return a subject identifier.",
+ "auth_oidc_email_collision": "An account with your email already exists but is linked to a different OIDC identity. Please contact an administrator.",
+ "auth_oidc_token_error": "There was an error obtaining tokens from the OIDC provider.",
+ "auth_user_processing_failed": "An error occurred while processing your user account.",
+ "auth_unexpected_error": "An unexpected error occurred. Please try again.",
+ "auth_failed_title": "Authentication Failed",
+ "auth_no_login_methods_title": "No Login Methods Configured",
+ "auth_no_login_methods_description": "There are currently no login methods enabled. Please contact an administrator.",
+ "auth_oidc_signin": "Sign in with OIDC Provider",
+ "auth_enter_credentials_required": "Please enter both username and password",
+ "auth_welcome_back_toast": "Welcome Back, {name}",
+ "auth_username_placeholder": "Enter your username or email",
+ "auth_password_placeholder": "Enter your password",
+ "auth_signing_in": "Signing in...",
+ "auth_signin_button": "Sign in to Arcane",
+ "auth_or_continue": "Or continue with",
+ "auth_tagline": "Modern Docker Management, Designed for Everyone.",
+ "common_password": "Password",
+ "common_view_on_github": "View on GitHub",
+ "auth_login_failed": "Login failed",
+ "auth_processing_login": "Processing Login...",
+ "auth_processing_login_description": "Please wait while we complete your authentication.",
+ "auth_authentication_error_title": "Authentication Error",
+ "auth_redirecting_to_login": "Redirecting you back to login...",
+ "auth_oidc_provider_error": "Authentication was cancelled or failed.",
+ "auth_oidc_access_denied": "Access was denied. You may have cancelled the login or lack permission.",
+ "auth_oidc_invalid_request": "Invalid authentication request. Please try again.",
+ "auth_oidc_auth_failed": "Authentication failed. Please try again.",
+ "auth_oidc_state_mismatch": "Security validation failed. Please try logging in again.",
+ "auth_oidc_session_expired": "Authentication session expired. Please try again.",
+ "auth_oidc_user_info_missing": "Authentication succeeded but user information is missing.",
+ "auth_oidc_callback_error": "An error occurred during authentication. Please try again.",
+ "auth_oidc_network_error": "Network error during authentication. Please check your connection and try again.",
+ "auth_oidc_url_generation_failed": "Unable to generate authentication URL. Please try again or contact your administrator.",
+ "auth_oidc_init_failed": "Failed to initiate OIDC login. Please try again.",
+ "auth_oidc_redirecting_title": "Redirecting to Login...",
+ "auth_oidc_redirecting_description": "Please wait while we redirect you to your identity provider.",
+ "quick_actions_title": "Quick Actions",
+ "quick_actions_start_all": "Start All Stopped",
+ "quick_actions_stop_all": "Stop All Running",
+ "quick_actions_prune_system": "Prune System",
+ "quick_actions_prune_description": "Clean unused resources",
+ "quick_actions_containers": "{count} containers",
+ "progress_title": "Progress",
+ "progress_subtitle": "Working…",
+ "progress_preparing": "Preparing...",
+ "progress_pull_completed": "Pull Completed",
+ "progress_in_progress_note": "This may take a while depending on size and connection.",
+ "progress_completed_success": "Completed successfully!",
+ "meter_footer_usage": "{percent}% of resources being used",
+ "log_stream_connection_lost": "Connection to {type} log stream lost",
+ "log_stream_closed_by_server": "{type} log stream was closed by server",
+ "log_stream_failed_connect": "Failed to connect to {type} log stream",
+ "log_viewer_stopping": "Stopping {type} log stream",
+ "log_viewer_connected": "{type} log stream connected",
+ "log_viewer_no_selection": "No {type} selected",
+ "log_viewer_no_logs_available": "No logs available. Start streaming to see logs.",
+ "log_viewer_waiting_for_logs": "Waiting for logs...",
+ "common_container": "Container",
+ "common_stack": "Stack",
+ "common_project": "Project",
+ "common_loading": "Loading...",
+ "image_update_auth_credential": "Credential",
+ "image_update_auth_credential_with_user": "Credential ({username})",
+ "image_update_auth_anonymous": "Anonymous",
+ "image_update_auth_none": "No Auth",
+ "image_update_check_failed_title": "Update Check Failed",
+ "image_update_could_not_query_registry": "Could not query the registry",
+ "image_update_error_label": "Error:",
+ "image_update_image_label": "Image:",
+ "image_update_up_to_date_title": "Up to Date",
+ "image_update_up_to_date_desc": "No updates available",
+ "image_update_running_prefix": "Running",
+ "image_update_digest_title": "Digest Update",
+ "image_update_digest_desc": "Security or bug fixes available",
+ "image_update_current_label": "Current",
+ "image_update_latest_digest_label": "Latest Digest",
+ "image_update_version_title": "Version Update",
+ "image_update_version_desc": "New version available",
+ "image_update_latest_label": "Latest",
+ "image_update_tag_description": "Update available",
+ "image_update_tag_description_new": "Update to {version} available",
+ "image_update_unknown_type": "Update type unknown",
+ "image_update_recheck_button": "Re-check Updates",
+ "image_update_checking_title": "Checking Updates",
+ "image_update_querying_registry": "Querying registry for latest version...",
+ "image_update_status_unknown": "Status Unknown",
+ "image_update_click_to_check": "Click to check for updates from registry.",
+ "image_update_unable_check_tags": "Unable to check updates for images without proper tags.",
+ "image_update_auth": "Auth: {label}",
+ "error_go_to_dashboard": "Go to Dashboard",
+ "docker_engine_title": "Docker Engine",
+ "docker_engine_subtitle": "{os} • {arch}",
+ "docker_containers_running_badge": "{count} running",
+ "docker_containers_total_badge": "total {count}",
+ "docker_containers_stopped_badge": "stopped {count}",
+ "docker_images_subtitle": "Total images discovered",
+ "action_confirm_removal_title": "Confirm Removal",
+ "action_confirm_removal_message": "Are you sure you want to remove this {type}? This action is DESTRUCTIVE and cannot be undone.",
+ "confirm_remove_project_files": "Remove project files",
+ "confirm_remove_volumes_warning": "Remove volumes (Warning: Data will be lost)",
+ "action_confirm_redeploy_title": "Confirm Redeploy",
+ "action_confirm_redeploy_message": "Are you sure you want to redeploy this stack? This will STOP, PULL, and START the Project.",
+ "action_redeploy": "Redeploy",
+ "action_redeploy_success": "{type} Redeployed Successfully",
+ "action_started_success": "{type} Started Successfully",
+ "action_stopped_success": "{type} Stopped Successfully",
+ "action_restarted_success": "{type} Restarted Successfully",
+ "action_removed_success": "{type} Removed Successfully",
+ "action_destroyed_success": "{type} Destroyed Successfully",
+ "action_failed_generic": "Failed to {action} {type}",
+ "images_pulled_success": "Images pulled successfully!",
+ "images_pull_initiating": "Initiating pull...",
+ "images_pull_processing_final_layers": "Processing final layers...",
+ "images_pull_server_error": "Failed to pull images. Server returned an error.",
+ "images_pull_stream_error": "An error occurred during pull stream",
+ "images_pull_failed_with_error": "Failed: {error}",
+ "progress_pulling_images": "Pulling Images",
+ "action_down": "Down",
+ "action_confirm_destroy_message": "Are you sure you want to destroy this {type}? This action is DESTRUCTIVE and will remove associated resources and cannot be undone.",
+ "sidebar_environment_label": "Environment",
+ "sidebar_select_environment": "Select Environment",
+ "sidebar_no_environments": "No environments available",
+ "sidebar_no_environment": "No Environment",
+ "sidebar_select_one": "Select one",
+ "sidebar_local_docker_socket": "unix:///var/run/docker.sock",
+ "sidebar_manage_environments": "Manage Environments",
+ "sidebar_version": "v{version}",
+ "sidebar_update_available": "Update available",
+ "sidebar_update_available_tooltip": "Update available: {version}",
+ "common_toggle_theme": "Toggle theme",
+ "common_logout": "Logout",
+ "sidebar_management": "Management",
+ "sidebar_customization": "Customization",
+ "sidebar_environments": "Environments",
+ "sidebar_administration": "Administration",
+ "templates_add_registry_title": "Add Template Registry",
+ "templates_add_registry_description": "Add a remote template registry to access community templates.",
+ "templates_registry_url_label": "Registry URL *",
+ "templates_registry_url_placeholder": "https://templates.arcane.ofkm.dev/registry.json",
+ "templates_registry_url_description": "URL to the registry JSON manifest",
+ "templates_registry_url_required": "Registry URL is required",
+ "templates_enable_registry_label": "Enable Registry",
+ "templates_enable_registry_description": "Enable this registry to fetch templates",
+ "templates_registry_validation_error_title": "Validation Error",
+ "templates_registry_validate_failed": "Failed to validate registry URL",
+ "templates_registry_invalid_format": "Invalid registry format: missing required fields (name, templates)",
+ "templates_add_registry_button": "Add Registry",
+ "registries_edit_title": "Edit Container Registry",
+ "registries_add_description": "Enter the details for the new container registry.",
+ "registries_edit_description": "Update the details for this container registry.",
+ "registries_url_placeholder": "e.g., docker.io, ghcr.io, gcr.io, quay.io",
+ "registries_url_description": "Leave empty or use 'docker.io' for Docker Hub",
+ "registries_url_required": "Registry URL is required",
+ "registries_token_label": "Token",
+ "registries_token_keep_placeholder": "Leave empty to keep current token",
+ "registries_token_placeholder": "Your registry password or token",
+ "registries_token_description": "Use a Personal Access Token or your password if the registry supports it.",
+ "registries_description_placeholder": "Optional description for this registry",
+ "registries_enabled_description": "Enable this registry for authentication",
+ "registries_allow_insecure_label": "Allow Insecure Connection",
+ "registries_allow_insecure_description": "Allow HTTP connections",
+ "registries_save_changes": "Save Changes",
+ "create_network_title": "Create New Network",
+ "create_network_description": "Configure and create a new Docker network.",
+ "network_name_label": "Network Name *",
+ "network_name_placeholder": "e.g., my-app-network",
+ "network_name_description": "Unique name for the network",
+ "network_name_required": "Network name is required",
+ "network_driver_label": "Network Driver",
+ "network_driver_description": "Choose the network driver type",
+ "network_driver_placeholder": "Select a driver",
+ "network_driver_required": "Driver is required",
+ "networks_ipvlan": "IPvlan",
+ "network_check_duplicate_label": "Check Duplicate",
+ "network_internal_label": "Internal Network",
+ "add_label_button": "Add Label",
+ "labels_key_value_label": "Key-Value Labels",
+ "network_labels_text_label": "Additional Labels (Text Format)",
+ "network_labels_placeholder": "com.example.description=Production network\ncom.example.department=Backend",
+ "network_labels_description": "Enter additional labels as key=value pairs, one per line",
+ "network_enable_ipam_label": "Enable IPAM Configuration",
+ "network_subnet_description": "Network subnet in CIDR notation",
+ "network_gateway_description": "Gateway IP address for the network",
+ "networks_creating": "Creating...",
+ "create_volume_title": "Create New Volume",
+ "create_volume_description": "Enter the details for the new Docker volume.",
+ "volume_name_label": "Volume Name *",
+ "volume_name_placeholder": "e.g., my-app-data",
+ "volume_name_description": "Unique name for the volume",
+ "volume_name_required": "Volume name is required",
+ "volume_driver_label": "Volume Driver",
+ "volume_driver_placeholder": "Select a driver",
+ "volume_driver_description": "Choose the storage driver for your volume",
+ "volume_driver_required": "Driver is required",
+ "volume_driver_local": "Local",
+ "volume_driver_nfs": "NFS",
+ "volume_driver_aws_ebs": "AWS EBS",
+ "volume_driver_azure_disk": "Azure Disk",
+ "volume_driver_gce_pd": "GCE Persistent Disk",
+ "volume_advanced_settings": "Advanced Settings",
+ "volume_driver_options_placeholder": "key=value\nkey2=value2",
+ "volume_driver_options_description": "Enter driver-specific options as key=value pairs, one per line",
+ "volume_labels_placeholder": "com.example.description=Production data\ncom.example.department=Finance",
+ "volumes_creating": "Creating...",
+ "images_pull_description": "Enter the image reference you want to pull from a registry.",
+ "images_image_name_label": "Image Name *",
+ "images_image_name_placeholder": "nginx, redis, ubuntu, etc.",
+ "images_image_name_description": "Enter the image name from Docker Hub or other registries",
+ "images_image_required": "Image name is required",
+ "images_tag_description": "Specify a tag version (defaults to 'latest')",
+ "images_pull_unexpected_error": "An unexpected error occurred while pulling the image.",
+ "images_pull_in_progress_toast": "Pull operation is in progress.",
+ "images_pull_wait_message": "This may take a while depending on the image size and your internet connection.",
+ "environments_manage_description": "Add and manage remote Arcane servers in Agent Mode.",
+ "environments_name_placeholder": "My Lab Server",
+ "environments_name_required": "Environment name is required",
+ "environments_name_too_long": "Name too long (max 25 characters)",
+ "common_invalid_url": "Must be a valid URL",
+ "environments_server_url_required": "Server URL is required",
+ "environments_api_url_placeholder": "http://192.168.1.100:3553",
+ "environments_api_url_description": "Full URL to the Arcane server endpoint",
+ "environments_create_failed": "Failed to create environment",
+ "users_edit_title": "Edit User",
+ "users_create_new_title": "Create New User",
+ "users_edit_description": "Update the details for {username}",
+ "users_create_description": "Add a new user to your system with the required permissions",
+ "users_password_required_label": "Password *",
+ "users_password_managed_oidc": "Managed by your identity provider",
+ "users_password_leave_empty": "Leave empty to keep current password",
+ "users_password_enter": "Enter password",
+ "users_password_description_oidc": "Password is managed by your OIDC provider",
+ "users_password_description_edit": "Leave empty to keep current password",
+ "users_password_description_create": "Password for the user account",
+ "users_display_name_placeholder": "Full name or display name",
+ "users_display_name_description": "Optional display name for the user",
+ "users_email_placeholder": "[email protected]",
+ "users_email_description": "Email address for the user",
+ "users_username_description": "Unique username for the user",
+ "users_administrator_description": "Grant administrator privileges to this user",
+ "users_save_changes": "Save Changes",
+ "common_invalid_email": "Must be a valid email",
+ "common_select_option": "Select an option",
+ "events_details_title": "Event Details",
+ "events_resource_id_label": "Resource ID",
+ "events_resource_name_label": "Resource Name",
+ "events_metadata_title": "Metadata",
+ "events_raw_event_title": "Raw Event",
+ "events_no_metadata_provided": "No metadata provided.",
+ "events_copy_resource_id_title": "Copy resource id",
+ "events_copy_resource_name_title": "Copy resource name",
+ "events_copy_metadata_json_title": "Copy metadata JSON",
+ "events_copy_full_event_json_title": "Copy full event JSON",
+ "events_environment_label": "Environment",
+ "common_copy": "Copy",
+ "common_copy_json": "Copy JSON",
+ "common_copied": "Copied to clipboard",
+ "common_copy_failed": "Failed to copy",
+ "common_close": "Close",
+ "oidc_viewmode_description": "OIDC authentication is configured and forced ON by server-side environment variables. These settings are read-only.",
+ "oidc_configure_description": "Configure the OIDC settings for your application. These settings will be saved to the database and used for OIDC authentication.",
+ "oidc_server_env_config_title": "Server Environment Configuration",
+ "oidc_server_env_config_description": "The following OIDC settings are loaded from the server environment:",
+ "oidc_client_id_label": "Client ID",
+ "oidc_client_id_placeholder": "Provided by your OIDC Provider",
+ "oidc_client_secret_label": "Client Secret",
+ "oidc_client_secret_placeholder": "Provided by your OIDC Provider (leave blank to keep existing)",
+ "oidc_client_secret_hidden": "(Sensitive - Not Displayed)",
+ "oidc_issuer_url_label": "Issuer URL",
+ "oidc_issuer_url_placeholder": "https://id.example.com",
+ "oidc_issuer_url_description": "The issuer URL will be used to auto-discover OIDC endpoints.",
+ "oidc_scopes_label": "Scopes",
+ "oidc_scopes_placeholder": "openid email profile",
+ "oidc_admin_claim_label": "Admin Claim",
+ "oidc_admin_value_label": "Required Value(s)",
+ "oidc_admin_role_mapping_title": "Admin Role Mapping",
+ "oidc_admin_role_mapping_description": "Map an OIDC claim to grant the admin role. Examples: roles=admin, groups=admin, or admin=true.",
+ "oidc_admin_claim_placeholder": "e.g., roles, groups, realm_access.roles, admin",
+ "oidc_admin_value_placeholder": "e.g., admin (comma-separated)",
+ "oidc_admin_value_help": "Leave empty for boolean claims (admin=true).",
+ "oidc_env_config_missing": "OIDC configuration details not found in effective settings.",
+ "oidc_env_changes_note": "Changes to these settings must be made in your server's environment configuration.",
+ "oidc_server_override_warning_title": "Server Override Warning",
+ "oidc_redirect_uri_title": "Redirect URI Configuration",
+ "oidc_redirect_uri_description": "Configure this redirect URI in your OIDC provider:",
+ "oidc_status_title": "Status",
+ "oidc_status_env_forced": "Env Forced",
+ "oidc_status_env_forced_hint": "Server forces OIDC",
+ "oidc_status_env_configured": "Env Configured",
+ "oidc_status_env_configured_hint": "Server OIDC vars present",
+ "oidc_tips_title": "Tips",
+ "oidc_tip_1": "If your server forces OIDC, app settings become read-only.",
+ "oidc_tip_2": "Use issuer discovery; avoid hardcoding endpoints.",
+ "oidc_tip_3": "Keep client secrets out of the UI when possible.",
+ "oidc_basic_configuration_title": "Basic Configuration",
+ "oidc_basic_description": "Essential OIDC provider settings",
+ "prune_confirm_system_title": "Confirm System Prune",
+ "prune_confirm_description": "Select the resources you want to prune. This action permanently removes unused data and cannot be undone.",
+ "prune_stopped_containers": "Stopped Containers",
+ "prune_unused_images": "Unused Images",
+ "prune_images_mode_dangling": "Dangling Only",
+ "prune_images_mode_all": "All Unused",
+ "prune_unused_networks": "Unused Networks",
+ "prune_unused_volumes": "Unused Volumes",
+ "prune_potentially_destructive": "(Potentially Destructive!)",
+ "prune_volumes_guidance": "Only enable this if you are certain no important data resides in unused volumes.",
+ "prune_volumes_warning_title": "Warning: Pruning Volumes",
+ "prune_volumes_warning_description": "Pruning volumes permanently deletes data. Ensure you have backups if necessary.",
+ "prune_button": "Prune Selected ({count})",
+ "templates_choose_title": "Choose a Template",
+ "templates_choose_description": "Browse templates from your registries or local downloads. Scroll to see more, select to use immediately, or download for offline use.",
+ "templates_group_by_registry_label": "Group by registry",
+ "templates_group_by_registry_description": "Enable Collapsible Sections for each registry",
+ "templates_sort_name_asc": "Name (A-Z)",
+ "templates_sort_name_desc": "Name (Z-A)",
+ "templates_no_templates": "No templates available",
+ "templates_add_registry_prompt_part1": "Add a template registry in ",
+ "templates_add_registry_prompt_part2": " to access community templates.",
+ "templates_template_settings": "Template Settings",
+ "templates_remote": "Remote",
+ "templates_local": "Local",
+ "templates_remote_template_label": "Remote template",
+ "templates_local_template_label": "Local template",
+ "templates_downloading": "Downloading...",
+ "templates_download": "Download",
+ "templates_loading": "Loading...",
+ "templates_use_now": "Use Now",
+ "templates_load_failed": "Failed to load template content",
+ "templates_loaded_success": "Template \"{name}\" loaded successfully!",
+ "templates_download_failed": "Failed to download template",
+ "templates_downloaded_success": "Template \"{name}\" downloaded successfully!",
+ "common_sort_by": "Sort by",
+ "editor_placeholder": "Enter code...",
+ "common_no_results_found": "No results found.",
+ "common_clear_filters": "Clear filters",
+ "common_selected_count": "{count} selected",
+ "common_search": "Search...",
+ "common_usage": "Usage",
+ "common_reset": "Reset",
+ "common_remove_selected": "Remove Selected ({count})",
+ "common_toggle_columns": "Toggle columns",
+ "common_select_all": "Select all",
+ "common_select_row": "Select row",
+ "common_showing_of_total": "Showing {shown} of {total} item(s).",
+ "common_rows_per_page": "Rows per page",
+ "common_go_first_page": "Go to first page",
+ "common_go_prev_page": "Go to previous page",
+ "common_go_next_page": "Go to next page",
+ "common_go_last_page": "Go to last page",
+ "common_page_of": "Page {page} of {total}",
+ "common_sort_asc": "Asc",
+ "common_sort_desc": "Desc",
+ "common_hide": "Hide",
+ "images_has_updates": "Has Updates",
+ "images_no_updates": "No Updates",
+ "common_processing": "Processing...",
+ "common_loading_label": "Loading - {label}",
+ "action_deploy": "Deploy",
+ "action_deploying": "Deploying...",
+ "action_starting": "Starting...",
+ "action_stopping": "Stopping...",
+ "action_removing": "Removing...",
+ "action_restarting": "Restarting...",
+ "action_redeploying": "Redeploying...",
+ "action_inspecting": "Inspecting...",
+ "action_confirming": "Confirming...",
+ "common_create": "Create",
+ "common_creating": "Creating...",
+ "action_use_template": "Use Template",
+ "common_logs": "Logs",
+ "action_cancelling": "Cancelling...",
+ "action_fetching_logs": "Fetching...",
+ "sidebar_settings": "Settings",
+ "common_select_locale": "Select locale",
+ "create_container_title": "Create New Container",
+ "create_container_description": "Configure and create a new Docker container.",
+ "tabs_basic": "Basic",
+ "tabs_environment": "Environment",
+ "tabs_ports": "Ports",
+ "tabs_volumes": "Volumes",
+ "tabs_network_security": "Network & Security",
+ "tabs_advanced": "Advanced",
+ "container_name_label": "Container Name *",
+ "container_name_placeholder": "e.g., my-app-container",
+ "container_name_description": "Unique name for the container",
+ "container_name_required": "Container name is required",
+ "container_image_label": "Image *",
+ "container_image_placeholder": "e.g., nginx:latest",
+ "container_image_description": "Docker image to use for the container",
+ "container_image_required": "Image is required",
+ "container_command_label": "Command",
+ "container_command_placeholder": "e.g., /bin/bash -c 'echo hello'",
+ "container_command_description": "Command to run in the container",
+ "container_working_directory_label": "Working Directory",
+ "container_working_directory_placeholder": "/app",
+ "container_working_directory_description": "Working directory inside the container",
+ "container_user_label": "User",
+ "container_user_placeholder": "1000:1000",
+ "container_user_description": "User to run the container as",
+ "container_hostname_label": "Hostname",
+ "container_hostname_placeholder": "my-container",
+ "container_domain_label": "Domain Name",
+ "container_domain_placeholder": "example.com",
+ "io_settings_title": "I/O Settings",
+ "io_attach_stdout": "Attach Stdout",
+ "io_attach_stderr": "Attach Stderr",
+ "io_attach_stdin": "Attach Stdin",
+ "io_allocate_tty": "Allocate TTY",
+ "io_open_stdin": "Open Stdin",
+ "io_stdin_once": "Stdin Once",
+ "env_dynamic_title": "Dynamic Environment Variables",
+ "env_text_format_title": "Text Format Environment Variables",
+ "env_text_placeholder": "NODE_ENV=production\nPORT=3000\nDEBUG=true",
+ "env_text_description": "Enter environment variables as KEY=value pairs, one per line",
+ "add_env_var_button": "Add Environment Variable",
+ "port_mappings_title": "Port Mappings",
+ "port_label_host": "Host:",
+ "port_label_container": "Container:",
+ "add_port_mapping_button": "Add Port Mapping",
+ "port_configuration_title": "Port Configuration",
+ "exposed_ports_label": "Exposed Ports",
+ "exposed_ports_placeholder": "80,443,8080/tcp",
+ "exposed_ports_description": "Comma-separated list of ports to expose",
+ "publish_all_ports_label": "Publish All Ports",
+ "volume_mounts_title": "Volume Mounts",
+ "add_volume_mount_button": "Add Volume Mount",
+ "volumes_text_title": "Text Format Volume Binds",
+ "volumes_text_placeholder": "/host/path:/container/path\n/host/path2:/container/path2:ro\nmyvolume:/app/data",
+ "volumes_text_description": "Enter volume binds as source:destination[:options], one per line",
+ "read_only_label": "Read Only",
+ "network_settings_title": "Network Settings",
+ "disable_network_label": "Disable Network",
+ "security_settings_title": "Security Settings",
+ "privileged_label": "Privileged",
+ "readonly_rootfs_label": "Read-only Root Filesystem",
+ "auto_remove_label": "Auto Remove",
+ "restart_policy_title": "Restart Policy",
+ "restart_policy_label": "Restart Policy",
+ "restart_policy_description": "Container restart behavior",
+ "restart_policy_placeholder": "Select restart policy",
+ "restart_policy_no": "No",
+ "restart_policy_always": "Always",
+ "restart_policy_unless_stopped": "Unless Stopped",
+ "restart_policy_on_failure": "On Failure",
+ "max_retry_label": "Maximum Retry Count",
+ "max_retry_placeholder": "5",
+ "max_retry_description": "Maximum number of restart attempts",
+ "containers_labels_description": "Enter metadata labels as key=value pairs, one per line",
+ "containers_creating": "Creating..."
+}
diff --git a/frontend/package.json b/frontend/package.json
index 990a99d73..25accf320 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -71,6 +71,7 @@
"typescript": "^5.9.2",
"typescript-eslint": "^8.39.1",
"vite": "^7.1.2",
- "zod": "^4.0.17"
+ "zod": "^4.0.17",
+ "@inlang/paraglide-js": "2.2.0"
}
}
diff --git a/frontend/project.inlang/.gitignore b/frontend/project.inlang/.gitignore
new file mode 100644
index 000000000..5e4659675
--- /dev/null
+++ b/frontend/project.inlang/.gitignore
@@ -0,0 +1 @@
+cache
\ No newline at end of file
diff --git a/frontend/project.inlang/project_id b/frontend/project.inlang/project_id
new file mode 100644
index 000000000..56d51693b
--- /dev/null
+++ b/frontend/project.inlang/project_id
@@ -0,0 +1 @@
+p0aEGYNG2ug5IMDBWo
\ No newline at end of file
diff --git a/frontend/project.inlang/settings.json b/frontend/project.inlang/settings.json
new file mode 100644
index 000000000..c848c28c0
--- /dev/null
+++ b/frontend/project.inlang/settings.json
@@ -0,0 +1,12 @@
+{
+ "$schema": "https://inlang.com/schema/project-settings",
+ "baseLocale": "en",
+ "locales": ["en", "es"],
+ "modules": [
+ "https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@4/dist/index.js",
+ "https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@2/dist/index.js"
+ ],
+ "plugin.inlang.messageFormat": {
+ "pathPattern": "./messages/{locale}.json"
+ }
+}
diff --git a/frontend/src/app.html b/frontend/src/app.html
index 72f28e23d..3965a5c99 100644
--- a/frontend/src/app.html
+++ b/frontend/src/app.html
@@ -1,5 +1,5 @@
<!doctype html>
-<html lang="en">
+<html lang="%lang%">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/img/arcane.png" />
diff --git a/frontend/src/lib/components/action-buttons.svelte b/frontend/src/lib/components/action-buttons.svelte
index 9ea48fbdb..0ab25b715 100644
--- a/frontend/src/lib/components/action-buttons.svelte
+++ b/frontend/src/lib/components/action-buttons.svelte
@@ -10,6 +10,7 @@
import DownloadIcon from '@lucide/svelte/icons/download';
import { environmentStore, LOCAL_DOCKER_ENVIRONMENT_ID } from '$lib/stores/environment.store';
import { get } from 'svelte/store';
+ import { m } from '$lib/paraglide/messages';
type TargetType = 'container' | 'stack';
@@ -115,10 +116,13 @@
function confirmAction(action: string) {
if (action === 'remove') {
openConfirmDialog({
- title: `Confirm ${type === 'stack' ? 'Destroy' : 'Removal'}`,
- message: `Are you sure you want to ${type === 'stack' ? 'destroy' : 'remove'} this ${type}? This action is DESTRUCTIVE and cannot be undone.`,
+ title: type === 'stack' ? m.compose_destroy() : m.action_confirm_removal_title(),
+ message:
+ type === 'stack'
+ ? m.action_confirm_destroy_message({ type: m.common_project() })
+ : m.action_confirm_removal_message({ type: m.common_container() }),
confirm: {
- label: type === 'stack' ? 'Destroy' : 'Remove',
+ label: type === 'stack' ? m.compose_destroy() : m.common_remove(),
destructive: true,
action: async (checkboxStates) => {
const removeFiles = checkboxStates['removeFiles'] === true;
@@ -131,11 +135,16 @@
? environmentAPI.deleteContainer(id)
: environmentAPI.destroyProject(id, removeVolumes, removeFiles)
),
- message: `Failed to ${type === 'stack' ? 'Destroy' : 'Remove'} ${type}`,
+ message: m.action_failed_generic({
+ action: type === 'stack' ? m.compose_destroy() : m.common_remove(),
+ type: type
+ }),
setLoadingState: (value) => (isLoading.remove = value),
onSuccess: async () => {
toast.success(
- `${type.charAt(0).toUpperCase() + type.slice(1)} ${type === 'stack' ? 'Destroyed' : 'Removed'} Successfully`
+ type === 'stack'
+ ? m.action_destroyed_success({ type: m.common_stack() })
+ : m.action_removed_success({ type: m.common_container() })
);
await invalidateAll();
goto(`${type === 'stack' ? '/compose' : 'containers'}`);
@@ -144,28 +153,28 @@
}
},
checkboxes: [
- { id: 'removeFiles', label: 'Remove project files', initialState: false },
+ { id: 'removeFiles', label: m.confirm_remove_project_files(), initialState: false },
{
id: 'removeVolumes',
- label: 'Remove volumes (Warning: Data will be lost)',
+ label: m.confirm_remove_volumes_warning(),
initialState: false
}
]
});
} else if (action === 'redeploy') {
openConfirmDialog({
- title: `Confirm Redeploy`,
- message: `Are you sure you want to redeploy this stack? This will STOP, PULL, and START the Project.`,
+ title: m.action_confirm_redeploy_title(),
+ message: m.action_confirm_redeploy_message(),
confirm: {
- label: 'Redeploy',
+ label: m.action_redeploy(),
action: async () => {
isLoading.redeploy = true;
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.redeployProject(id)),
- message: `Failed to Redeploy ${type}`,
+ message: m.action_failed_generic({ action: m.action_redeploy(), type }),
setLoadingState: (value) => (isLoading.redeploy = value),
onSuccess: async () => {
- toast.success(`${type.charAt(0).toUpperCase() + type.slice(1)} Redeployed Successfully`);
+ toast.success(m.action_redeploy_success({ type: type }));
await invalidateAll();
}
});
@@ -179,10 +188,10 @@
isLoading.start = true;
handleApiResultWithCallbacks({
result: await tryCatch(type === 'container' ? environmentAPI.startContainer(id) : environmentAPI.startProject(id)),
- message: `Failed to Start ${type}`,
+ message: m.action_failed_generic({ action: m.common_start(), type }),
setLoadingState: (value) => (isLoading.start = value),
onSuccess: async () => {
- toast.success(`${type.charAt(0).toUpperCase() + type.slice(1)} Started Successfully`);
+ toast.success(m.action_started_success({ type }));
await invalidateAll();
}
});
@@ -192,10 +201,10 @@
isLoading.start = true;
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.startProject(id)),
- message: `Failed to Start ${type}`,
+ message: m.action_failed_generic({ action: m.common_start(), type }),
setLoadingState: (value) => (isLoading.start = value),
onSuccess: async () => {
- toast.success(`${type.charAt(0).toUpperCase() + type.slice(1)} Started Successfully`);
+ toast.success(m.action_started_success({ type }));
await invalidateAll();
}
});
@@ -205,10 +214,10 @@
isLoading.stop = true;
handleApiResultWithCallbacks({
result: await tryCatch(type === 'container' ? environmentAPI.stopContainer(id) : environmentAPI.stopProject(id)),
- message: `Failed to Stop ${type}`,
+ message: m.action_failed_generic({ action: m.common_stop(), type }),
setLoadingState: (value) => (isLoading.stop = value),
onSuccess: async () => {
- toast.success(`${type.charAt(0).toUpperCase() + type.slice(1)} Stopped Successfully`);
+ toast.success(m.action_stopped_success({ type }));
await invalidateAll();
}
});
@@ -218,10 +227,10 @@
isLoading.restart = true;
handleApiResultWithCallbacks({
result: await tryCatch(type === 'container' ? environmentAPI.restartContainer(id) : environmentAPI.restartProject(id)),
- message: `Failed to Restart ${type}`,
+ message: m.action_failed_generic({ action: m.common_restart(), type }),
setLoadingState: (value) => (isLoading.restart = value),
onSuccess: async () => {
- toast.success(`${type.charAt(0).toUpperCase() + type.slice(1)} Restarted Successfully`);
+ toast.success(m.action_restarted_success({ type }));
await invalidateAll();
}
});
@@ -233,10 +242,10 @@
isLoading.pulling = true;
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.pullContainerImage(id)),
- message: 'Failed to Pull Image(s)',
+ message: m.images_pull_failed(),
setLoadingState: (value) => (isLoading.pulling = value),
onSuccess: async () => {
- toast.success('Image(s) Pulled Successfully.');
+ toast.success(m.images_pulled_success());
await invalidateAll();
}
});
@@ -249,7 +258,7 @@
resetPullState();
isLoading.pulling = true;
pullPopoverOpen = true;
- pullStatusText = 'Initiating pull...';
+ pullStatusText = m.images_pull_initiating();
let wasSuccessful = false;
@@ -263,10 +272,12 @@
if (!response.ok || !response.body) {
const errorData = await response.json().catch(() => ({
- error: 'Failed to pull images. Server returned an error.'
+ error: m.images_pull_server_error()
}));
const errorMessage =
- typeof errorData.error === 'string' ? errorData.error : errorData.message || `HTTP error ${response.status}`;
+ typeof errorData.error === 'string'
+ ? errorData.error
+ : errorData.message || `${m.images_pull_server_error()}: HTTP ${response.status}`;
throw new Error(errorMessage);
}
@@ -277,7 +288,7 @@
while (true) {
const { done, value } = await reader.read();
if (done) {
- pullStatusText = 'Processing final layers...';
+ pullStatusText = m.images_pull_processing_final_layers();
break;
}
@@ -292,8 +303,8 @@
if (data.error) {
console.error('Error in stream:', data.error);
- pullError = typeof data.error === 'string' ? data.error : data.error.message || 'An error occurred during pull.';
- pullStatusText = `Error: ${pullError}`;
+ pullError = typeof data.error === 'string' ? data.error : data.error.message || m.images_pull_stream_error();
+ pullStatusText = m.images_pull_failed_with_error({ error: pullError });
continue;
}
@@ -335,8 +346,8 @@
wasSuccessful = true;
pullProgress = 100;
- pullStatusText = 'Images pulled successfully.';
- toast.success('Images pulled successfully!');
+ pullStatusText = m.images_pulled_success();
+ toast.success(m.images_pulled_success());
await invalidateAll();
setTimeout(() => {
@@ -346,9 +357,9 @@
}, 2000);
} catch (error: any) {
console.error('Pull images error:', error);
- const message = error.message || 'An unexpected error occurred while pulling images.';
+ const message = error.message || m.images_pull_failed();
pullError = message;
- pullStatusText = `Failed: ${message}`;
+ pullStatusText = m.images_pull_failed_with_error({ error: message });
toast.error(message);
} finally {
if (!wasSuccessful) {
@@ -367,7 +378,7 @@
/>
{:else}
<ArcaneButton
- customLabel={type === 'stack' ? 'Down' : 'Stop'}
+ customLabel={m.action_down ? m.action_down() : 'Down'}
action="stop"
onclick={() => handleStop()}
loading={isLoading.stop}
@@ -384,7 +395,7 @@
<ProgressPopover
bind:open={pullPopoverOpen}
bind:progress={pullProgress}
- title="Pulling Images"
+ title={m.progress_pulling_images()}
statusText={pullStatusText}
error={pullError}
loading={isLoading.pulling}
@@ -397,7 +408,7 @@
{/if}
<ArcaneButton
- customLabel={type === 'stack' ? 'Destroy' : 'Remove'}
+ customLabel={type === 'stack' ? m.compose_destroy() : m.common_remove()}
action="remove"
onclick={() => confirmAction('remove')}
loading={isLoading.remove}
diff --git a/frontend/src/lib/components/arcane-button/arcane-button.svelte b/frontend/src/lib/components/arcane-button/arcane-button.svelte
index 32fdb34f6..2a29247c7 100644
--- a/frontend/src/lib/components/arcane-button/arcane-button.svelte
+++ b/frontend/src/lib/components/arcane-button/arcane-button.svelte
@@ -39,6 +39,7 @@
import { cn } from '$lib/utils';
import LoaderCircleIcon from '@lucide/svelte/icons/loader-circle';
import { arcaneButtonVariants, actionConfigs } from './variants';
+ import { m } from '$lib/paraglide/messages';
let {
ref = $bindable(null),
@@ -61,7 +62,7 @@
let config = $derived(actionConfigs[action]);
let displayLabel = $derived(customLabel ?? config.defaultLabel);
- let displayLoadingLabel = $derived(loadingLabel ?? config.loadingLabel ?? 'Processing...');
+ let displayLoadingLabel = $derived(loadingLabel ?? config.loadingLabel ?? m.common_processing());
let isIconOnlyButton = $derived(size === 'icon' || !showLabel);
let hasChildren = $derived(!!children);
@@ -101,7 +102,7 @@
<LoaderCircleIcon class="size-4" />
</div>
</div>
- <span class="sr-only">Loading - {displayLoadingLabel}</span>
+ <span class="sr-only">{m.common_loading_label({ label: displayLoadingLabel })}</span>
{#if !isIconOnlyButton}
<span class="opacity-0">{displayLabel}</span>
{/if}
diff --git a/frontend/src/lib/components/arcane-button/variants.ts b/frontend/src/lib/components/arcane-button/variants.ts
index 92ac45e1b..bfc0965df 100644
--- a/frontend/src/lib/components/arcane-button/variants.ts
+++ b/frontend/src/lib/components/arcane-button/variants.ts
@@ -14,6 +14,7 @@ import XIcon from '@lucide/svelte/icons/x';
import SaveIcon from '@lucide/svelte/icons/save';
import PlusCircleIcon from '@lucide/svelte/icons/plus-circle';
import LayoutTemplateIcon from '@lucide/svelte/icons/layout-template';
+import { m } from '$lib/paraglide/messages';
export const arcaneButtonVariants = tv({
base:
@@ -77,29 +78,69 @@ export type ActionConfig = {
};
export const actionConfigs: Record<Action, ActionConfig> = {
- start: { defaultLabel: 'Start', IconComponent: PlayIcon, tone: 'outline-primary', loadingLabel: 'Starting...' },
- deploy: { defaultLabel: 'Deploy', IconComponent: PlayIcon, tone: 'outline-primary', loadingLabel: 'Deploying...' },
- stop: { defaultLabel: 'Stop', IconComponent: CircleStopIcon, tone: 'outline-destructive', loadingLabel: 'Stopping...' },
- remove: { defaultLabel: 'Remove', IconComponent: Trash2Icon, tone: 'outline-destructive', loadingLabel: 'Removing...' },
- restart: { defaultLabel: 'Restart', IconComponent: RotateCcwIcon, tone: 'outline-primary', loadingLabel: 'Restarting...' },
- pull: { defaultLabel: 'Pull', IconComponent: DownloadIcon, tone: 'outline-primary', loadingLabel: 'Pulling...' },
+ start: { defaultLabel: m.common_start(), IconComponent: PlayIcon, tone: 'outline-primary', loadingLabel: m.action_starting() },
+ deploy: {
+ defaultLabel: m.action_deploy(),
+ IconComponent: PlayIcon,
+ tone: 'outline-primary',
+ loadingLabel: m.action_deploying()
+ },
+ stop: {
+ defaultLabel: m.common_stop(),
+ IconComponent: CircleStopIcon,
+ tone: 'outline-destructive',
+ loadingLabel: m.action_stopping()
+ },
+ remove: {
+ defaultLabel: m.common_remove(),
+ IconComponent: Trash2Icon,
+ tone: 'outline-destructive',
+ loadingLabel: m.action_removing()
+ },
+ restart: {
+ defaultLabel: m.common_restart(),
+ IconComponent: RotateCcwIcon,
+ tone: 'outline-primary',
+ loadingLabel: m.action_restarting()
+ },
+ pull: { defaultLabel: m.images_pull(), IconComponent: DownloadIcon, tone: 'outline-primary', loadingLabel: m.images_pulling() },
redeploy: {
- defaultLabel: 'Redeploy',
+ defaultLabel: m.action_redeploy(),
IconComponent: RefreshCcwDotIcon,
tone: 'outline-primary',
- loadingLabel: 'Redeploying...'
+ loadingLabel: m.action_redeploying()
+ },
+ inspect: {
+ defaultLabel: m.common_inspect(),
+ IconComponent: ScanSearchIcon,
+ tone: 'outline-primary',
+ loadingLabel: m.action_inspecting()
+ },
+ edit: { defaultLabel: m.common_edit(), IconComponent: EditIcon, tone: 'outline-primary', loadingLabel: m.common_saving() },
+ confirm: {
+ defaultLabel: m.common_confirm(),
+ IconComponent: CheckIcon,
+ tone: 'outline-primary',
+ loadingLabel: m.action_confirming()
+ },
+ save: { defaultLabel: m.common_save(), IconComponent: SaveIcon, tone: 'outline-primary', loadingLabel: m.common_saving() },
+ create: {
+ defaultLabel: m.common_create(),
+ IconComponent: PlusCircleIcon,
+ tone: 'outline-primary',
+ loadingLabel: m.common_creating()
},
- inspect: { defaultLabel: 'Inspect', IconComponent: ScanSearchIcon, tone: 'outline-primary', loadingLabel: 'Inspecting...' },
- edit: { defaultLabel: 'Edit', IconComponent: EditIcon, tone: 'outline-primary', loadingLabel: 'Saving...' },
- confirm: { defaultLabel: 'Confirm', IconComponent: CheckIcon, tone: 'outline-primary', loadingLabel: 'Confirming...' },
- save: { defaultLabel: 'Save', IconComponent: SaveIcon, tone: 'outline-primary', loadingLabel: 'Saving...' },
- create: { defaultLabel: 'Create', IconComponent: PlusCircleIcon, tone: 'outline-primary', loadingLabel: 'Creating...' },
template: {
- defaultLabel: 'Use Template',
+ defaultLabel: m.action_use_template(),
IconComponent: LayoutTemplateIcon,
tone: 'outline-primary',
- loadingLabel: 'Creating...'
+ loadingLabel: m.common_creating()
+ },
+ logs: {
+ defaultLabel: m.common_logs(),
+ IconComponent: FileTextIcon,
+ tone: 'ghost',
+ loadingLabel: m.action_fetching_logs ? m.action_fetching_logs() : m.common_processing()
},
- logs: { defaultLabel: 'Logs', IconComponent: FileTextIcon, tone: 'ghost', loadingLabel: 'Fetching...' },
- cancel: { defaultLabel: 'Cancel', IconComponent: XIcon, tone: 'ghost', loadingLabel: 'Cancelling...' }
+ cancel: { defaultLabel: m.common_cancel(), IconComponent: XIcon, tone: 'ghost', loadingLabel: m.action_cancelling() }
};
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-filter.svelte b/frontend/src/lib/components/arcane-table/arcane-table-filter.svelte
index b07504c24..d53f9839d 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-filter.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-filter.svelte
@@ -10,6 +10,7 @@
import { Separator } from '$lib/components/ui/separator/index.js';
import { Badge } from '$lib/components/ui/badge/index.js';
import type { Component } from 'svelte';
+ import { m } from '$lib/paraglide/messages';
let {
column,
@@ -51,7 +52,7 @@
<div class="hidden space-x-1 lg:flex">
{#if selectedValues.size > 2}
<Badge variant="secondary" class="rounded-sm px-1 font-normal">
- {selectedValues.size} selected
+ {m.common_selected_count({ count: selectedValues.size })}
</Badge>
{:else}
{#each options.filter((opt) => selectedValues.has(opt.value)) as option (option)}
@@ -69,7 +70,7 @@
<Command.Root>
<Command.Input placeholder={title} />
<Command.List>
- <Command.Empty>No results found.</Command.Empty>
+ <Command.Empty>{m.common_no_results_found()}</Command.Empty>
<Command.Group>
{#each options as option (option)}
{@const isSelected = selectedValues.has(option.value)}
@@ -110,7 +111,7 @@
<Command.Separator />
<Command.Group>
<Command.Item onSelect={() => column?.setFilterValue(undefined)} class="justify-center text-center">
- Clear filters
+ {m.common_clear_filters()}
</Command.Item>
</Command.Group>
{/if}
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte b/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte
index f347eac20..59484a9a7 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte
@@ -7,6 +7,7 @@
import { imageUpdateFilters, usageFilters } from './data.js';
import { debounced } from '$lib/utils/utils.js';
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
+ import { m } from '$lib/paraglide/messages';
let {
table,
@@ -31,7 +32,7 @@
<div class="flex items-center justify-between">
<div class="flex flex-1 items-center space-x-2">
<Input
- placeholder="Search..."
+ placeholder={m.common_search()}
value={(table.getState().globalFilter as string) ?? ''}
oninput={(e) => debouncedSetGlobal(e.currentTarget.value)}
onchange={(e) => table.setGlobalFilter(e.currentTarget.value)}
@@ -42,10 +43,10 @@
/>
{#if usageColumn}
- <DataTableFacetedFilter column={usageColumn} title="Usage" options={usageFilters} />
+ <DataTableFacetedFilter column={usageColumn} title={m.common_usage()} options={usageFilters} />
{/if}
{#if updatesColumn}
- <DataTableFacetedFilter column={updatesColumn} title="Updates" options={imageUpdateFilters} />
+ <DataTableFacetedFilter column={updatesColumn} title={m.images_updates()} options={imageUpdateFilters} />
{/if}
{#if isFiltered}
@@ -57,7 +58,7 @@
}}
class="h-8 px-2 lg:px-3"
>
- Reset
+ {m.common_reset()}
<XIcon />
</Button>
{/if}
@@ -68,7 +69,7 @@
<ArcaneButton
action="remove"
size="sm"
- customLabel={`Remove Selected (${selectedIds?.length ?? 0})`}
+ customLabel={m.common_remove_selected({ count: selectedIds?.length ?? 0 })}
onclick={() => onRemoveSelected?.(selectedIds!)}
/>
{/if}
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-view-options.svelte b/frontend/src/lib/components/arcane-table/arcane-table-view-options.svelte
index 6b82a83e5..5ce45ce34 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-view-options.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-view-options.svelte
@@ -3,6 +3,7 @@
import type { Table } from '@tanstack/table-core';
import { buttonVariants } from '$lib/components/ui/button/index.js';
import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';
+ import { m } from '$lib/paraglide/messages';
let { table }: { table: Table<TData> } = $props();
</script>
@@ -16,11 +17,11 @@
})}
>
<Settings2Icon />
- View
+ {m.common_view()}
</DropdownMenu.Trigger>
<DropdownMenu.Content>
<DropdownMenu.Group>
- <DropdownMenu.Label>Toggle columns</DropdownMenu.Label>
+ <DropdownMenu.Label>{m.common_toggle_columns()}</DropdownMenu.Label>
<DropdownMenu.Separator />
{#each table.getAllColumns().filter((col) => typeof col.accessorFn !== 'undefined' && col.getCanHide()) as column (column)}
<DropdownMenu.CheckboxItem
diff --git a/frontend/src/lib/components/arcane-table/arcane-table.svelte b/frontend/src/lib/components/arcane-table/arcane-table.svelte
index a8bdaf487..2125e9165 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table.svelte
@@ -35,6 +35,7 @@
import type { Snippet } from 'svelte';
import type { ColumnSpec } from './arcane-table.types';
import TableCheckbox from './arcane-table-checkbox.svelte';
+ import { m } from '$lib/paraglide/messages';
let {
items,
@@ -132,7 +133,7 @@
checked,
indeterminate,
onCheckedChange: (value) => onToggleAll(!!value, table),
- 'aria-label': 'Select all'
+ 'aria-label': m.common_select_all()
});
},
cell: ({ row }) => {
@@ -140,7 +141,7 @@
return renderComponent(TableCheckbox, {
checked: (selectedIds ?? []).includes(id),
onCheckedChange: (value) => onToggleRow(!!value, id),
- 'aria-label': 'Select row'
+ 'aria-label': m.common_select_row()
});
},
enableSorting: false,
@@ -288,11 +289,11 @@
{#snippet Pagination({ table }: { table: TableType<TData> })}
<div class="flex items-center justify-between px-2">
<div class="text-muted-foreground flex-1 text-sm">
- Showing {table.getFilteredRowModel().rows.length} of {totalItems} item(s).
+ {m.common_showing_of_total({ shown: table.getFilteredRowModel().rows.length, total: totalItems })}
</div>
<div class="flex items-center space-x-6 lg:space-x-8">
<div class="flex items-center space-x-2">
- <p class="text-sm font-medium">Rows per page</p>
+ <p class="text-sm font-medium">{m.common_rows_per_page()}</p>
<Select.Root
allowDeselect={false}
type="single"
@@ -312,23 +313,23 @@
</Select.Root>
</div>
<div class="flex w-[100px] items-center justify-center text-sm font-medium">
- Page {currentPage} of {totalPages}
+ {m.common_page_of({ page: currentPage, total: totalPages })}
</div>
<div class="flex items-center space-x-2">
<Button variant="outline" class="hidden size-8 p-0 lg:flex" onclick={() => setPage(1)} disabled={!canPrev}>
- <span class="sr-only">Go to first page</span>
+ <span class="sr-only">{m.common_go_first_page()}</span>
<ChevronsLeftIcon />
</Button>
<Button variant="outline" class="size-8 p-0" onclick={() => setPage(currentPage - 1)} disabled={!canPrev}>
- <span class="sr-only">Go to previous page</span>
+ <span class="sr-only">{m.common_go_prev_page()}</span>
<ChevronLeftIcon />
</Button>
<Button variant="outline" class="size-8 p-0" onclick={() => setPage(currentPage + 1)} disabled={!canNext}>
- <span class="sr-only">Go to next page</span>
+ <span class="sr-only">{m.common_go_next_page()}</span>
<ChevronRightIcon />
</Button>
<Button variant="outline" class="hidden size-8 p-0 lg:flex" onclick={() => setPage(totalPages)} disabled={!canNext}>
- <span class="sr-only">Go to last page</span>
+ <span class="sr-only">{m.common_go_last_page()}</span>
<ChevronsRightIcon />
</Button>
</div>
@@ -368,16 +369,16 @@
<DropdownMenu.Content align="start">
<DropdownMenu.Item onclick={() => column.toggleSorting(false)}>
<ArrowUpIcon class="text-muted-foreground/70 mr-2 size-3.5" />
- Asc
+ {m.common_sort_asc()}
</DropdownMenu.Item>
<DropdownMenu.Item onclick={() => column.toggleSorting(true)}>
<ArrowDownIcon class="text-muted-foreground/70 mr-2 size-3.5" />
- Desc
+ {m.common_sort_desc()}
</DropdownMenu.Item>
<DropdownMenu.Separator />
<DropdownMenu.Item onclick={() => column.toggleVisibility(false)}>
<EyeOffIcon class="text-muted-foreground/70 mr-2 size-3.5" />
- Hide
+ {m.common_hide()}
</DropdownMenu.Item>
</DropdownMenu.Content>
</DropdownMenu.Root>
@@ -415,7 +416,7 @@
</Table.Row>
{:else}
<Table.Row>
- <Table.Cell colspan={columnsDef.length} class="h-24 text-center">No results.</Table.Cell>
+ <Table.Cell colspan={columnsDef.length} class="h-24 text-center">{m.common_no_results_found()}</Table.Cell>
</Table.Row>
{/each}
</Table.Body>
diff --git a/frontend/src/lib/components/arcane-table/data.ts b/frontend/src/lib/components/arcane-table/data.ts
index e1bec99cb..0a4835660 100644
--- a/frontend/src/lib/components/arcane-table/data.ts
+++ b/frontend/src/lib/components/arcane-table/data.ts
@@ -2,16 +2,17 @@ import BadgeCheckIcon from '@lucide/svelte/icons/badge-check';
import BadgeXIcon from '@lucide/svelte/icons/badge-x';
import CircleFadingArrowUp from '@lucide/svelte/icons/circle-fading-arrow-up';
import CircleCheck from '@lucide/svelte/icons/circle-check';
+import { m } from '$lib/paraglide/messages';
export const usageFilters = [
{
value: true,
- label: 'In Use',
+ label: m.common_in_use(),
icon: BadgeCheckIcon
},
{
value: false,
- label: 'Unused',
+ label: m.common_unused(),
icon: CircleCheck
}
];
@@ -19,12 +20,12 @@ export const usageFilters = [
export const imageUpdateFilters = [
{
value: true,
- label: 'Has Updates',
+ label: m.images_has_updates(),
icon: CircleFadingArrowUp
},
{
value: false,
- label: 'No Updates',
+ label: m.images_no_updates(),
icon: BadgeXIcon
}
];
diff --git a/frontend/src/lib/components/badges/status-badge.svelte b/frontend/src/lib/components/badges/status-badge.svelte
index a26c4f0ba..1477091a0 100644
--- a/frontend/src/lib/components/badges/status-badge.svelte
+++ b/frontend/src/lib/components/badges/status-badge.svelte
@@ -1,5 +1,6 @@
<script lang="ts">
import { cn } from '$lib/utils';
+ import { m } from '$lib/paraglide/messages';
type Variant =
| 'red'
@@ -24,7 +25,7 @@
type MinWidth = 'none' | '16' | '20' | '24' | '28';
let {
- text,
+ text = m.common_unknown(),
variant = 'gray',
size = 'md',
minWidth = '20',
diff --git a/frontend/src/lib/components/code-editor/editor.svelte b/frontend/src/lib/components/code-editor/editor.svelte
index 27ee705ce..84f7893c4 100644
--- a/frontend/src/lib/components/code-editor/editor.svelte
+++ b/frontend/src/lib/components/code-editor/editor.svelte
@@ -11,13 +11,14 @@
import type { Extension } from '@codemirror/state';
import type { Diagnostic, LintSource } from '@codemirror/lint';
import { mode } from 'mode-watcher';
+ import { m } from '$lib/paraglide/messages';
type CodeLanguage = 'yaml' | 'env';
let {
value = $bindable(''),
language = 'yaml' as CodeLanguage,
- placeholder = 'Enter code...',
+ placeholder = m.editor_placeholder(),
readOnly = false,
height = '550px',
fontSize = '11px',
diff --git a/frontend/src/lib/components/dialogs/event-details-dialog.svelte b/frontend/src/lib/components/dialogs/event-details-dialog.svelte
index 194ba25ed..853d0e96a 100644
--- a/frontend/src/lib/components/dialogs/event-details-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/event-details-dialog.svelte
@@ -13,6 +13,7 @@
import TagIcon from '@lucide/svelte/icons/tag';
import type { Event } from '$lib/types/event.type';
import { toast } from 'svelte-sonner';
+ import { m } from '$lib/paraglide/messages';
let {
open = $bindable(),
@@ -35,14 +36,11 @@
if (!text) return;
try {
await navigator.clipboard.writeText(text);
- toggleToast('Copied to clipboard');
+ toast.success(m.common_copied());
} catch {
- toggleToast('Failed to copy', true);
+ toast.error(m.common_copy_failed());
}
}
- function toggleToast(msg: string, isErr = false) {
- isErr ? toast.error(msg) : toast.success(msg);
- }
const hasMetadata = $derived(!!event?.metadata && Object.keys(event.metadata ?? {}).length > 0);
const jsonPretty = $derived(() => JSON.stringify(event ?? {}, null, 2));
@@ -91,8 +89,8 @@
{/if}
</div>
<div class="min-w-0 flex-1">
- <Dialog.Title class="text-xl font-semibold leading-tight">
- {event?.title || 'Event Details'}
+ <Dialog.Title class="text-xl font-semibold">
+ {event?.title ?? m.events_details_title()}
</Dialog.Title>
{#if event?.description}
<Dialog.Description class="text-muted-foreground mt-1 text-sm">
@@ -101,16 +99,16 @@
{/if}
<div class="mt-3 flex flex-wrap items-center gap-2">
<Badge class={'border ' + sevBadge(event?.severity)}>
- {event?.severity ?? 'info'}
+ {event?.severity ?? m.common_unknown()}
</Badge>
<Badge variant="outline" class="gap-1">
<TagIcon class="size-3" />
- {event?.type ?? '-'}
+ {event?.type ?? m.common_unknown()}
</Badge>
{#if event?.environmentId}
<Badge variant="outline" class="gap-1">
<ServerIcon class="size-3" />
- env: {event.environmentId}
+ {m.events_environment_label()}: {event.environmentId ?? m.common_unknown()}
</Badge>
{/if}
{#if event?.timestamp}
@@ -127,17 +125,23 @@
<div class="min-h-0 flex-1 space-y-4 overflow-y-auto p-4">
<div class="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
<div class="rounded-lg border p-3">
- <div class="text-muted-foreground text-xs">Resource ID</div>
+ <div class="text-muted-foreground text-xs">{m.events_resource_id_label()}</div>
<div class="mt-1 flex items-center justify-between gap-2">
<div class="break-all text-sm">{event?.resourceType || '-'}</div>
- <Button variant="ghost" size="icon" class="size-7" onclick={() => copy(event?.resourceType)} title="Copy resource id">
+ <Button
+ variant="ghost"
+ size="icon"
+ class="size-7"
+ onclick={() => copy(event?.resourceType)}
+ title={m.events_copy_resource_id_title()}
+ >
<CopyIcon class="size-4" />
</Button>
</div>
</div>
<div class="rounded-lg border p-3">
- <div class="text-muted-foreground text-xs">Resource Name</div>
+ <div class="text-muted-foreground text-xs">{m.events_resource_name_label()}</div>
<div class="mt-1 flex items-center justify-between gap-2">
<div class="break-all text-sm">{event?.resourceName || '-'}</div>
<Button
@@ -145,7 +149,7 @@
size="icon"
class="size-7"
onclick={() => copy(event?.resourceName)}
- title="Copy resource name"
+ title={m.events_copy_resource_name_title()}
>
<CopyIcon class="size-4" />
</Button>
@@ -153,17 +157,17 @@
</div>
<div class="rounded-lg border p-3">
- <div class="text-muted-foreground text-xs">User</div>
+ <div class="text-muted-foreground text-xs">{m.common_user}</div>
<div class="mt-1 flex items-center gap-2 text-sm">
<UserIcon class="text-muted-foreground size-4" />
- {event?.username || '-'}
+ {event?.username ?? m.common_unknown()}
</div>
</div>
</div>
<div class="rounded-lg border">
<div class="flex items-center justify-between border-b px-3 py-2">
- <h3 class="text-sm font-medium">Metadata</h3>
+ <h3 class="text-sm font-medium">{m.events_metadata_title()}</h3>
<Button
variant="outline"
size="sm"
@@ -172,7 +176,7 @@
title="Copy metadata JSON"
>
<CopyIcon class="mr-2 size-3" />
- Copy JSON
+ {m.common_copy_json()}
</Button>
</div>
{#if hasMetadata}
@@ -180,16 +184,16 @@
<code class="font-mono">{metadataPretty()}</code>
</pre>
{:else}
- <div class="text-muted-foreground p-3 text-xs">No metadata provided.</div>
+ <div class="text-muted-foreground p-3 text-xs">{m.events_no_metadata_provided()}</div>
{/if}
</div>
<div class="rounded-lg border">
<div class="flex items-center justify-between border-b px-3 py-2">
- <h3 class="text-sm font-medium">Raw Event</h3>
- <Button variant="outline" size="sm" onclick={() => copy(jsonPretty())} title="Copy full event JSON">
+ <h3 class="text-sm font-medium">{m.events_raw_event_title()}</h3>
+ <Button variant="outline" size="sm" onclick={() => copy(jsonPretty())} title={m.events_copy_full_event_json_title()}>
<CopyIcon class="mr-2 size-3" />
- Copy JSON
+ {m.common_copy_json()}
</Button>
</div>
<pre class="bg-muted/40 max-h-[40vh] overflow-auto p-3 text-xs leading-relaxed">
@@ -199,7 +203,7 @@
</div>
<Dialog.Footer class="flex flex-shrink-0 items-center justify-end gap-2 border-t p-3">
- <Button variant="outline" onclick={() => (open = false)}>Close</Button>
+ <Button variant="outline" onclick={() => (open = false)}>{m.common_close()}</Button>
</Dialog.Footer>
</Dialog.Content>
</Dialog.Root>
diff --git a/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte b/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte
index a4cbe3c65..6a546a8d5 100644
--- a/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte
@@ -10,6 +10,7 @@
import { toast } from 'svelte-sonner';
import type { Settings } from '$lib/types/settings.type';
import type { OidcStatusInfo } from '$lib/types/settings.type';
+ import { m } from '$lib/paraglide/messages';
interface OidcForm {
clientId: string;
@@ -65,8 +66,8 @@
});
const statusItems = $derived([
- { label: 'Env Forced', value: oidcStatus.envForced, hint: 'Server forces OIDC' },
- { label: 'Env Configured', value: oidcStatus.envConfigured, hint: 'Server OIDC vars present' }
+ { label: m.oidc_status_env_forced(), value: oidcStatus.envForced, hint: m.oidc_status_env_forced_hint() },
+ { label: m.oidc_status_env_configured(), value: oidcStatus.envConfigured, hint: m.oidc_status_env_configured_hint() }
]);
function chipClass(v: boolean) {
@@ -78,9 +79,9 @@
async function copyToClipboard(text: string) {
try {
await navigator.clipboard.writeText(text);
- toast.success('Copied to clipboard');
+ toast.success(m.common_copied());
} catch {
- toast.error('Failed to copy to clipboard');
+ toast.error(m.common_copy_failed());
}
}
</script>
@@ -93,23 +94,20 @@
<KeyIcon class="size-4" />
</span>
{#if isOidcViewMode}
- OIDC Server Configuration Status
+ {m.security_oidc_configured_forced_view()}
{:else if oidcStatus.envForced && !oidcStatus.envConfigured}
- Configure OIDC (Server Override Warning)
+ {m.security_server_forces_oidc_missing_env()}
{:else}
- Configure OIDC Provider
+ {m.security_manage_oidc_config()}
{/if}
</Dialog.Title>
<Dialog.Description class="text-sm leading-relaxed">
{#if isOidcViewMode}
- OIDC authentication is configured and forced ON by server-side environment variables. These settings are read-only.
+ {m.oidc_viewmode_description()}
{:else if oidcStatus.envForced && !oidcStatus.envConfigured}
- OIDC usage is forced ON by the server environment (<code class="bg-muted rounded px-1 py-0.5 text-xs"
- >OIDC_ENABLED=true</code
- >), but critical server-side OIDC environment variables appear to be missing or incomplete.
+ {m.security_server_forces_oidc_missing_env()}
{:else}
- Configure the OIDC settings for your application. These settings will be saved to the database and used for OIDC
- authentication.
+ {m.oidc_configure_description()}
{/if}
</Dialog.Description>
</Dialog.Header>
@@ -120,127 +118,124 @@
<div class="space-y-6">
{#if isOidcViewMode}
<div class="bg-card/50 rounded-lg border p-4">
- <h3 class="text-base font-semibold">Server Environment Configuration</h3>
- <p class="text-muted-foreground mb-4 mt-1 text-sm">
- The following OIDC settings are loaded from the server environment:
- </p>
+ <h3 class="text-base font-semibold">{m.oidc_server_env_config_title()}</h3>
+ <p class="text-muted-foreground mb-4 mt-1 text-sm">{m.oidc_server_env_config_description()}</p>
{#if currentSettings.authOidcEnabled}
<div class="divide-border/60 divide-y text-sm">
<div class="flex items-center justify-between py-2">
- <span class="font-medium">Client ID</span>
- <code class="bg-muted rounded px-2 py-1 text-xs">{parsedOidcConfig().clientId || 'Not configured'}</code>
+ <span class="font-medium">{m.oidc_client_id_label()}</span>
+ <code class="bg-muted rounded px-2 py-1 text-xs">{parsedOidcConfig().clientId || m.common_unknown()}</code>
</div>
<div class="flex items-center justify-between py-2">
- <span class="font-medium">Issuer URL</span>
- <code class="bg-muted rounded px-2 py-1 text-xs">{parsedOidcConfig().issuerUrl || 'Not configured'}</code>
+ <span class="font-medium">{m.oidc_issuer_url_label()}</span>
+ <code class="bg-muted rounded px-2 py-1 text-xs">{parsedOidcConfig().issuerUrl || m.common_unknown()}</code>
</div>
<div class="flex items-center justify-between py-2">
- <span class="font-medium">Client Secret</span>
- <span class="text-muted-foreground text-xs italic">(Sensitive - Not Displayed)</span>
+ <span class="font-medium">{m.oidc_client_secret_label()}</span>
+ <span class="text-muted-foreground text-xs italic">{m.oidc_client_secret_hidden()}</span>
</div>
<div class="flex items-center justify-between py-2">
- <span class="font-medium">Scopes</span>
<code class="bg-muted rounded px-2 py-1 text-xs">{parsedOidcConfig().scopes || 'openid email profile'}</code>
+ <span class="font-medium">{m.oidc_scopes_label()}</span>
+
+ <code class="bg-muted rounded px-2 py-1 text-xs"
+ >{parsedOidcConfig().scopes || m.oidc_scopes_placeholder()}</code
+ >
</div>
<div class="flex items-center justify-between py-2">
- <span class="font-medium">Admin Claim</span>
- <code class="bg-muted rounded px-2 py-1 text-xs">{parsedOidcConfig().adminClaim || 'Not configured'}</code>
+ <span class="font-medium">{m.oidc_admin_claim_label()}</span>
+
+ <code class="bg-muted rounded px-2 py-1 text-xs">{parsedOidcConfig().adminClaim || m.common_unknown()}</code>
</div>
<div class="flex items-center justify-between py-2">
- <span class="font-medium">Admin Value(s)</span>
- <code class="bg-muted rounded px-2 py-1 text-xs">{parsedOidcConfig().adminValue || 'Not configured'}</code>
+ <span class="font-medium">{m.oidc_admin_value_label()}</span>
+
+ <code class="bg-muted rounded px-2 py-1 text-xs">{parsedOidcConfig().adminValue || m.common_unknown()}</code>
</div>
</div>
{:else}
<div class="py-6 text-center">
<TriangleAlertIcon class="text-destructive mx-auto mb-2 size-8" />
- <p class="text-destructive text-sm font-medium">OIDC configuration details not found in effective settings.</p>
+ <p class="text-destructive text-sm font-medium">{m.oidc_env_config_missing()}</p>
</div>
{/if}
<div class="bg-muted/40 mt-4 rounded-md p-3">
- <p class="text-muted-foreground text-xs">
- Changes to these settings must be made in your server's environment configuration.
- </p>
+ <p class="text-muted-foreground text-xs">{m.oidc_env_changes_note()}</p>
</div>
</div>
{:else}
<!-- Editable form -->
<div class="bg-card/50 rounded-lg border p-4">
- <h3 class="text-base font-semibold">Basic Configuration</h3>
- <p class="text-muted-foreground mb-4 mt-1 text-sm">Essential OIDC provider settings</p>
+ <h3 class="text-base font-semibold">{m.oidc_basic_configuration_title()}</h3>
+ <p class="text-muted-foreground mb-4 mt-1 text-sm">{m.oidc_basic_description()}</p>
<div class="space-y-4">
<div class="space-y-2">
- <Label for="oidcClientId" class="text-sm font-medium">Client ID</Label>
+ <Label for="oidcClientId" class="text-sm font-medium">{m.oidc_client_id_label()}</Label>
<Input
id="oidcClientId"
bind:value={oidcForm.clientId}
- placeholder="Provided by your OIDC Provider"
+ placeholder={m.oidc_client_id_placeholder()}
class="font-mono text-sm"
/>
</div>
<div class="space-y-2">
- <Label for="oidcClientSecret" class="text-sm font-medium">Client Secret</Label>
+ <Label for="oidcClientSecret" class="text-sm font-medium">{m.oidc_client_secret_label()}</Label>
<Input
id="oidcClientSecret"
type="password"
bind:value={oidcForm.clientSecret}
- placeholder="Provided by your OIDC Provider (leave blank to keep existing)"
+ placeholder={m.oidc_client_secret_placeholder()}
class="font-mono text-sm"
/>
</div>
<div class="space-y-2">
- <Label for="oidcIssuerUrl" class="text-sm font-medium">Issuer URL</Label>
+ <Label for="oidcIssuerUrl" class="text-sm font-medium">{m.oidc_issuer_url_label()}</Label>
<Input
id="oidcIssuerUrl"
bind:value={oidcForm.issuerUrl}
- placeholder="https://id.example.com"
+ placeholder={m.oidc_issuer_url_placeholder()}
class="font-mono text-sm"
/>
- <p class="text-muted-foreground text-xs">The issuer URL will be used to auto-discover OIDC endpoints.</p>
+ <p class="text-muted-foreground text-xs">{m.oidc_issuer_url_description()}</p>
</div>
<div class="space-y-2">
- <Label for="oidcScopes" class="text-sm font-medium">Scopes</Label>
+ <Label for="oidcScopes" class="text-sm font-medium">{m.oidc_scopes_label()}</Label>
<Input
id="oidcScopes"
bind:value={oidcForm.scopes}
- placeholder="openid email profile"
+ placeholder={m.oidc_scopes_placeholder()}
class="font-mono text-sm"
/>
</div>
<div class="pt-2">
- <h4 class="text-sm font-semibold">Admin Role Mapping</h4>
- <p class="text-muted-foreground mb-3 text-xs">
- Map an OIDC claim to grant the “admin” role. Examples:
- <code class="bg-muted rounded px-1 text-[11px]">roles = admin</code>,
- <code class="bg-muted rounded px-1 text-[11px]">groups = admin</code>, or a boolean
- <code class="bg-muted rounded px-1 text-[11px]">admin = true</code>.
- </p>
+ <h4 class="text-sm font-semibold">{m.oidc_admin_role_mapping_title()}</h4>
+ <p class="text-muted-foreground mb-3 text-xs">{m.oidc_admin_role_mapping_description()}</p>
<div class="grid gap-3 sm:grid-cols-2">
<div class="space-y-2">
- <Label for="oidcAdminClaim" class="text-sm font-medium">Claim Path</Label>
+ <Label for="oidcAdminClaim" class="text-sm font-medium">{m.oidc_admin_claim_label()}</Label>
<Input
id="oidcAdminClaim"
bind:value={oidcForm.adminClaim}
- placeholder="e.g., roles, groups, realm_access.roles, admin"
+ placeholder={m.oidc_admin_claim_placeholder()}
class="font-mono text-sm"
/>
</div>
<div class="space-y-2">
- <Label for="oidcAdminValue" class="text-sm font-medium">Required Value(s)</Label>
+ <Label for="oidcAdminValue" class="text-sm font-medium">{m.oidc_admin_value_label()}</Label>
<Input
id="oidcAdminValue"
bind:value={oidcForm.adminValue}
- placeholder="e.g., admin (comma-separated)"
+ placeholder={m.oidc_admin_value_placeholder()}
class="font-mono text-sm"
/>
- <p class="text-muted-foreground text-[11px]">Leave empty for boolean claims (admin=true).</p>
+ <p class="text-muted-foreground text-[11px]">{m.oidc_admin_value_help()}</p>
</div>
</div>
</div>
@@ -251,12 +246,9 @@
<div class="border-destructive/50 bg-destructive/5 rounded-lg border p-4">
<div class="mb-2 flex items-center gap-2">
<TriangleAlertIcon class="text-destructive size-4" />
- <h3 class="text-destructive text-base font-semibold">Server Override Warning</h3>
+ <h3 class="text-destructive text-base font-semibold">{m.oidc_server_override_warning_title()}</h3>
</div>
- <p class="text-destructive/80 text-sm">
- Server forces OIDC, but environment variables appear incomplete. Prefer fixing server env, or save app-level
- config below.
- </p>
+ <p class="text-destructive/80 text-sm">{m.security_server_forces_oidc_missing_env()}</p>
</div>
{/if}
{/if}
@@ -265,12 +257,18 @@
<div class="bg-card/50 rounded-lg border p-4">
<div class="mb-3 flex items-center gap-2">
<InfoIcon class="size-4 text-blue-600" />
- <h3 class="text-base font-semibold">Redirect URI Configuration</h3>
+ <h3 class="text-base font-semibold">{m.oidc_redirect_uri_title()}</h3>
</div>
- <p class="text-muted-foreground mb-3 text-sm">Configure this redirect URI in your OIDC provider:</p>
+ <p class="text-muted-foreground mb-3 text-sm">{m.oidc_redirect_uri_description()}</p>
<div class="flex items-center gap-2">
<code class="bg-muted flex-1 break-all rounded p-2 font-mono text-xs">{redirectUri}</code>
- <Button size="sm" variant="outline" onclick={() => copyToClipboard(redirectUri)} class="flex-shrink-0">
+ <Button
+ size="sm"
+ variant="outline"
+ onclick={() => copyToClipboard(redirectUri)}
+ class="flex-shrink-0"
+ title={m.common_copy()}
+ >
<CopyIcon class="size-3" />
</Button>
</div>
@@ -281,23 +279,25 @@
<aside class="hidden lg:block">
<div class="sticky top-4 space-y-4">
<div class="bg-card/50 rounded-lg border p-4">
- <h3 class="text-sm font-semibold">Status</h3>
+ <h3 class="text-sm font-semibold">{m.oidc_status_title()}</h3>
<ul class="mt-3 space-y-2">
{#each statusItems as s (s.label)}
<li class="flex items-center justify-between">
<span class="text-muted-foreground text-sm">{s.label}</span>
- <span class={'rounded px-2 py-0.5 text-xs ring-1 ' + chipClass(s.value)}>{s.value ? 'Yes' : 'No'}</span>
+ <span class={'rounded px-2 py-0.5 text-xs ring-1 ' + chipClass(s.value)}
+ >{s.value ? m.common_yes() : m.common_no()}</span
+ >
</li>
{/each}
</ul>
</div>
<div class="bg-card/50 rounded-lg border p-4">
- <h3 class="text-sm font-semibold">Tips</h3>
+ <h3 class="text-sm font-semibold">{m.oidc_tips_title()}</h3>
<ul class="text-muted-foreground mt-3 list-disc space-y-1 pl-5 text-xs">
- <li>If your server forces OIDC, app settings become read-only.</li>
- <li>Use issuer discovery; avoid hardcoding endpoints.</li>
- <li>Keep client secrets out of the UI when possible.</li>
+ <li>{m.oidc_tip_1()}</li>
+ <li>{m.oidc_tip_2()}</li>
+ <li>{m.oidc_tip_3()}</li>
</ul>
</div>
</div>
@@ -306,11 +306,11 @@
</div>
<Dialog.Footer class="flex flex-shrink-0 gap-3 border-t pt-4">
- <Button variant="outline" onclick={() => (open = false)} class="flex-1 sm:flex-none">Close</Button>
+ <Button variant="outline" onclick={() => (open = false)} class="flex-1 sm:flex-none">{m.common_close()}</Button>
{#if !isOidcViewMode}
<Button onclick={onSave} class="flex-1 sm:flex-none">
<KeyIcon class="mr-2 size-4" />
- Save OIDC Settings
+ {m.common_save()}
</Button>
{/if}
</Dialog.Footer>
diff --git a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
index b67e6e683..8b64ec0d2 100644
--- a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
@@ -7,6 +7,7 @@
import Trash2Icon from '@lucide/svelte/icons/trash-2';
import LoaderCircleIcon from '@lucide/svelte/icons/loader-circle';
import * as Alert from '$lib/components/ui/alert/index.js';
+ import { m } from '$lib/paraglide/messages';
type PruneType = 'containers' | 'images' | 'networks' | 'volumes';
@@ -62,10 +63,8 @@
<Dialog.Root bind:open onOpenChange={(isOpen) => !isOpen && handleCancel()}>
<Dialog.Content class="sm:max-w-[450px]" onkeydown={handleKeydown}>
<Dialog.Header>
- <Dialog.Title>Confirm System Prune</Dialog.Title>
- <Dialog.Description
- >Select the resources you want to prune. This action permanently removes unused data and cannot be undone.</Dialog.Description
- >
+ <Dialog.Title>{m.prune_confirm_system_title()}</Dialog.Title>
+ <Dialog.Description>{m.prune_confirm_description()}</Dialog.Description>
</Dialog.Header>
<div class="grid gap-4 py-4">
@@ -73,50 +72,50 @@
<Checkbox.Root id="prune-containers" bind:checked={pruneContainers} disabled={isPruning} />
<Label
for="prune-containers"
- class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
- >Stopped Containers</Label
+ class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ >{m.prune_stopped_containers()}</Label
>
</div>
<div class="flex items-center space-x-3">
<Checkbox.Root id="prune-images" bind:checked={pruneImages} disabled={isPruning} />
<Label
for="prune-images"
- class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
- Unused Images ({imagePruneMode === 'dangling' ? 'Dangling Only' : 'All Unused'})
+ {m.prune_unused_images()} ({imagePruneMode === 'dangling' ? m.prune_images_mode_dangling() : m.prune_images_mode_all()})
</Label>
</div>
<div class="flex items-center space-x-3">
<Checkbox.Root id="prune-networks" bind:checked={pruneNetworks} disabled={isPruning} />
<Label
for="prune-networks"
- class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
- >Unused Networks</Label
+ class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ >{m.prune_unused_networks()}</Label
>
</div>
<div class="flex items-start space-x-3">
<Checkbox.Root id="prune-volumes" bind:checked={pruneVolumes} disabled={isPruning} class="mt-1" />
<div class="grid gap-1.5 leading-none">
<Label for="prune-volumes" class="text-sm font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70">
- Unused Volumes <span class="text-destructive">(Potentially Destructive!)</span>
+ {m.prune_unused_volumes()} <span class="text-destructive">{m.prune_potentially_destructive()}</span>
</Label>
- <p class="text-muted-foreground text-xs">
- Only enable this if you are certain no important data resides in unused volumes.
- </p>
+ <p class="text-muted-foreground text-xs">{m.prune_volumes_guidance()}</p>
</div>
</div>
{#if pruneVolumes}
<Alert.Root variant="destructive" class="mt-2">
<AlertCircleIcon class="size-4" />
- <Alert.Title>Warning: Pruning Volumes</Alert.Title>
- <Alert.Description>Pruning volumes permanently deletes data. Ensure you have backups if necessary.</Alert.Description>
+ <Alert.Title>{m.prune_volumes_warning_title()}</Alert.Title>
+ <Alert.Description>{m.prune_volumes_warning_description()}</Alert.Description>
</Alert.Root>
{/if}
</div>
<Dialog.Footer>
- <Button class="arcane-button-cancel" variant="outline" onclick={handleCancel} disabled={isPruning}>Cancel</Button>
+ <Button class="arcane-button-cancel" variant="outline" onclick={handleCancel} disabled={isPruning}
+ >{m.common_cancel()}</Button
+ >
<Button
class="arcane-button-remove"
variant="destructive"
@@ -124,9 +123,9 @@
disabled={selectedTypes.length === 0 || isPruning}
>
{#if isPruning}
- <LoaderCircleIcon class="mr-2 size-4 animate-spin" /> Pruning...
+ <LoaderCircleIcon class="mr-2 size-4 animate-spin" /> {m.images_pruning()}
{:else}
- <Trash2Icon class="mr-2 size-4" /> Prune Selected ({selectedTypes.length})
+ <Trash2Icon class="mr-2 size-4" /> {m.prune_button({ count: selectedTypes.length })}
{/if}
</Button>
</Dialog.Footer>
diff --git a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
index 9ac7b715f..a34218589 100644
--- a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
@@ -20,6 +20,7 @@
import SwitchWithLabel from '$lib/components/form/labeled-switch.svelte';
import { toast } from 'svelte-sonner';
+ import { m } from '$lib/paraglide/messages';
interface Props {
open: boolean;
@@ -62,7 +63,7 @@
}
function getRegistryName(t: Template): string {
- return t.registry?.name ?? (t.isRemote ? 'Remote' : 'Local');
+ return t.registry?.name ?? (t.isRemote ? m.templates_remote() : m.templates_local());
}
function sortTemplates(items: Template[]): Template[] {
@@ -78,8 +79,8 @@
type Group = { key: string; name: string; items: Template[] };
const filters = {
- 'name-asc': 'Name (A-Z)',
- 'name-desc': 'Name (Z-A)'
+ 'name-asc': m.templates_sort_name_asc(),
+ 'name-desc': m.templates_sort_name_desc()
};
const grouped: Group[] = $derived(
@@ -109,7 +110,7 @@
try {
const details = await templateAPI.getTemplateContent(template.id);
if (!details?.content) {
- toast.error('Failed to load template content');
+ toast.error(m.templates_load_failed());
return;
}
onSelect({
@@ -118,10 +119,10 @@
envContent: details.envContent
});
open = false;
- toast.success(`Template "${template.name}" loaded successfully!`);
+ toast.success(m.templates_loaded_success({ name: template.name }));
} catch (error) {
console.error('Error loading template:', error);
- toast.error(error instanceof Error ? error.message : 'Failed to load template content');
+ toast.error(error instanceof Error ? error.message : m.templates_load_failed());
} finally {
loadingStates.delete(template.id);
loadingStates = new Map(loadingStates);
@@ -139,14 +140,14 @@
const result = await templateAPI.download(templateId);
if (result) {
- toast.success(`Template "${template.name}" downloaded successfully!`);
+ toast.success(m.templates_downloaded_success({ name: template.name }));
onDownloadSuccess?.();
} else {
- toast.error('Failed to download template');
+ toast.error(m.templates_download_failed());
}
} catch (error) {
console.error('Error downloading template:', error);
- let errorMessage = 'Failed to download template';
+ let errorMessage = m.templates_download_failed();
if (error instanceof Error) errorMessage = error.message;
toast.error(errorMessage);
} finally {
@@ -161,25 +162,22 @@
<Dialog.Header>
<Dialog.Title class="flex items-center gap-2">
<FileTextIcon class="size-5" />
- Choose a Template
+ {m.templates_choose_title()}
</Dialog.Title>
- <Dialog.Description>
- Browse templates from your registries or local downloads. Scroll to see more, select to use immediately, or download for
- offline use.
- </Dialog.Description>
+ <Dialog.Description>{m.templates_choose_description()}</Dialog.Description>
</Dialog.Header>
<div class="mb-3 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">
<div class="flex items-center gap-3">
<SwitchWithLabel
id="groupByRegistrySwitch"
- label="Group by registry"
- description="Enable Collapsible Sections for each registry"
+ label={m.templates_group_by_registry_label()}
+ description={m.templates_group_by_registry_description()}
bind:checked={groupByRegistry}
/>
</div>
<div class="flex items-center gap-3">
- <Label for="sortBy" class="text-sm font-medium whitespace-nowrap">Sort by</Label>
+ <Label for="sortBy" class="whitespace-nowrap text-sm font-medium">{m.common_sort_by()}</Label>
<Select.Root bind:value={sortBy} type="single">
<Select.Trigger id="sortBy" class="bg-background h-9 rounded-md border px-2 text-sm">
{filters[sortBy]}
@@ -198,11 +196,11 @@
{#if (allTemplates?.length ?? 0) === 0}
<div class="text-muted-foreground py-10 text-center">
<FileTextIcon class="mx-auto mb-4 size-12 opacity-50" />
- <p class="mb-2">No templates available</p>
+ <p class="mb-2">{m.templates_no_templates()}</p>
<p class="text-sm">
- Add a template registry in
- <a href="/customize/templates" class="text-primary hover:underline">Template Settings</a>
- to access community templates.
+ {m.templates_add_registry_prompt_part1()}
+ <a href="/customize/templates" class="text-primary hover:underline">{m.templates_template_settings()}</a>
+ {m.templates_add_registry_prompt_part2()}
</p>
</div>
{:else if groupByRegistry && grouped.length}
@@ -253,7 +251,7 @@
<div class="flex items-center justify-between gap-2">
<div class="text-muted-foreground text-xs">
- {template.isRemote ? 'Remote template' : 'Local template'}
+ {template.isRemote ? m.templates_remote_template_label() : m.templates_local_template_label()}
</div>
<div class="flex gap-2">
{#if template.isRemote}
@@ -265,10 +263,10 @@
>
{#if loadingStates.get(`download-${template.id}`)}
<LoaderCircleIcon class="mr-1 size-3 animate-spin" />
- Downloading...
+ {m.templates_downloading()}
{:else}
<DownloadIcon class="mr-1 size-3" />
- Download
+ {m.templates_download()}
{/if}
</Button>
{/if}
@@ -279,9 +277,9 @@
>
{#if loadingStates.get(template.id)}
<LoaderCircleIcon class="mr-1 size-3 animate-spin" />
- Loading...
+ {m.templates_loading()}
{:else}
- Use Now
+ {m.templates_use_now()}
{/if}
</Button>
</div>
@@ -342,7 +340,7 @@
<div class="flex items-center justify-between gap-2">
<div class="text-muted-foreground text-xs">
- {template.isRemote ? 'Remote template' : 'Local template'}
+ {template.isRemote ? m.templates_remote_template_label() : m.templates_local_template_label()}
</div>
<div class="flex gap-2">
{#if template.isRemote}
@@ -354,19 +352,19 @@
>
{#if loadingStates.get(`download-${template.id}`)}
<LoaderCircleIcon class="mr-1 size-3 animate-spin" />
- Downloading...
+ {m.templates_downloading()}
{:else}
<DownloadIcon class="mr-1 size-3" />
- Download
+ {m.templates_download()}
{/if}
</Button>
{/if}
<Button size="sm" onclick={() => handleSelect(template)} disabled={loadingStates.get(template.id)}>
{#if loadingStates.get(template.id)}
<LoaderCircleIcon class="mr-1 size-3 animate-spin" />
- Loading...
+ {m.templates_loading()}
{:else}
- Use Now
+ {m.templates_use_now()}
{/if}
</Button>
</div>
@@ -380,7 +378,7 @@
</div>
<Dialog.Footer>
- <Button variant="outline" onclick={() => (open = false)}>Cancel</Button>
+ <Button variant="outline" onclick={() => (open = false)}>{m.common_cancel()}</Button>
</Dialog.Footer>
</Dialog.Content>
</Dialog.Root>
diff --git a/frontend/src/lib/components/docker-details-cards.svelte b/frontend/src/lib/components/docker-details-cards.svelte
index 06f8d8512..ec579de02 100644
--- a/frontend/src/lib/components/docker-details-cards.svelte
+++ b/frontend/src/lib/components/docker-details-cards.svelte
@@ -5,6 +5,8 @@
import DockerIcon from '$lib/icons/docker-icon.svelte';
import type { Component } from 'svelte';
import type { IconProps } from '@lucide/svelte';
+ import { m } from '$lib/paraglide/messages';
+
const DockerIconTyped = DockerIcon as unknown as Component<IconProps, {}, ''>;
type DockerInfo =
@@ -17,7 +19,7 @@
| undefined;
let {
- title = 'Docker Details',
+ title = m.dashboard_docker_details_title(),
isLoadingDockerInfo = false,
isLoadingStats = false,
isLoadingImages = false,
@@ -47,38 +49,43 @@
<div class="grid grid-cols-1 gap-4 md:grid-cols-3">
<GradientFrameCard
class="w-full"
- title="Docker Engine"
+ title={m.docker_engine_title()}
icon={DockerIconTyped}
color="blue"
loading={isLoadingDockerInfo}
rightBadge={dockerInfo?.version ?? null}
- subtitle={!isLoadingDockerInfo ? `${dockerInfo?.os || 'Unknown OS'} • ${dockerInfo?.architecture || 'Unknown arch'}` : null}
+ subtitle={!isLoadingDockerInfo
+ ? m.docker_engine_subtitle({
+ os: dockerInfo?.os ?? m.common_unknown(),
+ arch: dockerInfo?.architecture ?? m.common_unknown()
+ })
+ : null}
/>
<GradientFrameCard
class="w-full"
- title="Containers"
+ title={m.containers_title()}
icon={BoxIcon}
color="emerald"
loading={isLoadingStats}
- rightBadge={!isLoadingStats ? `${containersRunning} running` : null}
+ rightBadge={!isLoadingStats ? m.docker_containers_running_badge({ count: containersRunning }) : null}
>
{#if !isLoadingStats}
<div class="text-muted-foreground mt-1 flex flex-wrap items-center gap-2 text-xs">
- <span class="bg-muted rounded-md px-1.5 py-0.5">total {totalContainers}</span>
- <span class="bg-muted rounded-md px-1.5 py-0.5">stopped {stoppedContainers}</span>
+ <span class="bg-muted rounded-md px-1.5 py-0.5">{m.docker_containers_total_badge({ count: totalContainers })}</span>
+ <span class="bg-muted rounded-md px-1.5 py-0.5">{m.docker_containers_stopped_badge({ count: stoppedContainers })}</span>
</div>
{/if}
</GradientFrameCard>
<GradientFrameCard
class="w-full"
- title="Images"
+ title={m.images_title()}
icon={HardDriveIcon}
color="purple"
loading={isLoadingImages}
rightBadge={!isLoadingImages ? imagesTotal : null}
- subtitle={!isLoadingImages ? 'Total images discovered' : null}
+ subtitle={!isLoadingImages ? m.docker_images_subtitle() : null}
/>
</div>
</section>
diff --git a/frontend/src/lib/components/error.svelte b/frontend/src/lib/components/error.svelte
index bafc8bdbd..76b194055 100644
--- a/frontend/src/lib/components/error.svelte
+++ b/frontend/src/lib/components/error.svelte
@@ -1,14 +1,15 @@
<script lang="ts">
import { Button } from '$lib/components/ui/button';
import CircleXIcon from '@lucide/svelte/icons/circle-x';
+ import { m } from '$lib/paraglide/messages';
let {
message,
status,
- title = 'Uh‑oh, something went wrong',
+ title = m.error_generic(),
showButton = true,
actionHref = '/dashboard',
- actionLabel = 'Go to Dashboard'
+ actionLabel = m.error_go_to_dashboard()
}: {
message: string;
status?: number;
diff --git a/frontend/src/lib/components/form/select-with-label.svelte b/frontend/src/lib/components/form/select-with-label.svelte
index 660d79a56..9073e2643 100644
--- a/frontend/src/lib/components/form/select-with-label.svelte
+++ b/frontend/src/lib/components/form/select-with-label.svelte
@@ -1,6 +1,7 @@
<script lang="ts">
import { Label } from '$lib/components/ui/label';
import * as Select from '$lib/components/ui/select/index.js';
+ import { m } from '$lib/paraglide/messages';
let {
id,
@@ -9,7 +10,7 @@
label,
description,
disabled = false,
- placeholder = 'Select an option',
+ placeholder = m.common_select_option(),
options = [],
groupLabel,
onValueChange
@@ -30,7 +31,7 @@
</script>
<div class="grid gap-2">
- <Label for={id} class="text-sm leading-none font-medium">
+ <Label for={id} class="text-sm font-medium leading-none">
{label}
</Label>
diff --git a/frontend/src/lib/components/image-update-item.svelte b/frontend/src/lib/components/image-update-item.svelte
index 940b17e43..5bd3921d4 100644
--- a/frontend/src/lib/components/image-update-item.svelte
+++ b/frontend/src/lib/components/image-update-item.svelte
@@ -12,6 +12,7 @@
import { environmentAPI } from '$lib/services/api';
import { toast } from 'svelte-sonner';
import type { ImageUpdateData } from '$lib/types/image.type';
+ import { m } from '$lib/paraglide/messages';
interface Props {
updateInfo?: ImageUpdateData | undefined;
@@ -42,24 +43,25 @@
type AuthBadge = { label: string; classes: string };
function authBadge(): AuthBadge | null {
- const m = localUpdateInfo?.authMethod;
- if (!m) return null;
+ const mth = localUpdateInfo?.authMethod;
+ if (!mth) return null;
- if (m === 'credential') {
+ if (mth === 'credential') {
+ const user = localUpdateInfo?.authUsername;
return {
- label: `Credential${localUpdateInfo?.authUsername ? ` (${localUpdateInfo.authUsername})` : ''}`,
+ label: user ? m.image_update_auth_credential_with_user({ username: user }) : m.image_update_auth_credential(),
classes: 'border-amber-200/60 text-amber-800 dark:text-amber-300 bg-amber-100 dark:bg-amber-900/30'
};
}
- if (m === 'anonymous') {
+ if (mth === 'anonymous') {
return {
- label: 'Anonymous',
+ label: m.image_update_auth_anonymous(),
classes: 'border-slate-200/60 text-slate-700 dark:text-slate-300 bg-slate-100 dark:bg-slate-900/40'
};
}
- if (m === 'none') {
+ if (mth === 'none') {
return {
- label: 'No Auth',
+ label: m.image_update_auth_none(),
classes: 'border-gray-200/60 text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-900/40'
};
}
@@ -70,7 +72,7 @@
if (localUpdateInfo?.currentVersion && localUpdateInfo.currentVersion.trim() !== '') {
return localUpdateInfo.currentVersion;
}
- return tag || 'Unknown';
+ return tag || m.common_unknown();
}
function displayLatestVersion(): string | null {
@@ -93,14 +95,14 @@
if (result) {
if (result.error) {
localUpdateInfo = result;
- toast.error(result.error);
+ toast.error(result.error || m.images_update_check_failed());
} else {
localUpdateInfo = result;
onUpdated?.(result);
- toast.success('Update check completed');
+ toast.success(m.images_update_check_completed());
}
} else {
- toast.error('Update check failed');
+ toast.error(m.images_update_check_failed());
}
} catch (error) {
console.error('Error checking update:', error);
@@ -113,9 +115,9 @@
latestDigest: '',
checkTime: new Date().toISOString(),
responseTimeMs: 0,
- error: (error as Error)?.message || 'Failed to check for updates'
+ error: (error as Error)?.message || m.images_update_check_failed()
};
- toast.error(localUpdateInfo?.error || 'Failed to check for updates');
+ toast.error(localUpdateInfo?.error || m.images_update_check_failed());
} finally {
isChecking = false;
}
@@ -126,20 +128,21 @@
color: string;
description: string;
} {
- if (u.error) return { level: 'Error', color: 'text-red-500', description: 'Failed to check updates' };
- if (!u.hasUpdate) return { level: 'None', color: 'text-green-500', description: 'Image is up to date' };
+ if (u.error) return { level: 'Error', color: 'text-red-500', description: m.image_update_could_not_query_registry() };
+ if (!u.hasUpdate) return { level: 'None', color: 'text-green-500', description: m.image_update_up_to_date_desc() };
if (u.updateType === 'digest')
return {
- level: 'Security/Bug Fix',
+ level: m.image_update_digest_title(),
color: 'text-blue-500',
- description: 'Digest update - likely security or bug fixes'
+ description: m.image_update_digest_desc()
};
if (u.updateType === 'tag') {
- let description = 'Update available';
- if (u.latestVersion) description = `Update to ${u.latestVersion} available`;
- return { level: 'Version Update', color: 'text-yellow-500', description };
+ const desc = u.latestVersion
+ ? m.image_update_tag_description_new({ version: u.latestVersion })
+ : m.image_update_tag_description();
+ return { level: m.image_update_version_title(), color: 'text-yellow-500', description: desc };
}
- return { level: 'Unknown', color: 'text-gray-500', description: 'Update type unknown' };
+ return { level: m.common_unknown(), color: 'text-gray-500', description: m.image_update_unknown_type() };
}
</script>
@@ -177,16 +180,16 @@
<TriangleAlertIcon class="size-5 text-white" />
</div>
<div class="flex-1">
- <div class="text-sm font-semibold text-red-900 dark:text-red-100">Update Check Failed</div>
- <div class="text-xs text-red-700/80 dark:text-red-300/80">Could not query the registry</div>
+ <div class="text-sm font-semibold text-red-900 dark:text-red-100">{m.image_update_check_failed_title()}</div>
+ <div class="text-xs text-red-700/80 dark:text-red-300/80">{m.image_update_could_not_query_registry()}</div>
{#if badge}
- + <div class="mt-2">
+ <div class="mt-2">
<div
class={'inline-flex items-center gap-1 whitespace-nowrap rounded-full border px-2 py-0.5 text-[10px] font-medium ' +
badge.classes}
>
<KeyRoundIcon class="size-3 opacity-80" />
- <span>Auth: {badge.label}</span>
+ <span>{m.image_update_auth({ label: badge.label })}</span>
</div>
</div>
{/if}
@@ -196,12 +199,12 @@
<div class="bg-white/90 p-4 dark:bg-gray-950/90">
<div class="space-y-3">
<div class="text-xs text-gray-600 dark:text-gray-300">
- <span class="font-medium">Error:</span>
+ <span class="font-medium">{m.image_update_error_label()}</span>
<span class="ml-1 break-words">{localUpdateInfo.error}</span>
</div>
{#if repo && tag}
<div class="text-xs text-gray-500 dark:text-gray-400">
- Image: <span class="font-mono">{repo}:{tag}</span>
+ {m.image_update_image_label()} <span class="font-mono">{repo}:{tag}</span>
</div>
{/if}
</div>
@@ -217,8 +220,10 @@
<CircleCheckIcon class="size-5 text-white" />
</div>
<div class="flex-1">
- <div class="text-sm font-semibold text-emerald-900 dark:text-emerald-100">Up to Date</div>
- <div class="text-xs text-emerald-700/80 dark:text-emerald-300/80">No updates available</div>
+ <div class="text-sm font-semibold text-emerald-900 dark:text-emerald-100">
+ {m.image_update_up_to_date_title()}
+ </div>
+ <div class="text-xs text-emerald-700/80 dark:text-emerald-300/80">{m.image_update_up_to_date_desc()}</div>
{#if badge}
<div class="mt-2">
<div
@@ -226,7 +231,7 @@
badge.classes}
>
<KeyRoundIcon class="size-3 opacity-80" />
- <span>Auth: {badge.label}</span>
+ <span>{m.image_update_auth({ label: badge.label })}</span>
</div>
</div>
{/if}
@@ -236,12 +241,13 @@
<div class="bg-white/90 p-4 dark:bg-gray-950/90">
<div class="text-center">
<div class="mb-2 text-xs text-gray-600 dark:text-gray-400">
- Running <span class="rounded bg-gray-100 px-1.5 py-0.5 font-mono text-xs font-medium dark:bg-gray-800"
+ {m.image_update_running_prefix()}
+ <span class="rounded bg-gray-100 px-1.5 py-0.5 font-mono text-xs font-medium dark:bg-gray-800"
>{displayCurrentVersion()}</span
>
</div>
<div class="text-xs leading-relaxed text-gray-500 dark:text-gray-400">
- This image is running the latest available version.
+ {m.image_update_up_to_date_desc()}
</div>
</div>
</div>
@@ -256,8 +262,8 @@
<CircleArrowUpIcon class="size-5 text-white" />
</div>
<div class="flex-1">
- <div class="text-sm font-semibold text-blue-900 dark:text-blue-100">Digest Update</div>
- <div class="text-xs text-blue-700/80 dark:text-blue-300/80">Security or bug fixes available</div>
+ <div class="text-sm font-semibold text-blue-900 dark:text-blue-100">{m.image_update_digest_title()}</div>
+ <div class="text-xs text-blue-700/80 dark:text-blue-300/80">{m.image_update_digest_desc()}</div>
{#if badge}
<div class="mt-2">
<div
@@ -265,7 +271,7 @@
badge.classes}
>
<KeyRoundIcon class="size-3 opacity-80" />
- <span>Auth: {badge.label}</span>
+ <span>{m.image_update_auth({ label: badge.label })}</span>
</div>
</div>
{/if}
@@ -278,7 +284,7 @@
<div class="flex items-center justify-between">
<div class="flex items-center gap-1.5 text-gray-500 dark:text-gray-400">
<PackageIcon class="size-3" />
- <span>Current</span>
+ <span>{m.image_update_current_label()}</span>
</div>
<span class="rounded bg-gray-100 px-1.5 py-0.5 font-mono font-medium dark:bg-gray-800"
>{displayCurrentVersion()}</span
@@ -288,7 +294,7 @@
<div class="flex items-center justify-between">
<div class="flex items-center gap-1.5 text-gray-500 dark:text-gray-400">
<ArrowRightIcon class="size-3" />
- <span>Latest Digest</span>
+ <span>{m.image_update_latest_digest_label()}</span>
</div>
<span
class="rounded bg-blue-100 px-1.5 py-0.5 font-mono font-medium text-blue-700 dark:bg-blue-900/30 dark:text-blue-300"
@@ -316,8 +322,8 @@
<CircleFadingArrowUpIcon class="size-5 text-white" />
</div>
<div class="flex-1">
- <div class="text-sm font-semibold text-amber-900 dark:text-amber-100">Version Update</div>
- <div class="text-xs text-amber-700/80 dark:text-amber-300/80">New version available</div>
+ <div class="text-sm font-semibold text-amber-900 dark:text-amber-100">{m.image_update_version_title()}</div>
+ <div class="text-xs text-amber-700/80 dark:text-amber-300/80">{m.image_update_version_desc()}</div>
{#if badge}
<div class="mt-2">
<div
@@ -325,7 +331,7 @@
badge.classes}
>
<KeyRoundIcon class="size-3 opacity-80" />
- <span>Auth: {badge.label}</span>
+ <span>{m.image_update_auth({ label: badge.label })}</span>
</div>
</div>
{/if}
@@ -338,7 +344,7 @@
<div class="flex items-center justify-between">
<div class="flex items-center gap-1.5 text-gray-500 dark:text-gray-400">
<PackageIcon class="size-3" />
- <span>Current</span>
+ <span>{m.image_update_current_label()}</span>
</div>
<span class="rounded bg-gray-100 px-1.5 py-0.5 font-mono font-medium dark:bg-gray-800"
>{displayCurrentVersion()}</span
@@ -348,7 +354,7 @@
<div class="flex items-center justify-between">
<div class="flex items-center gap-1.5 text-gray-500 dark:text-gray-400">
<ArrowRightIcon class="size-3" />
- <span>Latest</span>
+ <span>{m.image_update_latest_label()}</span>
</div>
<span
class="rounded bg-amber-100 px-1.5 py-0.5 font-mono font-medium text-amber-700 dark:bg-amber-900/30 dark:text-amber-300"
@@ -376,10 +382,10 @@
>
{#if isChecking}
<LoaderCircleIcon class="size-3 animate-spin" />
- Checking...
+ {m.images_checking()}
{:else}
<RefreshCwIcon class="size-3 transition-transform group-hover:rotate-45" />
- Re-check Updates
+ {m.image_update_recheck_button()}
{/if}
</button>
</div>
@@ -392,7 +398,7 @@
<Tooltip.Provider>
<Tooltip.Root>
<Tooltip.Trigger>
- <span class="mr-2 inline-flex size-4 items-center justify-center align-middle">
+ <span class="mr-2 inline-flex size-4 items-center justify-center">
<LoaderCircleIcon class="size-4 animate-spin text-blue-400" />
</span>
</Tooltip.Trigger>
@@ -410,8 +416,8 @@
<LoaderCircleIcon class="size-5 animate-spin text-white" />
</div>
<div>
- <div class="text-sm font-semibold text-blue-900 dark:text-blue-100">Checking Updates</div>
- <div class="text-xs text-blue-700/80 dark:text-blue-300/80">Querying registry for latest version...</div>
+ <div class="text-sm font-semibold text-blue-900 dark:text-blue-100">{m.image_update_checking_title()}</div>
+ <div class="text-xs text-blue-700/80 dark:text-blue-300/80">{m.image_update_querying_registry()}</div>
</div>
</div>
</div>
@@ -457,12 +463,12 @@
<TriangleAlertIcon class="size-5 text-white" />
</div>
<div>
- <div class="text-sm font-semibold text-gray-900 dark:text-gray-100">Status Unknown</div>
+ <div class="text-sm font-semibold text-gray-900 dark:text-gray-100">{m.image_update_status_unknown()}</div>
<div class="text-xs text-gray-700/80 dark:text-gray-300/80">
{#if canCheckUpdate()}
- Click to check for updates from registry.
+ {m.image_update_click_to_check()}
{:else}
- Unable to check updates for images without proper tags.
+ {m.image_update_unable_check_tags()}
{/if}
</div>
</div>
diff --git a/frontend/src/lib/components/loading-indicator.svelte b/frontend/src/lib/components/loading-indicator.svelte
index f76a3c84c..ef45c2e6d 100644
--- a/frontend/src/lib/components/loading-indicator.svelte
+++ b/frontend/src/lib/components/loading-indicator.svelte
@@ -1,4 +1,5 @@
<script lang="ts">
+ import { m } from '$lib/paraglide/messages';
let {
active = false,
delay = 80,
@@ -40,13 +41,20 @@
</script>
{#if visible}
- <div class={`pointer-events-none fixed inset-x-0 top-0 z-[9999] ${thickness} ${className}`} role="progressbar" aria-busy="true">
+ <div
+ class={`pointer-events-none fixed inset-x-0 top-0 z-[9999] ${thickness} ${className}`}
+ role="progressbar"
+ aria-busy="true"
+ aria-label={m.common_loading()}
+ >
<div class="relative h-full w-full overflow-hidden">
<div class="bg-primary/25 absolute inset-0"></div>
<span class="bar absolute inset-y-0 w-1/3"></span>
- <span class="peg absolute top-0 right-0 h-full w-3"></span>
+ <span class="peg absolute right-0 top-0 h-full w-3"></span>
+
+ <span class="sr-only">{m.common_loading()}</span>
</div>
</div>
{/if}
diff --git a/frontend/src/lib/components/log-viewer.svelte b/frontend/src/lib/components/log-viewer.svelte
index 4ed3cd231..272b40f39 100644
--- a/frontend/src/lib/components/log-viewer.svelte
+++ b/frontend/src/lib/components/log-viewer.svelte
@@ -3,6 +3,7 @@
import { browser, dev } from '$app/environment';
import { get } from 'svelte/store';
import { environmentStore } from '$lib/stores/environment.store';
+ import { m } from '$lib/paraglide/messages';
interface LogEntry {
timestamp: string;
@@ -45,6 +46,7 @@
let isStreaming = $state(false);
let error: string | null = $state(null);
let eventSource: EventSource | null = null;
+ const humanType = type === 'stack' ? m.common_stack() : m.common_container();
const DOCKER_TS_ISO_RE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z?\s*/;
const DOCKER_TS_SLASH_RE = /^\d{4}\/\d{2}\/\d{2}\s+\d{2}:\d{2}:\d{2}\s*/;
@@ -141,29 +143,29 @@
};
eventSource.onopen = () => {
- if (dev) console.log(`${type} log stream connected`);
+ if (dev) console.log(m.log_viewer_connected({ type: humanType }));
error = null;
};
eventSource.onerror = (event) => {
console.error('Log stream error:', event);
- error = `Connection to ${type} log stream lost`;
+ error = m.log_stream_connection_lost({ type: humanType });
isStreaming = false;
if (eventSource?.readyState === EventSource.CLOSED) {
- error = `${type} log stream was closed by server`;
+ error = m.log_stream_closed_by_server({ type: humanType });
}
};
} catch (err) {
console.error('Failed to start log stream:', err);
- error = `Failed to connect to ${type} log stream`;
+ error = m.log_stream_failed_connect({ type: humanType });
isStreaming = false;
}
}
export function stopLogStream() {
if (eventSource) {
- if (dev) console.log(`Stopping ${type} log stream`);
+ if (dev) console.log(m.log_viewer_stopping({ type: humanType }));
eventSource.close();
eventSource = null;
}
@@ -280,11 +282,11 @@
{#if logs.length === 0}
<div class="p-4 text-center text-gray-500">
{#if !containerId}
- No {type} selected
+ {m.log_viewer_no_selection({ type: humanType })}
{:else if !isStreaming}
- No logs available. Start streaming to see logs.
+ {m.log_viewer_no_logs_available()}
{:else}
- Waiting for logs...
+ {m.log_viewer_waiting_for_logs()}
{/if}
</div>
{:else}
@@ -306,7 +308,7 @@
</span>
{/if}
- <span class="flex-1 break-words whitespace-pre-wrap text-gray-300">
+ <span class="flex-1 whitespace-pre-wrap break-words text-gray-300">
{log.message}
</span>
</div>
diff --git a/frontend/src/lib/components/meter-metric.svelte b/frontend/src/lib/components/meter-metric.svelte
index f944c4a59..f0a8c49a4 100644
--- a/frontend/src/lib/components/meter-metric.svelte
+++ b/frontend/src/lib/components/meter-metric.svelte
@@ -2,6 +2,7 @@
import Meter from '$lib/components/ui/meter/meter.svelte';
import type { Icon as IconType } from '@lucide/svelte';
import LoaderCircleIcon from '@lucide/svelte/icons/loader-circle';
+ import { m } from '$lib/paraglide/messages';
interface Props {
title: string;
@@ -34,8 +35,8 @@
<div
class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-border/40 group relative
isolate overflow-hidden rounded-xl border
- shadow-sm ring-1 backdrop-blur-sm
- transition-all duration-300 ring-inset hover:shadow-md dark:shadow-none"
+ shadow-sm ring-1 ring-inset
+ backdrop-blur-sm transition-all duration-300 hover:shadow-md dark:shadow-none"
>
<div class="bg-gradient-to-br from-gray-50 to-slate-50/30 p-4 dark:from-gray-900/20 dark:to-slate-900/10">
<div class="flex items-center gap-3">
@@ -65,7 +66,7 @@
<div class="bg-muted mx-auto h-8 w-16 animate-pulse rounded"></div>
{:else}
<div class="text-2xl font-bold text-gray-900 dark:text-gray-100">
- {currentValue !== undefined ? formatValue(currentValue) : '--'}
+ {currentValue !== undefined ? formatValue(currentValue) : m.common_na()}
</div>
{/if}
</div>
@@ -84,8 +85,8 @@
{#if loading}
<div class="bg-muted mx-auto h-3 w-20 animate-pulse rounded"></div>
{:else}
- <div class="text-primary dark:text-primary text-center text-xs leading-relaxed font-medium">
- {footerText ?? `${percentage.toFixed(1)}% of resources being used`}
+ <div class="text-primary dark:text-primary text-center text-xs font-medium leading-relaxed">
+ {footerText ?? m.meter_footer_usage({ percent: percentage.toFixed(1) })}
</div>
{/if}
</div>
diff --git a/frontend/src/lib/components/progress-popover.svelte b/frontend/src/lib/components/progress-popover.svelte
index a28117d59..cd502dccd 100644
--- a/frontend/src/lib/components/progress-popover.svelte
+++ b/frontend/src/lib/components/progress-popover.svelte
@@ -6,11 +6,12 @@
import DownloadIcon from '@lucide/svelte/icons/download';
import type { Icon as IconType } from '@lucide/svelte';
import { type Snippet } from 'svelte';
+ import { m } from '$lib/paraglide/messages';
let {
open = $bindable(false),
- title = 'Progress',
- subtitle = 'Working…',
+ title = m.progress_title(),
+ subtitle = m.progress_subtitle(),
progress = $bindable(0),
statusText = '',
error = '',
@@ -48,7 +49,9 @@
}
const percent = $derived(Math.round(progress));
- const displaySubtitle = $derived(error ? subtitle : progress === 100 ? 'Pull Completed' : subtitle);
+ const displaySubtitle = $derived(
+ error ? (subtitle ?? m.common_unknown()) : progress === 100 ? m.progress_pull_completed() : (subtitle ?? m.common_unknown())
+ );
</script>
<Popover.Root bind:open onOpenChange={handleOpenChange}>
@@ -68,7 +71,7 @@
{/if}
</div>
<div>
- <h4 class="text-sm font-semibold">{title}</h4>
+ <h4 class="text-sm font-semibold">{title ?? m.common_unknown()}</h4>
<p class="text-muted-foreground text-xs">{displaySubtitle}</p>
</div>
</div>
@@ -80,19 +83,19 @@
{:else}
<div class="space-y-2">
<div class="flex justify-between text-xs">
- <span class="text-muted-foreground truncate pr-2">{statusText || 'Preparing...'}</span>
+ <span class="text-muted-foreground truncate pr-2">{statusText || m.progress_preparing()}</span>
<span class="text-muted-foreground shrink-0">{percent}%</span>
</div>
<Progress value={progress} max={100} class="h-2 w-full" />
{#if loading}
- <p class="text-muted-foreground text-xs">This may take a while depending on size and connection.</p>
+ <p class="text-muted-foreground text-xs">{m.progress_in_progress_note()}</p>
{/if}
</div>
{/if}
{#if !loading && progress === 100 && !error}
<div class="rounded-md bg-green-50 p-3 dark:bg-green-950/20">
- <p class="text-sm text-green-600 dark:text-green-400">✓ Completed successfully!</p>
+ <p class="text-sm text-green-600 dark:text-green-400">{m.progress_completed_success()}</p>
</div>
{/if}
</div>
diff --git a/frontend/src/lib/components/quick-actions.svelte b/frontend/src/lib/components/quick-actions.svelte
index 3446aaaaf..0e117b34a 100644
--- a/frontend/src/lib/components/quick-actions.svelte
+++ b/frontend/src/lib/components/quick-actions.svelte
@@ -3,6 +3,7 @@
import CirclePlayIcon from '@lucide/svelte/icons/circle-play';
import CircleStopIcon from '@lucide/svelte/icons/circle-stop';
import Trash2Icon from '@lucide/svelte/icons/trash-2';
+ import { m } from '$lib/paraglide/messages';
type IsLoadingFlags = {
starting: boolean;
@@ -36,7 +37,7 @@
</script>
<section class={className}>
- <h2 class="mb-3 text-lg font-semibold tracking-tight">Quick Actions</h2>
+ <h2 class="mb-3 text-lg font-semibold tracking-tight">{m.quick_actions_title()}</h2>
{#if loadingDockerInfo}
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
@@ -54,7 +55,7 @@
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
<div class="group rounded-xl bg-gradient-to-br from-emerald-500/20 to-emerald-500/0 p-[1px]">
<button
- class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
+ class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
disabled={!dockerInfo || stoppedContainers === 0 || isLoading.starting || isLoading.stopping || isLoading.pruning}
onclick={onStartAll}
aria-busy={isLoading.starting}
@@ -72,9 +73,9 @@
></div>
</div>
<div class="flex-1 text-left">
- <div class="text-sm font-medium">Start All Stopped</div>
+ <div class="text-sm font-medium">{m.quick_actions_start_all()}</div>
<div class="text-muted-foreground text-xs">
- <span class="rounded-full border px-1.5 py-0.5">{stoppedContainers}</span> containers
+ <span class="rounded-full border px-1.5 py-0.5">{m.quick_actions_containers({ count: stoppedContainers })}</span>
</div>
</div>
</button>
@@ -82,7 +83,7 @@
<div class="group rounded-xl bg-gradient-to-br from-sky-500/20 to-sky-500/0 p-[1px]">
<button
- class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
+ class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
disabled={!dockerInfo ||
(dockerInfo?.containersRunning ?? 0) === 0 ||
isLoading.starting ||
@@ -104,9 +105,9 @@
></div>
</div>
<div class="flex-1 text-left">
- <div class="text-sm font-medium">Stop All Running</div>
+ <div class="text-sm font-medium">{m.quick_actions_stop_all()}</div>
<div class="text-muted-foreground text-xs">
- <span class="rounded-full border px-1.5 py-0.5">{totalContainers}</span> containers
+ <span class="rounded-full border px-1.5 py-0.5">{m.quick_actions_containers({ count: totalContainers })}</span>
</div>
</div>
</button>
@@ -114,7 +115,7 @@
<div class="group rounded-xl bg-gradient-to-br from-red-500/20 to-red-500/0 p-[1px]">
<button
- class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
+ class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
disabled={!dockerInfo || isLoading.starting || isLoading.stopping || isLoading.pruning}
onclick={onOpenPruneDialog}
aria-busy={isLoading.pruning}
@@ -132,8 +133,8 @@
></div>
</div>
<div class="flex-1 text-left">
- <div class="text-sm font-medium">Prune System</div>
- <div class="text-muted-foreground text-xs">Clean unused resources</div>
+ <div class="text-sm font-medium">{m.quick_actions_prune_system()}</div>
+ <div class="text-muted-foreground text-xs">{m.quick_actions_prune_description()}</div>
</div>
</button>
</div>
diff --git a/frontend/src/lib/components/sheets/add-template-registry-sheet.svelte b/frontend/src/lib/components/sheets/add-template-registry-sheet.svelte
index b732fc98b..699ecab4d 100644
--- a/frontend/src/lib/components/sheets/add-template-registry-sheet.svelte
+++ b/frontend/src/lib/components/sheets/add-template-registry-sheet.svelte
@@ -10,6 +10,7 @@
import { createForm, preventDefault } from '$lib/utils/form.utils';
import { templateAPI } from '$lib/services/api';
import * as Alert from '$lib/components/ui/alert/index.js';
+ import { m } from '$lib/paraglide/messages';
type TemplateRegistryFormProps = {
open: boolean;
@@ -20,7 +21,7 @@
let { open = $bindable(false), onSubmit, isLoading }: TemplateRegistryFormProps = $props();
const formSchema = z.object({
- url: z.url().min(1, 'Registry URL is required'),
+ url: z.url().min(1, m.templates_registry_url_required()),
enabled: z.boolean().default(true)
});
@@ -43,7 +44,7 @@
const registryData = await templateAPI.fetchRegistry(data.url);
if (!registryData.name || !registryData.templates || !Array.isArray(registryData.templates)) {
- throw new Error('Invalid registry format: missing required fields (name, templates)');
+ throw new Error(m.templates_registry_invalid_format());
}
const registryPayload = {
@@ -54,7 +55,7 @@
onSubmit(registryPayload);
} catch (error) {
- submitError = error instanceof Error ? error.message : 'Failed to validate registry URL';
+ submitError = error instanceof Error ? error.message : m.templates_registry_validate_failed();
}
}
@@ -74,33 +75,33 @@
<GlobeIcon class="text-primary size-5" />
</div>
<div>
- <Sheet.Title class="text-xl font-semibold">Add Template Registry</Sheet.Title>
- <Sheet.Description class="text-muted-foreground mt-1 text-sm"
- >Add a remote template registry to access community templates.</Sheet.Description
- >
+ <Sheet.Title class="text-xl font-semibold">{m.templates_add_registry_title()}</Sheet.Title>
+ <Sheet.Description class="text-muted-foreground mt-1 text-sm">
+ {m.templates_add_registry_description()}
+ </Sheet.Description>
</div>
</div>
</Sheet.Header>
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">
<FormInput
- label="Registry URL *"
+ label={m.templates_registry_url_label()}
type="text"
- placeholder="https://templates.arcane.ofkm.dev/registry.json"
- description="URL to the registry JSON manifest"
+ placeholder={m.templates_registry_url_placeholder()}
+ description={m.templates_registry_url_description()}
bind:input={$inputs.url}
/>
<SwitchWithLabel
id="enabledSwitch"
- label="Enable Registry"
- description="Enable this registry to fetch templates"
+ label={m.templates_enable_registry_label()}
+ description={m.templates_enable_registry_description()}
bind:checked={$inputs.enabled.value}
/>
{#if submitError}
<Alert.Root class="border-red-200 bg-red-50 dark:border-red-800 dark:bg-red-950">
<AlertCircleIcon class="size-4" />
- <Alert.Title>Validation Error</Alert.Title>
+ <Alert.Title>{m.templates_registry_validation_error_title()}</Alert.Title>
<Alert.Description class="text-sm">{submitError}</Alert.Description>
</Alert.Root>
{/if}
@@ -113,13 +114,13 @@
onclick={() => (open = false)}
disabled={isLoading}
>
- Cancel
+ {m.common_cancel()}
</Button>
<Button type="submit" class="arcane-button-create flex-1" disabled={isLoading}>
{#if isLoading}
<LoaderCircleIcon class="mr-2 size-4 animate-spin" />
{/if}
- Add Registry
+ {m.templates_add_registry_button()}
</Button>
</Sheet.Footer>
</form>
diff --git a/frontend/src/lib/components/sheets/container-registry-sheet.svelte b/frontend/src/lib/components/sheets/container-registry-sheet.svelte
index a1ecaa17a..7193f91c4 100644
--- a/frontend/src/lib/components/sheets/container-registry-sheet.svelte
+++ b/frontend/src/lib/components/sheets/container-registry-sheet.svelte
@@ -9,6 +9,7 @@
import type { ContainerRegistryCreateDto, ContainerRegistryUpdateDto } from '$lib/types/container-registry.type';
import { z } from 'zod/v4';
import { createForm, preventDefault } from '$lib/utils/form.utils';
+ import { m } from '$lib/paraglide/messages';
type ContainerRegistryFormProps = {
open: boolean;
@@ -22,8 +23,8 @@
let isEditMode = $derived(!!registryToEdit);
const formSchema = z.object({
- url: z.string().min(1, 'Registry URL is required'),
- username: z.string().min(1, 'Username is required'),
+ url: z.string().min(1, m.registries_url_required()),
+ username: z.string().min(1, m.common_username_required()),
token: z.string().optional(),
description: z.string().optional(),
insecure: z.boolean().default(false),
@@ -57,46 +58,51 @@
</div>
<div>
<Sheet.Title class="text-xl font-semibold">
- {isEditMode ? 'Edit' : 'Add'} Container Registry
+ {isEditMode ? m.registries_edit_title() : m.registries_add_button()}
</Sheet.Title>
<Sheet.Description class="text-muted-foreground mt-1 text-sm">
- {isEditMode ? 'Update the details for this container registry.' : 'Enter the details for the new container registry.'}
+ {isEditMode ? m.registries_edit_description() : m.registries_add_description()}
</Sheet.Description>
</div>
</div>
</Sheet.Header>
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">
<FormInput
- label="Registry URL *"
+ label={m.registries_url()}
type="text"
- placeholder="e.g., docker.io, ghcr.io, gcr.io, quay.io"
- description="Leave empty or use 'docker.io' for Docker Hub"
+ placeholder={m.registries_url_placeholder()}
+ description={m.registries_url_description()}
bind:input={$inputs.url}
/>
- <FormInput label="Username *" type="text" description="Your registry username" bind:input={$inputs.username} />
<FormInput
- label="Token *"
+ label={m.common_username()}
+ type="text"
+ description={m.common_username_required()}
+ bind:input={$inputs.username}
+ />
+ <FormInput
+ label={m.registries_token_label()}
type="password"
- placeholder={isEditMode ? 'Leave empty to keep current token' : 'Your registry password or token'}
- description="Use a Personal Access Token or your password if the registry supports it. "
+ placeholder={isEditMode ? m.registries_token_keep_placeholder() : m.registries_token_placeholder()}
+ description={m.registries_token_description()}
bind:input={$inputs.token}
/>
<FormInput
- label="Description"
+ label={m.common_description()}
type="text"
- placeholder="Optional description for this registry"
+ placeholder={m.registries_description_placeholder()}
bind:input={$inputs.description}
/>
<SwitchWithLabel
id="isEnabledSwitch"
- label="Enabled"
- description="Enable this registry for authentication"
+ label={m.common_enabled()}
+ description={m.registries_enabled_description()}
bind:checked={$inputs.enabled.value}
/>
<SwitchWithLabel
id="insecureSwitch"
- label="Allow Insecure Connection"
- description="Allow HTTP connections"
+ label={m.registries_allow_insecure_label()}
+ description={m.registries_allow_insecure_description()}
bind:checked={$inputs.insecure.value}
/>
@@ -106,13 +112,16 @@
class="arcane-button-cancel flex-1"
variant="outline"
onclick={() => (open = false)}
- disabled={isLoading}>Cancel</Button
+ disabled={isLoading}
>
+ {m.common_cancel()}
+ </Button>
+
<Button type="submit" class="arcane-button-create flex-1" disabled={isLoading}>
{#if isLoading}
<LoaderCircleIcon class="mr-2 size-4 animate-spin" />
{/if}
- {isEditMode ? 'Save Changes' : 'Add Registry'}
+ {isEditMode ? m.registries_save_changes() : m.registries_add_button()}
</Button>
</Sheet.Footer>
</form>
diff --git a/frontend/src/lib/components/sheets/create-container-sheet.svelte b/frontend/src/lib/components/sheets/create-container-sheet.svelte
index fdf4202af..e9d84e3ae 100644
--- a/frontend/src/lib/components/sheets/create-container-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-container-sheet.svelte
@@ -15,6 +15,7 @@
import { z } from 'zod/v4';
import { createForm, preventDefault } from '$lib/utils/form.utils';
import SelectWithLabel from '../form/select-with-label.svelte';
+ import { m } from '$lib/paraglide/messages';
type CreateContainerFormProps = {
open: boolean;
@@ -35,15 +36,15 @@
}: CreateContainerFormProps = $props();
const restartPolicies = [
- { value: 'no', label: 'No' },
- { value: 'always', label: 'Always' },
- { value: 'unless-stopped', label: 'Unless Stopped' },
- { value: 'on-failure', label: 'On Failure' }
+ { value: 'no', label: m.restart_policy_no() },
+ { value: 'always', label: m.restart_policy_always() },
+ { value: 'unless-stopped', label: m.restart_policy_unless_stopped() },
+ { value: 'on-failure', label: m.restart_policy_on_failure() }
];
const formSchema = z.object({
- containerName: z.string().min(1, 'Container name is required'),
- image: z.string().min(1, 'Image is required'),
+ containerName: z.string().min(1, m.container_name_required()),
+ image: z.string().min(1, m.container_image_required()),
command: z.string().optional().default(''),
workingDir: z.string().optional().default(''),
user: z.string().optional().default(''),
@@ -288,10 +289,8 @@
<ContainerIcon class="text-primary size-5" />
</div>
<div>
- <Sheet.Title class="text-xl font-semibold">Create New Container</Sheet.Title>
- <Sheet.Description class="text-muted-foreground mt-1 text-sm"
- >Configure and create a new Docker container.</Sheet.Description
- >
+ <Sheet.Title class="text-xl font-semibold">{m.create_container_title()}</Sheet.Title>
+ <Sheet.Description class="text-muted-foreground mt-1 text-sm">{m.create_container_description()}</Sheet.Description>
</div>
</div>
</div>
@@ -300,12 +299,12 @@
<div class="flex-1">
<Tabs.Root value="basic" class="flex h-full flex-col">
<Tabs.List class="bg-muted/30 grid w-full shrink-0 grid-cols-6 border-b">
- <Tabs.Trigger value="basic" class="py-3">Basic</Tabs.Trigger>
- <Tabs.Trigger value="environment" class="py-3">Environment</Tabs.Trigger>
- <Tabs.Trigger value="ports" class="py-3">Ports</Tabs.Trigger>
- <Tabs.Trigger value="volumes" class="py-3">Volumes</Tabs.Trigger>
- <Tabs.Trigger value="network" class="py-3">Network & Security</Tabs.Trigger>
- <Tabs.Trigger value="advanced" class="py-3">Advanced</Tabs.Trigger>
+ <Tabs.Trigger value="basic" class="py-3">{m.tabs_basic()}</Tabs.Trigger>
+ <Tabs.Trigger value="environment" class="py-3">{m.tabs_environment()}</Tabs.Trigger>
+ <Tabs.Trigger value="ports" class="py-3">{m.tabs_ports()}</Tabs.Trigger>
+ <Tabs.Trigger value="volumes" class="py-3">{m.tabs_volumes()}</Tabs.Trigger>
+ <Tabs.Trigger value="network" class="py-3">{m.tabs_network_security()}</Tabs.Trigger>
+ <Tabs.Trigger value="advanced" class="py-3">{m.tabs_advanced()}</Tabs.Trigger>
</Tabs.List>
<div class="flex-1 overflow-y-auto">
@@ -315,11 +314,11 @@
<Tabs.Content value="basic" class="mt-0 space-y-8 p-6">
<div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
<div class="space-y-3">
- <Label for="container-name" class="text-sm font-medium">Container Name *</Label>
+ <Label for="container-name" class="text-sm font-medium">{m.container_name_label()}</Label>
<Input
id="container-name"
type="text"
- placeholder="e.g., my-app-container"
+ placeholder={m.container_name_placeholder()}
disabled={isLoading}
bind:value={$inputs.containerName.value}
class={$inputs.containerName.error ? 'border-destructive' : ''}
@@ -327,15 +326,15 @@
{#if $inputs.containerName.error}
<p class="text-destructive mt-1 text-xs">{$inputs.containerName.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">Unique name for the container</p>
+ <p class="text-muted-foreground text-xs">{m.container_name_description()}</p>
</div>
<div class="space-y-3">
- <Label for="image" class="text-sm font-medium">Image *</Label>
+ <Label for="image" class="text-sm font-medium">{m.container_image_label()}</Label>
<Input
id="image"
type="text"
- placeholder="e.g., nginx:latest"
+ placeholder={m.container_image_placeholder()}
disabled={isLoading}
bind:value={$inputs.image.value}
class={$inputs.image.error ? 'border-destructive' : ''}
@@ -343,16 +342,16 @@
{#if $inputs.image.error}
<p class="text-destructive mt-1 text-xs">{$inputs.image.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">Docker image to use for the container</p>
+ <p class="text-muted-foreground text-xs">{m.container_image_description()}</p>
</div>
</div>
<div class="space-y-3">
<FormInput
- label="Command"
+ label={m.container_command_label()}
type="text"
- placeholder="e.g., /bin/bash -c 'echo hello'"
- description="Command to run in the container"
+ placeholder={m.container_command_placeholder()}
+ description={m.container_command_description()}
disabled={isLoading}
bind:input={$inputs.command}
/>
@@ -361,10 +360,10 @@
<div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
<div class="space-y-3">
<FormInput
- label="Working Directory"
+ label={m.container_working_directory_label()}
type="text"
- placeholder="/app"
- description="Working directory inside the container"
+ placeholder={m.container_working_directory_placeholder()}
+ description={m.container_working_directory_description()}
disabled={isLoading}
bind:input={$inputs.workingDir}
/>
@@ -372,10 +371,10 @@
<div class="space-y-3">
<FormInput
- label="User"
+ label={m.container_user_label()}
type="text"
- placeholder="1000:1000"
- description="User to run the container as"
+ placeholder={m.container_user_placeholder()}
+ description={m.container_user_description()}
disabled={isLoading}
bind:input={$inputs.user}
/>
@@ -383,9 +382,9 @@
<div class="space-y-3">
<FormInput
- label="Hostname"
+ label={m.container_hostname_label()}
type="text"
- placeholder="my-container"
+ placeholder={m.container_hostname_placeholder()}
disabled={isLoading}
bind:input={$inputs.hostname}
/>
@@ -393,9 +392,9 @@
<div class="space-y-3">
<FormInput
- label="Domain Name"
+ label={m.container_domain_label()}
type="text"
- placeholder="example.com"
+ placeholder={m.container_domain_placeholder()}
disabled={isLoading}
bind:input={$inputs.domainname}
/>
@@ -403,31 +402,31 @@
</div>
<div class="space-y-4 rounded-lg border p-6">
- <h4 class="text-sm font-semibold">I/O Settings</h4>
+ <h4 class="text-sm font-semibold">{m.io_settings_title()}</h4>
<div class="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">
<div class="flex items-center space-x-2">
<Checkbox id="attach-stdout" bind:checked={$inputs.attachStdout.value} disabled={isLoading} />
- <Label for="attach-stdout" class="text-sm font-normal">Attach Stdout</Label>
+ <Label for="attach-stdout" class="text-sm font-normal">{m.io_attach_stdout()}</Label>
</div>
<div class="flex items-center space-x-2">
<Checkbox id="attach-stderr" bind:checked={$inputs.attachStderr.value} disabled={isLoading} />
- <Label for="attach-stderr" class="text-sm font-normal">Attach Stderr</Label>
+ <Label for="attach-stderr" class="text-sm font-normal">{m.io_attach_stderr()}</Label>
</div>
<div class="flex items-center space-x-2">
<Checkbox id="attach-stdin" bind:checked={$inputs.attachStdin.value} disabled={isLoading} />
- <Label for="attach-stdin" class="text-sm font-normal">Attach Stdin</Label>
+ <Label for="attach-stdin" class="text-sm font-normal">{m.io_attach_stdin()}</Label>
</div>
<div class="flex items-center space-x-2">
<Checkbox id="tty" bind:checked={$inputs.tty.value} disabled={isLoading} />
- <Label for="tty" class="text-sm font-normal">Allocate TTY</Label>
+ <Label for="tty" class="text-sm font-normal">{m.io_allocate_tty()}</Label>
</div>
<div class="flex items-center space-x-2">
<Checkbox id="open-stdin" bind:checked={$inputs.openStdin.value} disabled={isLoading} />
- <Label for="open-stdin" class="text-sm font-normal">Open Stdin</Label>
+ <Label for="open-stdin" class="text-sm font-normal">{m.io_open_stdin()}</Label>
</div>
<div class="flex items-center space-x-2">
<Checkbox id="stdin-once" bind:checked={$inputs.stdinOnce.value} disabled={isLoading} />
- <Label for="stdin-once" class="text-sm font-normal">Stdin Once</Label>
+ <Label for="stdin-once" class="text-sm font-normal">{m.io_stdin_once()}</Label>
</div>
</div>
</div>
@@ -438,7 +437,7 @@
<div class="grid grid-cols-1 gap-8 xl:grid-cols-2">
<div class="space-y-6">
<div>
- <h3 class="mb-4 text-lg font-semibold">Dynamic Environment Variables</h3>
+ <h3 class="mb-4 text-lg font-semibold">{m.env_dynamic_title()}</h3>
<div class="space-y-3">
{#each envVars as env, index (index)}
<div class="flex items-center gap-3">
@@ -466,7 +465,7 @@
class="w-full"
>
<PlusIcon class="mr-2 size-4" />
- Add Environment Variable
+ {m.add_env_var_button()}
</Button>
</div>
</div>
@@ -474,10 +473,10 @@
<div class="space-y-6">
<div>
- <h3 class="mb-4 text-lg font-semibold">Text Format Environment Variables</h3>
+ <h3 class="mb-4 text-lg font-semibold">{m.env_text_format_title()}</h3>
<div class="space-y-3">
<Textarea
- placeholder="NODE_ENV=production&#10;PORT=3000&#10;DEBUG=true"
+ placeholder={m.env_text_placeholder()}
disabled={isLoading}
rows={12}
bind:value={$inputs.environmentVars.value}
@@ -486,9 +485,7 @@
{#if $inputs.environmentVars.error}
<p class="text-destructive text-xs">{$inputs.environmentVars.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">
- Enter environment variables as KEY=value pairs, one per line
- </p>
+ <p class="text-muted-foreground text-xs">{m.env_text_description()}</p>
</div>
</div>
</div>
@@ -500,12 +497,12 @@
<div class="grid grid-cols-1 gap-8 xl:grid-cols-2">
<div class="space-y-6">
<div>
- <h3 class="mb-4 text-lg font-semibold">Port Mappings</h3>
+ <h3 class="mb-4 text-lg font-semibold">{m.port_mappings_title()}</h3>
<div class="space-y-3">
{#each portMappings as mapping, index (index)}
<div class="flex items-center gap-3">
<div class="flex flex-1 items-center gap-2">
- <div class="text-muted-foreground min-w-12 text-sm whitespace-nowrap">Host:</div>
+ <div class="text-muted-foreground min-w-12 whitespace-nowrap text-sm">{m.port_label_host()}</div>
<Input
type="text"
placeholder="8080"
@@ -516,7 +513,9 @@
</div>
<span class="text-muted-foreground">→</span>
<div class="flex flex-1 items-center gap-2">
- <div class="text-muted-foreground min-w-20 text-sm whitespace-nowrap">Container:</div>
+ <div class="text-muted-foreground min-w-20 whitespace-nowrap text-sm">
+ {m.port_label_container()}
+ </div>
<Input
type="text"
placeholder="80"
@@ -554,7 +553,7 @@
class="w-full"
>
<PlusIcon class="mr-2 size-4" />
- Add Port Mapping
+ {m.add_port_mapping_button()}
</Button>
</div>
</div>
@@ -562,20 +561,20 @@
<div class="space-y-6">
<div>
- <h3 class="mb-4 text-lg font-semibold">Port Configuration</h3>
+ <h3 class="mb-4 text-lg font-semibold">{m.port_configuration_title()}</h3>
<div class="space-y-4">
<FormInput
- label="Exposed Ports"
+ label={m.exposed_ports_label()}
type="text"
- placeholder="80,443,8080/tcp"
- description="Comma-separated list of ports to expose"
+ placeholder={m.exposed_ports_placeholder()}
+ description={m.exposed_ports_description()}
disabled={isLoading}
bind:input={$inputs.exposedPorts}
/>
<div class="flex items-center space-x-2 pt-2">
<Checkbox id="publish-all" bind:checked={$inputs.publishAllPorts.value} disabled={isLoading} />
- <Label for="publish-all" class="text-sm font-normal">Publish All Ports</Label>
+ <Label for="publish-all" class="text-sm font-normal">{m.publish_all_ports_label()}</Label>
</div>
</div>
</div>
@@ -588,7 +587,7 @@
<div class="grid grid-cols-1 gap-8 xl:grid-cols-2">
<div class="space-y-6">
<div>
- <h3 class="mb-4 text-lg font-semibold">Volume Mounts</h3>
+ <h3 class="mb-4 text-lg font-semibold">{m.volume_mounts_title()}</h3>
<div class="space-y-3">
{#each volumeMounts as mount, index (index)}
<div class="space-y-2">
@@ -621,7 +620,7 @@
</div>
<div class="flex items-center space-x-2 pl-3">
<Checkbox bind:checked={mount.readonly} disabled={isLoading} />
- <Label class="text-sm font-normal">Read Only</Label>
+ <Label class="text-sm font-normal">{m.read_only_label()}</Label>
</div>
</div>
{/each}
@@ -634,7 +633,7 @@
class="w-full"
>
<PlusIcon class="mr-2 size-4" />
- Add Volume Mount
+ {m.add_volume_mount_button()}
</Button>
</div>
</div>
@@ -642,10 +641,10 @@
<div class="space-y-6">
<div>
- <h3 class="mb-4 text-lg font-semibold">Text Format Volume Binds</h3>
+ <h3 class="mb-4 text-lg font-semibold">{m.volumes_text_title()}</h3>
<div class="space-y-3">
<Textarea
- placeholder="/host/path:/container/path&#10;/host/path2:/container/path2:ro&#10;myvolume:/app/data"
+ placeholder={m.volumes_text_placeholder()}
disabled={isLoading}
rows={12}
bind:value={$inputs.volumes.value}
@@ -654,9 +653,7 @@
{#if $inputs.volumes.error}
<p class="text-destructive text-xs">{$inputs.volumes.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">
- Enter volume binds as source:destination[:options], one per line
- </p>
+ <p class="text-muted-foreground text-xs">{m.volumes_text_description()}</p>
</div>
</div>
</div>
@@ -668,11 +665,11 @@
<div class="grid grid-cols-1 gap-8 lg:grid-cols-2">
<div class="space-y-6">
<div class="rounded-lg border p-6">
- <h3 class="mb-4 text-lg font-semibold">Network Settings</h3>
+ <h3 class="mb-4 text-lg font-semibold">{m.network_settings_title()}</h3>
<div class="space-y-4">
<div class="flex items-center space-x-3">
<Checkbox id="network-disabled" bind:checked={$inputs.networkDisabled.value} disabled={isLoading} />
- <Label for="network-disabled" class="text-sm font-normal">Disable Network</Label>
+ <Label for="network-disabled" class="text-sm font-normal">{m.disable_network_label()}</Label>
</div>
<div class="flex items-center space-x-3">
<Checkbox
@@ -680,7 +677,7 @@
bind:checked={$inputs.publishAllPorts.value}
disabled={isLoading}
/>
- <Label for="publish-all-ports-net" class="text-sm font-normal">Publish All Ports</Label>
+ <Label for="publish-all-ports-net" class="text-sm font-normal">{m.publish_all_ports_label()}</Label>
</div>
</div>
</div>
@@ -688,19 +685,19 @@
<div class="space-y-6">
<div class="rounded-lg border p-6">
- <h3 class="mb-4 text-lg font-semibold">Security Settings</h3>
+ <h3 class="mb-4 text-lg font-semibold">{m.security_settings_title()}</h3>
<div class="space-y-4">
<div class="flex items-center space-x-3">
<Checkbox id="privileged" bind:checked={$inputs.privileged.value} disabled={isLoading} />
- <Label for="privileged" class="text-sm font-normal">Privileged</Label>
+ <Label for="privileged" class="text-sm font-normal">{m.privileged_label()}</Label>
</div>
<div class="flex items-center space-x-3">
<Checkbox id="readonly-rootfs" bind:checked={$inputs.readonlyRootfs.value} disabled={isLoading} />
- <Label for="readonly-rootfs" class="text-sm font-normal">Read-only Root Filesystem</Label>
+ <Label for="readonly-rootfs" class="text-sm font-normal">{m.readonly_rootfs_label()}</Label>
</div>
<div class="flex items-center space-x-3">
<Checkbox id="auto-remove" bind:checked={$inputs.autoRemove.value} disabled={isLoading} />
- <Label for="auto-remove" class="text-sm font-normal">Auto Remove</Label>
+ <Label for="auto-remove" class="text-sm font-normal">{m.auto_remove_label()}</Label>
</div>
</div>
</div>
@@ -713,29 +710,29 @@
<div class="grid grid-cols-1 gap-8 lg:grid-cols-2">
<div class="space-y-6">
<div class="rounded-lg border p-6">
- <h3 class="mb-4 text-lg font-semibold">Restart Policy</h3>
+ <h3 class="mb-4 text-lg font-semibold">{m.restart_policy_title()}</h3>
<div class="space-y-4">
<SelectWithLabel
id="restart-policy"
bind:value={$inputs.restartPolicy.value}
- label="Restart Policy"
- description="Container restart behavior"
+ label={m.restart_policy_label()}
+ description={m.restart_policy_description()}
options={restartPolicies}
placeholder="Select restart policy"
/>
{#if $inputs.restartPolicy.value === 'on-failure'}
<div class="space-y-3">
- <Label for="max-retries" class="text-sm font-medium">Maximum Retry Count</Label>
+ <Label for="max-retries" class="text-sm font-medium">{m.max_retry_label()}</Label>
<Input
id="max-retries"
type="number"
min="0"
- placeholder="5"
+ placeholder={m.max_retry_placeholder()}
disabled={isLoading}
bind:value={$inputs.restartMaxRetries.value}
/>
- <p class="text-muted-foreground text-xs">Maximum number of restart attempts</p>
+ <p class="text-muted-foreground text-xs">{m.max_retry_description()}</p>
</div>
{/if}
</div>
@@ -744,7 +741,7 @@
<div class="space-y-6">
<div class="rounded-lg border p-6">
- <h3 class="mb-4 text-lg font-semibold">Labels</h3>
+ <h3 class="mb-4 text-lg font-semibold">{m.common_labels()}</h3>
<div class="space-y-3">
<Textarea
placeholder="com.example.description=My application&#10;com.example.version=1.0.0&#10;[email protected]"
@@ -756,7 +753,7 @@
{#if $inputs.labels.error}
<p class="text-destructive text-xs">{$inputs.labels.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">Enter metadata labels as key=value pairs, one per line</p>
+ <p class="text-muted-foreground text-xs">{m.containers_labels_description()}</p>
</div>
</div>
</div>
@@ -767,14 +764,16 @@
<!-- Footer -->
<div class="bg-background shrink-0 border-t p-6">
<div class="flex flex-row justify-end gap-3">
- <Button type="button" variant="outline" onclick={() => (open = false)} disabled={isLoading}>Cancel</Button>
+ <Button type="button" variant="outline" onclick={() => (open = false)} disabled={isLoading}
+ >{m.common_cancel()}</Button
+ >
<Button type="submit" disabled={isLoading}>
{#if isLoading}
<LoaderCircleIcon class="mr-2 size-4 animate-spin" />
- Creating...
+ {m.containers_creating()}
{:else}
<ContainerIcon class="mr-2 size-4" />
- Create Container
+ {m.containers_create_button()}
{/if}
</Button>
</div>
diff --git a/frontend/src/lib/components/sheets/create-network-sheet.svelte b/frontend/src/lib/components/sheets/create-network-sheet.svelte
index e7595dae0..8ea51860e 100644
--- a/frontend/src/lib/components/sheets/create-network-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-network-sheet.svelte
@@ -13,6 +13,7 @@
import { z } from 'zod/v4';
import { createForm, preventDefault } from '$lib/utils/form.utils';
import SelectWithLabel from '../form/select-with-label.svelte';
+ import { m } from '$lib/paraglide/messages';
type CreateNetworkFormProps = {
open: boolean;
@@ -23,16 +24,16 @@
let { open = $bindable(false), onSubmit, isLoading }: CreateNetworkFormProps = $props();
const drivers = [
- { value: 'bridge', label: 'Bridge' },
- { value: 'overlay', label: 'Overlay' },
- { value: 'macvlan', label: 'Macvlan' },
- { value: 'ipvlan', label: 'IPvlan' },
- { value: 'none', label: 'None' }
+ { value: 'bridge', label: m.networks_bridge() },
+ { value: 'overlay', label: m.networks_overlay() },
+ { value: 'macvlan', label: m.networks_macvlan() },
+ { value: 'ipvlan', label: m.networks_ipvlan() },
+ { value: 'none', label: m.networks_none() }
];
const formSchema = z.object({
- networkName: z.string().min(1, 'Network name is required'),
- networkDriver: z.string().min(1, 'Driver is required'),
+ networkName: z.string().min(1, m.network_name_required()),
+ networkDriver: z.string().min(1, m.network_driver_required()),
checkDuplicate: z.boolean().default(true),
internal: z.boolean().default(false),
networkLabels: z.string().optional().default(''),
@@ -157,21 +158,19 @@
<NetworkIcon class="text-primary size-5" />
</div>
<div>
- <Sheet.Title class="text-xl font-semibold">Create New Network</Sheet.Title>
- <Sheet.Description class="text-muted-foreground mt-1 text-sm"
- >Configure and create a new Docker network.</Sheet.Description
- >
+ <Sheet.Title class="text-xl font-semibold">{m.create_network_title()}</Sheet.Title>
+ <Sheet.Description class="text-muted-foreground mt-1 text-sm">{m.create_network_description()}</Sheet.Description>
</div>
</div>
</Sheet.Header>
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">
<div class="space-y-2">
- <Label for="network-name" class="text-sm font-medium">Network Name *</Label>
+ <Label for="network-name" class="text-sm font-medium">{m.network_name_label()}</Label>
<Input
id="network-name"
type="text"
- placeholder="e.g., my-app-network"
+ placeholder={m.network_name_placeholder()}
disabled={isLoading}
bind:value={$inputs.networkName.value}
class={$inputs.networkName.error ? 'border-destructive' : ''}
@@ -179,38 +178,38 @@
{#if $inputs.networkName.error}
<p class="text-destructive text-xs">{$inputs.networkName.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">Unique name for the network</p>
+ <p class="text-muted-foreground text-xs">{m.network_name_description()}</p>
</div>
<SelectWithLabel
id="driver-select"
bind:value={$inputs.networkDriver.value}
- label="Network Driver"
- description="Choose the network driver type"
+ label={m.network_driver_label()}
+ description={m.network_driver_description()}
options={drivers}
- placeholder="Select a driver"
+ placeholder={m.network_driver_placeholder()}
/>
<div class="space-y-4">
<div class="flex items-center space-x-4">
<div class="flex items-center space-x-2">
<Checkbox id="check-duplicate" bind:checked={$inputs.checkDuplicate.value} disabled={isLoading} />
- <Label for="check-duplicate" class="text-sm font-normal">Check Duplicate</Label>
+ <Label for="check-duplicate" class="text-sm font-normal">{m.network_check_duplicate_label()}</Label>
</div>
<div class="flex items-center space-x-2">
<Checkbox id="internal" bind:checked={$inputs.internal.value} disabled={isLoading} />
- <Label for="internal" class="text-sm font-normal">Internal Network</Label>
+ <Label for="internal" class="text-sm font-normal">{m.network_internal_label()}</Label>
</div>
</div>
</div>
<Accordion.Root type="single" class="w-full">
<Accordion.Item value="labels">
- <Accordion.Trigger class="text-sm font-medium">Labels</Accordion.Trigger>
+ <Accordion.Trigger class="text-sm font-medium">{m.networks_labels()}</Accordion.Trigger>
<Accordion.Content class="pt-4">
<div class="space-y-4">
<div class="space-y-2">
- <Label class="text-sm font-medium">Key-Value Labels</Label>
+ <Label class="text-sm font-medium">{m.labels_key_value_label()}</Label>
{#each labels as label, index (index)}
<div class="flex items-center gap-2">
<Input type="text" placeholder="Key" bind:value={label.key} disabled={isLoading} class="flex-1" />
@@ -222,20 +221,22 @@
onclick={() => removeLabel(index)}
disabled={isLoading || labels.length <= 1}
class="text-destructive hover:text-destructive"
- title="Remove Label"
+ title={m.common_remove()}
>
<XIcon class="size-4" />
</Button>
</div>
{/each}
- <Button type="button" variant="outline" size="sm" onclick={addLabel} disabled={isLoading}>Add Label</Button>
+ <Button type="button" variant="outline" size="sm" onclick={addLabel} disabled={isLoading}
+ >{m.add_label_button()}</Button
+ >
</div>
<div class="space-y-2">
- <Label for="network-labels" class="text-sm font-medium">Additional Labels (Text Format)</Label>
+ <Label for="network-labels" class="text-sm font-medium">{m.network_labels_text_label()}</Label>
<Textarea
id="network-labels"
- placeholder="com.example.description=Production network&#10;com.example.department=Backend"
+ placeholder={m.network_labels_placeholder()}
disabled={isLoading}
rows={3}
bind:value={$inputs.networkLabels.value}
@@ -244,25 +245,25 @@
{#if $inputs.networkLabels.error}
<p class="text-destructive text-xs">{$inputs.networkLabels.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">Enter additional labels as key=value pairs, one per line</p>
+ <p class="text-muted-foreground text-xs">{m.network_labels_description()}</p>
</div>
</div>
</Accordion.Content>
</Accordion.Item>
<Accordion.Item value="ipam">
- <Accordion.Trigger class="text-sm font-medium">IPAM Configuration</Accordion.Trigger>
+ <Accordion.Trigger class="text-sm font-medium">{m.networks_ipam_title()}</Accordion.Trigger>
<Accordion.Content class="pt-4">
<div class="space-y-4">
<div class="flex items-center space-x-2">
<Checkbox id="enable-ipam" bind:checked={$inputs.enableIpam.value} disabled={isLoading} />
- <Label for="enable-ipam" class="text-sm font-medium">Enable IPAM Configuration</Label>
+ <Label for="enable-ipam" class="text-sm font-medium">{m.network_enable_ipam_label()}</Label>
</div>
{#if $inputs.enableIpam.value}
<div class="border-muted space-y-4 border-l-2 pl-6">
<div class="space-y-2">
- <Label for="subnet" class="text-sm font-medium">Subnet</Label>
+ <Label for="subnet" class="text-sm font-medium">{m.networks_ipam_subnet_label()}</Label>
<Input
id="subnet"
type="text"
@@ -274,11 +275,11 @@
{#if $inputs.subnet.error}
<p class="text-destructive text-xs">{$inputs.subnet.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">Network subnet in CIDR notation</p>
+ <p class="text-muted-foreground text-xs">{m.network_subnet_description()}</p>
</div>
<div class="space-y-2">
- <Label for="gateway" class="text-sm font-medium">Gateway</Label>
+ <Label for="gateway" class="text-sm font-medium">{m.networks_ipam_gateway_label()}</Label>
<Input
id="gateway"
type="text"
@@ -290,7 +291,7 @@
{#if $inputs.gateway.error}
<p class="text-destructive text-xs">{$inputs.gateway.error}</p>
{/if}
- <p class="text-muted-foreground text-xs">Gateway IP address for the network</p>
+ <p class="text-muted-foreground text-xs">{m.network_gateway_description()}</p>
</div>
</div>
{/if}
@@ -305,15 +306,15 @@
class="arcane-button-cancel flex-1"
variant="outline"
onclick={() => (open = false)}
- disabled={isLoading}>Cancel</Button
+ disabled={isLoading}>{m.common_cancel()}</Button
>
<Button type="submit" class="arcane-button-create flex-1" disabled={isLoading}>
{#if isLoading}
<LoaderCircleIcon class="mr-2 size-4 animate-spin" />
- Creating...
+ {m.networks_creating()}
{:else}
<NetworkIcon class="mr-2 size-4" />
- Create Network
+ {m.networks_create_button()}
{/if}
</Button>
</Sheet.Footer>
diff --git a/frontend/src/lib/components/sheets/create-volume-sheet.svelte b/frontend/src/lib/components/sheets/create-volume-sheet.svelte
index 48ed4899e..6140948c4 100644
--- a/frontend/src/lib/components/sheets/create-volume-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-volume-sheet.svelte
@@ -9,6 +9,7 @@
import { z } from 'zod/v4';
import { createForm, preventDefault } from '$lib/utils/form.utils';
import SelectWithLabel from '../form/select-with-label.svelte';
+ import { m } from '$lib/paraglide/messages';
type CreateVolumeFormProps = {
open: boolean;
@@ -19,16 +20,16 @@
let { open = $bindable(false), onSubmit, isLoading }: CreateVolumeFormProps = $props();
const drivers = [
- { value: 'local', label: 'Local' },
- { value: 'nfs', label: 'NFS' },
- { value: 'awsElasticBlockStore', label: 'AWS EBS' },
- { value: 'azure_disk', label: 'Azure Disk' },
- { value: 'gcePersistentDisk', label: 'GCE Persistent Disk' }
+ { value: 'local', label: m.volume_driver_local() },
+ { value: 'nfs', label: m.volume_driver_nfs() },
+ { value: 'awsElasticBlockStore', label: m.volume_driver_aws_ebs() },
+ { value: 'azure_disk', label: m.volume_driver_azure_disk() },
+ { value: 'gcePersistentDisk', label: m.volume_driver_gce_pd() }
];
const formSchema = z.object({
- volumeName: z.string().min(1, 'Volume name is required'),
- volumeDriver: z.string().min(1, 'Driver is required'),
+ volumeName: z.string().min(1, m.volume_name_required()),
+ volumeDriver: z.string().min(1, m.volume_driver_required()),
volumeOptText: z.string().optional().default(''),
volumeLabels: z.string().optional().default('')
});
@@ -99,21 +100,19 @@
<HardDriveIcon class="text-primary size-5" />
</div>
<div>
- <Sheet.Title data-testid="create-volume-header" class="text-xl font-semibold">Create New Volume</Sheet.Title>
- <Sheet.Description class="text-muted-foreground mt-1 text-sm"
- >Enter the details for the new Docker volume.</Sheet.Description
- >
+ <Sheet.Title data-testid="create-volume-header" class="text-xl font-semibold">{m.create_volume_title()}</Sheet.Title>
+ <Sheet.Description class="text-muted-foreground mt-1 text-sm">{m.create_volume_description()}</Sheet.Description>
</div>
</div>
</Sheet.Header>
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">
<FormInput
- label="Volume Name *"
+ label={m.volume_name_label()}
id="volume-name"
type="text"
- placeholder="e.g., my-app-data"
- description="Unique name for the volume"
+ placeholder={m.volume_name_placeholder()}
+ description={m.volume_name_description()}
disabled={isLoading}
bind:input={$inputs.volumeName}
/>
@@ -121,32 +120,32 @@
<SelectWithLabel
id="driver-select"
bind:value={$inputs.volumeDriver.value}
- label="Volume Driver"
- description="Choose the storage driver for your volume"
+ label={m.volume_driver_label()}
+ description={m.volume_driver_description()}
options={drivers}
- placeholder="Select a driver"
+ placeholder={m.volume_driver_placeholder()}
/>
<Accordion.Root type="single" class="w-full">
<Accordion.Item value="advanced">
- <Accordion.Trigger class="text-sm font-medium">Advanced Settings</Accordion.Trigger>
+ <Accordion.Trigger class="text-sm font-medium">{m.volume_advanced_settings()}</Accordion.Trigger>
<Accordion.Content class="pt-4">
<div class="space-y-4">
<FormInput
- label="Driver Options"
+ label={m.common_driver_options()}
type="textarea"
- placeholder="key=value&#10;key2=value2"
- description="Enter driver-specific options as key=value pairs, one per line"
+ placeholder={m.volume_driver_options_placeholder()}
+ description={m.volume_driver_options_description()}
disabled={isLoading}
rows={3}
bind:input={$inputs.volumeOptText}
/>
<FormInput
- label="Labels"
+ label={m.common_labels()}
type="textarea"
- placeholder="com.example.description=Production data&#10;com.example.department=Finance"
- description="Enter metadata labels as key=value pairs, one per line"
+ placeholder={m.volume_labels_placeholder()}
+ description={m.volumes_labels_description()}
disabled={isLoading}
rows={3}
bind:input={$inputs.volumeLabels}
@@ -162,15 +161,15 @@
class="arcane-button-cancel flex-1"
variant="outline"
onclick={() => (open = false)}
- disabled={isLoading}>Cancel</Button
+ disabled={isLoading}>{m.common_cancel()}</Button
>
<Button type="submit" class="arcane-button-create flex-1" disabled={isLoading}>
{#if isLoading}
<LoaderCircleIcon class="mr-2 size-4 animate-spin" />
- Creating...
+ {m.volumes_creating()}
{:else}
<HardDriveIcon class="mr-2 size-4" />
- Create Volume
+ {m.volumes_create_button()}
{/if}
</Button>
</Sheet.Footer>
diff --git a/frontend/src/lib/components/sheets/image-pull-sheet.svelte b/frontend/src/lib/components/sheets/image-pull-sheet.svelte
index 40946076f..cafa90235 100644
--- a/frontend/src/lib/components/sheets/image-pull-sheet.svelte
+++ b/frontend/src/lib/components/sheets/image-pull-sheet.svelte
@@ -9,6 +9,7 @@
import { toast } from 'svelte-sonner';
import { environmentStore, LOCAL_DOCKER_ENVIRONMENT_ID } from '$lib/stores/environment.store';
import { get } from 'svelte/store';
+ import { m } from '$lib/paraglide/messages';
type ImagePullFormProps = {
open: boolean;
@@ -18,7 +19,7 @@
let { open = $bindable(false), onPullFinished = () => {} }: ImagePullFormProps = $props();
const formSchema = z.object({
- imageRef: z.string().min(1, 'Image name is required'),
+ imageRef: z.string().min(1, m.images_image_required()),
tag: z.string().optional().default('latest')
});
@@ -83,7 +84,7 @@
resetState();
isPulling = true;
- pullStatusText = 'Initiating pull...';
+ pullStatusText = m.images_pull_initiating();
let imageName = data.imageRef.trim();
let imageTag = data.tag?.trim() || 'latest';
@@ -97,7 +98,7 @@
}
const fullImageName = `${imageName}:${imageTag}`;
- pullStatusText = `Pulling ${fullImageName}...`;
+ pullStatusText = `${m.images_pulling()} ${fullImageName}`;
try {
const response = await fetch(buildApiUrl(fullImageName), {
@@ -110,10 +111,12 @@
if (!response.ok || !response.body) {
const errorData = await response.json().catch(() => ({
- error: 'Failed to pull image. Server returned an error.'
+ error: m.images_pull_server_error()
}));
const errorMessage =
- typeof errorData.error === 'string' ? errorData.error : errorData.message || `HTTP error ${response.status}`;
+ typeof errorData.error === 'string'
+ ? errorData.error
+ : errorData.message || `${m.images_pull_server_error()}: HTTP ${response.status}`;
throw new Error(errorMessage);
}
@@ -124,7 +127,7 @@
while (true) {
const { done, value } = await reader.read();
if (done) {
- pullStatusText = 'Processing final layers...';
+ pullStatusText = m.images_pull_processing_final_layers();
break;
}
@@ -139,8 +142,8 @@
if (data.error) {
console.error('Error in stream:', data.error);
- pullError = typeof data.error === 'string' ? data.error : data.error.message || 'An error occurred during pull.';
- pullStatusText = `Error: ${pullError}`;
+ pullError = typeof data.error === 'string' ? data.error : data.error.message || m.images_pull_stream_error();
+ pullStatusText = m.images_pull_failed_with_error({ error: pullError });
continue;
}
@@ -180,8 +183,8 @@
throw new Error(pullError);
}
- pullStatusText = `Image ${fullImageName} pulled successfully.`;
- toast.success(pullStatusText);
+ pullStatusText = m.images_pull_success({ repoTag: fullImageName });
+ toast.success(m.images_pull_success({ repoTag: fullImageName }));
onPullFinished(true, fullImageName);
// Reset form and close sheet
@@ -190,9 +193,9 @@
open = false;
} catch (error: any) {
console.error('Pull image error:', error);
- const message = error.message || 'An unexpected error occurred while pulling the image.';
+ const message = error.message || m.images_pull_unexpected_error();
pullError = message;
- pullStatusText = `Failed: ${message}`;
+ pullStatusText = m.images_pull_failed_with_error({ error: message });
toast.error(message);
onPullFinished(false, fullImageName, message);
} finally {
@@ -202,7 +205,7 @@
function handleOpenChange(newOpenState: boolean) {
if (!newOpenState && isPulling) {
- toast.info('Pull operation is in progress.');
+ toast.info(m.images_pull_in_progress_toast());
open = true; // Keep it open
return;
}
@@ -229,9 +232,9 @@
<DownloadIcon class="text-primary size-5" />
</div>
<div>
- <Sheet.Title class="text-xl font-semibold">Pull Docker Image</Sheet.Title>
+ <Sheet.Title class="text-xl font-semibold">{m.images_pull_image()}</Sheet.Title>
<Sheet.Description class="text-muted-foreground mt-1 text-sm">
- Enter the image reference you want to pull from a registry.
+ {m.images_pull_description()}
{#if pullError}
<p class="text-destructive mt-2 text-sm">{pullError}</p>
{/if}
@@ -242,18 +245,18 @@
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">
<FormInput
- label="Image Name *"
+ label={m.images_image_name_label()}
type="text"
- placeholder="nginx, redis, ubuntu, etc."
- description="Enter the image name from Docker Hub or other registries"
+ placeholder={m.images_image_name_placeholder()}
+ description={m.images_image_name_description()}
disabled={isPulling}
bind:input={$inputs.imageRef}
/>
<FormInput
- label="Tag"
+ label={m.images_tag()}
type="text"
- placeholder="latest"
- description="Specify a tag version (defaults to 'latest')"
+ placeholder={m.images_tag_latest()}
+ description={m.images_tag_description()}
disabled={isPulling}
bind:input={$inputs.tag}
/>
@@ -262,7 +265,7 @@
<div class="mt-4">
{#if isPulling}
<div class="mb-1 flex justify-between text-xs">
- <span>{pullStatusText || 'Pulling image...'}</span>
+ <span>{pullStatusText || m.images_pulling()}</span>
<span>{Math.round(pullProgress)}%</span>
</div>
<div class="bg-secondary h-2 w-full overflow-hidden rounded-full">
@@ -272,9 +275,7 @@
<p class="mt-1 text-xs text-green-600">{pullStatusText}</p>
{/if}
{#if isPulling}
- <p class="text-muted-foreground mt-1 text-xs">
- This may take a while depending on the image size and your internet connection.
- </p>
+ <p class="text-muted-foreground mt-1 text-xs">{m.images_pull_wait_message()}</p>
{/if}
</div>
{/if}
@@ -285,15 +286,15 @@
class="arcane-button-cancel flex-1"
variant="outline"
onclick={() => (open = false)}
- disabled={isPulling}>Cancel</Button
+ disabled={isPulling}>{m.common_cancel()}</Button
>
<Button type="submit" class="arcane-button-create flex-1" disabled={isPulling}>
{#if isPulling}
<LoaderCircleIcon class="mr-2 size-4 animate-spin" />
- <span class="opacity-0">Pull Image</span>
+ <span class="opacity-0">{m.images_pull_image()}</span>
{:else}
<DownloadIcon class="mr-2 size-4" />
- Pull Image
+ {m.images_pull_image()}
{/if}
</Button>
</Sheet.Footer>
diff --git a/frontend/src/lib/components/sheets/new-environment-sheet.svelte b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
index 77d1b49ef..4e53605ba 100644
--- a/frontend/src/lib/components/sheets/new-environment-sheet.svelte
+++ b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
@@ -10,6 +10,7 @@
import type { CreateEnvironmentDTO } from '$lib/types/environment.type';
import { z } from 'zod/v4';
import { createForm, preventDefault } from '$lib/utils/form.utils';
+ import { m } from '$lib/paraglide/messages';
type NewEnvironmentSheetProps = {
open: boolean;
@@ -21,8 +22,8 @@
let isSubmitting = $state(false);
const formSchema = z.object({
- name: z.string().min(1, 'Name is required').max(25, 'Name too long'),
- apiUrl: z.url('Must be a valid URL').min(1, 'Server URL is required'),
+ name: z.string().min(1, m.environments_name_required()).max(25, m.environments_name_too_long()),
+ apiUrl: z.url(m.common_invalid_url()).min(1, m.environments_server_url_required()),
bootstrapToken: z.string()
});
@@ -52,21 +53,21 @@
try {
const result = await environmentManagementAPI.testConnection(created.id);
if (result.status === 'online') {
- toast.success('Environment is online');
+ toast.success(m.environments_test_connection_success());
} else {
- toast.warning('Environment appears offline');
+ toast.warning(m.environments_test_connection_error());
}
} catch (e) {
console.error(e);
- toast.error('Environment test failed');
+ toast.error(m.environments_test_connection_failed());
}
- toast.success('Environment created successfully');
+ toast.success(m.environments_created_success());
form.reset();
onEnvironmentCreated?.();
} catch (error) {
- toast.error('Failed to create environment');
+ toast.error(m.environments_create_failed());
console.error(error);
} finally {
isSubmitting = false;
@@ -82,10 +83,8 @@
<ServerIcon class="text-primary size-5" />
</div>
<div>
- <Sheet.Title class="text-xl font-semibold">Manage Environments</Sheet.Title>
- <Sheet.Description class="text-muted-foreground mt-1 text-sm"
- >Add and manage remote Arcane servers in Agent Mode.</Sheet.Description
- >
+ <Sheet.Title class="text-xl font-semibold">{m.environments_title()}</Sheet.Title>
+ <Sheet.Description class="text-muted-foreground mt-1 text-sm">{m.environments_manage_description()}</Sheet.Description>
</div>
</div>
</Sheet.Header>
@@ -93,25 +92,25 @@
<div class="space-y-6 py-6">
<Card.Root>
<Card.Header>
- <Card.Title class="text-lg">Add New Environment</Card.Title>
+ <Card.Title class="text-lg">{m.environments_add_button()}</Card.Title>
</Card.Header>
<Card.Content>
<form onsubmit={preventDefault(handleSubmit)} class="space-y-4">
- <FormInput label="Name" placeholder="My Lab Server" bind:input={$inputs.name} />
+ <FormInput label={m.common_name()} placeholder={m.environments_name_placeholder()} bind:input={$inputs.name} />
<FormInput
- label="Server URL *"
+ label={m.environments_api_url()}
type="text"
- placeholder="http://192.168.1.100:3553"
- description="Full URL to the Arcane server endpoint"
+ placeholder={m.environments_api_url_placeholder()}
+ description={m.environments_api_url_description()}
bind:input={$inputs.apiUrl}
/>
<FormInput
- label="Bootstrap Token"
+ label={m.environments_bootstrap_label()}
type="password"
- placeholder="AGENT_BOOTSTRAP_TOKEN from the agent"
- description="If provided, manager will auto‑pair with the agent and store the generated token"
+ placeholder={m.environments_bootstrap_placeholder()}
+ description={m.environments_pair_rotate_description()}
bind:input={$inputs.bootstrapToken}
/>
@@ -119,7 +118,7 @@
{#if isSubmitting}
<LoaderCircleIcon class="mr-2 size-4 animate-spin" />
{/if}
- Add Environment
+ {m.environments_add_button()}
</Button>
</form>
</Card.Content>
diff --git a/frontend/src/lib/components/sheets/user-form-sheet.svelte b/frontend/src/lib/components/sheets/user-form-sheet.svelte
index ba2aaab9d..f9c373c8b 100644
--- a/frontend/src/lib/components/sheets/user-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/user-form-sheet.svelte
@@ -9,6 +9,7 @@
import type { User } from '$lib/types/user.type';
import { z } from 'zod/v4';
import { createForm, preventDefault } from '$lib/utils/form.utils';
+ import { m } from '$lib/paraglide/messages';
type UserFormProps = {
open: boolean;
@@ -36,10 +37,10 @@
let isOidcUser = $derived(!!userToEdit?.oidcSubjectId);
const formSchema = z.object({
- username: z.string().min(1, 'Username is required'),
+ username: z.string().min(1, m.common_username_required()),
password: z.string().optional(),
displayName: z.string().optional(),
- email: z.email('Invalid email format').optional().or(z.literal('')),
+ email: z.email(m.common_invalid_email()).optional().or(z.literal('')),
isAdmin: z.boolean().default(false)
});
@@ -99,12 +100,14 @@
</div>
<div>
<Sheet.Title class="text-xl font-semibold">
- {isEditMode ? 'Edit User' : 'Create New User'}
+ {isEditMode ? m.users_edit_title() : m.users_create_new_title()}
</Sheet.Title>
<Sheet.Description class="text-muted-foreground mt-1 text-sm">
- {isEditMode
- ? `Update the details for ${userToEdit?.username || 'this user'}`
- : 'Add a new user to your system with the required permissions'}
+ {#if isEditMode}
+ {m.users_edit_description({ username: userToEdit?.username ?? m.common_unknown() })}
+ {:else}
+ {m.users_create_description()}
+ {/if}
</Sheet.Description>
</div>
</div>
@@ -112,48 +115,48 @@
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-6">
<FormInput
- label="Username *"
+ label={m.common_username()}
type="text"
- description="Unique username for the user"
+ description={m.users_username_description()}
disabled={!canEditUsername || isOidcUser}
bind:input={$inputs.username}
/>
<FormInput
- label={isEditMode ? 'Password' : 'Password *'}
+ label={isEditMode ? m.common_password() : m.users_password_required_label()}
type="password"
placeholder={isOidcUser
- ? 'Managed by your identity provider'
+ ? m.users_password_managed_oidc()
: isEditMode
- ? 'Leave empty to keep current password'
- : 'Enter password'}
+ ? m.users_password_leave_empty()
+ : m.users_password_enter()}
description={isOidcUser
- ? 'Password is managed by your OIDC provider'
+ ? m.users_password_description_oidc()
: isEditMode
- ? 'Leave empty to keep current password'
- : 'Password for the user account'}
+ ? m.users_password_description_edit()
+ : m.users_password_description_create()}
disabled={isOidcUser}
bind:input={$inputs.password}
/>
<FormInput
- label="Display Name"
+ label={m.common_display_name()}
type="text"
- placeholder="Full name or display name"
- description="Optional display name for the user"
+ placeholder={m.users_display_name_placeholder()}
+ description={m.users_display_name_description()}
disabled={isOidcUser}
bind:input={$inputs.displayName}
/>
<FormInput
- label="Email"
+ label={m.common_email()}
type="email"
- placeholder="[email protected]"
- description="Email address for the user"
+ placeholder={m.users_email_placeholder()}
+ description={m.users_email_description()}
disabled={isOidcUser}
bind:input={$inputs.email}
/>
<SwitchWithLabel
id="isAdminSwitch"
- label="Administrator"
- description="Grant administrator privileges to this user"
+ label={m.common_admin()}
+ description={m.users_administrator_description()}
bind:checked={$inputs.isAdmin.value}
/>
@@ -163,14 +166,14 @@
class="arcane-button-cancel flex-1"
variant="outline"
onclick={() => (open = false)}
- disabled={isLoading}>Cancel</Button
+ disabled={isLoading}>{m.common_cancel()}</Button
>
<Button type="submit" class="arcane-button-create flex-1" disabled={isLoading}>
{#if isLoading}
<LoaderCircleIcon class="mr-2 size-4 animate-spin" />
{/if}
<SubmitIcon class="mr-2 size-4" />
- {isEditMode ? 'Save Changes' : 'Create User'}
+ {isEditMode ? m.users_save_changes() : m.users_create_button()}
</Button>
</Sheet.Footer>
</form>
diff --git a/frontend/src/lib/components/sidebar/sidebar-env-switcher.svelte b/frontend/src/lib/components/sidebar/sidebar-env-switcher.svelte
index 5e5b259eb..9ca8dbf29 100644
--- a/frontend/src/lib/components/sidebar/sidebar-env-switcher.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-env-switcher.svelte
@@ -11,6 +11,7 @@
import type { Environment } from '$lib/types/environment.type';
import { goto } from '$app/navigation';
import { toast } from 'svelte-sonner';
+ import { m } from '$lib/paraglide/messages';
type Props = {
isAdmin?: boolean;
@@ -56,7 +57,7 @@
<Sidebar.Menu>
{#if sidebar.open}
- <Label class="text-sidebar-foreground/60 mb-2 px-2 text-xs font-medium">Environment</Label>
+ <Label class="text-sidebar-foreground/60 mb-2 px-2 text-xs font-medium">{m.sidebar_environment_label()}</Label>
{/if}
<Sidebar.MenuItem>
<DropdownMenu.Root>
@@ -82,7 +83,7 @@
{getEnvLabel(currentSelectedEnvironment)}
</span>
<span class="truncate text-xs">
- {currentSelectedEnvironment.isLocal ? 'unix:///var/run/docker.sock' : currentSelectedEnvironment.apiUrl}
+ {currentSelectedEnvironment.isLocal ? m.sidebar_local_docker_socket() : currentSelectedEnvironment.apiUrl}
</span>
</div>
{:else}
@@ -92,8 +93,8 @@
<ServerIcon class="size-4" />
</div>
<div class="grid flex-1 text-left text-sm leading-tight">
- <span class="truncate font-medium">No Environment</span>
- <span class="truncate text-xs">Select one</span>
+ <span class="truncate font-medium">{m.sidebar_no_environment()}</span>
+ <span class="truncate text-xs">{m.sidebar_select_one()}</span>
</div>
{/if}
<ChevronsUpDownIcon class="ml-auto" />
@@ -106,13 +107,13 @@
side={sidebar.isMobile ? 'bottom' : 'right'}
sideOffset={4}
>
- <DropdownMenu.Label class="text-muted-foreground text-xs">Select Environment</DropdownMenu.Label>
+ <DropdownMenu.Label class="text-muted-foreground text-xs">{m.sidebar_select_environment()}</DropdownMenu.Label>
{#if availableEnvironments.length === 0}
<DropdownMenu.Item disabled class="gap-2 p-2">
<div class="flex size-6 items-center justify-center rounded-md border">
<ServerIcon class="size-3.5 shrink-0" />
</div>
- <span>No environments available</span>
+ <span>{m.sidebar_no_environments()}</span>
</DropdownMenu.Item>
{:else}
{#each availableEnvironments as env (env.id)}
@@ -127,7 +128,7 @@
<div class="flex flex-col">
<span>{getEnvLabel(env)}</span>
{#if env.isLocal}
- <span class="text-muted-foreground text-xs">unix:///var/run/docker.sock</span>
+ <span class="text-muted-foreground text-xs">{m.sidebar_local_docker_socket()}</span>
{:else}
<span class="text-muted-foreground max-w-32 truncate text-xs">{env.apiUrl}</span>
{/if}
@@ -141,7 +142,7 @@
<div class="flex size-6 items-center justify-center rounded-md border bg-transparent">
<PlusIcon class="size-4" />
</div>
- <div class="text-muted-foreground font-medium">Manage Environments</div>
+ <div class="text-muted-foreground font-medium">{m.sidebar_manage_environments()}</div>
</DropdownMenu.Item>
{/if}
</DropdownMenu.Content>
diff --git a/frontend/src/lib/components/sidebar/sidebar-logo.svelte b/frontend/src/lib/components/sidebar/sidebar-logo.svelte
index 1c7e042aa..5f4bd9683 100644
--- a/frontend/src/lib/components/sidebar/sidebar-logo.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-logo.svelte
@@ -1,6 +1,7 @@
<script lang="ts">
import type { AppVersionInformation } from '$lib/types/application-configuration';
import { cn } from '$lib/utils';
+ import { m } from '$lib/paraglide/messages';
let { isCollapsed, versionInformation }: { isCollapsed: boolean; versionInformation: AppVersionInformation } = $props();
</script>
@@ -20,7 +21,7 @@
>
<img
src="/img/arcane.svg"
- alt="Arcane"
+ alt={m.layout_title()}
class={cn('drop-shadow-sm transition-all duration-300', isCollapsed ? 'size-5' : 'size-7')}
width={isCollapsed ? '20' : '28'}
height={isCollapsed ? '20' : '28'}
@@ -36,11 +37,11 @@
{#if !isCollapsed}
<div class="flex min-w-0 flex-col justify-center">
<span
- class="from-foreground to-foreground/80 bg-gradient-to-r bg-clip-text text-lg leading-none font-bold tracking-tight text-transparent"
- >Arcane</span
+ class="from-foreground to-foreground/80 bg-gradient-to-r bg-clip-text text-lg font-bold leading-none tracking-tight text-transparent"
+ >{m.layout_title()}</span
>
<span class="text-muted-foreground/80 text-xs font-medium">
- v{versionInformation?.currentVersion}
+ {m.sidebar_version({ version: versionInformation?.currentVersion ?? m.common_unknown() })}
</span>
</div>
{/if}
diff --git a/frontend/src/lib/components/sidebar/sidebar-updatebanner.svelte b/frontend/src/lib/components/sidebar/sidebar-updatebanner.svelte
index fb8aa30fd..93af0ea28 100644
--- a/frontend/src/lib/components/sidebar/sidebar-updatebanner.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-updatebanner.svelte
@@ -5,6 +5,7 @@
import ExternalLink from '@lucide/svelte/icons/external-link';
import { useSidebar } from '$lib/components/ui/sidebar/index.js';
import type { AppVersionInformation } from '$lib/types/application-configuration';
+ import { m } from '$lib/paraglide/messages';
let {
isCollapsed,
@@ -34,8 +35,10 @@
class="group flex items-center justify-between text-blue-600 transition-colors duration-200 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300"
>
<div class="flex flex-col gap-1">
- <span class="text-sm font-semibold">Update available</span>
- <span class="text-xs text-blue-500/80">v{versionInformation?.newestVersion}</span>
+ <span class="text-sm font-semibold">{m.sidebar_update_available()}</span>
+ <span class="text-xs text-blue-500/80"
+ >{m.sidebar_version({ version: versionInformation?.newestVersion ?? m.common_unknown() })}</span
+ >
</div>
<ExternalLink size={16} class="transition-transform duration-200 group-hover:scale-110" />
</a>
@@ -61,7 +64,7 @@
{/snippet}
</Tooltip.Trigger>
<Tooltip.Content side="right" align="center" hidden={sidebar.state !== 'collapsed' || sidebar.isMobile}>
- Update available: v{versionInformation?.newestVersion}
+ {m.sidebar_update_available_tooltip({ version: versionInformation?.newestVersion ?? m.common_unknown() })}
</Tooltip.Content>
</Tooltip.Root>
</div>
diff --git a/frontend/src/lib/components/sidebar/sidebar-user.svelte b/frontend/src/lib/components/sidebar/sidebar-user.svelte
index fdf6370c5..e6668ca80 100644
--- a/frontend/src/lib/components/sidebar/sidebar-user.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-user.svelte
@@ -11,6 +11,12 @@
import { mode, toggleMode } from 'mode-watcher';
import { cn } from '$lib/utils';
import settingsStore from '$lib/stores/config-store';
+ import { m } from '$lib/paraglide/messages';
+ import * as Select from '$lib/components/ui/select/index.js';
+ import { getLocale, type Locale } from '$lib/paraglide/runtime';
+ import userStore from '$lib/stores/user-store';
+ import { setLocale } from '$lib/utils/locale.util';
+ import UserAPIService from '$lib/services/api/user-api-service';
let { user, isCollapsed }: { user: User; isCollapsed: boolean } = $props();
const sidebar = useSidebar();
@@ -26,56 +32,31 @@
return `https://www.gravatar.com/avatar/${hash}?s=${size}`;
}
+
+ const userApi = new UserAPIService();
+ const currentLocale = getLocale();
+ const locales: Record<string, string> = {
+ en: 'English',
+ es: 'Español'
+ };
+
+ async function updateLocale(locale: Locale) {
+ await userApi.update(user.id, { ...$userStore!, locale });
+ await setLocale(locale);
+ }
</script>
<Sidebar.Menu>
<Sidebar.MenuItem>
- {#if isCollapsed}
- <DropdownMenu.Root>
- <DropdownMenu.Trigger>
- {#snippet child({ props })}
- <Sidebar.MenuButton
- size="lg"
- class="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground"
- {...props}
- >
- {#if user && user.displayName}
- <Avatar.Root class="size-8 rounded-lg">
- {#if $settingsStore.enableGravatar}
- {#await getGravatarUrl(user?.email)}
- <Avatar.Image src="/img/profile.jpg" alt={user.displayName} />
- {:then url}
- <Avatar.Image src={url || '/img/profile.jpg'} alt={user.displayName} />
- {:catch _}
- <Avatar.Image src="/img/profile.jpg" alt={user.displayName} />
- {/await}
- {:else}
- <Avatar.Image src="/img/profile.jpg" alt={user.displayName} />
- {/if}
- <Avatar.Fallback
- class="from-primary/20 to-primary/10 text-primary border-primary/20 rounded-lg border bg-gradient-to-br"
- >
- {user.displayName?.charAt(0).toUpperCase()}
- </Avatar.Fallback>
- </Avatar.Root>
- {#if !isCollapsed}
- <div class="grid flex-1 pl-0 text-left text-sm leading-tight">
- <span class="truncate font-medium">{user.displayName}</span>
- <span class="truncate text-xs">{user.email}</span>
- </div>
- {/if}
- {/if}
- </Sidebar.MenuButton>
- {/snippet}
- </DropdownMenu.Trigger>
- <DropdownMenu.Content
- class="w-(--bits-dropdown-menu-anchor-width) min-w-56 rounded-lg"
- side={sidebar.isMobile ? 'bottom' : 'right'}
- align="end"
- sideOffset={12}
- >
- <DropdownMenu.Label class="p-0 font-normal">
- <div class="flex items-center gap-2 py-1.5 text-left text-sm">
+ <DropdownMenu.Root>
+ <DropdownMenu.Trigger>
+ {#snippet child({ props })}
+ <Sidebar.MenuButton
+ size="lg"
+ class="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground w-full"
+ {...props}
+ >
+ {#if user && user.displayName}
<Avatar.Root class="size-8 rounded-lg">
{#if $settingsStore.enableGravatar}
{#await getGravatarUrl(user?.email)}
@@ -94,65 +75,24 @@
{user.displayName?.charAt(0).toUpperCase()}
</Avatar.Fallback>
</Avatar.Root>
- <div class="grid flex-1 text-left text-sm leading-tight">
- <span class="truncate font-medium">{user.displayName}</span>
- <span class="truncate text-xs">{user.email}</span>
- </div>
- </div>
- </DropdownMenu.Label>
- <DropdownMenu.Separator />
- <DropdownMenu.Group>
- <Button.Root
- variant="ghost"
- class={cn(
- 'text-muted-foreground hover:from-muted/80 hover:to-muted/60 hover:text-foreground mb-1 flex w-full items-center rounded-xl text-sm font-medium transition-all duration-200 hover:bg-gradient-to-br',
- 'hover:scale-[1.02] hover:shadow-md active:scale-[0.98]',
- isCollapsed ? 'h-11 justify-center px-2 py-3' : 'h-11 justify-start gap-3 px-3 py-2.5'
- )}
- title={isCollapsed ? 'Toggle theme' : undefined}
- onclick={toggleMode}
- >
- <div class="group-hover:bg-muted-foreground/10 rounded-lg bg-transparent p-1 transition-colors duration-200">
- {#if mode.current === 'dark'}
- <Sun size={16} class="transition-transform duration-200" />
- {:else}
- <Moon size={16} class="transition-transform duration-200" />
- {/if}
- </div>
- {#if isCollapsed}
- <span class="font-medium">Toggle theme</span>
+ {#if !isCollapsed}
+ <div class="grid flex-1 pl-0 text-left text-sm leading-tight">
+ <span class="truncate font-medium">{user.displayName}</span>
+ <span class="truncate text-xs">{user.email}</span>
+ </div>
{/if}
- </Button.Root>
- </DropdownMenu.Group>
- <DropdownMenu.Separator />
- <form action="/auth/logout" method="POST">
- <Button.Root
- variant="ghost"
- class={cn(
- 'text-muted-foreground flex w-full items-center rounded-xl text-sm font-medium transition-all duration-200',
- 'hover:from-destructive/10 hover:to-destructive/5 hover:text-destructive hover:scale-[1.02] hover:bg-gradient-to-br hover:shadow-md active:scale-[0.98]',
- isCollapsed ? 'h-11 justify-center px-2 py-3' : 'h-11 justify-start gap-3 px-3 py-2.5'
- )}
- title={isCollapsed ? 'Logout' : undefined}
- type="submit"
- >
- <div class="group-hover:bg-destructive/10 rounded-lg bg-transparent p-1 transition-colors duration-200">
- <LogOutIcon size={16} class="transition-transform duration-200" />
- </div>
- {#if isCollapsed}
- <span class="font-medium">Logout</span>
- {/if}
- </Button.Root>
- </form>
- </DropdownMenu.Content>
- </DropdownMenu.Root>
- {:else}
- <div class="flex w-full items-center gap-2">
- <Sidebar.MenuButton
- size="lg"
- class="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground flex-1"
- >
- {#if user && user.displayName}
+ {/if}
+ </Sidebar.MenuButton>
+ {/snippet}
+ </DropdownMenu.Trigger>
+ <DropdownMenu.Content
+ class="w-(--bits-dropdown-menu-anchor-width) min-w-56 rounded-lg"
+ side={sidebar.isMobile ? 'bottom' : 'right'}
+ align="end"
+ sideOffset={12}
+ >
+ <DropdownMenu.Label class="p-0 font-normal">
+ <div class="flex items-center gap-2 py-1.5 text-left text-sm">
<Avatar.Root class="size-8 rounded-lg">
{#if $settingsStore.enableGravatar}
{#await getGravatarUrl(user?.email)}
@@ -177,43 +117,64 @@
<span class="truncate text-xs">{user.email}</span>
</div>
{/if}
- {/if}
- </Sidebar.MenuButton>
-
- <Button.Root
- variant="ghost"
- class={cn(
- 'text-muted-foreground hover:from-muted/80 hover:to-muted/60 hover:text-foreground rounded-xl transition-all duration-200 hover:bg-gradient-to-br',
- 'h-11 px-2 py-3 hover:scale-[1.02] hover:shadow-md active:scale-[0.98]'
- )}
- title="Toggle theme"
- onclick={toggleMode}
- >
- <div class="group-hover:bg-muted-foreground/10 rounded-lg bg-transparent p-1 transition-colors duration-200">
- {#if mode.current === 'dark'}
- <Sun size={16} class="transition-transform duration-200" />
- {:else}
- <Moon size={16} class="transition-transform duration-200" />
- {/if}
</div>
- </Button.Root>
+ </DropdownMenu.Label>
+ <DropdownMenu.Separator />
+
+ <!-- Locale picker -->
+ <div class="px-3 py-2">
+ <Select.Root type="single" value={currentLocale} onValueChange={(v) => updateLocale(v as Locale)}>
+ <Select.Trigger class="h-9 w-full max-w-[240px]" aria-label={m.common_select_locale()}>
+ {locales[currentLocale]}
+ </Select.Trigger>
+ <Select.Content>
+ {#each Object.entries(locales) as [value, label]}
+ <Select.Item {value}>{label}</Select.Item>
+ {/each}
+ </Select.Content>
+ </Select.Root>
+ </div>
+
+ <DropdownMenu.Group class="px-3 pb-2">
+ <Button.Root
+ variant="ghost"
+ class={cn(
+ 'text-muted-foreground flex w-full items-center rounded-xl text-sm font-medium transition-all duration-200 hover:bg-gradient-to-br',
+ 'h-11 justify-start gap-3 px-3 py-2.5'
+ )}
+ title={m.common_toggle_theme()}
+ onclick={toggleMode}
+ >
+ <div class="group-hover:bg-muted-foreground/10 rounded-lg bg-transparent p-1 transition-colors duration-200">
+ {#if mode.current === 'dark'}
+ <Sun size={16} class="transition-transform duration-200" />
+ {:else}
+ <Moon size={16} class="transition-transform duration-200" />
+ {/if}
+ </div>
+ <span class="font-medium">{m.common_toggle_theme()}</span>
+ </Button.Root>
+ </DropdownMenu.Group>
- <form action="/auth/logout" method="POST">
+ <DropdownMenu.Separator />
+ <form action="/auth/logout" method="POST" class="px-3 py-2">
<Button.Root
variant="ghost"
class={cn(
- 'text-muted-foreground rounded-xl text-sm font-medium transition-all duration-200',
- 'hover:from-destructive/10 hover:to-destructive/5 hover:text-destructive h-11 px-2 py-3 hover:scale-[1.02] hover:bg-gradient-to-br hover:shadow-md active:scale-[0.98]'
+ 'text-muted-foreground flex w-full items-center rounded-xl text-sm font-medium transition-all duration-200',
+ 'hover:from-destructive/10 hover:to-destructive/5 hover:text-destructive hover:bg-gradient-to-br hover:shadow-md active:scale-[0.98]',
+ 'h-11 justify-start gap-3 px-3 py-2.5'
)}
- title="Logout"
+ title={m.common_logout()}
type="submit"
>
<div class="group-hover:bg-destructive/10 rounded-lg bg-transparent p-1 transition-colors duration-200">
<LogOutIcon size={16} class="transition-transform duration-200" />
</div>
+ <span class="font-medium">{m.common_logout()}</span>
</Button.Root>
</form>
- </div>
- {/if}
+ </DropdownMenu.Content>
+ </DropdownMenu.Root>
</Sidebar.MenuItem>
</Sidebar.Menu>
diff --git a/frontend/src/lib/components/sidebar/sidebar.svelte b/frontend/src/lib/components/sidebar/sidebar.svelte
index e75f1796e..bd0e41aa1 100644
--- a/frontend/src/lib/components/sidebar/sidebar.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar.svelte
@@ -14,6 +14,7 @@
import SidebarLogo from './sidebar-logo.svelte';
import SidebarUpdatebanner from './sidebar-updatebanner.svelte';
import userStore from '$lib/stores/user-store';
+ import { m } from '$lib/paraglide/messages';
let {
ref = $bindable(null),
@@ -45,11 +46,11 @@
<SidebarEnvSwitcher {isAdmin} />
</Sidebar.Header>
<Sidebar.Content>
- <SidebarItemGroup label="Management" items={sidebarItems.managementItems} />
- <SidebarItemGroup label="Customization" items={sidebarItems.customizationItems} />
+ <SidebarItemGroup label={m.sidebar_management()} items={sidebarItems.managementItems} />
+ <SidebarItemGroup label={m.sidebar_customization()} items={sidebarItems.customizationItems} />
{#if isAdmin}
- <SidebarItemGroup label="Environments" items={sidebarItems.environmentItems} />
- <SidebarItemGroup label="Administration" items={sidebarItems.settingsItems} />
+ <SidebarItemGroup label={m.sidebar_environments()} items={sidebarItems.environmentItems} />
+ <SidebarItemGroup label={m.sidebar_administration()} items={sidebarItems.settingsItems} />
{/if}
</Sidebar.Content>
<Sidebar.Footer>
diff --git a/frontend/src/lib/config/sidebar-config.ts b/frontend/src/lib/config/sidebar-config.ts
index e6cb2de8a..9602294db 100644
--- a/frontend/src/lib/config/sidebar-config.ts
+++ b/frontend/src/lib/config/sidebar-config.ts
@@ -13,6 +13,7 @@ import ShieldIcon from '@lucide/svelte/icons/shield';
import ComputerIcon from '@lucide/svelte/icons/computer';
import LockKeyholeIcon from '@lucide/svelte/icons/lock-keyhole';
import AlarmClockIcon from '@lucide/svelte/icons/alarm-clock';
+import { m } from '$lib/paraglide/messages';
export type SidebarItem = {
title: string;
@@ -23,47 +24,47 @@ export type SidebarItem = {
export const sidebarItems: Record<string, SidebarItem[]> = {
managementItems: [
- { title: 'Dashboard', url: '/dashboard', icon: HouseIcon },
- { title: 'Containers', url: '/containers', icon: ContainerIcon },
- { title: 'Projects', url: '/compose', icon: FileStackIcon },
- { title: 'Images', url: '/images', icon: ImageIcon },
- { title: 'Networks', url: '/networks', icon: NetworkIcon },
- { title: 'Volumes', url: '/volumes', icon: HardDriveIcon }
+ { title: m.dashboard_title(), url: '/dashboard', icon: HouseIcon },
+ { title: m.containers_title(), url: '/containers', icon: ContainerIcon },
+ { title: m.compose_title(), url: '/compose', icon: FileStackIcon },
+ { title: m.images_title(), url: '/images', icon: ImageIcon },
+ { title: m.networks_title(), url: '/networks', icon: NetworkIcon },
+ { title: m.volumes_title(), url: '/volumes', icon: HardDriveIcon }
],
customizationItems: [
{
- title: 'Templates',
+ title: m.templates_title(),
url: '/customize/templates',
icon: LayoutTemplateIcon
},
{
- title: 'Container Registries',
+ title: m.registries_title(),
url: '/customize/registries',
icon: LockKeyholeIcon
}
],
environmentItems: [
{
- title: 'Environments',
+ title: m.environments_title(),
url: '/environments',
icon: ComputerIcon
}
],
settingsItems: [
{
- title: 'Events',
+ title: m.events_title(),
url: '/events',
icon: AlarmClockIcon
},
{
- title: 'Settings',
+ title: m.sidebar_settings(),
url: '/settings',
icon: SettingsIcon,
items: [
- { title: 'General', url: '/settings/general', icon: SettingsIcon },
- { title: 'Docker', url: '/settings/docker', icon: DatabaseIcon },
- { title: 'Users', url: '/settings/users', icon: UserIcon },
- { title: 'Security', url: '/settings/security', icon: ShieldIcon }
+ { title: m.general_title(), url: '/settings/general', icon: SettingsIcon },
+ { title: m.docker_title(), url: '/settings/docker', icon: DatabaseIcon },
+ { title: m.users_title(), url: '/settings/users', icon: UserIcon },
+ { title: m.security_title(), url: '/settings/security', icon: ShieldIcon }
]
}
]
diff --git a/frontend/src/lib/stores/user-store.ts b/frontend/src/lib/stores/user-store.ts
index 19147c50a..2a9c0a978 100644
--- a/frontend/src/lib/stores/user-store.ts
+++ b/frontend/src/lib/stores/user-store.ts
@@ -1,9 +1,13 @@
import type { User } from '$lib/types/user.type';
import { writable } from 'svelte/store';
+import { setLocale } from '$lib/utils/locale.util';
const userStore = writable<User | null>(null);
-const setUser = (user: User) => {
+const setUser = async (user: User) => {
+ if (user.locale) {
+ await setLocale(user.locale, false);
+ }
userStore.set(user);
};
diff --git a/frontend/src/lib/types/user.type.ts b/frontend/src/lib/types/user.type.ts
index 102b48198..4882abe21 100644
--- a/frontend/src/lib/types/user.type.ts
+++ b/frontend/src/lib/types/user.type.ts
@@ -1,3 +1,5 @@
+import type { Locale } from '$lib/paraglide/runtime';
+
export type User = {
id: string;
username: string;
@@ -9,6 +11,7 @@ export type User = {
lastLogin?: string;
updatedAt?: string;
oidcSubjectId?: string;
+ locale?: Locale;
};
export interface UserRole {
diff --git a/frontend/src/lib/utils/locale.util.ts b/frontend/src/lib/utils/locale.util.ts
new file mode 100644
index 000000000..efa1ddffe
--- /dev/null
+++ b/frontend/src/lib/utils/locale.util.ts
@@ -0,0 +1,26 @@
+import { setLocale as setParaglideLocale, type Locale } from '$lib/paraglide/runtime';
+import { setDefaultOptions } from 'date-fns';
+import { z } from 'zod/v4';
+
+export async function setLocale(locale: Locale, reload = true) {
+ const [zodResult, dateFnsResult] = await Promise.allSettled([
+ import(`../../../node_modules/zod/v4/locales/${locale}.js`),
+ import(`../../../node_modules/date-fns/locale/${locale}.js`)
+ ]);
+
+ if (zodResult.status === 'fulfilled') {
+ z.config(zodResult.value.default());
+ } else {
+ console.warn(`Failed to load zod locale for ${locale}:`, zodResult.reason);
+ }
+
+ setParaglideLocale(locale, { reload });
+
+ if (dateFnsResult.status === 'fulfilled') {
+ setDefaultOptions({
+ locale: dateFnsResult.value.default
+ });
+ } else {
+ console.warn(`Failed to load date-fns locale for ${locale}:`, dateFnsResult.reason);
+ }
+}
diff --git a/frontend/src/routes/+error.svelte b/frontend/src/routes/+error.svelte
index 330a81b36..6800bcd59 100644
--- a/frontend/src/routes/+error.svelte
+++ b/frontend/src/routes/+error.svelte
@@ -1,13 +1,14 @@
<script lang="ts">
import ErrorView from '$lib/components/error.svelte';
import { page } from '$app/state';
+ import { m } from '$lib/paraglide/messages';
// Props can be missing in some cases (e.g., 404 on client nav)
const props = $props<{ error?: any; status?: number }>();
const status = $derived(props.status ?? page.status ?? 500);
const message = $derived(
- props.error?.message ?? page.error?.message ?? (status === 404 ? 'Not Found' : 'Something went wrong')
+ props.error?.message ?? page.error?.message ?? (status === 404 ? m.error_not_found() : m.error_generic())
);
</script>
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index 81d980d1e..e755eeaef 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -12,6 +12,7 @@
import type { LayoutData } from './$types';
import type { Snippet } from 'svelte';
import Error from '$lib/components/error.svelte';
+ import { m } from '$lib/paraglide/messages';
let {
data,
@@ -39,11 +40,11 @@
}
</script>
-<svelte:head><title>Arcane</title></svelte:head>
+<svelte:head><title>{m.layout_title()}</title></svelte:head>
<div class="bg-background min-h-screen">
{#if !settings}
- <Error message="An Error Occured" showButton={true} />
+ <Error message={m.error_occurred()} showButton={true} />
{:else if !isOnboardingPage && !isLoginPage}
<Sidebar.Provider>
<AppSidebar {versionInformation} {user} />
diff --git a/frontend/src/routes/auth/login/+page.svelte b/frontend/src/routes/auth/login/+page.svelte
index 9c00f4ac8..a5f779d6c 100644
--- a/frontend/src/routes/auth/login/+page.svelte
+++ b/frontend/src/routes/auth/login/+page.svelte
@@ -13,6 +13,7 @@
import { authService } from '$lib/services/api/auth-api-service';
import { toast } from 'svelte-sonner';
import userStore from '$lib/stores/user-store';
+ import { m } from '$lib/paraglide/messages';
let { data }: { data: PageData } = $props();
@@ -68,32 +69,31 @@
<div class="p-6 md:p-8">
<div class="flex flex-col gap-6">
<div class="flex flex-col items-center text-center">
- <h1 class="text-2xl font-bold">Welcome back</h1>
- <p class="text-muted-foreground text-balance">Sign in to manage your containers</p>
+ <h1 class="text-2xl font-bold">{m.auth_welcome_back_title()}</h1>
+ <p class="text-muted-foreground text-balance">{m.auth_login_subtitle()}</p>
</div>
{#if data.error}
<Alert.Root variant="destructive">
<CircleAlertIcon class="size-4" />
- <Alert.Title>Login Problem</Alert.Title>
+ <Alert.Title>{m.auth_login_problem_title()}</Alert.Title>
<Alert.Description>
{#if data.error === 'oidc_invalid_response'}
- There was an issue with the OIDC login response. Please try again.
+ {m.auth_oidc_invalid_response()}
{:else if data.error === 'oidc_misconfigured'}
- OIDC is not configured correctly on the server. Please contact an administrator.
+ {m.auth_oidc_misconfigured()}
{:else if data.error === 'oidc_userinfo_failed'}
- Could not retrieve your user information from the OIDC provider.
+ {m.auth_oidc_userinfo_failed()}
{:else if data.error === 'oidc_missing_sub'}
- Your OIDC provider did not return a subject identifier.
+ {m.auth_oidc_missing_sub()}
{:else if data.error === 'oidc_email_collision'}
- An account with your email already exists but is linked to a different OIDC identity. Please contact an
- administrator.
+ {m.auth_oidc_email_collision()}
{:else if data.error === 'oidc_token_error'}
- There was an error obtaining tokens from the OIDC provider.
+ {m.auth_oidc_token_error()}
{:else if data.error === 'user_processing_failed'}
- An error occurred while processing your user account.
+ {m.auth_user_processing_failed()}
{:else}
- An unexpected error occurred. Please try again.
+ {m.auth_unexpected_error()}
{/if}
</Alert.Description>
</Alert.Root>
@@ -102,7 +102,7 @@
{#if error}
<Alert.Root variant="destructive">
<CircleAlertIcon class="size-4" />
- <Alert.Title>Authentication Failed</Alert.Title>
+ <Alert.Title>{m.auth_failed_title()}</Alert.Title>
<Alert.Description>{error}</Alert.Description>
</Alert.Root>
{/if}
@@ -110,24 +110,22 @@
{#if !showLocalLoginForm && !showOidcLoginButton}
<Alert.Root variant="destructive">
<CircleAlertIcon class="size-4" />
- <Alert.Title>No Login Methods Configured</Alert.Title>
- <Alert.Description>
- There are currently no login methods enabled. Please contact an administrator.
- </Alert.Description>
+ <Alert.Title>{m.auth_no_login_methods_title()}</Alert.Title>
+ <Alert.Description>{m.auth_no_login_methods_description()}</Alert.Description>
</Alert.Root>
{/if}
{#if showOidcLoginButton && !showLocalLoginForm}
<Button onclick={handleOidcLogin} class="w-full">
<LogInIcon class="mr-2 size-4" />
- Sign in with OIDC Provider
+ {m.auth_oidc_signin()}
</Button>
{/if}
{#if showLocalLoginForm}
<form onsubmit={handleLogin} class="contents">
<div class="grid gap-3">
- <Label for="username">Username</Label>
+ <Label for="username">{m.common_username()}</Label>
<div class="relative">
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
<UserIcon class="text-muted-foreground size-4" />
@@ -140,13 +138,13 @@
required
bind:value={username}
class="pl-9"
- placeholder="Enter your username or email"
+ placeholder={m.auth_username_placeholder()}
disabled={loading}
/>
</div>
</div>
<div class="grid gap-3">
- <Label for="password">Password</Label>
+ <Label for="password">{m.common_password()}</Label>
<div class="relative">
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
<LockIcon class="text-muted-foreground size-4" />
@@ -159,7 +157,7 @@
required
bind:value={password}
class="pl-9"
- placeholder="Enter your password"
+ placeholder={m.auth_password_placeholder()}
disabled={loading}
/>
</div>
@@ -167,10 +165,10 @@
<Button type="submit" class="w-full" disabled={loading} aria-busy={loading}>
{#if loading}
<div class="mr-2 size-4 animate-spin rounded-full border-2 border-white/30 border-t-white"></div>
- Signing in...
+ {m.auth_signing_in()}
{:else}
<LogInIcon class="mr-2 size-4" />
- Sign in to Arcane
+ {m.auth_signin_button()}
{/if}
</Button>
</form>
@@ -179,14 +177,14 @@
<div
class="after:border-border relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t"
>
- <span class="bg-card text-muted-foreground relative z-10 px-2"> Or continue with </span>
+ <span class="bg-card text-muted-foreground relative z-10 px-2"> {m.auth_or_continue()} </span>
</div>
{/if}
{#if showOidcLoginButton && showDivider}
<Button onclick={handleOidcLogin} variant="outline" class="w-full">
<LogInIcon class="mr-2 size-4" />
- Sign in with OIDC Provider
+ {m.auth_oidc_signin()}
</Button>
{/if}
{/if}
@@ -202,10 +200,10 @@
<div class="absolute inset-0 flex items-center justify-center">
<div class="space-y-4 p-8 text-center">
<div class="mb-8">
- <img class="mx-auto h-32 w-auto opacity-60" src="/img/arcane.svg" alt="Arcane" />
+ <img class="mx-auto h-32 w-auto opacity-60" src="/img/arcane.svg" alt={m.layout_title()} />
</div>
- <h2 class="text-foreground/80 text-2xl font-bold">Arcane</h2>
- <p class="text-muted-foreground max-w-xs text-balance">Modern Docker Management, Designed for Everyone.</p>
+ <h2 class="text-foreground/80 text-2xl font-bold">{m.layout_title()}</h2>
+ <p class="text-muted-foreground max-w-xs text-balance">{m.auth_tagline()}</p>
</div>
</div>
</div>
@@ -215,8 +213,8 @@
</div>
</div>
-<div class="fixed right-0 bottom-0 left-0 p-4">
- <div class="text-muted-foreground text-center text-xs text-balance">
+<div class="fixed bottom-0 left-0 right-0 p-4">
+ <div class="text-muted-foreground text-balance text-center text-xs">
<div class="flex items-center justify-center gap-4">
<a
href="https://github.com/ofkm/arcane"
@@ -224,7 +222,7 @@
rel="noopener noreferrer"
class="hover:text-primary underline underline-offset-4"
>
- View on GitHub
+ {m.common_view_on_github()}
</a>
</div>
</div>
diff --git a/frontend/src/routes/auth/oidc/callback/+page.svelte b/frontend/src/routes/auth/oidc/callback/+page.svelte
index bad048cb3..c21b06090 100644
--- a/frontend/src/routes/auth/oidc/callback/+page.svelte
+++ b/frontend/src/routes/auth/oidc/callback/+page.svelte
@@ -6,6 +6,7 @@
import { toast } from 'svelte-sonner';
import userStore from '$lib/stores/user-store';
import type { User } from '$lib/types/user.type';
+ import { m } from '$lib/paraglide/messages';
let isProcessing = $state(true);
let error = $state('');
@@ -21,11 +22,11 @@
localStorage.removeItem('oidc_redirect');
if (errorParam) {
- let userMessage = 'Authentication was cancelled or failed.';
+ let userMessage = m.auth_oidc_provider_error();
if (errorParam === 'access_denied') {
- userMessage = 'Access was denied. You may have cancelled the login or lack permission.';
+ userMessage = m.auth_oidc_access_denied();
} else if (errorParam === 'invalid_request') {
- userMessage = 'Invalid authentication request. Please try again.';
+ userMessage = m.auth_oidc_invalid_request();
}
error = errorDescription || userMessage;
@@ -35,7 +36,7 @@
}
if (!code || !stateFromUrl) {
- error = 'Invalid authentication response. Missing required parameters.';
+ error = m.auth_oidc_invalid_response();
setTimeout(() => goto('/auth/login?error=oidc_invalid_response'), 3000);
isProcessing = false;
return;
@@ -44,11 +45,11 @@
const authResult = await oidcAPI.handleCallback(code, stateFromUrl);
if (!authResult.success) {
- let userMessage = 'Authentication failed. Please try again.';
+ let userMessage = m.auth_oidc_auth_failed();
if (authResult.error?.includes('state')) {
- userMessage = 'Security validation failed. Please try logging in again.';
+ userMessage = m.auth_oidc_state_mismatch();
} else if (authResult.error?.includes('expired')) {
- userMessage = 'Authentication session expired. Please try again.';
+ userMessage = m.auth_oidc_session_expired();
}
error = userMessage;
@@ -68,26 +69,26 @@
authResult.user.given_name ||
authResult.user.preferred_username ||
authResult.user.email ||
- 'User',
+ m.common_unknown(),
roles: authResult.user.groups || ['user'],
createdAt: new Date().toISOString()
};
userStore.setUser(user);
await invalidateAll();
- toast.success(`Welcome Back, ${user.displayName}`);
+ toast.success(m.auth_welcome_back_toast({ name: user.displayName ?? m.common_unknown() }));
goto(redirectTo, { replaceState: true });
} else {
- error = 'Authentication succeeded but user information is missing.';
+ error = m.auth_oidc_user_info_missing();
setTimeout(() => goto('/auth/login?error=oidc_user_info_missing'), 3000);
isProcessing = false;
}
} catch (err: any) {
console.error('OIDC callback error:', err);
- let userMessage = 'An error occurred during authentication. Please try again.';
+ let userMessage = m.auth_oidc_callback_error();
if (err.message?.includes('network') || err.message?.includes('timeout')) {
- userMessage = 'Network error during authentication. Please check your connection and try again.';
+ userMessage = m.auth_oidc_network_error();
}
error = userMessage;
@@ -97,15 +98,15 @@
});
</script>
-<svelte:head><title>Arcane</title></svelte:head>
+<svelte:head><title>{m.layout_title()}</title></svelte:head>
<div class="bg-background flex min-h-screen items-center justify-center">
<div class="w-full max-w-md space-y-8">
<div class="text-center">
{#if isProcessing}
<div class="border-primary mx-auto h-12 w-12 animate-spin rounded-full border-b-2"></div>
- <h2 class="mt-6 text-2xl font-bold">Processing Login...</h2>
- <p class="text-muted-foreground mt-2 text-sm">Please wait while we complete your authentication.</p>
+ <h2 class="mt-6 text-2xl font-bold">{m.auth_processing_login()}</h2>
+ <p class="text-muted-foreground mt-2 text-sm">{m.auth_processing_login_description()}</p>
{:else if error}
<div class="text-destructive">
<svg class="mx-auto h-12 w-12" fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -116,9 +117,9 @@
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L3.341 16.5c-.77.833.192 2.5 1.732 2.5z"
/>
</svg>
- <h2 class="mt-6 text-2xl font-bold">Authentication Error</h2>
+ <h2 class="mt-6 text-2xl font-bold">{m.auth_authentication_error_title()}</h2>
<p class="mt-2 text-sm">{error}</p>
- <p class="text-muted-foreground mt-4 text-xs">Redirecting you back to login...</p>
+ <p class="text-muted-foreground mt-4 text-xs">{m.auth_redirecting_to_login()}</p>
</div>
{/if}
</div>
diff --git a/frontend/src/routes/auth/oidc/login/+page.svelte b/frontend/src/routes/auth/oidc/login/+page.svelte
index d384bdc4f..e87b58d84 100644
--- a/frontend/src/routes/auth/oidc/login/+page.svelte
+++ b/frontend/src/routes/auth/oidc/login/+page.svelte
@@ -3,6 +3,7 @@
import { goto } from '$app/navigation';
import { page } from '$app/state';
import { oidcAPI } from '$lib/services/api';
+ import { m } from '$lib/paraglide/messages';
let isRedirecting = $state(true);
let error = $state('');
@@ -15,7 +16,7 @@
const authUrl = await oidcAPI.getAuthUrl(redirect);
if (!authUrl) {
- error = 'Unable to generate authentication URL. Please try again or contact your administrator.';
+ error = m.auth_oidc_url_generation_failed();
setTimeout(() => goto('/auth/login?error=oidc_url_generation_failed'), 3000);
isRedirecting = false;
return;
@@ -26,11 +27,11 @@
} catch (err: any) {
console.error('OIDC login initiation error:', err);
- let userMessage = 'Failed to initiate OIDC login. Please try again.';
+ let userMessage = m.auth_oidc_init_failed();
if (err.message?.includes('discovery')) {
- userMessage = 'OIDC provider configuration error. Please contact your administrator.';
+ userMessage = m.auth_oidc_misconfigured();
} else if (err.message?.includes('network') || err.message?.includes('timeout')) {
- userMessage = 'Network error connecting to authentication provider. Please check your connection and try again.';
+ userMessage = m.auth_oidc_network_error();
}
error = userMessage;
@@ -40,15 +41,15 @@
});
</script>
-<svelte:head><title>Arcane</title></svelte:head>
+<svelte:head><title>{m.layout_title()}</title></svelte:head>
<div class="bg-background flex min-h-screen items-center justify-center">
<div class="w-full max-w-md space-y-8">
<div class="text-center">
{#if isRedirecting && !error}
<div class="border-primary mx-auto h-12 w-12 animate-spin rounded-full border-b-2"></div>
- <h2 class="mt-6 text-2xl font-bold">Redirecting to Login...</h2>
- <p class="text-muted-foreground mt-2 text-sm">Please wait while we redirect you to your identity provider.</p>
+ <h2 class="mt-6 text-2xl font-bold">{m.auth_oidc_redirecting_title()}</h2>
+ <p class="text-muted-foreground mt-2 text-sm">{m.auth_oidc_redirecting_description()}</p>
{:else if error}
<div class="text-destructive">
<svg class="mx-auto h-12 w-12" fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -59,9 +60,9 @@
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L3.341 16.5c-.77.833.192 2.5 1.732 2.5z"
/>
</svg>
- <h2 class="mt-6 text-2xl font-bold">Authentication Error</h2>
+ <h2 class="mt-6 text-2xl font-bold">{m.auth_authentication_error_title()}</h2>
<p class="mt-2 text-sm">{error}</p>
- <p class="text-muted-foreground mt-4 text-xs">Redirecting you back to the login page...</p>
+ <p class="text-muted-foreground mt-4 text-xs">{m.auth_redirecting_to_login()}</p>
</div>
{/if}
</div>
diff --git a/frontend/src/routes/compose/+page.svelte b/frontend/src/routes/compose/+page.svelte
index 15134beff..480f4e7be 100644
--- a/frontend/src/routes/compose/+page.svelte
+++ b/frontend/src/routes/compose/+page.svelte
@@ -10,6 +10,7 @@
import StatCard from '$lib/components/stat-card.svelte';
import ProjectsTable from './compose-table.svelte';
import { goto } from '$app/navigation';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
@@ -55,21 +56,21 @@
<div class="space-y-6">
<div class="flex flex-col justify-between gap-4 sm:flex-row sm:items-center">
<div>
- <h1 class="text-3xl font-bold tracking-tight">Compose Projects</h1>
- <p class="text-muted-foreground mt-1 text-sm">View and Manage Compose Projects</p>
+ <h1 class="text-3xl font-bold tracking-tight">{m.compose_title()}</h1>
+ <p class="text-muted-foreground mt-1 text-sm">{m.compose_subtitle()}</p>
</div>
<div class="flex items-center gap-2">
<ArcaneButton
action="inspect"
- customLabel="Update Projects"
+ customLabel={m.compose_update_projects()}
onclick={handleCheckForUpdates}
loading={isLoading.updating}
disabled={isLoading.updating}
/>
- <ArcaneButton action="create" customLabel="Create Project" onclick={() => goto(`/compose/new`)} />
+ <ArcaneButton action="create" customLabel={m.compose_create_project()} onclick={() => goto(`/compose/new`)} />
<ArcaneButton
action="restart"
- customLabel="Refresh"
+ customLabel={m.common_refresh()}
onclick={refreshCompose}
loading={isLoading.refreshing}
disabled={isLoading.refreshing}
@@ -79,21 +80,21 @@
<div class="grid grid-cols-1 gap-4 sm:grid-cols-3">
<StatCard
- title="Total Projects"
+ title={m.compose_total()}
value={totalCompose}
icon={FileStackIcon}
iconColor="text-amber-500"
class="border-l-4 border-l-amber-500"
/>
<StatCard
- title="Running"
+ title={m.compose_running()}
value={runningCompose}
icon={PlayCircleIcon}
iconColor="text-green-500"
class="border-l-4 border-l-green-500"
/>
<StatCard
- title="Stopped"
+ title={m.compose_stopped()}
value={stoppedCompose}
icon={StopCircleIcon}
iconColor="text-red-500"
diff --git a/frontend/src/routes/compose/[projectId]/+page.svelte b/frontend/src/routes/compose/[projectId]/+page.svelte
index b1ae2ae11..3d93feb1f 100644
--- a/frontend/src/routes/compose/[projectId]/+page.svelte
+++ b/frontend/src/routes/compose/[projectId]/+page.svelte
@@ -31,6 +31,7 @@
import { browser } from '$app/environment';
import { z } from 'zod/v4';
import { createForm } from '$lib/utils/form.utils';
+ import { m } from '$lib/paraglide/messages';
let { data }: { data: PageData } = $props();
let { project, editorState, servicePorts, settings } = $derived(data);
@@ -182,10 +183,10 @@
function handleToggleStackAutoScroll() {}
const navigationSections = [
- { id: 'overview', label: 'Overview', icon: FileStackIcon },
- { id: 'services', label: 'Services', icon: LayersIcon },
- { id: 'config', label: 'Configuration', icon: SettingsIcon },
- { id: 'logs', label: 'Logs', icon: TerminalIcon }
+ { id: 'overview', label: m.compose_nav_overview(), icon: FileStackIcon },
+ { id: 'services', label: m.compose_nav_services(), icon: LayersIcon },
+ { id: 'config', label: m.compose_nav_config(), icon: SettingsIcon },
+ { id: 'logs', label: m.compose_nav_logs(), icon: TerminalIcon }
] as const;
type SectionId = (typeof navigationSections)[number]['id'];
@@ -210,7 +211,7 @@
<div class="flex items-center gap-3">
<Button variant="ghost" size="sm" href="/compose">
<ArrowLeftIcon class="mr-2 size-4" />
- Back
+ {m.common_back()}
</Button>
<div class="bg-border h-4 w-px"></div>
<div class="flex items-center gap-2">
@@ -241,7 +242,7 @@
</div>
{#if showFloatingHeader}
- <div class="fixed top-4 left-1/2 z-30 -translate-x-1/2 transition-all duration-300 ease-in-out">
+ <div class="fixed left-1/2 top-4 z-30 -translate-x-1/2 transition-all duration-300 ease-in-out">
<div class="bg-background/90 border-border/50 rounded-lg border px-4 py-3 shadow-xl backdrop-blur-xl">
<div class="flex items-center gap-4">
<div class="flex items-center gap-2">
@@ -278,7 +279,7 @@
<div class="max-w-full px-4 py-4">
<Alert.Root variant="destructive">
<CircleAlertIcon class="size-4" />
- <Alert.Title>Error Loading Stack</Alert.Title>
+ <Alert.Title>{m.compose_error_loading_stack_title()}</Alert.Title>
<Alert.Description>{data.error}</Alert.Description>
</Alert.Root>
</div>
@@ -301,7 +302,7 @@
<IconComponent class="size-4" />
{#if section.id === 'services' && project.serviceCount}
<span
- class="bg-primary text-primary-foreground absolute -top-1 -right-1 flex h-[18px] min-w-[18px] items-center justify-center rounded-full px-1 text-xs"
+ class="bg-primary text-primary-foreground absolute -right-1 -top-1 flex h-[18px] min-w-[18px] items-center justify-center rounded-full px-1 text-xs"
>
{project.serviceCount}
</span>
@@ -318,14 +319,14 @@
<section id="overview" class="scroll-mt-20">
<h2 class="mb-6 flex items-center gap-2 text-xl font-semibold">
<FileStackIcon class="size-5" />
- Overview
+ {m.compose_overview_title()}
</h2>
<div class="mb-6 grid grid-cols-1 gap-6 md:grid-cols-3">
<Card.Root class="border">
<Card.Content class="flex items-center justify-between p-6">
<div>
- <p class="text-muted-foreground text-sm font-medium">Services</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.compose_services()}</p>
<p class="text-2xl font-bold">{project.serviceCount}</p>
</div>
<div class="bg-primary/10 rounded-full p-3">
@@ -337,7 +338,7 @@
<Card.Root class="border">
<Card.Content class="flex items-center justify-between p-6">
<div>
- <p class="text-muted-foreground text-sm font-medium">Running</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.compose_running()}</p>
<p class="text-2xl font-bold">{project.runningCount}</p>
</div>
<div class="rounded-full bg-green-500/10 p-3">
@@ -349,7 +350,7 @@
<Card.Root class="border">
<Card.Content class="flex items-center justify-between p-6">
<div>
- <p class="text-muted-foreground text-sm font-medium">Created</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_created()}</p>
<p class="text-lg font-medium">
{new Date(project.createdAt ?? '').toLocaleDateString()}
</p>
@@ -361,10 +362,14 @@
</Card.Root>
{#if servicePorts && Object.keys(servicePorts).length > 0}
- {@const allUniquePorts = [...new Set(Object.values(servicePorts).flat())]}
+ {@const allUniquePorts = [...new Set((Object.values(servicePorts) as any).flat())] as (
+ | string
+ | number
+ | ProjectPort
+ )[]}
<Card.Root class="border">
<Card.Header class="pb-4">
- <Card.Title>Exposed Ports</Card.Title>
+ <Card.Title>{m.compose_exposed_ports()}</Card.Title>
</Card.Header>
<Card.Content>
<div class="flex flex-wrap gap-2">
@@ -384,7 +389,7 @@
rel="noopener noreferrer"
class="inline-flex items-center rounded-md bg-blue-500/10 px-3 py-2 font-medium text-blue-600 transition-colors hover:bg-blue-500/20 dark:text-blue-400"
>
- Port {port}
+ {m.compose_port_label({ port: String(port) })}
<ExternalLinkIcon class="ml-2 size-4" />
</a>
{/each}
@@ -395,10 +400,14 @@
</div>
{#if servicePorts && Object.keys(servicePorts).length > 0}
- {@const allUniquePorts = [...new Set(Object.values(servicePorts).flat())]}
+ {@const allUniquePorts = [...new Set((Object.values(servicePorts) as any).flat())] as (
+ | string
+ | number
+ | ProjectPort
+ )[]}
<Card.Root class="border">
<Card.Header class="pb-4">
- <Card.Title>Exposed Ports</Card.Title>
+ <Card.Title>{m.compose_exposed_ports()}</Card.Title>
</Card.Header>
<Card.Content>
<div class="flex flex-wrap gap-2">
@@ -418,7 +427,7 @@
rel="noopener noreferrer"
class="inline-flex items-center rounded-md bg-blue-500/10 px-3 py-2 font-medium text-blue-600 transition-colors hover:bg-blue-500/20 dark:text-blue-400"
>
- Port {port}
+ {m.compose_port_label({ port: String(port) })}
<ExternalLinkIcon class="ml-2 size-4" />
</a>
{/each}
@@ -431,7 +440,7 @@
<section id="services" class="scroll-mt-20">
<h2 class="mb-6 flex items-center gap-2 text-xl font-semibold">
<LayersIcon class="size-5" />
- Services ({project.serviceCount})
+ {m.compose_services_header({ count: project.serviceCount })}
</h2>
{#if project.services && project.services.length > 0}
@@ -462,7 +471,8 @@
<StatusBadge {variant} text={capitalizeFirstLetter(status)} class="text-xs" />
{#if service.ports && service.ports.length > 0}
<span class="bg-muted text-muted-foreground rounded px-1.5 py-0.5 text-xs">
- {service.ports.length} port{service.ports.length > 1 ? 's' : ''}
+ {service.ports.length}
+ {service.ports.length > 1 ? m.compose_ports_label_many() : m.compose_ports_label_one()}
</span>
{/if}
</div>
@@ -479,7 +489,7 @@
</p>
<div class="mt-1 flex items-center gap-2">
<StatusBadge {variant} text={capitalizeFirstLetter(status)} class="text-xs" />
- <span class="text-muted-foreground text-xs">Not created</span>
+ <span class="text-muted-foreground text-xs">{m.compose_service_not_created()}</span>
</div>
</div>
</div>
@@ -492,7 +502,7 @@
<div class="bg-muted/50 mx-auto mb-4 flex size-16 items-center justify-center rounded-full">
<LayersIcon class="text-muted-foreground size-6" />
</div>
- <div class="text-muted-foreground">No services found for this project</div>
+ <div class="text-muted-foreground">{m.compose_no_services_found()}</div>
</div>
{/if}
</section>
@@ -501,7 +511,7 @@
<div class="mb-6 flex items-center justify-between">
<h2 class="flex items-center gap-2 text-xl font-semibold">
<SettingsIcon class="size-5" />
- Configuration
+ {m.compose_configuration_title()}
</h2>
{#if hasChanges}
<ArcaneButton
@@ -509,15 +519,15 @@
loading={isLoading.saving}
onclick={handleSaveChanges}
disabled={!hasChanges}
- customLabel="Save Changes"
- loadingLabel="Saving..."
+ customLabel={m.common_save()}
+ loadingLabel={m.common_saving()}
class="bg-green-600 text-white hover:bg-green-700"
/>
{/if}
</div>
<div class="mb-6 space-y-2">
- <Label for="name" class="mb-10 text-sm font-medium">Project Name</Label>
+ <Label for="name" class="mb-10 text-sm font-medium">{m.compose_name_label()}</Label>
<div class="max-w-md">
<Input
type="text"
@@ -533,7 +543,7 @@
{/if}
{#if project?.status === 'running' || project?.status === 'partially running'}
<p class="text-muted-foreground mt-2 text-sm">
- Project name cannot be changed while running. Please stop the project first.
+ {m.compose_name_change_not_allowed()}
</p>
{/if}
</div>
@@ -542,9 +552,13 @@
<div class="grid min-w-0 grid-cols-1 gap-6 overflow-hidden lg:grid-cols-3">
<div class="min-w-0 overflow-hidden lg:col-span-2">
<div class="space-y-4">
- <h3 class="text-lg">Compose File</h3>
+ <h3 class="text-lg">{m.compose_compose_file_title()}</h3>
<div class="h-[590px] w-full min-w-0 overflow-hidden rounded-md">
- <CodeEditor bind:value={$inputs.composeContent.value} language="yaml" placeholder="Enter YAML..." />
+ <CodeEditor
+ bind:value={$inputs.composeContent.value}
+ language="yaml"
+ placeholder={m.compose_compose_placeholder()}
+ />
</div>
{#if $inputs.composeContent.error}
<p class="text-destructive mt-1 text-xs">{$inputs.composeContent.error}</p>
@@ -554,12 +568,12 @@
<div class="min-w-0 overflow-hidden lg:col-span-1">
<div class="space-y-4">
- <h3 class="text-lg font-semibold">Environment (.env)</h3>
+ <h3 class="text-lg font-semibold">{m.compose_env_title()}</h3>
<div class="h-[590px] w-full min-w-0 overflow-hidden rounded-md">
<CodeEditor
bind:value={$inputs.envContent.value}
language="env"
- placeholder="Enter environment variables..."
+ placeholder={m.compose_env_placeholder()}
/>
</div>
{#if $inputs.envContent.error}
@@ -575,24 +589,31 @@
<div class="mb-6 flex items-center justify-between">
<h2 class="flex items-center gap-2 text-xl font-semibold">
<TerminalIcon class="size-5" />
- Project Logs
+ {m.compose_logs_title()}
</h2>
<div class="flex items-center gap-3">
<label class="flex items-center gap-2">
<input type="checkbox" bind:checked={autoScrollStackLogs} class="size-4" />
- Auto-scroll
+ {m.common_autoscroll()}
</label>
- <Button variant="outline" size="sm" onclick={() => stackLogViewer?.clearLogs()}>Clear</Button>
+ <Button variant="outline" size="sm" onclick={() => stackLogViewer?.clearLogs()}>{m.common_clear()}</Button>
{#if isStackLogsStreaming}
<div class="flex items-center gap-2">
<div class="size-2 animate-pulse rounded-full bg-green-500"></div>
- <span class="text-sm font-medium text-green-600">Live</span>
+ <span class="text-sm font-medium text-green-600">{m.common_live()}</span>
</div>
- <Button variant="outline" size="sm" onclick={() => stackLogViewer?.stopLogStream()}>Stop</Button>
+ <Button variant="outline" size="sm" onclick={() => stackLogViewer?.stopLogStream()}
+ >{m.common_stop()}</Button
+ >
{:else}
- <Button variant="outline" size="sm" onclick={() => stackLogViewer?.startLogStream()} disabled={!project?.id}
- >Start</Button
+ <Button
+ variant="outline"
+ size="sm"
+ onclick={() => stackLogViewer?.startLogStream()}
+ disabled={!project?.id}
>
+ {m.common_start()}
+ </Button>
{/if}
<Button
variant="outline"
@@ -638,13 +659,13 @@
<div class="bg-muted/50 mb-6 inline-flex rounded-full p-6">
<FileStackIcon class="text-muted-foreground size-10" />
</div>
- <h2 class="mb-3 text-2xl font-medium">Project Not Found</h2>
+ <h2 class="mb-3 text-2xl font-medium">{m.compose_not_found_title()}</h2>
<p class="text-muted-foreground mb-8 max-w-md text-center">
- Could not load Project data. It may have been removed or the Docker engine is not accessible.
+ {m.compose_not_found_description()}
</p>
<Button variant="outline" href="/compose">
<ArrowLeftIcon class="mr-2 size-4" />
- Back to Projects
+ {m.compose_back_to_projects()}
</Button>
</div>
</div>
diff --git a/frontend/src/routes/compose/compose-table.svelte b/frontend/src/routes/compose/compose-table.svelte
index 7a48a1b3c..986ce8757 100644
--- a/frontend/src/routes/compose/compose-table.svelte
+++ b/frontend/src/routes/compose/compose-table.svelte
@@ -23,6 +23,7 @@
import { capitalizeFirstLetter } from '$lib/utils/string.utils';
import { format } from 'date-fns';
import type { ColumnSpec } from '$lib/components/arcane-table';
+ import { m } from '$lib/paraglide/messages';
let {
projects = $bindable(),
@@ -53,57 +54,57 @@
if (action === 'start') {
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.startProject(id)),
- message: 'Failed to Start Project',
+ message: m.compose_start_failed(),
setLoadingState: (value) => (isLoading.start = value),
onSuccess: async () => {
- toast.success('Project Started Successfully.');
+ toast.success(m.compose_start_success());
projects = await environmentAPI.getProjects(requestOptions);
}
});
} else if (action === 'stop') {
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.downProject(id)),
- message: 'Failed to Stop Project',
+ message: m.compose_stop_failed(),
setLoadingState: (value) => (isLoading.stop = value),
onSuccess: async () => {
- toast.success('Project Stopped Successfully.');
+ toast.success(m.compose_stop_success());
projects = await environmentAPI.getProjects(requestOptions);
}
});
} else if (action === 'restart') {
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.restartProject(id)),
- message: 'Failed to Restart Project',
+ message: m.compose_restart_failed(),
setLoadingState: (value) => (isLoading.restart = value),
onSuccess: async () => {
- toast.success('Project Restarted Successfully.');
+ toast.success(m.compose_restart_success());
projects = await environmentAPI.getProjects(requestOptions);
}
});
} else if (action === 'pull') {
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.pullProjectImages(id)),
- message: 'Failed to pull Project',
+ message: m.compose_pull_failed(),
setLoadingState: (value) => (isLoading.pull = value),
onSuccess: async () => {
- toast.success('Project Pulled successfully.');
+ toast.success(m.compose_pull_success());
projects = await environmentAPI.getProjects(requestOptions);
}
});
} else if (action === 'destroy') {
openConfirmDialog({
- title: `Confirm Removal`,
- message: `Are you sure you want to remove this Project? This action cannot be undone.`,
+ title: m.compose_confirm_removal_title(),
+ message: m.compose_confirm_removal_message(),
confirm: {
- label: 'Remove',
+ label: m.common_remove(),
destructive: true,
action: async () => {
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.destroyProject(id)),
- message: 'Failed to Remove Project',
+ message: m.compose_destroy_failed(),
setLoadingState: (value) => (isLoading.destroy = value),
onSuccess: async () => {
- toast.success('Project Removed Successfully');
+ toast.success(m.compose_destroy_success());
projects = await environmentAPI.getProjects(requestOptions);
}
});
@@ -112,17 +113,17 @@
});
}
} catch (error) {
- toast.error(`Something Went Wrong ${error}`);
+ toast.error(m.action_failed());
}
}
const isAnyLoading = $derived(Object.values(isLoading).some((loading) => loading));
const columns = [
- { accessorKey: 'name', title: 'Name', sortable: true, cell: NameCell },
- { accessorKey: 'serviceCount', title: 'Services', sortable: true },
- { accessorKey: 'status', title: 'Status', sortable: true, cell: StatusCell },
- { accessorKey: 'createdAt', title: 'Created', sortable: true, cell: CreatedCell }
+ { accessorKey: 'name', title: m.common_name(), sortable: true, cell: NameCell },
+ { accessorKey: 'serviceCount', title: m.compose_services(), sortable: true },
+ { accessorKey: 'status', title: m.common_status(), sortable: true, cell: StatusCell },
+ { accessorKey: 'createdAt', title: m.common_created(), sortable: true, cell: CreatedCell }
] satisfies ColumnSpec<Project>[];
</script>
@@ -146,7 +147,7 @@
<DropdownMenu.Trigger>
{#snippet child({ props })}
<Button {...props} variant="ghost" size="icon" class="relative size-8 p-0">
- <span class="sr-only">Open menu</span>
+ <span class="sr-only">{m.common_open_menu()}</span>
<EllipsisIcon />
</Button>
{/snippet}
@@ -155,7 +156,7 @@
<DropdownMenu.Group>
<DropdownMenu.Item onclick={() => goto(`/compose/${item.id}`)} disabled={isAnyLoading}>
<PenIcon class="size-4" />
- Edit
+ {m.common_edit()}
</DropdownMenu.Item>
{#if item.status !== 'running'}
@@ -165,7 +166,7 @@
{:else}
<PlayIcon class="size-4" />
{/if}
- Start
+ {m.common_start()}
</DropdownMenu.Item>
{:else}
<DropdownMenu.Item
@@ -177,7 +178,7 @@
{:else}
<RotateCcwIcon class="size-4" />
{/if}
- Restart
+ {m.common_restart()}
</DropdownMenu.Item>
<DropdownMenu.Item onclick={() => performProjectAction('stop', item.id)} disabled={isLoading.stop || isAnyLoading}>
@@ -186,7 +187,7 @@
{:else}
<StopCircleIcon class="size-4" />
{/if}
- Stop
+ {m.common_stop()}
</DropdownMenu.Item>
{/if}
@@ -196,7 +197,7 @@
{:else}
<RotateCcwIcon class="size-4" />
{/if}
- Pull & Redeploy
+ {m.compose_pull_redeploy()}
</DropdownMenu.Item>
<DropdownMenu.Separator />
@@ -211,7 +212,7 @@
{:else}
<Trash2Icon class="size-4" />
{/if}
- Destroy
+ {m.compose_destroy()}
</DropdownMenu.Item>
</DropdownMenu.Group>
</DropdownMenu.Content>
diff --git a/frontend/src/routes/compose/new/+page.svelte b/frontend/src/routes/compose/new/+page.svelte
index 3636c7820..d9bbc17e5 100644
--- a/frontend/src/routes/compose/new/+page.svelte
+++ b/frontend/src/routes/compose/new/+page.svelte
@@ -24,6 +24,7 @@
import { z } from 'zod/v4';
import { arcaneButtonVariants, actionConfigs } from '$lib/components/arcane-button/variants';
import PlusCircleIcon from '@lucide/svelte/icons/plus-circle';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
@@ -36,9 +37,9 @@
const formSchema = z.object({
name: z
.string()
- .min(1, 'Project name is required')
- .regex(/^[a-z0-9-]+$/i, 'Only letters, numbers, and hyphens are allowed'),
- composeContent: z.string().min(1, 'Compose content is required'),
+ .min(1, m.compose_project_name_required())
+ .regex(/^[a-z0-9-]+$/i, m.compose_project_name_invalid()),
+ composeContent: z.string().min(1, m.compose_compose_content_required()),
envContent: z.string().optional().default('')
});
@@ -64,10 +65,10 @@
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.deployProject(name, composeContent, envContent)),
- message: 'Failed to Create Project',
+ message: m.compose_create_failed(),
setLoadingState: (value) => (saving = value),
onSuccess: async (project) => {
- toast.success(`Project "${name}" created successfully.`);
+ toast.success(m.compose_create_success({ name }));
goto(`/compose/${project.id}`, { invalidateAll: true });
}
});
@@ -75,20 +76,20 @@
async function handleConvertDockerRun() {
if (!dockerRunCommand.trim()) {
- toast.error('Please enter a docker run command');
+ toast.error(m.compose_enter_docker_run_command());
return;
}
handleApiResultWithCallbacks({
result: await tryCatch(converterAPI.convert(dockerRunCommand)),
- message: 'Failed to Convert Docker Run Command',
+ message: m.compose_convert_failed(),
setLoadingState: (value) => (converting = value),
onSuccess: (data) => {
$inputs.composeContent.value = data.dockerCompose;
$inputs.envContent.value = data.envVars;
$inputs.name.value = data.serviceName;
- toast.success('Docker run command converted successfully!');
+ toast.success(m.compose_convert_success());
dockerRunCommand = '';
showConverterDialog = false;
}
@@ -106,14 +107,10 @@
if (!$inputs.name.value?.trim()) {
$inputs.name.value = template.name.toLowerCase().replace(/[^a-z0-9-]/g, '-');
}
- toast.success(`Template "${template.name}" loaded successfully!`);
+ toast.success(m.compose_template_loaded({ name: template.name }));
}
- const exampleCommands = [
- 'docker run -d --name nginx -p 8080:80 -v nginx_data:/usr/share/nginx/html nginx:alpine',
- 'docker run -d --name postgres -e POSTGRES_DB=mydb -e POSTGRES_USER=user -e POSTGRES_PASSWORD=pass -v postgres_data:/var/lib/postgresql/data postgres:15',
- 'docker run -d --name redis -p 6379:6379 --restart unless-stopped redis:alpine'
- ];
+ const exampleCommands = [m.compose_example_command_1(), m.compose_example_command_2(), m.compose_example_command_3()];
function useExample(command: string) {
dockerRunCommand = command;
@@ -142,11 +139,11 @@
<div class="flex items-center gap-3">
<Button variant="ghost" size="sm" href="/compose" class="gap-2">
<ArrowLeftIcon class="size-4" />
- Back
+ {m.common_back()}
</Button>
<div class="bg-border h-4 w-px"></div>
<div class="flex items-center gap-2">
- <h1 class="text-lg font-semibold leading-none">Create New Project</h1>
+ <h1 class="text-lg font-semibold leading-none">{m.compose_new_title()}</h1>
</div>
</div>
@@ -154,17 +151,17 @@
<Dialog.Root bind:open={showConverterDialog}>
<Dialog.Content class="max-h-[80vh] sm:max-w-[800px]">
<Dialog.Header>
- <Dialog.Title>Docker Run to Compose Converter</Dialog.Title>
- <Dialog.Description>Convert existing docker run commands to Docker Compose format</Dialog.Description>
+ <Dialog.Title>{m.compose_converter_title()}</Dialog.Title>
+ <Dialog.Description>{m.compose_converter_description()}</Dialog.Description>
</Dialog.Header>
<div class="max-h-[60vh] space-y-4 overflow-y-auto">
<div class="space-y-2">
- <Label for="dockerRunCommand">Docker Run Command</Label>
+ <Label for="dockerRunCommand">{m.compose_docker_run_command_label()}</Label>
<Textarea
id="dockerRunCommand"
bind:value={dockerRunCommand}
- placeholder="docker run -d --name my-app -p 8080:80 nginx:alpine"
+ placeholder={m.compose_docker_run_placeholder()}
rows={3}
disabled={converting}
class="font-mono text-sm"
@@ -172,7 +169,7 @@
</div>
<div class="space-y-2">
- <Label class="text-muted-foreground text-xs">Example Commands:</Label>
+ <Label class="text-muted-foreground text-xs">{m.compose_example_commands_label()}</Label>
<div class="space-y-1">
{#each exampleCommands as command}
<Button
@@ -194,10 +191,10 @@
<Button type="button" disabled={!dockerRunCommand.trim() || converting} onclick={handleConvertDockerRun}>
{#if converting}
<LoaderCircleIcon class="mr-2 size-4 animate-spin" />
- Converting...
+ {m.compose_converting()}
{:else}
<WandIcon class="mr-2 size-4" />
- Convert to Compose
+ {m.compose_convert_action()}
{/if}
</Button>
</div>
@@ -217,10 +214,10 @@
>
{#if saving}
<LoaderCircleIcon class="size-4 animate-spin" />
- Creating...
+ {m.compose_creating()}
{:else}
<PlusCircleIcon class="size-4" />
- Create Project
+ {m.compose_create_project()}
{/if}
</DropdownButton.Main>
@@ -246,11 +243,11 @@
onclick={() => (showTemplateDialog = true)}
>
<LayoutTemplateIcon class="size-4" />
- Use Template
+ {m.compose_use_template()}
</DropdownButton.Item>
<DropdownButton.Item class={dropdownItemClass} onclick={() => (showConverterDialog = true)}>
<TerminalIcon class="size-4" />
- Convert from Docker Run
+ {m.compose_convert_from_docker_run()}
</DropdownButton.Item>
</DropdownButton.Content>
</DropdownButton.DropdownRoot>
@@ -264,7 +261,7 @@
<div class="space-y-8">
<form class="space-y-6" onsubmit={preventDefault(handleSubmit)}>
<div class="mb-6 space-y-2">
- <Label for="name" class="text-sm font-medium">Project Name</Label>
+ <Label for="name" class="text-sm font-medium">{m.compose_name_label?.() ?? m.common_name()}</Label>
<div class="max-w-md">
<Input
type="text"
@@ -272,14 +269,14 @@
name="name"
bind:value={$inputs.name.value}
required
- placeholder="e.g., my-web-app"
+ placeholder={m.compose_name_placeholder()}
disabled={saving || isLoadingTemplateContent}
class={$inputs.name.error ? 'border-destructive' : ''}
/>
{#if $inputs.name.error}
<p class="text-destructive mt-1 text-xs">{$inputs.name.error}</p>
{:else}
- <p class="text-muted-foreground mt-1 text-xs">Use letters, numbers, and hyphens only.</p>
+ <p class="text-muted-foreground mt-1 text-xs">{m.compose_name_hint()}</p>
{/if}
</div>
</div>
@@ -289,14 +286,14 @@
<div class="lg:col-span-2">
<div class="space-y-4">
<div class="flex items-center justify-between">
- <h3 class="text-lg font-semibold">Docker Compose File</h3>
- <span class="text-muted-foreground text-xs">YAML</span>
+ <h3 class="text-lg font-semibold">{m.compose_compose_file_title()}</h3>
+ <span class="text-muted-foreground text-xs">{m.compose_yaml_label()}</span>
</div>
<div class="h-[590px] w-full">
<CodeEditor
bind:value={$inputs.composeContent.value}
language="yaml"
- placeholder="Enter YAML..."
+ placeholder={m.compose_compose_placeholder()}
readOnly={saving || isLoadingTemplateContent}
/>
</div>
@@ -310,14 +307,14 @@
<div class="lg:col-span-1">
<div class="space-y-4">
<div class="flex items-center justify-between">
- <h3 class="text-lg font-semibold">Environment (.env)</h3>
- <span class="text-muted-foreground text-xs">Key=Value</span>
+ <h3 class="text-lg font-semibold">{m.compose_env_title()}</h3>
+ <span class="text-muted-foreground text-xs">{m.compose_env_kv_label()}</span>
</div>
<div class="h-[590px] w-full">
<CodeEditor
bind:value={$inputs.envContent.value}
language="env"
- placeholder="Enter environment variables..."
+ placeholder={m.compose_env_placeholder()}
readOnly={saving || isLoadingTemplateContent}
/>
</div>
diff --git a/frontend/src/routes/containers/+page.svelte b/frontend/src/routes/containers/+page.svelte
index 6a815ba40..20d64abd9 100644
--- a/frontend/src/routes/containers/+page.svelte
+++ b/frontend/src/routes/containers/+page.svelte
@@ -8,6 +8,7 @@
import { environmentAPI } from '$lib/services/api';
import ContainerTable from './container-table.svelte';
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
@@ -54,20 +55,20 @@
<div class="space-y-6">
<div class="flex flex-col justify-between gap-4 sm:flex-row sm:items-center">
<div>
- <h1 class="text-3xl font-bold tracking-tight">Containers</h1>
- <p class="text-muted-foreground mt-1 text-sm">View and Manage your Containers</p>
+ <h1 class="text-3xl font-bold tracking-tight">{m.containers_title()}</h1>
+ <p class="text-muted-foreground mt-1 text-sm">{m.containers_subtitle()}</p>
</div>
<div class="flex items-center gap-2">
<ArcaneButton
action="create"
- customLabel="Create Container"
+ customLabel={m.containers_create_button()}
onclick={() => (isCreateDialogOpen = true)}
loading={isLoading.create}
disabled={isLoading.create}
/>
<ArcaneButton
action="inspect"
- customLabel="Update Containers"
+ customLabel={m.containers_check_updates()}
onclick={handleCheckForUpdates}
loading={isLoading.checking}
disabled={isLoading.checking}
@@ -75,7 +76,7 @@
<ArcaneButton
action="restart"
onclick={refreshContainers}
- customLabel="Refresh"
+ customLabel={m.common_refresh()}
loading={isLoading.refreshing}
disabled={isLoading.refreshing}
/>
@@ -84,13 +85,13 @@
<div class="grid grid-cols-1 gap-4 sm:grid-cols-3">
<StatCard
- title="Total"
+ title={m.containers_total()}
value={containers.pagination.totalItems}
icon={BoxIcon}
class="border-l-primary border-l-4 transition-shadow hover:shadow-lg"
/>
<StatCard
- title="Running"
+ title={m.containers_running()}
value={runningContainers}
icon={BoxIcon}
iconColor="text-green-500"
@@ -98,7 +99,7 @@
class="border-l-4 border-l-green-500"
/>
<StatCard
- title="Stopped"
+ title={m.containers_stopped()}
value={stoppedContainers}
icon={BoxIcon}
iconColor="text-amber-500"
@@ -118,10 +119,10 @@
isLoading.create = true;
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.createContainer(options)),
- message: 'Failed to Create Container',
+ message: m.containers_create_failed(),
setLoadingState: (value) => (isLoading.create = value),
onSuccess: async () => {
- toast.success('Container Created Successfully.');
+ toast.success(m.containers_create_success());
containers = await environmentAPI.getContainers(requestOptions);
isCreateDialogOpen = false;
}
diff --git a/frontend/src/routes/containers/[containerId]/+page.svelte b/frontend/src/routes/containers/[containerId]/+page.svelte
index bdaff3ae3..4612f7060 100644
--- a/frontend/src/routes/containers/[containerId]/+page.svelte
+++ b/frontend/src/routes/containers/[containerId]/+page.svelte
@@ -25,6 +25,7 @@
import { browser } from '$app/environment';
import Separator from '$lib/components/ui/separator/separator.svelte';
import type { ContainerDetailsDto, NetworkSettingsDto } from '$lib/types/container.type';
+ import { m } from '$lib/paraglide/messages';
interface NetworkConfig {
IPAddress?: string;
@@ -41,7 +42,6 @@
}
let { data } = $props();
- // Use new DTO types for the page data
let container = $derived(data?.container as ContainerDetailsDto);
let stats = $derived((data?.stats ?? null) as Docker.ContainerStats | null);
@@ -60,7 +60,7 @@
let showFloatingHeader = $state(false);
const cleanContainerName = (name: string | undefined): string => {
- if (!name) return 'Container Details';
+ if (!name) return m.containers_not_found_title();
return name.replace(/^\/+/, '');
};
@@ -196,12 +196,12 @@
const showStats = $derived(!!(container?.state?.running && stats));
const navigationSections = [
- { id: 'overview', label: 'Overview', icon: HardDriveIcon },
- { id: 'stats', label: 'Metrics', icon: ActivityIcon },
- { id: 'logs', label: 'Logs', icon: FileTextIcon },
- { id: 'config', label: 'Configuration', icon: SettingsIcon },
- { id: 'network', label: 'Networks', icon: NetworkIcon },
- { id: 'storage', label: 'Storage', icon: DatabaseIcon }
+ { id: 'overview', label: m.containers_nav_overview(), icon: HardDriveIcon },
+ { id: 'stats', label: m.containers_nav_metrics(), icon: ActivityIcon },
+ { id: 'logs', label: m.containers_nav_logs(), icon: FileTextIcon },
+ { id: 'config', label: m.containers_nav_config(), icon: SettingsIcon },
+ { id: 'network', label: m.containers_nav_networks(), icon: NetworkIcon },
+ { id: 'storage', label: m.containers_nav_storage(), icon: DatabaseIcon }
] as const;
const visibleNavigationSections = $derived(
@@ -277,7 +277,7 @@
<div class="flex items-center gap-3">
<Button variant="ghost" size="sm" href="/containers">
<ArrowLeftIcon class="mr-2 size-4" />
- Back
+ {m.common_back()}
</Button>
<div class="bg-border h-4 w-px"></div>
<div class="flex items-center gap-2">
@@ -362,15 +362,15 @@
<section id="overview" class="scroll-mt-20">
<h2 class="mb-6 flex items-center gap-2 text-xl font-semibold">
<HardDriveIcon class="size-5" />
- Overview
+ {m.containers_details_title()}
</h2>
<div class="mb-6">
<Card.Root class="rounded-lg border shadow-sm">
<Card.Header class="pb-4">
- <Card.Title>Container Details</Card.Title>
+ <Card.Title>{m.containers_details_title()}</Card.Title>
<Card.Description class="text-muted-foreground text-sm">
- Identity, runtime, and system metadata
+ {m.containers_details_description()}
</Card.Description>
</Card.Header>
@@ -381,9 +381,9 @@
<HardDriveIcon class="size-4 text-blue-600" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground text-sm">Image</div>
+ <div class="text-muted-foreground text-sm">{m.common_image()}</div>
<div class="truncate font-medium" title={container.image}>
- {container.image || 'N/A'}
+ {container.image || m.common_na()}
</div>
</div>
</div>
@@ -393,7 +393,7 @@
<ClockIcon class="size-4 text-green-600" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground text-sm">Created</div>
+ <div class="text-muted-foreground text-sm">{m.common_created()}</div>
<div class="font-medium" title={formatDockerDate(container?.created)}>
{formatDockerDate(container?.created)}
</div>
@@ -405,7 +405,7 @@
<NetworkIcon class="size-4 text-purple-600" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground text-sm">IP Address</div>
+ <div class="text-muted-foreground text-sm">{m.containers_ip_address()}</div>
<div class="font-medium">{primaryIpAddress}</div>
</div>
</div>
@@ -415,9 +415,9 @@
<TerminalIcon class="size-4 text-amber-600" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-muted-foreground text-sm">Command</div>
+ <div class="text-muted-foreground text-sm">{m.containers_command()}</div>
<div class="truncate font-medium" title={container.config?.cmd?.join(' ')}>
- {container.config?.cmd?.join(' ') || 'N/A'}
+ {container.config?.cmd?.join(' ') || m.common_na()}
</div>
</div>
</div>
@@ -426,11 +426,11 @@
<Separator />
<div class="space-y-3">
- <h4 class="text-sm font-semibold tracking-tight">System</h4>
+ <h4 class="text-sm font-semibold tracking-tight">{m.containers_system()}</h4>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
<div class="space-y-1">
- <div class="text-muted-foreground text-xs">Container ID</div>
+ <div class="text-muted-foreground text-xs">{m.common_id()}</div>
<div class="bg-muted/50 max-w-full truncate rounded px-2 py-1.5 font-mono text-xs">
{container.id}
</div>
@@ -438,7 +438,7 @@
{#if container.config?.workingDir}
<div class="space-y-1">
- <div class="text-muted-foreground text-xs">Working Directory</div>
+ <div class="text-muted-foreground text-xs">{m.containers_working_directory()}</div>
<div class="bg-muted/50 max-w-full truncate rounded px-2 py-1.5 font-mono text-xs">
{container.config.workingDir}
</div>
@@ -447,7 +447,7 @@
{#if container.config?.user}
<div class="space-y-1">
- <div class="text-muted-foreground text-xs">User</div>
+ <div class="text-muted-foreground text-xs">{m.common_user()}</div>
<div class="bg-muted/50 inline-flex rounded px-2 py-1.5 font-mono text-xs">
{container.config.user}
</div>
@@ -456,7 +456,7 @@
{#if container.state?.health}
<div class="space-y-1 sm:col-span-2">
- <div class="text-muted-foreground text-xs">Health</div>
+ <div class="text-muted-foreground text-xs">{m.containers_health_label()}</div>
<div class="flex flex-wrap items-center gap-3">
<StatusBadge
variant={container.state.health.status === 'healthy'
@@ -471,7 +471,7 @@
{@const lastCheck = (first?.Start ?? first?.start) as string | undefined}
{#if lastCheck}
<span class="text-muted-foreground text-xs">
- Last check: {formatDockerDate(lastCheck)}
+ {m.containers_health_last_check({ time: formatDockerDate(lastCheck) })}
</span>
{/if}
{/if}
@@ -489,7 +489,7 @@
<section id="stats" class="scroll-mt-20">
<h2 class="mb-6 flex items-center gap-2 text-xl font-semibold">
<ActivityIcon class="size-5" />
- Resource Metrics
+ {m.containers_resource_metrics()}
</h2>
<Card.Root class="rounded-lg border shadow-sm">
@@ -498,7 +498,7 @@
<div class="grid grid-cols-1 gap-8 lg:grid-cols-2">
<div class="space-y-6">
<Meter
- label="CPU Usage"
+ label={m.dashboard_meter_cpu()}
valueLabel="{cpuUsagePercent.toFixed(2)}%"
value={cpuUsagePercent}
max={100}
@@ -507,7 +507,7 @@
/>
<Meter
- label="Memory Usage"
+ label={m.dashboard_meter_memory()}
valueLabel="{memoryUsageFormatted} / {memoryLimitFormatted} ({memoryUsagePercent.toFixed(1)}%)"
value={memoryUsagePercent}
max={100}
@@ -519,17 +519,18 @@
<div class="space-y-6">
<div>
<h4 class="mb-4 flex items-center gap-2 font-medium">
- <NetworkIcon class="size-4" /> Network I/O
+ <NetworkIcon class="size-4" />
+ {m.containers_network_io()}
</h4>
<div class="grid grid-cols-2 gap-4">
<div class="bg-muted/30 rounded p-4">
- <div class="text-muted-foreground text-sm">Received</div>
+ <div class="text-muted-foreground text-sm">{m.containers_network_received()}</div>
<div class="mt-1 font-medium">
{bytes.format(stats.networks?.eth0?.rx_bytes || 0)}
</div>
</div>
<div class="bg-muted/30 rounded p-4">
- <div class="text-muted-foreground text-sm">Transmitted</div>
+ <div class="text-muted-foreground text-sm">{m.containers_network_transmitted()}</div>
<div class="mt-1 font-medium">
{bytes.format(stats.networks?.eth0?.tx_bytes || 0)}
</div>
@@ -539,10 +540,10 @@
{#if stats.blkio_stats && stats.blkio_stats.io_service_bytes_recursive && stats.blkio_stats.io_service_bytes_recursive.length > 0}
<div>
- <h4 class="mb-4 font-medium">Block I/O</h4>
+ <h4 class="mb-4 font-medium">{m.containers_block_io()}</h4>
<div class="grid grid-cols-2 gap-4">
<div class="bg-muted/30 rounded p-4">
- <div class="text-muted-foreground text-sm">Read</div>
+ <div class="text-muted-foreground text-sm">{m.containers_block_io_read()}</div>
<div class="mt-1 font-medium">
{bytes.format(
stats.blkio_stats.io_service_bytes_recursive
@@ -552,7 +553,7 @@
</div>
</div>
<div class="bg-muted/30 rounded p-4">
- <div class="text-muted-foreground text-sm">Write</div>
+ <div class="text-muted-foreground text-sm">{m.containers_block_io_write()}</div>
<div class="mt-1 font-medium">
{bytes.format(
stats.blkio_stats.io_service_bytes_recursive
@@ -570,15 +571,15 @@
{#if stats.pids_stats && stats.pids_stats.current !== undefined}
<div class="mt-6 border-t pt-6">
<div class="text-sm">
- <span class="text-muted-foreground">Process count:</span>
+ <span class="text-muted-foreground">{m.containers_process_count()}</span>
<span class="ml-2 font-medium">{stats.pids_stats.current}</span>
</div>
</div>
{/if}
{:else if !container.state?.running}
- <div class="text-muted-foreground py-12 text-center">Container is not running. Stats unavailable.</div>
+ <div class="text-muted-foreground py-12 text-center">{m.containers_stats_unavailable()}</div>
{:else}
- <div class="text-muted-foreground py-12 text-center">Loading stats...</div>
+ <div class="text-muted-foreground py-12 text-center">{m.containers_stats_loading()}</div>
{/if}
</Card.Content>
</Card.Root>
@@ -589,24 +590,24 @@
<div class="mb-6 flex items-center justify-between">
<h2 class="flex items-center gap-2 text-xl font-semibold">
<FileTextIcon class="size-5" />
- Container Logs
+ {m.containers_logs_title()}
</h2>
<div class="flex items-center gap-3">
<label class="flex items-center gap-2">
<input type="checkbox" bind:checked={autoScrollLogs} class="size-4" />
- Auto-scroll
+ {m.common_autoscroll()}
</label>
- <Button variant="outline" size="sm" onclick={() => logViewer?.clearLogs()}>Clear</Button>
+ <Button variant="outline" size="sm" onclick={() => logViewer?.clearLogs()}>{m.common_clear()}</Button>
{#if isStreaming}
<div class="flex items-center gap-2">
<div class="size-2 animate-pulse rounded-full bg-green-500"></div>
- <span class="text-sm font-medium text-green-600">Live</span>
+ <span class="text-sm font-medium text-green-600">{m.common_live()}</span>
</div>
- <Button variant="outline" size="sm" onclick={() => logViewer?.stopLogStream()}>Stop</Button>
+ <Button variant="outline" size="sm" onclick={() => logViewer?.stopLogStream()}>{m.common_stop()}</Button>
{:else}
<Button variant="outline" size="sm" onclick={() => logViewer?.startLogStream()} disabled={!container?.id}>
- Start
+ {m.common_start()}
</Button>
{/if}
</div>
@@ -635,21 +636,21 @@
<section id="config" class="scroll-mt-20">
<h2 class="mb-6 flex items-center gap-2 text-xl font-semibold">
<SettingsIcon class="size-5" />
- Configuration
+ {m.containers_configuration_title()}
</h2>
<Card.Root class="rounded-lg border shadow-sm">
<Card.Header class="pb-4">
- <Card.Title>Environment, Ports & Labels</Card.Title>
+ <Card.Title>{m.containers_env_ports_labels_title()}</Card.Title>
<Card.Description class="text-muted-foreground text-sm">
- Runtime configuration and metadata for this container
+ {m.containers_env_ports_labels_description()}
</Card.Description>
</Card.Header>
<Card.Content class="space-y-8">
{#if hasEnvVars}
<div>
- <h3 class="mb-3 text-sm font-semibold tracking-tight">Environment Variables</h3>
+ <h3 class="mb-3 text-sm font-semibold tracking-tight">{m.containers_env_vars_title()}</h3>
{#if container.config?.env && container.config.env.length > 0}
<ul class="divide-border/60 divide-y">
@@ -676,7 +677,7 @@
{/each}
</ul>
{:else}
- <div class="text-muted-foreground py-8 text-center">No environment variables</div>
+ <div class="text-muted-foreground py-8 text-center">{m.containers_no_env_vars()}</div>
{/if}
</div>
{/if}
@@ -687,7 +688,7 @@
{#if hasPorts}
<div>
- <h3 class="mb-3 text-sm font-semibold tracking-tight">Port Mappings</h3>
+ <h3 class="mb-3 text-sm font-semibold tracking-tight">{m.containers_port_mappings()}</h3>
<ul class="divide-border/60 divide-y">
{#each container.ports as p, idx (idx)}
@@ -701,7 +702,7 @@
{p.ip || '0.0.0.0'}:{p.publicPort} → {p.privatePort}/{p.type}
</span>
{:else}
- <span class="text-muted-foreground font-semibold">Not published</span>
+ <span class="text-muted-foreground font-semibold">{m.containers_not_published()}</span>
{/if}
</div>
</li>
@@ -716,7 +717,7 @@
{#if hasLabels}
<div>
- <h3 class="mb-3 text-sm font-semibold tracking-tight">Labels</h3>
+ <h3 class="mb-3 text-sm font-semibold tracking-tight">{m.common_labels()}</h3>
{#if container.labels && Object.keys(container.labels).length > 0}
<ul class="divide-border/60 divide-y">
@@ -734,7 +735,7 @@
{/each}
</ul>
{:else}
- <div class="text-muted-foreground py-8 text-center">No labels defined</div>
+ <div class="text-muted-foreground py-8 text-center">{m.containers_no_labels_defined()}</div>
{/if}
</div>
{/if}
@@ -747,7 +748,7 @@
<section id="network" class="scroll-mt-20">
<h2 class="mb-6 flex items-center gap-2 text-xl font-semibold">
<NetworkIcon class="size-5" />
- Networks
+ {m.containers_networks_title()}
</h2>
<Card.Root class="rounded-lg border shadow-sm">
@@ -766,28 +767,28 @@
<div class="mb-4 font-medium">{networkName}</div>
<div class="grid grid-cols-2 gap-4 lg:grid-cols-4">
<div>
- <div class="text-muted-foreground text-sm">IP Address</div>
- <div class="font-mono">{rawNetworkConfig.ipAddress || 'N/A'}</div>
+ <div class="text-muted-foreground text-sm">{m.containers_ip_address()}</div>
+ <div class="font-mono">{rawNetworkConfig.ipAddress || m.common_na()}</div>
</div>
<div>
- <div class="text-muted-foreground text-sm">Gateway</div>
- <div class="font-mono">{rawNetworkConfig.gateway || 'N/A'}</div>
+ <div class="text-muted-foreground text-sm">{m.containers_gateway()}</div>
+ <div class="font-mono">{rawNetworkConfig.gateway || m.common_na()}</div>
</div>
<div>
- <div class="text-muted-foreground text-sm">MAC Address</div>
- <div class="font-mono">{rawNetworkConfig.macAddress || 'N/A'}</div>
+ <div class="text-muted-foreground text-sm">{m.containers_mac_address()}</div>
+ <div class="font-mono">{rawNetworkConfig.macAddress || m.common_na()}</div>
</div>
<div>
- <div class="text-muted-foreground text-sm">Subnet</div>
+ <div class="text-muted-foreground text-sm">{m.containers_subnet()}</div>
<div class="font-mono">
{rawNetworkConfig.ipPrefixLen
? `${rawNetworkConfig.ipAddress}/${rawNetworkConfig.ipPrefixLen}`
- : 'N/A'}
+ : m.common_na()}
</div>
</div>
{#if rawNetworkConfig.aliases && rawNetworkConfig.aliases.length > 0}
<div class="col-span-2">
- <div class="text-muted-foreground text-sm">Aliases</div>
+ <div class="text-muted-foreground text-sm">{m.containers_aliases()}</div>
<div class="font-mono">{rawNetworkConfig.aliases.join(', ')}</div>
</div>
{/if}
@@ -796,7 +797,7 @@
{/each}
</div>
{:else}
- <div class="text-muted-foreground py-12 text-center">No networks connected</div>
+ <div class="text-muted-foreground py-12 text-center">{m.containers_no_networks_connected()}</div>
{/if}
</Card.Content>
</Card.Root>
@@ -807,7 +808,7 @@
<section id="storage" class="scroll-mt-20">
<h2 class="mb-6 flex items-center gap-2 text-xl font-semibold">
<DatabaseIcon class="size-5" />
- Storage & Mounts
+ {m.containers_storage_title()}
</h2>
<Card.Root class="rounded-lg border shadow-sm">
@@ -836,28 +837,32 @@
<div>
<div class="font-medium">
{mount.type === 'tmpfs'
- ? 'Temporary filesystem'
+ ? m.containers_mount_type_tmpfs()
: mount.type === 'volume'
- ? mount.name || 'Docker volume'
- : 'Host directory'}
+ ? mount.name || m.containers_mount_type_volume()
+ : m.containers_mount_type_bind()}
</div>
<div class="text-muted-foreground text-sm">
- {mount.type} mount {mount.rw ? '(read-write)' : '(read-only)'}
+ {mount.type} mount {mount.rw ? `(${m.common_rw()})` : `(${m.common_ro()})`}
</div>
</div>
</div>
<Badge variant={mount.rw ? 'outline' : 'secondary'}>
- {mount.rw ? 'RW' : 'RO'}
+ {mount.rw ? m.common_rw() : m.common_ro()}
</Badge>
</div>
<div class="space-y-3 p-4">
<div class="flex">
- <span class="text-muted-foreground w-24 font-medium">Container:</span>
+ <span class="text-muted-foreground w-24 font-medium">{m.containers_mount_label_container()}</span>
<span class="bg-muted/50 flex-1 rounded px-2 py-1 font-mono">{mount.destination}</span>
</div>
<div class="flex">
<span class="text-muted-foreground w-24 font-medium">
- {mount.type === 'volume' ? 'Volume:' : mount.type === 'bind' ? 'Host:' : 'Source:'}
+ {mount.type === 'volume'
+ ? m.containers_mount_label_volume()
+ : mount.type === 'bind'
+ ? m.containers_mount_label_host()
+ : m.containers_mount_label_source()}
</span>
<span class="bg-muted/50 flex-1 rounded px-2 py-1 font-mono">{mount.source}</span>
</div>
@@ -870,7 +875,7 @@
<div class="bg-muted/50 mx-auto mb-4 flex size-16 items-center justify-center rounded-full">
<DatabaseIcon class="text-muted-foreground size-6" />
</div>
- <div class="text-muted-foreground">No volumes or mounts configured</div>
+ <div class="text-muted-foreground">{m.containers_no_mounts_configured()}</div>
</div>
{/if}
</Card.Content>
@@ -887,18 +892,18 @@
<div class="bg-muted/50 mb-6 inline-flex rounded-full p-6">
<CircleAlertIcon class="text-muted-foreground size-10" />
</div>
- <h2 class="mb-3 text-2xl font-medium">Container Not Found</h2>
+ <h2 class="mb-3 text-2xl font-medium">{m.containers_not_found_title()}</h2>
<p class="text-muted-foreground mb-8 max-w-md text-center">
- Could not load container data. It may have been removed or the Docker engine is not accessible.
+ {m.containers_not_found_description()}
</p>
<div class="flex justify-center gap-4">
<Button variant="outline" href="/containers">
<ArrowLeftIcon class="mr-2 size-4" />
- Back to Containers
+ {m.common_back_to_containers()}
</Button>
<Button variant="default" onclick={refreshData}>
<RefreshCwIcon class="mr-2 size-4" />
- Retry
+ {m.common_retry()}
</Button>
</div>
</div>
diff --git a/frontend/src/routes/containers/container-table.svelte b/frontend/src/routes/containers/container-table.svelte
index 7a6c47323..898ad78f5 100644
--- a/frontend/src/routes/containers/container-table.svelte
+++ b/frontend/src/routes/containers/container-table.svelte
@@ -22,6 +22,7 @@
import { capitalizeFirstLetter } from '$lib/utils/string.utils';
import type { ContainerSummaryDto } from '$lib/types/container.type';
import type { ColumnSpec } from '$lib/components/arcane-table';
+ import { m } from '$lib/paraglide/messages';
let {
containers = $bindable(),
@@ -48,69 +49,69 @@
if (action === 'start') {
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.startContainer(id)),
- message: 'Failed to Start Container',
+ message: m.containers_start_failed(),
setLoadingState: (value) => (isLoading.start = value),
async onSuccess() {
- toast.success('Container Started Successfully.');
+ toast.success(m.containers_start_success());
containers = await environmentAPI.getContainers(requestOptions);
}
});
} else if (action === 'stop') {
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.stopContainer(id)),
- message: 'Failed to Stop Container',
+ message: m.containers_stop_failed(),
setLoadingState: (value) => (isLoading.stop = value),
async onSuccess() {
- toast.success('Container Stopped Successfully.');
+ toast.success(m.containers_stop_success());
containers = await environmentAPI.getContainers(requestOptions);
}
});
} else if (action === 'restart') {
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.restartContainer(id)),
- message: 'Failed to Restart Container',
+ message: m.containers_restart_failed(),
setLoadingState: (value) => (isLoading.restart = value),
async onSuccess() {
- toast.success('Container Restarted Successfully.');
+ toast.success(m.containers_restart_success());
containers = await environmentAPI.getContainers(requestOptions);
}
});
}
} catch (error) {
console.error('Container action failed:', error);
- toast.error('An error occurred while performing the action');
+ toast.error(m.containers_action_error());
isLoading[action as keyof typeof isLoading] = false;
}
}
async function handleRemoveContainer(id: string) {
openConfirmDialog({
- title: 'Confirm Container Removal',
- message: 'Are you sure you want to remove this container? This action cannot be undone.',
+ title: m.containers_remove_confirm_title(),
+ message: m.containers_remove_confirm_message(),
checkboxes: [
{
id: 'force',
- label: 'Force remove (kill the container if running)',
+ label: m.containers_remove_force_label(),
initialState: false
},
{
id: 'volumes',
- label: 'Remove container volumes',
+ label: m.containers_remove_volumes_label(),
initialState: false
}
],
confirm: {
- label: 'Remove',
+ label: m.common_remove(),
destructive: true,
action: async (checkboxStates) => {
const force = !!checkboxStates.force;
const volumes = !!checkboxStates.volumes;
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.deleteContainer(id, { force, volumes })),
- message: 'Failed to Remove Container',
+ message: m.containers_remove_failed(),
setLoadingState: (value) => (isLoading.remove = value),
async onSuccess() {
- toast.success('Container Removed Successfully.');
+ toast.success(m.containers_remove_success());
containers = await environmentAPI.getContainers(requestOptions);
}
});
@@ -122,12 +123,12 @@
const isAnyLoading = $derived(Object.values(isLoading).some((loading) => loading));
const columns = [
- { accessorKey: 'names', title: 'Name', sortable: true, cell: NameCell },
- { accessorKey: 'id', title: 'ID', cell: IdCell },
- { accessorKey: 'image', title: 'Image', sortable: true },
- { accessorKey: 'state', title: 'State', sortable: true, cell: StateCell },
- { accessorKey: 'status', title: 'Status' },
- { accessorKey: 'created', title: 'Created', sortable: true, cell: CreatedCell }
+ { accessorKey: 'names', title: m.common_name(), sortable: true, cell: NameCell },
+ { accessorKey: 'id', title: m.common_id(), cell: IdCell },
+ { accessorKey: 'image', title: m.common_image(), sortable: true },
+ { accessorKey: 'state', title: m.common_state(), sortable: true, cell: StateCell },
+ { accessorKey: 'status', title: m.common_status() },
+ { accessorKey: 'created', title: m.common_created(), sortable: true, cell: CreatedCell }
] satisfies ColumnSpec<ContainerSummaryDto>[];
</script>
@@ -154,7 +155,7 @@
{#snippet CreatedCell({ item }: { item: ContainerSummaryDto })}
<span class="text-sm">
- {item.created ? format(new Date(item.created * 1000), 'PP p') : ''}
+ {item.created ? format(new Date(item.created * 1000), 'PP p') : m.common_na()}
</span>
{/snippet}
@@ -163,7 +164,7 @@
<DropdownMenu.Trigger>
{#snippet child({ props })}
<Button {...props} variant="ghost" size="icon" class="relative size-8 p-0">
- <span class="sr-only">Open menu</span>
+ <span class="sr-only">{m.common_open_menu()}</span>
<EllipsisIcon />
</Button>
{/snippet}
@@ -172,7 +173,7 @@
<DropdownMenu.Group>
<DropdownMenu.Item onclick={() => goto(`/containers/${item.id}`)} disabled={isAnyLoading}>
<ScanSearchIcon class="size-4" />
- Inspect
+ {m.common_inspect()}
</DropdownMenu.Item>
{#if item.state !== 'running'}
@@ -182,7 +183,7 @@
{:else}
<PlayIcon class="size-4" />
{/if}
- Start
+ {m.common_start()}
</DropdownMenu.Item>
{:else}
<DropdownMenu.Item
@@ -194,7 +195,7 @@
{:else}
<RotateCcwIcon class="size-4" />
{/if}
- Restart
+ {m.common_restart()}
</DropdownMenu.Item>
<DropdownMenu.Item onclick={() => performContainerAction('stop', item.id)} disabled={isLoading.stop || isAnyLoading}>
@@ -203,7 +204,7 @@
{:else}
<StopCircleIcon class="size-4" />
{/if}
- Stop
+ {m.common_stop()}
</DropdownMenu.Item>
{/if}
@@ -219,7 +220,7 @@
{:else}
<Trash2Icon class="size-4" />
{/if}
- Remove
+ {m.common_remove()}
</DropdownMenu.Item>
</DropdownMenu.Group>
</DropdownMenu.Content>
diff --git a/frontend/src/routes/customize/registries/+page.svelte b/frontend/src/routes/customize/registries/+page.svelte
index 914e0fa34..8e5e8d51a 100644
--- a/frontend/src/routes/customize/registries/+page.svelte
+++ b/frontend/src/routes/customize/registries/+page.svelte
@@ -10,6 +10,7 @@
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
import { handleApiResultWithCallbacks } from '$lib/utils/api.util';
import { tryCatch } from '$lib/utils/try-catch';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
@@ -29,11 +30,11 @@
isLoading.refresh = true;
handleApiResultWithCallbacks({
result: await tryCatch(containerRegistryAPI.getRegistries(requestOptions)),
- message: 'Failed to Refresh Registries',
+ message: m.registries_refresh_failed(),
setLoadingState: (value) => (isLoading.refresh = value),
onSuccess: async (newRegistries) => {
registries = newRegistries;
- toast.success('Registries Refreshed!');
+ toast.success(m.registries_refreshed());
}
});
}
@@ -59,17 +60,17 @@
try {
if (isEditMode && registryToEdit?.id) {
await containerRegistryAPI.updateRegistry(registryToEdit.id, registry as ContainerRegistryUpdateDto);
- toast.success('Registry updated successfully');
+ toast.success(m.registries_update_success());
} else {
await containerRegistryAPI.createRegistry(registry as ContainerRegistryCreateDto);
- toast.success('Registry created successfully');
+ toast.success(m.registries_create_success());
}
registries = await containerRegistryAPI.getRegistries(requestOptions);
isRegistryDialogOpen = false;
} catch (error) {
console.error('Error saving registry:', error);
- toast.error(error instanceof Error ? error.message : 'Failed to save registry');
+ toast.error(error instanceof Error ? error.message : m.registries_save_failed());
} finally {
isLoading[loadingKey] = false;
}
@@ -79,17 +80,17 @@
<div class="space-y-6">
<div class="flex flex-col justify-between gap-4 sm:flex-row sm:items-center">
<div>
- <h1 class="text-3xl font-bold tracking-tight">Container Registries</h1>
+ <h1 class="text-3xl font-bold tracking-tight">{m.registries_title()}</h1>
<p class="text-muted-foreground mt-1 text-sm">
- Configure access credentials for private Docker registries and container repositories
+ {m.registries_subtitle()}
</p>
</div>
<div class="flex items-center gap-2">
- <ArcaneButton action="create" onclick={openCreateRegistryDialog} customLabel="Add Registry" />
+ <ArcaneButton action="create" onclick={openCreateRegistryDialog} customLabel={m.registries_add_button()} />
<ArcaneButton
action="restart"
onclick={refreshRegistries}
- customLabel="Refresh"
+ customLabel={m.common_refresh()}
loading={isLoading.refresh}
disabled={isLoading.refresh}
/>
@@ -103,10 +104,9 @@
<KeyIcon class="size-5 text-green-500" />
</div>
<div>
- <Card.Title>Docker Registry Credentials</Card.Title>
+ <Card.Title>{m.registries_credentials_title()}</Card.Title>
<Card.Description>
- Manage authentication credentials for private Docker registries like Docker Hub, GitHub Container Registry, Google
- Container Registry, and custom registries
+ {m.registries_credentials_description()}
</Card.Description>
</div>
</div>
@@ -118,39 +118,39 @@
<Card.Root class="border shadow-sm">
<Card.Header>
- <Card.Title class="text-lg">Registry Information</Card.Title>
- <Card.Description>Common registry URLs and authentication requirements</Card.Description>
+ <Card.Title class="text-lg">{m.registries_info_title()}</Card.Title>
+ <Card.Description>{m.registries_info_description()}</Card.Description>
</Card.Header>
<Card.Content>
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
<div class="space-y-3">
- <h4 class="text-sm font-medium">Popular Public Registries</h4>
+ <h4 class="text-sm font-medium">{m.registries_popular_public_title()}</h4>
<div class="space-y-2 text-sm">
<div class="flex justify-between">
- <span class="text-muted-foreground">Docker Hub:</span>
- <code class="bg-muted rounded px-2 py-1 text-xs">docker.io</code>
+ <span class="text-muted-foreground">{m.registry_docker_hub()}</span>
+ <code class="bg-muted rounded px-2 py-1 text-xs">{m.registry_docker_hub_url()}</code>
</div>
<div class="flex justify-between">
- <span class="text-muted-foreground">GitHub:</span>
- <code class="bg-muted rounded px-2 py-1 text-xs">ghcr.io</code>
+ <span class="text-muted-foreground">{m.registry_github_container_registry()}</span>
+ <code class="bg-muted rounded px-2 py-1 text-xs">{m.registry_github_url()}</code>
</div>
<div class="flex justify-between">
- <span class="text-muted-foreground">Google:</span>
- <code class="bg-muted rounded px-2 py-1 text-xs">gcr.io</code>
+ <span class="text-muted-foreground">{m.registry_google_container_registry()}</span>
+ <code class="bg-muted rounded px-2 py-1 text-xs">{m.registry_google_url()}</code>
</div>
<div class="flex justify-between">
- <span class="text-muted-foreground">Quay.io:</span>
- <code class="bg-muted rounded px-2 py-1 text-xs">quay.io</code>
+ <span class="text-muted-foreground">{m.registry_quay_io()}</span>
+ <code class="bg-muted rounded px-2 py-1 text-xs">{m.registry_quay_url()}</code>
</div>
</div>
</div>
<div class="space-y-3">
- <h4 class="text-sm font-medium">Authentication Notes</h4>
+ <h4 class="text-sm font-medium">{m.registries_auth_notes_title()}</h4>
<div class="text-muted-foreground space-y-1 text-sm">
- <p>• Docker Hub requires credentials for private repositories</p>
- <p>• GitHub uses personal access tokens as passwords</p>
- <p>• Some registries support anonymous access for public images</p>
- <p>• Credentials are encrypted and stored securely</p>
+ <p>• {m.registries_auth_notes_bullet_docker_hub()}</p>
+ <p>• {m.registries_auth_notes_bullet_github()}</p>
+ <p>• {m.registries_auth_notes_bullet_anonymous()}</p>
+ <p>• {m.registries_auth_notes_bullet_encrypted()}</p>
</div>
</div>
</div>
diff --git a/frontend/src/routes/customize/registries/registry-table.svelte b/frontend/src/routes/customize/registries/registry-table.svelte
index 7fa304e7d..53297612c 100644
--- a/frontend/src/routes/customize/registries/registry-table.svelte
+++ b/frontend/src/routes/customize/registries/registry-table.svelte
@@ -15,6 +15,7 @@
import type { ContainerRegistry } from '$lib/types/container-registry.type';
import type { ColumnSpec } from '$lib/components/arcane-table';
import { format } from 'date-fns';
+ import { m } from '$lib/paraglide/messages';
let {
registries = $bindable(),
@@ -34,10 +35,10 @@
});
function getRegistryDisplayName(url: string) {
- if (!url || url === 'docker.io') return 'Docker Hub';
- if (url.includes('ghcr.io')) return 'GitHub Container Registry';
- if (url.includes('gcr.io')) return 'Google Container Registry';
- if (url.includes('quay.io')) return 'Quay.io Registry';
+ if (!url || url === 'docker.io') return m.registry_docker_hub();
+ if (url.includes('ghcr.io')) return m.registry_github_container_registry();
+ if (url.includes('gcr.io')) return m.registry_google_container_registry();
+ if (url.includes('quay.io')) return m.registry_quay_io();
return url;
}
@@ -45,10 +46,10 @@
if (!ids?.length) return;
openConfirmDialog({
- title: `Remove ${ids.length} Registr${ids.length === 1 ? 'y' : 'ies'}`,
- message: `Are you sure you want to remove the selected registr${ids.length === 1 ? 'y' : 'ies'}? This action cannot be undone.`,
+ title: m.registries_remove_selected_title({ count: ids.length }),
+ message: m.registries_remove_selected_message({ count: ids.length }),
confirm: {
- label: 'Remove',
+ label: m.common_remove(),
destructive: true,
action: async () => {
isLoading.removing = true;
@@ -60,17 +61,17 @@
const result = await tryCatch(containerRegistryAPI.deleteRegistry(id));
if (result.error) {
failureCount++;
- toast.error(`Failed to delete registry "${reg?.url ?? id}"`);
+ toast.error(m.registries_delete_failed({ url: reg?.url ?? m.common_unknown() }));
} else {
successCount++;
}
}
if (successCount > 0) {
- toast.success(`Removed ${successCount} registr${successCount === 1 ? 'y' : 'ies'}`);
+ toast.success(m.registries_bulk_remove_success({ count: successCount }));
registries = await containerRegistryAPI.getRegistries(requestOptions);
}
- if (failureCount > 0) toast.error(`Failed to remove ${failureCount}`);
+ if (failureCount > 0) toast.error(m.registries_bulk_remove_failed({ count: failureCount }));
selectedIds = [];
isLoading.removing = false;
@@ -80,11 +81,12 @@
}
async function handleDeleteOne(id: string, url: string) {
+ const safeUrl = url ?? m.common_unknown();
openConfirmDialog({
- title: 'Remove Registry',
- message: `Are you sure you want to remove the registry "${url}"? This action cannot be undone.`,
+ title: m.registries_remove_title(),
+ message: m.registries_remove_message({ url: safeUrl }),
confirm: {
- label: 'Remove',
+ label: m.common_remove(),
destructive: true,
action: async () => {
isLoading.removing = true;
@@ -92,10 +94,10 @@
const result = await tryCatch(containerRegistryAPI.deleteRegistry(id));
handleApiResultWithCallbacks({
result,
- message: `Failed to remove registry "${url}"`,
+ message: m.registries_delete_failed({ url: safeUrl }),
setLoadingState: () => {},
onSuccess: async () => {
- toast.success(`Registry "${url}" removed successfully.`);
+ toast.success(m.registries_delete_success({ url: safeUrl }));
registries = await containerRegistryAPI.getRegistries(requestOptions);
}
});
@@ -108,48 +110,49 @@
async function handleTest(id: string, url: string) {
isLoading.testing = true;
+ const safeUrl = url ?? m.common_unknown();
const result = await tryCatch(containerRegistryAPI.testRegistry(id));
handleApiResultWithCallbacks({
result,
- message: `Failed to test registry "${url}"`,
+ message: m.registries_test_failed({ url: safeUrl }),
setLoadingState: () => {},
onSuccess: (resp) => {
- const msg = (resp as any)?.message || 'Connection successful';
- toast.success(`Registry test passed: ${msg}`);
+ const msg = (resp as any)?.message ?? m.common_unknown();
+ toast.success(m.registries_test_success({ url: safeUrl, message: msg }));
}
});
isLoading.testing = false;
}
const columns = [
- { accessorKey: 'id', title: 'ID', hidden: true },
+ { accessorKey: 'id', title: m.common_id(), hidden: true },
{
accessorKey: 'url',
- title: 'Registry URL',
+ title: m.registries_url(),
sortable: true,
cell: UrlCell
},
{
accessorKey: 'username',
- title: 'Username',
+ title: m.common_username(),
sortable: true,
cell: UsernameCell
},
{
accessorKey: 'description',
- title: 'Description',
+ title: m.common_description(),
sortable: true,
cell: DescriptionCell
},
{
accessorKey: 'enabled',
- title: 'Status',
+ title: m.common_status(),
sortable: true,
cell: StatusCell
},
{
accessorKey: 'createdAt',
- title: 'Created',
+ title: m.common_created(),
sortable: true,
cell: CreatedCell
}
@@ -164,11 +167,11 @@
{/snippet}
{#snippet UsernameCell({ value }: { value: unknown })}
- <span class="font-mono text-sm">{(value as string) || '-'}</span>
+ <span class="font-mono text-sm">{String(value ?? m.common_na())}</span>
{/snippet}
{#snippet DescriptionCell({ value }: { value: unknown })}
- <span class="text-muted-foreground text-sm">{(value as string) || 'No description provided'}</span>
+ <span class="text-muted-foreground text-sm">{String(value ?? m.common_no_description())}</span>
{/snippet}
{#snippet StatusCell({ value }: { value: unknown })}
@@ -178,12 +181,12 @@
? 'bg-green-100 text-green-800'
: 'bg-gray-100 text-gray-800'}"
>
- {enabled ? 'Enabled' : 'Disabled'}
+ {enabled ? m.common_enabled() : m.common_disabled()}
</span>
{/snippet}
{#snippet CreatedCell({ value }: { value: unknown })}
- <span class="text-sm">{value ? format(new Date(String(value)), 'PP p') : 'N/A'}</span>
+ <span class="text-sm">{value ? format(new Date(String(value)), 'PP p') : m.common_na()}</span>
{/snippet}
{#snippet RowActions({ item }: { item: ContainerRegistry })}
@@ -191,7 +194,7 @@
<DropdownMenu.Trigger>
{#snippet child({ props })}
<Button {...props} variant="ghost" size="icon" class="relative size-8 p-0">
- <span class="sr-only">Open menu</span>
+ <span class="sr-only">{m.common_open_menu()}</span>
<EllipsisIcon />
</Button>
{/snippet}
@@ -200,19 +203,19 @@
<DropdownMenu.Group>
<DropdownMenu.Item onclick={() => handleTest(item.id, item.url)} disabled={isLoading.testing}>
<TestTubeIcon class="size-4" />
- Test Connection
+ {m.registries_test_connection()}
</DropdownMenu.Item>
<DropdownMenu.Item onclick={() => onEditRegistry(item)}>
<PencilIcon class="size-4" />
- Edit
+ {m.common_edit()}
</DropdownMenu.Item>
<DropdownMenu.Item
- class="text-red-500 focus:text-red-700!"
+ class="focus:text-red-700! text-red-500"
onclick={() => handleDeleteOne(item.id, item.url)}
disabled={isLoading.removing}
>
<Trash2Icon class="size-4" />
- Remove
+ {m.common_remove()}
</DropdownMenu.Item>
</DropdownMenu.Group>
</DropdownMenu.Content>
diff --git a/frontend/src/routes/customize/templates/+page.svelte b/frontend/src/routes/customize/templates/+page.svelte
index 47179f800..1224388d5 100644
--- a/frontend/src/routes/customize/templates/+page.svelte
+++ b/frontend/src/routes/customize/templates/+page.svelte
@@ -18,6 +18,7 @@
import { toast } from 'svelte-sonner';
import AddTemplateRegistrySheet from '$lib/components/sheets/add-template-registry-sheet.svelte';
import StatCard from '$lib/components/stat-card.svelte';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
@@ -42,7 +43,7 @@
try {
const registry = registries.find((r) => r.id === id);
if (!registry) {
- toast.error('Registry not found');
+ toast.error(m.templates_registry_not_found());
return;
}
@@ -54,10 +55,10 @@
});
registries = await templateAPI.getRegistries();
- toast.success('Registry updated successfully');
+ toast.success(m.registries_update_success());
} catch (error) {
console.error('Error updating registry:', error);
- toast.error(error instanceof Error ? error.message : 'Failed to update registry');
+ toast.error(error instanceof Error ? error.message : m.registries_save_failed());
} finally {
isLoading.updating.delete(id);
}
@@ -68,13 +69,14 @@
isLoading.removing.add(id);
try {
+ const reg = registries.find((r) => r.id === id);
await templateAPI.deleteRegistry(id);
registries = registries.filter((r) => r.id !== id);
registries = await templateAPI.getRegistries();
- toast.success('Registry removed successfully');
+ toast.success(reg ? m.registries_delete_success({ url: reg.url }) : m.templates_registry_removed_success());
} catch (error) {
console.error('Error removing registry:', error);
- toast.error(error instanceof Error ? error.message : 'Failed to remove registry');
+ toast.error(error instanceof Error ? error.message : m.registries_save_failed());
} finally {
isLoading.removing.delete(id);
}
@@ -83,10 +85,10 @@
async function refreshTemplates() {
try {
templates = await templateAPI.loadAll();
- toast.success('Templates refreshed successfully');
+ toast.success(m.templates_refreshed());
} catch (error) {
console.error('Error refreshing templates:', error);
- toast.error('Failed to refresh templates');
+ toast.error(m.templates_refresh_failed());
}
}
@@ -104,10 +106,10 @@
registries = await templateAPI.getRegistries();
showAddRegistrySheet = false;
- toast.success('Registry added successfully');
+ toast.success(m.registries_create_success());
} catch (error) {
console.error('Error adding registry:', error);
- toast.error(error instanceof Error ? error.message : 'Failed to add registry');
+ toast.error(error instanceof Error ? error.message : m.registries_save_failed());
} finally {
isLoading.addingRegistry = false;
}
@@ -117,36 +119,38 @@
<div class="space-y-6">
<div class="flex flex-col justify-between gap-4 sm:flex-row sm:items-center">
<div>
- <h1 class="text-3xl font-bold tracking-tight">Template Settings</h1>
+ <h1 class="text-3xl font-bold tracking-tight">{m.templates_title()}</h1>
<p class="text-muted-foreground mt-1 text-sm">
- Manage Docker Compose template sources and registries
- <a href="https://arcane.ofkm.dev/docs/templates/use-templates" class="text-primary ml-1 hover:underline">→ Learn more</a>
+ {m.templates_subtitle()}
+ <a href="https://arcane.ofkm.dev/docs/templates/use-templates" class="text-primary ml-1 hover:underline"
+ >{m.templates_learn_more()}</a
+ >
</p>
</div>
<Button onclick={refreshTemplates} class="h-10" variant="outline">
<RefreshCwIcon class="mr-2 size-4" />
- Refresh Templates
+ {m.templates_refresh()}
</Button>
</div>
<div class="grid grid-cols-1 gap-4 md:grid-cols-3">
<StatCard
- title="Local Templates"
+ title={m.templates_local_templates()}
value={localTemplateCount}
icon={FolderOpenIcon}
iconColor="text-blue-500"
class="border-l-4 border-l-blue-500"
/>
<StatCard
- title="Remote Templates"
+ title={m.templates_remote_templates()}
value={remoteTemplateCount}
icon={GlobeIcon}
iconColor="text-green-500"
class="border-l-4 border-l-green-500"
/>
<StatCard
- title="Registries"
+ title={m.templates_registries()}
value={registries.length}
icon={FileTextIcon}
iconColor="text-purple-500"
@@ -158,27 +162,24 @@
<div class="space-y-4">
<div class="flex items-center justify-between">
- <h2 class="text-xl font-semibold">Template Registries</h2>
+ <h2 class="text-xl font-semibold">{m.templates_registries_section_title()}</h2>
<Button onclick={() => (showAddRegistrySheet = true)}>
<PlusIcon class="mr-2 size-4" />
- Add Registry
+ {m.registries_add_button()}
</Button>
</div>
{#if registries.length == 0}
<Alert.Root>
<GlobeIcon class="size-4" />
- <Alert.Title>Remote Registries</Alert.Title>
- <Alert.Description
- >Add remote template registries to access community templates. Registries should provide a JSON manifest with template
- definitions and download URLs.</Alert.Description
- >
+ <Alert.Title>{m.templates_alert_remote_registries_title()}</Alert.Title>
+ <Alert.Description>{m.templates_alert_remote_registries_description()}</Alert.Description>
</Alert.Root>
<Alert.Root class="border-blue-200 bg-blue-50 dark:border-blue-800 dark:bg-blue-950">
<UsersIcon class="size-4" />
- <Alert.Title>Community Registry</Alert.Title>
+ <Alert.Title>{m.templates_community_registry_title()}</Alert.Title>
<Alert.Description class="space-y-2">
- <p>Get started quickly with our community registry containing popular templates:</p>
+ <p>{m.templates_community_registry_description()}</p>
<div class="flex w-full max-w-[475px] flex-col gap-2">
<Snippet text="https://templates.arcane.ofkm.dev/registry.json" />
</div>
@@ -194,10 +195,10 @@
<div class="mb-1 flex items-center gap-2">
<h4 class="font-medium">{registry.name}</h4>
<Badge variant={registry.enabled ? 'default' : 'secondary'}>
- {registry.enabled ? 'Enabled' : 'Disabled'}
+ {registry.enabled ? m.common_enabled() : m.common_disabled()}
</Badge>
</div>
- <p class="text-muted-foreground text-sm break-all">{registry.url}</p>
+ <p class="text-muted-foreground break-all text-sm">{registry.url}</p>
{#if registry.description}
<p class="text-muted-foreground mt-1 text-sm">{registry.description}</p>
{/if}
@@ -233,8 +234,8 @@
{:else}
<div class="text-muted-foreground py-6 text-center">
<GlobeIcon class="mx-auto mb-4 size-12 opacity-50" />
- <p class="mb-2">No registries configured</p>
- <p class="text-sm">Add a remote template registry to access community templates</p>
+ <p class="mb-2">{m.templates_no_registries_title()}</p>
+ <p class="text-sm">{m.templates_no_registries_description()}</p>
</div>
{/if}
</div>
diff --git a/frontend/src/routes/dashboard/+page.svelte b/frontend/src/routes/dashboard/+page.svelte
index 960aedbd2..89a0ad732 100644
--- a/frontend/src/routes/dashboard/+page.svelte
+++ b/frontend/src/routes/dashboard/+page.svelte
@@ -20,6 +20,7 @@
import type { SystemStats } from '$lib/types/system-stats.type';
import DashboardContainerTable from './dash-container-table.svelte';
import DashboardImageTable from './dash-image-table.svelte';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
let containers = $state(data.containers);
@@ -180,10 +181,10 @@
isLoading.starting = true;
handleApiResultWithCallbacks({
result: await tryCatch(systemAPI.startAllStoppedContainers()),
- message: 'Failed to Start All Containers',
+ message: m.dashboard_start_all_failed(),
setLoadingState: (value) => (isLoading.starting = value),
onSuccess: async () => {
- toast.success('All Containers Started Successfully.');
+ toast.success(m.dashboard_start_all_success());
await refreshData();
}
});
@@ -192,18 +193,18 @@
async function handleStopAll() {
if (isLoading.stopping || !dashboardStates.dockerInfo || dockerInfo?.containersRunning === 0) return;
openConfirmDialog({
- title: 'Stop All Containers',
- message: 'Are you sure you want to stop all running containers?',
+ title: m.dashboard_stop_all_title(),
+ message: m.dashboard_stop_all_confirm(),
confirm: {
- label: 'Confirm',
+ label: m.common_confirm(),
destructive: false,
action: async () => {
handleApiResultWithCallbacks({
result: await tryCatch(systemAPI.stopAllContainers()),
- message: 'Failed to Stop All Running Containers',
+ message: m.dashboard_stop_all_failed(),
setLoadingState: (value) => (isLoading.stopping = value),
onSuccess: async () => {
- toast.success('All Containers Stopped Successfully.');
+ toast.success(m.dashboard_stop_all_success());
await refreshData();
}
});
@@ -224,14 +225,19 @@
dangling: dashboardStates.settings?.dockerPruneMode === 'dangling'
};
+ const typesString = selectedTypes.map((type) => capitalizeFirstLetter(type)).join(', ');
+
handleApiResultWithCallbacks({
result: await tryCatch(systemAPI.pruneAll(pruneOptions)),
- message: `Failed to Prune ${selectedTypes.join(', ')}`,
+ message: m.dashboard_prune_failed({ types: typesString }),
setLoadingState: (value) => (isLoading.pruning = value),
onSuccess: async () => {
dashboardStates.isPruneDialogOpen = false;
- const formattedTypes = selectedTypes.map((type) => capitalizeFirstLetter(type)).join(', ');
- toast.success(`${formattedTypes} ${selectedTypes.length > 1 ? 'were' : 'was'} pruned successfully.`);
+ if (selectedTypes.length === 1) {
+ toast.success(m.dashboard_prune_success_one({ types: typesString }));
+ } else {
+ toast.success(m.dashboard_prune_success_many({ types: typesString }));
+ }
await refreshData();
}
});
@@ -241,8 +247,8 @@
<div class="space-y-8">
<div class="flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between">
<div class="space-y-1">
- <h1 class="text-3xl font-bold tracking-tight">Dashboard</h1>
- <p class="text-muted-foreground max-w-2xl text-sm">Overview of your Container Environment</p>
+ <h1 class="text-3xl font-bold tracking-tight">{m.dashboard_title()}</h1>
+ <p class="text-muted-foreground max-w-2xl text-sm">{m.dashboard_subtitle()}</p>
</div>
<ArcaneButton
action="restart"
@@ -254,7 +260,7 @@
{:else}
<RefreshCwIcon class="mr-2 size-4" />
{/if}
- Refresh
+ {m.common_refresh()}
</ArcaneButton>
</div>
@@ -271,12 +277,12 @@
/>
<section>
- <h2 class="mb-4 text-lg font-semibold tracking-tight">System Overview</h2>
+ <h2 class="mb-4 text-lg font-semibold tracking-tight">{m.dashboard_system_overview()}</h2>
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4">
<MeterMetric
- title="Running Containers"
+ title={m.dashboard_meter_running()}
icon={ContainerIcon}
- description="Active containers"
+ description={m.dashboard_meter_running_desc()}
currentValue={isLoading.loadingStats ? undefined : dockerInfo?.containersRunning}
formatValue={(v) => v.toString()}
maxValue={Math.max(totalContainers, 1)}
@@ -286,9 +292,9 @@
/>
<MeterMetric
- title="CPU Usage"
+ title={m.dashboard_meter_cpu()}
icon={CpuIcon}
- description="Processor utilization"
+ description={m.dashboard_meter_cpu_desc()}
currentValue={isLoading.loadingStats || !hasInitialStatsLoaded ? undefined : currentStats?.cpuUsage}
unit="%"
maxValue={100}
@@ -297,9 +303,9 @@
/>
<MeterMetric
- title="Memory Usage"
+ title={m.dashboard_meter_memory()}
icon={MemoryStickIcon}
- description="RAM utilization"
+ description={m.dashboard_meter_memory_desc()}
currentValue={isLoading.loadingStats || !hasInitialStatsLoaded
? undefined
: currentStats?.memoryUsage !== undefined && currentStats?.memoryTotal !== undefined
@@ -313,8 +319,8 @@
<MeterMetric
icon={HardDriveIcon}
- title="Disk Usage"
- description="Storage utilization"
+ title={m.dashboard_meter_disk()}
+ description={m.dashboard_meter_disk_desc()}
currentValue={isLoading.loadingStats || !hasInitialStatsLoaded
? undefined
: currentStats?.diskUsage !== undefined && currentStats?.diskTotal !== undefined
@@ -329,7 +335,7 @@
</section>
<DockerDetailsCards
- title="Docker Details"
+ title={m.dashboard_docker_details_title()}
isLoadingDockerInfo={isLoading.loadingDockerInfo}
isLoadingStats={isLoading.loadingStats}
isLoadingImages={isLoading.loadingImages}
diff --git a/frontend/src/routes/dashboard/dash-container-table.svelte b/frontend/src/routes/dashboard/dash-container-table.svelte
index 451666275..bd643e7b8 100644
--- a/frontend/src/routes/dashboard/dash-container-table.svelte
+++ b/frontend/src/routes/dashboard/dash-container-table.svelte
@@ -10,6 +10,7 @@
import type { ContainerSummaryDto } from '$lib/types/container.type';
import { environmentAPI } from '$lib/services/api';
import type { ColumnSpec } from '$lib/components/arcane-table';
+ import { m } from '$lib/paraglide/messages';
let {
containers = $bindable(),
@@ -27,10 +28,10 @@
});
const columns = [
- { accessorKey: 'names', title: 'Name', cell: NameCell },
- { accessorKey: 'image', title: 'Image' },
- { accessorKey: 'state', title: 'State', cell: StateCell },
- { accessorKey: 'status', title: 'Status' }
+ { accessorKey: 'names', title: m.common_name(), cell: NameCell },
+ { accessorKey: 'image', title: m.common_image() },
+ { accessorKey: 'state', title: m.common_state(), cell: StateCell },
+ { accessorKey: 'status', title: m.common_status() }
] satisfies ColumnSpec<ContainerSummaryDto>[];
</script>
@@ -50,16 +51,16 @@
{/snippet}
<Card.Root class="relative flex flex-col rounded-lg border shadow-sm">
- <Card.Header class="px-6 pt-5 pb-3">
+ <Card.Header class="px-6 pb-3 pt-5">
<div class="flex items-center justify-between">
<div>
<Card.Title>
- <a class="font-medium hover:underline" href="/containers">Containers</a>
+ <a class="font-medium hover:underline" href="/containers">{m.containers_title()}</a>
</Card.Title>
- <Card.Description class="pb-2">Recent containers</Card.Description>
+ <Card.Description class="pb-2">{m.containers_recent()}</Card.Description>
</div>
<Button variant="ghost" size="sm" href="/containers" disabled={isLoading}>
- View All
+ {m.common_view_all()}
<ArrowRightIcon class="ml-2 size-4" />
</Button>
</div>
@@ -78,7 +79,7 @@
/>
{#if containers.data.length > 5}
<div class="bg-muted/40 text-muted-foreground border-t px-6 py-2 text-xs">
- Showing 5 of {containers.pagination.totalItems} containers
+ {m.containers_showing_of_total({ shown: 5, total: containers.pagination.totalItems })}
</div>
{/if}
</div>
diff --git a/frontend/src/routes/dashboard/dash-image-table.svelte b/frontend/src/routes/dashboard/dash-image-table.svelte
index dde0639ea..349fa29f0 100644
--- a/frontend/src/routes/dashboard/dash-image-table.svelte
+++ b/frontend/src/routes/dashboard/dash-image-table.svelte
@@ -9,6 +9,7 @@
import { environmentAPI } from '$lib/services/api';
import bytes from 'bytes';
import type { ColumnSpec } from '$lib/components/arcane-table';
+ import { m } from '$lib/paraglide/messages';
let {
images = $bindable(),
@@ -26,10 +27,10 @@
let selectedIds = $state<string[]>([]);
const columns = [
- { accessorKey: 'repoTags', title: 'Name', cell: NameCell },
- { accessorKey: 'inUse', title: 'Status', cell: StatusCell },
- { id: 'tag', title: 'Tag', cell: TagCell },
- { accessorKey: 'size', title: 'Size', cell: SizeCell }
+ { accessorKey: 'repoTags', title: m.images_repository(), cell: NameCell },
+ { accessorKey: 'inUse', title: m.common_status(), cell: StatusCell },
+ { id: 'tag', title: m.images_tag(), cell: TagCell },
+ { accessorKey: 'size', title: m.images_size(), cell: SizeCell }
] satisfies ColumnSpec<ImageSummaryDto>[];
</script>
@@ -40,7 +41,7 @@
{#if item.repoTags && item.repoTags.length > 0 && item.repoTags[0] !== '<none>:<none>'}
{item.repoTags[0].split(':')[0]}
{:else}
- <span class="text-muted-foreground italic">Untagged</span>
+ <span class="text-muted-foreground italic">{m.images_untagged()}</span>
{/if}
</a>
</div>
@@ -49,17 +50,17 @@
{#snippet StatusCell({ item }: { item: ImageSummaryDto })}
{#if item.inUse}
- <StatusBadge text="In Use" variant="green" />
+ <StatusBadge text={m.common_in_use()} variant="green" />
{:else}
- <StatusBadge text="Unused" variant="amber" />
+ <StatusBadge text={m.common_unused()} variant="amber" />
{/if}
{/snippet}
{#snippet TagCell({ item }: { item: ImageSummaryDto })}
{#if item.repoTags && item.repoTags.length > 0 && item.repoTags[0] !== '<none>:<none>'}
- {item.repoTags[0].split(':')[1] || 'latest'}
+ {item.repoTags[0].split(':')[1] || m.images_tag_latest()}
{:else}
- <span class="text-muted-foreground italic">&lt;none&gt;</span>
+ <span class="text-muted-foreground italic">{m.images_none_label()}</span>
{/if}
{/snippet}
@@ -68,17 +69,17 @@
{/snippet}
<Card.Root class="relative flex flex-col rounded-lg border shadow-sm">
- <Card.Header class="px-6 pt-5 pb-3">
+ <Card.Header class="px-6 pb-3 pt-5">
<div class="flex items-center justify-between">
<div>
<Card.Title>
- <a class="font-medium hover:underline" href="/images">Images</a>
+ <a class="font-medium hover:underline" href="/images">{m.images_title()}</a>
</Card.Title>
- <Card.Description class="pb-2">Top 5 Largest Images</Card.Description>
+ <Card.Description class="pb-2">{m.images_top_largest()}</Card.Description>
</div>
<div class="flex items-center gap-3">
<Button variant="ghost" size="sm" href="/images" disabled={isLoading}>
- View All
+ {m.common_view_all()}
<ArrowRightIcon class="ml-2 size-4" />
</Button>
</div>
@@ -98,7 +99,7 @@
/>
{#if images.data.length > 5}
<div class="bg-muted/40 text-muted-foreground border-t px-6 py-2 text-xs">
- Showing 5 of {images.pagination.totalItems} images
+ {m.images_showing_of_total({ shown: 5, total: images.pagination.totalItems })}
</div>
{/if}
</div>
diff --git a/frontend/src/routes/environments/+page.svelte b/frontend/src/routes/environments/+page.svelte
index 211d1a684..db36602ca 100644
--- a/frontend/src/routes/environments/+page.svelte
+++ b/frontend/src/routes/environments/+page.svelte
@@ -8,6 +8,7 @@
import { handleApiResultWithCallbacks } from '$lib/utils/api.util';
import { openConfirmDialog } from '$lib/components/confirm-dialog';
import { environmentManagementAPI } from '$lib/services/api';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
@@ -28,7 +29,7 @@
environments = await environmentManagementAPI.getEnvironments(requestOptions);
} catch (err) {
console.error('Failed to refresh environments:', err);
- toast.error('Failed to refresh environments');
+ toast.error(m.environments_refresh_failed());
} finally {
isLoading.refresh = false;
}
@@ -38,10 +39,10 @@
if (selectedIds.length === 0) return;
openConfirmDialog({
- title: `Remove ${selectedIds.length} Environment${selectedIds.length > 1 ? 's' : ''}`,
- message: 'Are you sure? This action cannot be undone.',
+ title: m.environments_remove_selected_title({ count: selectedIds.length }),
+ message: m.environments_remove_selected_message(),
confirm: {
- label: 'Remove',
+ label: m.common_remove(),
destructive: true,
action: async () => {
isLoading.deleting = true;
@@ -52,7 +53,7 @@
const result = await tryCatch(environmentManagementAPI.delete(id));
handleApiResultWithCallbacks({
result,
- message: `Failed to remove environment`,
+ message: m.environments_bulk_remove_failed_many({ count: selectedIds.length }),
setLoadingState: () => {},
onSuccess: () => (successCount += 1)
});
@@ -62,11 +63,19 @@
isLoading.deleting = false;
if (successCount > 0) {
- toast.success(`Removed ${successCount} environment${successCount > 1 ? 's' : ''}`);
+ const msg =
+ successCount === 1
+ ? m.environments_bulk_remove_success_one()
+ : m.environments_bulk_remove_success_many({ count: successCount });
+ toast.success(msg);
await refresh();
}
if (failureCount > 0) {
- toast.error(`Failed to remove ${failureCount} environment${failureCount > 1 ? 's' : ''}`);
+ const msg =
+ failureCount === 1
+ ? m.environments_bulk_remove_failed_one()
+ : m.environments_bulk_remove_failed_many({ count: failureCount });
+ toast.error(msg);
}
selectedIds = [];
@@ -78,7 +87,7 @@
async function onEnvironmentCreated() {
showEnvironmentSheet = false;
environments = await environmentManagementAPI.getEnvironments(requestOptions);
- toast.success('Environment added successfully');
+ toast.success(m.environments_created_success());
refresh();
}
</script>
@@ -90,24 +99,24 @@
<ServerIcon class="size-5 text-blue-500" />
</div>
<div>
- <h1 class="text-3xl font-bold tracking-tight">Environment Management</h1>
- <p class="text-muted-foreground mt-1 text-sm">Manage and monitor your Arcane environments</p>
+ <h1 class="text-3xl font-bold tracking-tight">{m.environments_title()}</h1>
+ <p class="text-muted-foreground mt-1 text-sm">{m.environments_subtitle()}</p>
</div>
</div>
<div class="flex items-center gap-2">
{#if selectedIds.length > 0}
<ArcaneButton
action="remove"
- customLabel="Remove Selected"
+ customLabel={m.environments_remove_selected_button()}
onclick={handleBulkDelete}
loading={isLoading.deleting}
disabled={isLoading.deleting}
/>
{/if}
- <ArcaneButton action="create" customLabel="Add Environment" onclick={() => (showEnvironmentSheet = true)} />
+ <ArcaneButton action="create" customLabel={m.environments_add_button()} onclick={() => (showEnvironmentSheet = true)} />
<ArcaneButton
action="restart"
- customLabel="Refresh"
+ customLabel={m.common_refresh()}
onclick={refresh}
loading={isLoading.refresh}
disabled={isLoading.refresh}
diff --git a/frontend/src/routes/environments/[id]/+page.svelte b/frontend/src/routes/environments/[id]/+page.svelte
index 14cd75c79..9a9dcf67f 100644
--- a/frontend/src/routes/environments/[id]/+page.svelte
+++ b/frontend/src/routes/environments/[id]/+page.svelte
@@ -1,5 +1,4 @@
<script lang="ts">
- import type { PageData } from './$types';
import * as Card from '$lib/components/ui/card/index.js';
import { Button } from '$lib/components/ui/button/index.js';
import ArrowLeftIcon from '@lucide/svelte/icons/arrow-left';
@@ -13,8 +12,9 @@
import { environmentManagementAPI } from '$lib/services/api';
import { toast } from 'svelte-sonner';
import Label from '$lib/components/ui/label/label.svelte';
+ import { m } from '$lib/paraglide/messages';
- let { data }: { data: PageData } = $props();
+ let { data } = $props();
let { environment } = $derived(data);
let isRefreshing = $state(false);
@@ -25,9 +25,9 @@
let activeSection = $state<string>('overview');
const sections = [
- { id: 'overview', Label: 'Overview', icon: MonitorIcon },
- { id: 'connection', Label: 'Connection', icon: GlobeIcon },
- { id: 'pairing', Label: 'Pair/Rotate', icon: SettingsIcon }
+ { id: 'overview', Label: m.environments_section_overview, icon: MonitorIcon },
+ { id: 'connection', Label: m.environments_section_connection, icon: GlobeIcon },
+ { id: 'pairing', Label: m.environments_section_pairing, icon: SettingsIcon }
];
async function refreshEnvironment() {
@@ -81,7 +81,7 @@
}
}
- const environmentDisplayName = $derived(environment.name);
+ const environmentDisplayName = $derived(() => environment?.name ?? m.common_unknown());
</script>
<div class="space-y-6 pb-16">
@@ -91,18 +91,19 @@
<ArrowLeftIcon class="size-4" />
</Button>
<div>
- <h1 class="text-3xl font-bold tracking-tight">{environmentDisplayName}</h1>
- <p class="text-muted-foreground mt-1 text-sm">Environment details and management</p>
+ <h1 class="text-3xl font-bold tracking-tight">{environmentDisplayName()}</h1>
+ <p class="text-muted-foreground mt-1 text-sm">{m.environments_page_subtitle()}</p>
</div>
</div>
<div class="flex items-center gap-2">
<Button variant="outline" onclick={testConnection} disabled={isTestingConnection}>
{#if isTestingConnection}
<RefreshCwIcon class="mr-2 size-4 animate-spin" />
+ {m.environments_testing_connection()}
{:else}
<TerminalIcon class="mr-2 size-4" />
+ {m.environments_test_connection()}
{/if}
- Test Connection
</Button>
<Button onclick={refreshEnvironment} disabled={isRefreshing}>
{#if isRefreshing}
@@ -110,7 +111,7 @@
{:else}
<RefreshCwIcon class="mr-2 size-4" />
{/if}
- Refresh
+ {m.common_refresh()}
</Button>
</div>
</div>
@@ -119,7 +120,7 @@
<div class="lg:col-span-1">
<Card.Root>
<Card.Header>
- <Card.Title class="text-lg">Sections</Card.Title>
+ <Card.Title class="text-lg">{m.environments_sections_title()}</Card.Title>
</Card.Header>
<Card.Content class="p-0">
<nav class="space-y-1">
@@ -133,7 +134,7 @@
: ''}"
>
<Icon class="size-4" />
- {section.Label}
+ {section.Label()}
</button>
{/each}
</nav>
@@ -148,30 +149,30 @@
<Card.Header>
<Card.Title class="flex items-center gap-2">
<MonitorIcon class="size-5" />
- Environment Overview
+ {m.environments_overview_title()}
</Card.Title>
</Card.Header>
<Card.Content class="space-y-6">
<div class="grid grid-cols-1 gap-6 md:grid-cols-2">
<div class="space-y-4">
<div>
- <Label class="text-muted-foreground text-sm font-medium">Name</Label>
- <div class="mt-1 text-lg font-semibold">{environmentDisplayName}</div>
+ <Label class="text-muted-foreground text-sm font-medium">{m.common_name()}</Label>
+ <div class="mt-1 text-lg font-semibold">{environmentDisplayName()}</div>
</div>
<div>
- <Label class="text-muted-foreground text-sm font-medium">Status</Label>
+ <Label class="text-muted-foreground text-sm font-medium">{m.common_status()}</Label>
<div class="mt-1">
<StatusBadge
- text={environment.status === 'online' ? 'Online' : 'Offline'}
+ text={environment.status === 'online' ? m.common_online() : m.common_offline()}
variant={environment.status === 'online' ? 'green' : 'red'}
/>
</div>
</div>
<div>
- <Label class="text-muted-foreground text-sm font-medium">Enabled</Label>
+ <Label class="text-muted-foreground text-sm font-medium">{m.common_enabled()}</Label>
<div class="mt-1">
<StatusBadge
- text={environment.enabled ? 'Enabled' : 'Disabled'}
+ text={environment.enabled ? m.common_enabled() : m.common_disabled()}
variant={environment.enabled ? 'green' : 'gray'}
/>
</div>
@@ -179,7 +180,7 @@
</div>
<div class="space-y-4">
<div>
- <Label class="text-muted-foreground text-sm font-medium">Environment ID</Label>
+ <Label class="text-muted-foreground text-sm font-medium">{m.environments_environment_id_label()}</Label>
<div class="bg-muted mt-1 rounded px-2 py-1 font-mono text-sm">{environment.id}</div>
</div>
</div>
@@ -193,26 +194,26 @@
<Card.Header>
<Card.Title class="flex items-center gap-2">
<GlobeIcon class="h-5 w-5" />
- Connection Details
+ {m.environments_connection_title()}
</Card.Title>
</Card.Header>
<Card.Content class="space-y-4">
<div>
- <Label class="text-muted-foreground text-sm font-medium">Name</Label>
- <div class="mt-1 text-sm">{environmentDisplayName}</div>
+ <Label class="text-muted-foreground text-sm font-medium">{m.common_name()}</Label>
+ <div class="mt-1 text-sm">{environmentDisplayName()}</div>
</div>
<div>
- <Label class="text-muted-foreground text-sm font-medium">API URL</Label>
+ <Label class="text-muted-foreground text-sm font-medium">{m.environments_api_url()}</Label>
<div class="bg-muted mt-1 break-all rounded-md px-3 py-2 font-mono text-sm">{environment.apiUrl}</div>
</div>
<div class="pt-4">
<Button onclick={testConnection} disabled={isTestingConnection} class="w-full">
{#if isTestingConnection}
<RefreshCwIcon class="mr-2 h-4 w-4 animate-spin" />
- Testing Connection...
+ {m.environments_testing_connection()}
{:else}
<TerminalIcon class="mr-2 h-4 w-4" />
- Test Connection
+ {m.environments_test_connection()}
{/if}
</Button>
</div>
@@ -225,19 +226,19 @@
<Card.Header>
<Card.Title class="flex items-center gap-2">
<SettingsIcon class="h-5 w-5" />
- Pair / Rotate Agent Token
+ {m.environments_pair_rotate_title()}
</Card.Title>
<Card.Description>
- The token is stored securely on the server and not displayed. Use a Bootstrap Token to pair or rotate.
+ {m.environments_pair_rotate_description()}
</Card.Description>
</Card.Header>
<Card.Content class="space-y-4">
<div>
- <Label class="text-muted-foreground text-sm font-medium">Bootstrap Token</Label>
+ <Label class="text-muted-foreground text-sm font-medium">{m.environments_bootstrap_label()}</Label>
<input
class="bg-background focus:ring-primary mt-1 w-full rounded-md border px-3 py-2 text-sm outline-none focus:ring-2"
type="password"
- placeholder="Enter AGENT_BOOTSTRAP_TOKEN"
+ placeholder={m.environments_bootstrap_placeholder()}
bind:value={bootstrapToken}
/>
</div>
@@ -248,9 +249,9 @@
{:else}
<SettingsIcon class="mr-2 h-4 w-4" />
{/if}
- Pair / Rotate
+ {m.environments_pair_rotate_action()}
</Button>
- <Button variant="outline" onclick={() => (bootstrapToken = '')} disabled={isPairing}>Clear</Button>
+ <Button variant="outline" onclick={() => (bootstrapToken = '')} disabled={isPairing}>{m.common_clear()}</Button>
</div>
</Card.Content>
</Card.Root>
@@ -262,7 +263,7 @@
{#if isRefreshing}
<div class="fixed bottom-4 right-4 flex items-center gap-2 rounded-lg bg-blue-600 px-3 py-2 text-white shadow-lg">
<RefreshCwIcon class="h-4 w-4 animate-spin" />
- <span class="text-sm">Refreshing...</span>
+ <span class="text-sm">{m.environments_refreshing()}</span>
</div>
{/if}
</div>
diff --git a/frontend/src/routes/environments/environment-table.svelte b/frontend/src/routes/environments/environment-table.svelte
index 11894e257..c82d8059f 100644
--- a/frontend/src/routes/environments/environment-table.svelte
+++ b/frontend/src/routes/environments/environment-table.svelte
@@ -18,6 +18,7 @@
import type { Paginated, SearchPaginationSortRequest } from '$lib/types/pagination.type';
import type { ColumnSpec } from '$lib/components/arcane-table';
import type { Environment } from '$lib/types/environment.type';
+ import { m } from '$lib/paraglide/messages';
let {
environments = $bindable(),
@@ -35,10 +36,10 @@
if (!ids?.length) return;
openConfirmDialog({
- title: `Remove ${ids.length} Environment${ids.length > 1 ? 's' : ''}`,
- message: `Are you sure you want to remove the selected environment${ids.length > 1 ? 's' : ''}? This action cannot be undone.`,
+ title: m.environments_remove_selected_title({ count: ids.length }),
+ message: m.environments_remove_selected_message({ count: ids.length }),
confirm: {
- label: 'Remove',
+ label: m.common_remove(),
destructive: true,
action: async () => {
isLoading.removing = true;
@@ -49,7 +50,7 @@
const result = await tryCatch(environmentManagementAPI.delete(id));
handleApiResultWithCallbacks({
result,
- message: `Failed to remove environment`,
+ message: m.environments_bulk_remove_failed_many({ count: ids.length }),
setLoadingState: () => {},
onSuccess: () => {
successCount++;
@@ -61,11 +62,19 @@
isLoading.removing = false;
if (successCount > 0) {
- toast.success(`Removed ${successCount} environment${successCount > 1 ? 's' : ''}`);
+ const msg =
+ successCount === 1
+ ? m.environments_bulk_remove_success_one()
+ : m.environments_bulk_remove_success_many({ count: successCount });
+ toast.success(msg);
environments = await environmentManagementAPI.getEnvironments(requestOptions);
}
if (failureCount > 0) {
- toast.error(`Failed to remove ${failureCount} environment${failureCount > 1 ? 's' : ''}`);
+ const msg =
+ failureCount === 1
+ ? m.environments_bulk_remove_failed_one()
+ : m.environments_bulk_remove_failed_many({ count: failureCount });
+ toast.error(msg);
}
selectedIds = [];
@@ -76,20 +85,20 @@
async function handleDeleteOne(id: string, hostname: string) {
openConfirmDialog({
- title: 'Remove Environment',
- message: `Are you sure you want to remove "${hostname}"? This action cannot be undone.`,
+ title: m.environments_delete_title(),
+ message: m.environments_delete_message({ name: hostname }),
confirm: {
- label: 'Remove',
+ label: m.common_remove(),
destructive: true,
action: async () => {
isLoading.removing = true;
const result = await tryCatch(environmentManagementAPI.delete(id));
handleApiResultWithCallbacks({
result,
- message: `Failed to remove environment "${hostname}"`,
+ message: m.environments_delete_failed({ name: hostname }),
setLoadingState: () => {},
onSuccess: async () => {
- toast.success(`Removed "${hostname}"`);
+ toast.success(m.environments_delete_success({ name: hostname }));
environments = await environmentManagementAPI.getEnvironments(requestOptions);
}
});
@@ -104,40 +113,40 @@
const result = await tryCatch(environmentManagementAPI.testConnection(id));
handleApiResultWithCallbacks({
result,
- message: 'Failed to test connection',
+ message: m.environments_test_connection_failed(),
setLoadingState: () => {},
onSuccess: (resp) => {
const status = (resp as { status: string; message?: string }).status;
- if (status === 'online') toast.success('Connection successful');
- else toast.error('Connection failed');
+ if (status === 'online') toast.success(m.environments_test_connection_success());
+ else toast.error(m.environments_test_connection_error());
}
});
isLoading.testing = false;
}
const columns = [
- { accessorKey: 'id', title: 'ID', hidden: true },
+ { accessorKey: 'id', title: m.common_id(), hidden: true },
{
id: 'name',
- title: 'Friendly Name',
+ title: m.common_name(),
sortable: true,
accessorFn: (row) => row.name,
cell: EnvironmentCell
},
{
accessorKey: 'status',
- title: 'Status',
+ title: m.common_status(),
sortable: true,
cell: StatusCell
},
{
accessorKey: 'apiUrl',
- title: 'API URL',
+ title: m.environments_api_url(),
cell: ApiCell
},
{
accessorKey: 'enabled',
- title: 'Enabled',
+ title: m.common_enabled(),
sortable: true,
cell: EnabledCell
}
@@ -164,7 +173,7 @@
{/snippet}
{#snippet StatusCell({ value }: { value: unknown })}
- <StatusBadge text={String(value ?? 'offline')} variant={String(value) === 'online' ? 'green' : 'red'} />
+ <StatusBadge text={String(value ?? m.common_offline())} variant={String(value) === 'online' ? 'green' : 'red'} />
{/snippet}
{#snippet ApiCell({ value }: { value: unknown })}
@@ -180,7 +189,7 @@
<DropdownMenu.Trigger>
{#snippet child({ props })}
<Button {...props} variant="ghost" size="icon" class="relative size-8 p-0">
- <span class="sr-only">Open menu</span>
+ <span class="sr-only">{m.common_open_menu()}</span>
<EllipsisIcon />
</Button>
{/snippet}
@@ -189,11 +198,11 @@
<DropdownMenu.Group>
<DropdownMenu.Item onclick={() => handleTest(item.id)} disabled={isLoading.testing}>
<TerminalIcon class="size-4" />
- Test Connection
+ {m.environments_test_connection()}
</DropdownMenu.Item>
<DropdownMenu.Item onclick={() => goto(`/environments/${item.id}`)}>
<EyeIcon class="size-4" />
- View Details
+ {m.common_view_details()}
</DropdownMenu.Item>
<DropdownMenu.Separator />
<DropdownMenu.Item
@@ -202,7 +211,7 @@
disabled={isLoading.removing}
>
<Trash2Icon class="size-4" />
- Delete
+ {m.common_delete()}
</DropdownMenu.Item>
</DropdownMenu.Group>
</DropdownMenu.Content>
diff --git a/frontend/src/routes/events/+page.svelte b/frontend/src/routes/events/+page.svelte
index 7d6224b15..a6b9ed840 100644
--- a/frontend/src/routes/events/+page.svelte
+++ b/frontend/src/routes/events/+page.svelte
@@ -10,6 +10,7 @@
import EventTable from './event-table.svelte';
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
import { openConfirmDialog } from '$lib/components/confirm-dialog';
+ import { m } from '$lib/paraglide/messages';
let { data }: { data: PageData } = $props();
@@ -34,7 +35,7 @@
events = await eventAPI.getEvents(requestOptions);
} catch (error) {
console.error('Failed to refresh events:', error);
- toast.error('Failed to refresh events');
+ toast.error(m.events_refresh_failed());
} finally {
isLoading.refreshing = false;
}
@@ -44,10 +45,10 @@
if (selectedIds.length === 0) return;
openConfirmDialog({
- title: `Delete ${selectedIds.length} Event${selectedIds.length > 1 ? 's' : ''}`,
- message: `Are you sure you want to delete the selected event${selectedIds.length > 1 ? 's' : ''}? This action cannot be undone.`,
+ title: m.events_delete_selected_title({ count: selectedIds.length }),
+ message: m.events_delete_selected_message({ count: selectedIds.length }),
confirm: {
- label: 'Delete',
+ label: m.common_delete(),
destructive: true,
action: async () => {
isLoading.deleting = true;
@@ -58,7 +59,7 @@
const result = await tryCatch(eventAPI.delete(eventId));
handleApiResultWithCallbacks({
result,
- message: `Failed to delete event ${eventId}`,
+ message: m.events_delete_item_failed({ id: eventId }),
setLoadingState: () => {},
onSuccess: () => {
successCount++;
@@ -71,11 +72,14 @@
isLoading.deleting = false;
if (successCount > 0) {
- toast.success(`Successfully deleted ${successCount} event${successCount > 1 ? 's' : ''}`);
+ const msg =
+ successCount === 1 ? m.events_delete_success_one() : m.events_delete_success_many({ count: successCount });
+ toast.success(msg);
await refreshEvents();
}
if (failureCount > 0) {
- toast.error(`Failed to delete ${failureCount} event${failureCount > 1 ? 's' : ''}`);
+ const msg = failureCount === 1 ? m.events_delete_failed_one() : m.events_delete_failed_many({ count: failureCount });
+ toast.error(msg);
}
selectedIds = [];
@@ -88,14 +92,14 @@
<div class="flex h-full flex-col space-y-6">
<div class="flex items-center justify-between">
<div class="space-y-1">
- <h2 class="text-2xl font-semibold tracking-tight">Event Log</h2>
- <p class="text-muted-foreground text-sm">Monitor events that have taken place in Arcane.</p>
+ <h2 class="text-2xl font-semibold tracking-tight">{m.events_title()}</h2>
+ <p class="text-muted-foreground text-sm">{m.events_subtitle()}</p>
</div>
<div class="flex items-center gap-2">
{#if selectedIds.length > 0}
<ArcaneButton
action="remove"
- customLabel="Remove Selected"
+ customLabel={m.events_remove_selected()}
onclick={handleDeleteSelected}
loading={isLoading.deleting}
disabled={isLoading.deleting}
@@ -103,7 +107,7 @@
{/if}
<ArcaneButton
action="restart"
- customLabel="Refresh"
+ customLabel={m.common_refresh()}
onclick={refreshEvents}
loading={isLoading.refreshing}
disabled={isLoading.refreshing}
@@ -112,38 +116,38 @@
</div>
<div class="grid gap-4 md:grid-cols-5">
- <StatCard title="Total Events" value={totalEvents} icon={ActivityIcon} subtitle="All recorded events" />
+ <StatCard title={m.events_total()} value={totalEvents} icon={ActivityIcon} subtitle={m.events_total_subtitle()} />
<StatCard
- title="Info"
+ title={m.events_info()}
value={infoEvents}
icon={ActivityIcon}
iconColor="text-blue-500"
bgColor="bg-blue-500/10"
- subtitle="Information events"
+ subtitle={m.events_info_subtitle()}
/>
<StatCard
- title="Success"
+ title={m.events_success()}
value={successEvents}
icon={ActivityIcon}
iconColor="text-green-500"
bgColor="bg-green-500/10"
- subtitle="Successful operations"
+ subtitle={m.events_success_subtitle()}
/>
<StatCard
- title="Warning"
+ title={m.events_warning()}
value={warningEvents}
icon={ActivityIcon}
iconColor="text-yellow-500"
bgColor="bg-yellow-500/10"
- subtitle="Warning events"
+ subtitle={m.events_warning_subtitle()}
/>
<StatCard
- title="Error"
+ title={m.events_error()}
value={errorEvents}
icon={ActivityIcon}
iconColor="text-red-500"
bgColor="bg-red-500/10"
- subtitle="Error events"
+ subtitle={m.events_error_subtitle()}
/>
</div>
diff --git a/frontend/src/routes/events/event-table.svelte b/frontend/src/routes/events/event-table.svelte
index c15d7670c..64b1b3766 100644
--- a/frontend/src/routes/events/event-table.svelte
+++ b/frontend/src/routes/events/event-table.svelte
@@ -18,6 +18,7 @@
import type { ColumnSpec } from '$lib/components/arcane-table';
import EventDetailsDialog from '$lib/components/dialogs/event-details-dialog.svelte';
import InfoIcon from '@lucide/svelte/icons/info';
+ import { m } from '$lib/paraglide/messages';
let {
events = $bindable(),
@@ -53,20 +54,21 @@
}
async function handleDeleteEvent(eventId: string, title: string) {
+ const safeTitle = title?.trim() || m.common_unknown();
openConfirmDialog({
- title: 'Delete Event',
- message: `Are you sure you want to delete the event "${title}"? This action cannot be undone.`,
+ title: m.events_delete_title(),
+ message: m.events_delete_confirm_message({ title: safeTitle }),
confirm: {
- label: 'Delete',
+ label: m.common_delete(),
destructive: true,
action: async () => {
isLoading.removing = true;
handleApiResultWithCallbacks({
result: await tryCatch(eventAPI.delete(eventId)),
- message: `Failed to delete event "${title}"`,
+ message: m.events_delete_failed({ title: safeTitle }),
setLoadingState: (value) => (isLoading.removing = value),
onSuccess: async () => {
- toast.success(`Event "${title}" deleted successfully.`);
+ toast.success(m.events_delete_success({ title: safeTitle }));
events = await eventAPI.listPaginated(
requestOptions.pagination,
requestOptions.sort,
@@ -88,30 +90,30 @@
const columns = [
{
accessorKey: 'severity',
- title: 'Severity',
+ title: m.events_col_severity(),
sortable: true,
cell: SeverityCell
},
{
accessorKey: 'type',
- title: 'Type',
+ title: m.events_col_type(),
sortable: true,
cell: TypeCell
},
{
id: 'resource',
- title: 'Resource',
+ title: m.events_col_resource(),
cell: ResourceCell
},
{
accessorKey: 'username',
- title: 'User',
+ title: m.common_user(),
sortable: true,
cell: UserCell
},
{
accessorKey: 'timestamp',
- title: 'Time',
+ title: m.events_col_time(),
sortable: true,
cell: TimeCell
}
@@ -156,7 +158,7 @@
<DropdownMenu.Trigger>
{#snippet child({ props })}
<Button {...props} variant="ghost" size="icon" class="relative size-8 p-0">
- <span class="sr-only">Open menu</span>
+ <span class="sr-only">{m.common_open_menu()}</span>
<EllipsisIcon />
</Button>
{/snippet}
@@ -165,7 +167,7 @@
<DropdownMenu.Group>
<DropdownMenu.Item onclick={() => openDetails(item)}>
<InfoIcon class="size-4" />
- View Details
+ {m.common_view_details()}
</DropdownMenu.Item>
<DropdownMenu.Item
variant="destructive"
@@ -173,7 +175,7 @@
disabled={isLoading.removing}
>
<Trash2Icon class="size-4" />
- Delete
+ {m.common_delete()}
</DropdownMenu.Item>
</DropdownMenu.Group>
</DropdownMenu.Content>
diff --git a/frontend/src/routes/images/+page.svelte b/frontend/src/routes/images/+page.svelte
index 321f4e7cf..8eaa6542c 100644
--- a/frontend/src/routes/images/+page.svelte
+++ b/frontend/src/routes/images/+page.svelte
@@ -13,6 +13,7 @@
import { environmentAPI } from '$lib/services/api';
import StatCard from '$lib/components/stat-card.svelte';
import ImageTableNew from './image-table.svelte';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
@@ -35,10 +36,10 @@
const dangling = data.settings?.dockerPruneMode === 'dangling';
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.pruneImages(dangling)),
- message: 'Failed to Prune Images',
+ message: m.images_prune_failed(),
setLoadingState: (value) => (isLoading.pruning = value),
onSuccess: async () => {
- toast.success('Images Pruned Successfully');
+ toast.success(m.images_pruned_success());
images = await environmentAPI.getImages(requestOptions);
isConfirmPruneDialogOpen = false;
}
@@ -50,11 +51,11 @@
try {
const imageRefs = images.data.map((img) => img.repoTags?.[0] || `image:${img.id}`);
await environmentAPI.checkMultipleImages(imageRefs);
- toast.success('Update check completed');
+ toast.success(m.images_update_check_completed());
images = await environmentAPI.getImages(requestOptions);
} catch (error) {
console.error('Failed to check for updates:', error);
- toast.error('Failed to check for updates');
+ toast.error(m.images_update_check_failed());
} finally {
isLoading.checking = false;
}
@@ -64,7 +65,7 @@
isLoading.refreshing = true;
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.getImages(requestOptions)),
- message: 'Failed to Refresh Containers for Updates',
+ message: m.images_refresh_failed(),
setLoadingState: (value) => (isLoading.refreshing = value),
async onSuccess(newImages) {
images = newImages;
@@ -76,31 +77,31 @@
<div class="space-y-6">
<div class="flex flex-col justify-between gap-4 sm:flex-row sm:items-center">
<div>
- <h1 class="text-2xl font-bold">Images</h1>
- <p class="text-muted-foreground mt-1 text-sm">View and Manage your Container Images</p>
+ <h1 class="text-2xl font-bold">{m.images_title()}</h1>
+ <p class="text-muted-foreground mt-1 text-sm">{m.images_subtitle()}</p>
</div>
<div class="flex items-center gap-2">
- <ArcaneButton action="pull" customLabel="Pull Image" onclick={() => (isPullDialogOpen = true)} />
+ <ArcaneButton action="pull" customLabel={m.images_pull_image()} onclick={() => (isPullDialogOpen = true)} />
<ArcaneButton
action="inspect"
- customLabel="Check Updates"
+ customLabel={m.images_check_updates()}
onclick={handleTriggerBulkUpdateCheck}
loading={isLoading.checking}
- loadingLabel="Checking..."
+ loadingLabel={m.images_checking()}
disabled={isLoading.checking}
/>
<ArcaneButton
action="remove"
- customLabel="Prune Unused"
+ customLabel={m.images_prune_unused()}
onclick={() => (isConfirmPruneDialogOpen = true)}
loading={isLoading.pruning}
- loadingLabel="Pruning..."
+ loadingLabel={m.images_pruning()}
disabled={isLoading.pruning}
/>
<ArcaneButton
action="restart"
onclick={refreshImages}
- customLabel="Refresh"
+ customLabel={m.common_refresh()}
loading={isLoading.refreshing}
disabled={isLoading.refreshing}
/>
@@ -109,14 +110,14 @@
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
<StatCard
- title="Total Images"
+ title={m.images_total()}
value={images.pagination.totalItems}
icon={HardDriveIcon}
iconColor="text-blue-500"
class="border-l-4 border-l-blue-500"
/>
<StatCard
- title="Total Size"
+ title={m.images_total_size()}
value={String(bytes.format(data.totalSize))}
icon={PackageIcon}
iconColor="text-amber-500"
@@ -133,19 +134,20 @@
<Dialog.Root bind:open={isConfirmPruneDialogOpen}>
<Dialog.Content>
<Dialog.Header>
- <Dialog.Title>Prune Unused Images</Dialog.Title>
+ <Dialog.Title>{m.images_prune_confirm_title()}</Dialog.Title>
<Dialog.Description>
- Removes unused Docker images (prune mode: {String(data.settings.dockerPruneMode)}). This frees disk space and cannot be
- undone. Images referenced by any container will not be removed.
+ {m.images_prune_confirm_description({ mode: String(data.settings.dockerPruneMode) })}
</Dialog.Description>
</Dialog.Header>
<div class="flex justify-end gap-3 pt-6">
- <Button variant="outline" onclick={() => (isConfirmPruneDialogOpen = false)} disabled={isLoading.pruning}>Cancel</Button>
+ <Button variant="outline" onclick={() => (isConfirmPruneDialogOpen = false)} disabled={isLoading.pruning}>
+ {m.common_cancel()}
+ </Button>
<Button variant="destructive" onclick={handlePruneImages} disabled={isLoading.pruning}>
{#if isLoading.pruning}
- <LoaderCircleIcon class="mr-2 size-4 animate-spin" /> Prune Images
+ <LoaderCircleIcon class="mr-2 size-4 animate-spin" /> {m.images_pruning()}
{:else}
- Prune Images
+ {m.images_prune_action()}
{/if}
</Button>
</div>
diff --git a/frontend/src/routes/images/[imageId]/+page.svelte b/frontend/src/routes/images/[imageId]/+page.svelte
index c4590041b..21fa6fbf8 100644
--- a/frontend/src/routes/images/[imageId]/+page.svelte
+++ b/frontend/src/routes/images/[imageId]/+page.svelte
@@ -18,6 +18,7 @@
import { toast } from 'svelte-sonner';
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
import { environmentAPI } from '$lib/services/api';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
let { image } = $derived(data);
@@ -28,41 +29,37 @@
refreshing: false
});
- const shortId = $derived(image?.id?.split(':')[1]?.substring(0, 12) || 'N/A');
+ const shortId = $derived(() => image?.id?.split(':')[1]?.substring(0, 12) || m.common_na());
const createdDate = $derived(() => {
- if (!image?.created) {
- return 'N/A';
- }
+ if (!image?.created) return m.common_na();
try {
const date = new Date(image.created);
- if (isNaN(date.getTime())) {
- return 'N/A';
- }
+ if (isNaN(date.getTime())) return m.common_na();
return format(date, 'PP p');
} catch {
- return 'N/A';
+ return m.common_na();
}
});
- const imageSize = $derived(bytes.format(image?.size || 0));
- const architecture = $derived(image?.architecture || 'N/A');
- const osName = $derived(image?.os || 'N/A');
+ const imageSize = $derived(() => bytes.format(image?.size || 0));
+ const architecture = $derived(() => image?.architecture || m.common_na());
+ const osName = $derived(() => image?.os || m.common_na());
async function handleImageRemove(id: string) {
openConfirmDialog({
- title: 'Delete Image',
- message: `Are you sure you want to delete this image? This action cannot be undone.`,
+ title: m.images_remove_title(),
+ message: m.images_remove_message(),
confirm: {
- label: 'Delete',
+ label: m.common_delete(),
destructive: true,
action: async () => {
await handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.deleteImage(id)),
- message: 'Failed to Remove Image',
+ message: m.images_remove_failed(),
setLoadingState: (value) => (isLoading.removing = value),
onSuccess: async () => {
- toast.success('Image Removed Successfully.');
+ toast.success(m.images_remove_success());
goto('/images');
}
});
@@ -78,17 +75,17 @@
<Breadcrumb.Root>
<Breadcrumb.List>
<Breadcrumb.Item>
- <Breadcrumb.Link href="/images">Images</Breadcrumb.Link>
+ <Breadcrumb.Link href="/images">{m.images_title()}</Breadcrumb.Link>
</Breadcrumb.Item>
<Breadcrumb.Separator />
<Breadcrumb.Item>
- <Breadcrumb.Page>{shortId}</Breadcrumb.Page>
+ <Breadcrumb.Page>{shortId()}</Breadcrumb.Page>
</Breadcrumb.Item>
</Breadcrumb.List>
</Breadcrumb.Root>
<div class="mt-2 flex items-center gap-2">
- <h1 class="text-2xl font-bold tracking-tight break-all">
- {image?.repoTags?.[0] || shortId}
+ <h1 class="break-all text-2xl font-bold tracking-tight">
+ {image?.repoTags?.[0] || shortId()}
</h1>
</div>
</div>
@@ -108,7 +105,7 @@
<div class="space-y-6">
<Card.Root class="border shadow-sm">
<Card.Header>
- <Card.Title>Image Details</Card.Title>
+ <Card.Title>{m.images_details_title()}</Card.Title>
</Card.Header>
<Card.Content>
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
@@ -118,8 +115,8 @@
<HashIcon class="size-5 text-gray-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">ID</p>
- <p class="mt-1 truncate text-base font-semibold" title={image.id}>{shortId}</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_id()}</p>
+ <p class="mt-1 truncate text-base font-semibold" title={image.id}>{shortId()}</p>
</div>
</div>
@@ -129,8 +126,8 @@
<HardDriveIcon class="size-5 text-blue-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Size</p>
- <p class="mt-1 text-base font-semibold">{imageSize}</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.images_size()}</p>
+ <p class="mt-1 text-base font-semibold">{imageSize()}</p>
</div>
</div>
@@ -140,7 +137,7 @@
<ClockIcon class="size-5 text-green-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Created</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_created()}</p>
<p class="mt-1 text-base font-semibold">{createdDate()}</p>
</div>
</div>
@@ -151,8 +148,8 @@
<CpuIcon class="size-5 text-orange-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Architecture</p>
- <p class="mt-1 text-base font-semibold">{architecture}</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.images_architecture()}</p>
+ <p class="mt-1 text-base font-semibold">{architecture()}</p>
</div>
</div>
@@ -162,8 +159,8 @@
<LayersIcon class="size-5 text-indigo-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">OS</p>
- <p class="mt-1 text-base font-semibold">{osName}</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.images_os()}</p>
+ <p class="mt-1 text-base font-semibold">{osName()}</p>
</div>
</div>
</div>
@@ -174,7 +171,9 @@
{#if image.repoTags && image.repoTags.length > 0}
<Card.Root class="border shadow-sm">
<Card.Header>
- <Card.Title class="flex items-center gap-2"><TagIcon class="text-muted-foreground size-5" /> Tags</Card.Title>
+ <Card.Title class="flex items-center gap-2"
+ ><TagIcon class="text-muted-foreground size-5" /> {m.images_tags_title()}</Card.Title
+ >
</Card.Header>
<Card.Content>
<div class="flex flex-wrap gap-2">
@@ -190,15 +189,15 @@
{#if image.config?.env && image.config.env.length > 0}
<Card.Root class="border shadow-sm">
<Card.Header>
- <Card.Title>Environment Variables</Card.Title>
+ <Card.Title>{m.images_env_vars_title()}</Card.Title>
</Card.Header>
<Card.Content class="space-y-2">
{#each image.config.env as env (env)}
{@const [key, ...valueParts] = env.split('=')}
{@const value = valueParts.join('=')}
<div class="flex flex-col text-sm sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full font-medium break-all sm:w-1/4">{key}:</span>
- <span class="w-full font-mono text-xs break-all sm:w-3/4 sm:text-sm">{value}</span>
+ <span class="text-muted-foreground w-full break-all font-medium sm:w-1/4">{key}:</span>
+ <span class="w-full break-all font-mono text-xs sm:w-3/4 sm:text-sm">{value}</span>
</div>
{#if env !== image.config.env[image.config.env.length - 1]}
<Separator class="my-2" />
@@ -210,8 +209,14 @@
</div>
{:else}
<div class="py-12 text-center">
- <p class="text-muted-foreground text-lg font-medium">Image not found.</p>
- <ArcaneButton action="cancel" customLabel="Back to Images" onclick={() => goto('/images')} size="sm" class="mt-4" />
+ <p class="text-muted-foreground text-lg font-medium">{m.images_not_found_title()}</p>
+ <ArcaneButton
+ action="cancel"
+ customLabel={m.common_back_to_images()}
+ onclick={() => goto('/images')}
+ size="sm"
+ class="mt-4"
+ />
</div>
{/if}
</div>
diff --git a/frontend/src/routes/images/image-table.svelte b/frontend/src/routes/images/image-table.svelte
index 8d328b8a4..9b83857bd 100644
--- a/frontend/src/routes/images/image-table.svelte
+++ b/frontend/src/routes/images/image-table.svelte
@@ -21,6 +21,7 @@
import type { ImageSummaryDto } from '$lib/types/image.type';
import { format } from 'date-fns';
import type { ColumnSpec } from '$lib/components/arcane-table';
+ import { m } from '$lib/paraglide/messages';
let {
images = $bindable(),
@@ -43,10 +44,10 @@
if (!ids || ids.length === 0) return;
openConfirmDialog({
- title: `Remove ${ids.length} Image${ids.length > 1 ? 's' : ''}`,
- message: `Are you sure you want to remove the selected image${ids.length > 1 ? 's' : ''}? This action cannot be undone.`,
+ title: m.images_remove_selected_title({ count: ids.length }),
+ message: m.images_remove_selected_message({ count: ids.length }),
confirm: {
- label: 'Remove',
+ label: m.common_remove(),
destructive: true,
action: async () => {
isLoading.removing = true;
@@ -57,7 +58,7 @@
const result = await tryCatch(environmentAPI.deleteImage(id));
handleApiResultWithCallbacks({
result,
- message: `Failed to remove image`,
+ message: m.images_remove_failed(),
setLoadingState: () => {},
onSuccess: () => {
successCount++;
@@ -69,11 +70,14 @@
isLoading.removing = false;
if (successCount > 0) {
- toast.success(`Successfully removed ${successCount} image${successCount > 1 ? 's' : ''}`);
+ const msg =
+ successCount === 1 ? m.images_remove_success_one() : m.images_remove_success_many({ count: successCount });
+ toast.success(msg);
images = await environmentAPI.getImages(requestOptions);
}
if (failureCount > 0) {
- toast.error(`Failed to remove ${failureCount} image${failureCount > 1 ? 's' : ''}`);
+ const msg = failureCount === 1 ? m.images_remove_failed_one() : m.images_remove_failed_many({ count: failureCount });
+ toast.error(msg);
}
selectedIds = [];
@@ -84,10 +88,10 @@
async function deleteImage(id: string) {
openConfirmDialog({
- title: 'Remove Image',
- message: 'Are you sure you want to remove this image? This action cannot be undone.',
+ title: m.images_remove_title(),
+ message: m.images_remove_message(),
confirm: {
- label: 'Remove',
+ label: m.common_remove(),
destructive: true,
action: async () => {
isLoading.removing = true;
@@ -95,10 +99,10 @@
const result = await tryCatch(environmentAPI.deleteImage(id));
handleApiResultWithCallbacks({
result,
- message: 'Failed to remove image',
+ message: m.images_remove_failed(),
setLoadingState: () => {},
onSuccess: async () => {
- toast.success('Image removed successfully');
+ toast.success(m.images_remove_success());
images = await environmentAPI.getImages(requestOptions);
}
});
@@ -111,7 +115,7 @@
async function handleInlineImagePull(imageId: string, repoTag: string) {
if (!repoTag || repoTag === '<none>:<none>') {
- toast.error('Cannot pull image without repository tag');
+ toast.error(m.images_pull_no_tag());
return;
}
@@ -120,10 +124,10 @@
const result = await tryCatch(environmentAPI.pullImage(repoTag));
handleApiResultWithCallbacks({
result,
- message: 'Failed to Pull Image',
+ message: m.images_pull_failed(),
setLoadingState: () => {},
onSuccess: async () => {
- toast.success(`Successfully pulled ${repoTag}`);
+ toast.success(m.images_pull_success({ repoTag }));
images = await environmentAPI.getImages(requestOptions);
}
});
@@ -146,14 +150,14 @@
}
const columns = [
- { accessorKey: 'id', title: 'ID', hidden: true },
- { accessorKey: 'repoTags', title: 'Repository', sortable: true, cell: RepoCell },
- { id: 'imageId', title: 'Image ID', cell: ImageIdCell },
- { accessorKey: 'size', title: 'Size', sortable: true, cell: SizeCell },
- { accessorKey: 'created', title: 'Created', sortable: true, cell: CreatedCell },
+ { accessorKey: 'id', title: m.common_id(), hidden: true },
+ { accessorKey: 'repoTags', title: m.images_repository(), sortable: true, cell: RepoCell },
+ { id: 'imageId', title: m.images_image_id(), cell: ImageIdCell },
+ { accessorKey: 'size', title: m.images_size(), sortable: true, cell: SizeCell },
+ { accessorKey: 'created', title: m.common_created(), sortable: true, cell: CreatedCell },
{
accessorKey: 'inUse',
- title: 'Status',
+ title: m.common_status(),
sortable: true,
cell: StatusCell,
filterFn: (row, columnId, filterValue) => {
@@ -166,7 +170,7 @@
{
id: 'updates',
accessorFn: (row) => row.updateInfo?.hasUpdate ?? false,
- title: 'Updates',
+ title: m.images_updates(),
cell: UpdatesCell,
filterFn: (row, columnId, filterValue) => {
const selected = Array.isArray(filterValue) ? (filterValue as boolean[]) : [];
@@ -183,12 +187,12 @@
{#if item.repoTags && item.repoTags.length > 0 && item.repoTags[0] !== '<none>:<none>'}
<a class="font-medium hover:underline" href="/images/{item.id}/">{item.repoTags[0]}</a>
{:else}
- <span class="text-muted-foreground italic">Untagged</span>
+ <span class="text-muted-foreground italic">{m.images_untagged()}</span>
{/if}
{/snippet}
{#snippet ImageIdCell({ item }: { item: ImageSummaryDto })}
- <code class="bg-muted rounded px-2 py-1 text-xs">{item.id?.substring(7, 19) || 'N/A'}</code>
+ <code class="bg-muted rounded px-2 py-1 text-xs">{item.id?.substring(7, 19) || m.common_na()}</code>
{/snippet}
{#snippet SizeCell({ value }: { value: unknown })}
@@ -201,9 +205,9 @@
{#snippet StatusCell({ item }: { item: ImageSummaryDto })}
{#if item.inUse}
- <StatusBadge text="In Use" variant="green" />
+ <StatusBadge text={m.common_in_use()} variant="green" />
{:else}
- <StatusBadge text="Unused" variant="amber" />
+ <StatusBadge text={m.common_unused()} variant="amber" />
{/if}
{/snippet}
@@ -217,7 +221,7 @@
<DropdownMenu.Trigger>
{#snippet child({ props })}
<Button {...props} variant="ghost" size="icon" class="relative size-8 p-0">
- <span class="sr-only">Open menu</span>
+ <span class="sr-only">{m.common_open_menu()}</span>
<EllipsisIcon />
</Button>
{/snippet}
@@ -226,7 +230,7 @@
<DropdownMenu.Group>
<DropdownMenu.Item onclick={() => goto(`/images/${item.id}`)}>
<ScanSearchIcon class="size-4" />
- Inspect
+ {m.common_inspect()}
</DropdownMenu.Item>
<DropdownMenu.Item
onclick={() => handleInlineImagePull(item.id, item.repoTags?.[0] || '')}
@@ -234,10 +238,10 @@
>
{#if isPullingInline[item.id]}
<LoaderCircleIcon class="size-4 animate-spin" />
- Pulling...
+ {m.images_pulling()}
{:else}
<DownloadIcon class="size-4" />
- Pull
+ {m.images_pull()}
{/if}
</DropdownMenu.Item>
<DropdownMenu.Separator />
@@ -247,25 +251,23 @@
{:else}
<Trash2Icon class="size-4" />
{/if}
- Remove
+ {m.common_remove()}
</DropdownMenu.Item>
</DropdownMenu.Group>
</DropdownMenu.Content>
</DropdownMenu.Root>
{/snippet}
-<div>
- <Card.Root>
- <Card.Content class="py-5">
- <ArcaneTable
- items={images}
- bind:requestOptions
- bind:selectedIds
- onRemoveSelected={(ids) => handleDeleteSelected(ids)}
- onRefresh={async (options) => (images = await environmentAPI.getImages(options))}
- {columns}
- rowActions={RowActions}
- />
- </Card.Content>
- </Card.Root>
-</div>
+<Card.Root>
+ <Card.Content class="py-5">
+ <ArcaneTable
+ items={images}
+ bind:requestOptions
+ bind:selectedIds
+ onRemoveSelected={(ids) => handleDeleteSelected(ids)}
+ onRefresh={async (options) => (images = await environmentAPI.getImages(options))}
+ {columns}
+ rowActions={RowActions}
+ />
+ </Card.Content>
+</Card.Root>
diff --git a/frontend/src/routes/networks/+page.svelte b/frontend/src/routes/networks/+page.svelte
index feb5f757e..326be1d8d 100644
--- a/frontend/src/routes/networks/+page.svelte
+++ b/frontend/src/routes/networks/+page.svelte
@@ -10,6 +10,7 @@
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
import StatCard from '$lib/components/stat-card.svelte';
import NetworkTable from './network-table.svelte';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
@@ -30,7 +31,7 @@
isLoading.refresh = true;
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.getNetworks(requestOptions)),
- message: 'Failed to Refresh Containers for Updates',
+ message: m.networks_refresh_failed(),
setLoadingState: (value) => (isLoading.refresh = value),
async onSuccess(newNetworks) {
networks = newNetworks;
@@ -40,12 +41,13 @@
async function handleCreateNetworkSubmit(options: NetworkCreateOptions) {
isLoading.create = true;
+ const name = options.Name?.trim() || m.common_unknown();
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.createNetwork(options)),
- message: `Failed to Create Network "${options.Name}"`,
+ message: m.networks_create_failed({ name }),
setLoadingState: (value) => (isLoading.create = value),
onSuccess: async () => {
- toast.success(`Network "${options.Name}" Created Successfully.`);
+ toast.success(m.networks_created_success({ name }));
networks = await environmentAPI.getNetworks(requestOptions);
isCreateDialogOpen = false;
}
@@ -56,15 +58,15 @@
<div class="space-y-6">
<div class="flex flex-col justify-between gap-4 sm:flex-row sm:items-center">
<div>
- <h1 class="text-3xl font-bold tracking-tight">Networks</h1>
- <p class="text-muted-foreground mt-1 text-sm">Manage your Docker networks</p>
+ <h1 class="text-3xl font-bold tracking-tight">{m.networks_title()}</h1>
+ <p class="text-muted-foreground mt-1 text-sm">{m.networks_subtitle()}</p>
</div>
<div class="flex items-center gap-2">
- <ArcaneButton action="create" customLabel="Create Network" onclick={() => (isCreateDialogOpen = true)} />
+ <ArcaneButton action="create" customLabel={m.networks_create_button()} onclick={() => (isCreateDialogOpen = true)} />
<ArcaneButton
action="restart"
onclick={refreshNetworks}
- customLabel="Refresh"
+ customLabel={m.common_refresh()}
loading={isLoading.refresh}
disabled={isLoading.refresh}
/>
@@ -73,14 +75,14 @@
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
<StatCard
- title="Total Networks"
+ title={m.networks_total()}
value={totalNetworks}
icon={NetworkIcon}
iconColor="text-blue-500"
class="border-l-4 border-l-blue-500"
/>
<StatCard
- title="Bridge Networks"
+ title={m.networks_bridge()}
value={bridgeNetworks}
icon={EthernetPortIcon}
iconColor="text-green-500"
diff --git a/frontend/src/routes/networks/[networkId]/+page.svelte b/frontend/src/routes/networks/[networkId]/+page.svelte
index c90b5c49e..61a722a20 100644
--- a/frontend/src/routes/networks/[networkId]/+page.svelte
+++ b/frontend/src/routes/networks/[networkId]/+page.svelte
@@ -24,6 +24,7 @@
import { tryCatch } from '$lib/utils/try-catch';
import { environmentAPI } from '$lib/services/api';
import type { NetworkInspectDto } from '$lib/types/network.type';
+ import { m } from '$lib/paraglide/messages';
let { data }: { data: PageData } = $props();
let { network }: { network: NetworkInspectDto | null | undefined } = $derived(data);
@@ -31,8 +32,8 @@
let isRemoving = $state(false);
- const shortId = $derived(network?.id?.substring(0, 12) || 'N/A');
- const createdDate = $derived(network?.created ? format(new Date(network.created), 'PP p') : 'N/A');
+ const shortId = $derived(network?.id?.substring(0, 12) ?? m.common_unknown());
+ const createdDate = $derived(network?.created ? format(new Date(network.created), 'PP p') : m.common_unknown());
const connectedContainers = $derived(
network?.containers ? Object.entries(network.containers).map(([id, info]) => ({ id, ...(info as any) })) : []
);
@@ -41,33 +42,33 @@
function triggerRemove() {
if (isPredefined) {
- toast.error('Cannot Remove Predefined Networks');
+ toast.error(m.networks_cannot_delete_default({ name: network?.name ?? m.common_unknown() }));
console.warn('Cannot remove predefined network');
return;
}
if (!network?.id) {
- toast.error('Network ID is missing');
+ toast.error(m.networks_missing_id ? m.networks_missing_id() : m.error_occurred());
return;
}
openConfirmDialog({
- title: 'Remove Network',
- message: `Are you sure you want to remove the network "${network?.name || shortId}"? This action cannot be undone.`,
+ title: m.networks_remove_title(),
+ message: m.networks_remove_confirm_message({ name: network?.name ?? shortId }),
confirm: {
- label: 'Remove',
+ label: m.common_remove(),
destructive: true,
action: async () => {
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.deleteNetwork(network.id)),
- message: 'Failed to remove network',
+ message: m.networks_remove_failed({ name: network?.name ?? shortId }),
setLoadingState: (value) => (isRemoving = value),
onSuccess: async () => {
- toast.success(`Network "${network.name || shortId}" removed successfully`);
+ toast.success(m.networks_remove_success({ name: network?.name ?? shortId }));
goto('/networks');
},
onError: (error) => {
- errorMessage = error?.message || 'An error occurred while removing the network';
+ errorMessage = error?.message ?? m.error_occurred();
toast.error(errorMessage);
}
});
@@ -82,11 +83,11 @@
<Breadcrumb.Root>
<Breadcrumb.List>
<Breadcrumb.Item>
- <Breadcrumb.Link href="/networks">Networks</Breadcrumb.Link>
+ <Breadcrumb.Link href="/networks">{m.networks_title()}</Breadcrumb.Link>
</Breadcrumb.Item>
<Breadcrumb.Separator />
<Breadcrumb.Item>
- <Breadcrumb.Page>{network?.name || shortId}</Breadcrumb.Page>
+ <Breadcrumb.Page>{network?.name ?? shortId}</Breadcrumb.Page>
</Breadcrumb.Item>
</Breadcrumb.List>
</Breadcrumb.Root>
@@ -95,33 +96,33 @@
<div class="flex flex-col">
<div class="flex items-center gap-3">
<h1 class="text-2xl font-bold tracking-tight">
- {network?.name || 'Network Details'}
+ {network?.name ?? m.networks_details_title()}
</h1>
<div class="hidden sm:block">
- <StatusBadge variant="gray" text={`ID: ${shortId}`} />
+ <StatusBadge variant="gray" text={`${m.networks_id()}: ${shortId}`} />
</div>
</div>
<div class="mt-2 flex gap-2">
{#if inUse}
- <StatusBadge variant="green" text={`In Use (${connectedContainers.length})`} />
+ <StatusBadge variant="green" text={m.networks_in_use_count({ count: connectedContainers.length })} />
{:else}
- <StatusBadge variant="amber" text="Unused" />
+ <StatusBadge variant="amber" text={m.common_unused()} />
{/if}
{#if isPredefined}
- <StatusBadge variant="blue" text="Predefined" />
+ <StatusBadge variant="blue" text={m.networks_predefined()} />
{/if}
- <StatusBadge variant="purple" text={network?.driver || 'Unknown'} />
+ <StatusBadge variant="purple" text={network?.driver ?? m.common_unknown()} />
</div>
</div>
<div class="self-start">
<ArcaneButton
action="remove"
- customLabel="Remove Network"
+ customLabel={m.networks_remove_title()}
onclick={triggerRemove}
loading={isRemoving}
disabled={isRemoving || isPredefined}
@@ -133,7 +134,7 @@
{#if errorMessage}
<Alert.Root variant="destructive">
<CircleAlertIcon class="mr-2 size-4" />
- <Alert.Title>Action Failed</Alert.Title>
+ <Alert.Title>{m.action_failed()}</Alert.Title>
<Alert.Description>{errorMessage}</Alert.Description>
</Alert.Root>
{/if}
@@ -144,9 +145,9 @@
<Card.Header class="pb-0">
<Card.Title class="flex items-center gap-2 text-lg">
<NetworkIcon class="text-primary size-5" />
- Network Details
+ {m.networks_details_title()}
</Card.Title>
- <Card.Description>Basic information about this Docker network</Card.Description>
+ <Card.Description>{m.networks_details_description()}</Card.Description>
</Card.Header>
<Card.Content class="pt-6">
<div class="grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-2 lg:grid-cols-3">
@@ -155,7 +156,7 @@
<HashIcon class="size-5 text-gray-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">ID</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.networks_id()}</p>
<p class="mt-1 truncate text-base font-semibold" title={network.id}>{network.id}</p>
</div>
</div>
@@ -165,7 +166,7 @@
<NetworkIcon class="size-5 text-blue-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Name</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.networks_name()}</p>
<p class="mt-1 break-words text-base font-semibold">{network.name}</p>
</div>
</div>
@@ -175,7 +176,7 @@
<HardDriveIcon class="size-5 text-orange-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Driver</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.networks_driver()}</p>
<p class="mt-1 text-base font-semibold">{network.driver}</p>
</div>
</div>
@@ -185,7 +186,7 @@
<GlobeIcon class="size-5 text-purple-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Scope</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.networks_scope()}</p>
<p class="mt-1 text-base font-semibold capitalize">{network.scope}</p>
</div>
</div>
@@ -195,7 +196,7 @@
<ClockIcon class="size-5 text-green-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Created</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.networks_created()}</p>
<p class="mt-1 text-base font-semibold">{createdDate}</p>
</div>
</div>
@@ -205,9 +206,12 @@
<LayersIcon class="size-5 text-yellow-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Attachable</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.attachable()}</p>
<p class="mt-1 text-base font-semibold">
- <StatusBadge variant={network.attachable ? 'green' : 'gray'} text={network.attachable ? 'Yes' : 'No'} />
+ <StatusBadge
+ variant={network.attachable ? 'green' : 'gray'}
+ text={network.attachable ? m.common_yes() : m.common_no()}
+ />
</p>
</div>
</div>
@@ -217,9 +221,12 @@
<SettingsIcon class="size-5 text-red-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Internal</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.internal()}</p>
<p class="mt-1 text-base font-semibold">
- <StatusBadge variant={network.internal ? 'blue' : 'gray'} text={network.internal ? 'Yes' : 'No'} />
+ <StatusBadge
+ variant={network.internal ? 'blue' : 'gray'}
+ text={network.internal ? m.common_yes() : m.common_no()}
+ />
</p>
</div>
</div>
@@ -229,9 +236,12 @@
<ListTreeIcon class="size-5 text-indigo-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">IPv6 Enabled</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.ipv6_enabled()}</p>
<p class="mt-1 text-base font-semibold">
- <StatusBadge variant={network.enableIPv6 ? 'indigo' : 'gray'} text={network.enableIPv6 ? 'Yes' : 'No'} />
+ <StatusBadge
+ variant={network.enableIPv6 ? 'indigo' : 'gray'}
+ text={network.enableIPv6 ? m.common_yes() : m.common_no()}
+ />
</p>
</div>
</div>
@@ -244,9 +254,9 @@
<Card.Header class="pb-0">
<Card.Title class="flex items-center gap-2 text-lg">
<SettingsIcon class="text-primary size-5" />
- IPAM Configuration
+ {m.networks_ipam_title()}
</Card.Title>
- <Card.Description>IP Address Management settings for this network</Card.Description>
+ <Card.Description>{m.networks_ipam_description()}</Card.Description>
</Card.Header>
<Card.Content class="pt-6">
{#each network.ipam.Config as config, i (i)}
@@ -254,7 +264,9 @@
<div class="space-y-2">
{#if config.Subnet}
<div class="flex flex-col sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-24">Subnet:</span>
+ <span class="text-muted-foreground w-full text-sm font-medium sm:w-24"
+ >{m.networks_ipam_subnet_label()}:</span
+ >
<code
class="bg-muted text-muted-foreground mt-1 rounded px-1.5 py-0.5 font-mono text-xs sm:mt-0 sm:text-sm"
>
@@ -265,7 +277,9 @@
{#if config.Gateway}
<div class="flex flex-col sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-24">Gateway:</span>
+ <span class="text-muted-foreground w-full text-sm font-medium sm:w-24"
+ >{m.networks_ipam_gateway_label()}:</span
+ >
<code
class="bg-muted text-muted-foreground mt-1 rounded px-1.5 py-0.5 font-mono text-xs sm:mt-0 sm:text-sm"
>
@@ -276,7 +290,9 @@
{#if config.IPRange}
<div class="flex flex-col sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full text-sm font-medium sm:w-24">IP Range:</span>
+ <span class="text-muted-foreground w-full text-sm font-medium sm:w-24"
+ >{m.networks_ipam_iprange_label()}:</span
+ >
<code
class="bg-muted text-muted-foreground mt-1 rounded px-1.5 py-0.5 font-mono text-xs sm:mt-0 sm:text-sm"
>
@@ -287,7 +303,7 @@
{#if (config.AuxiliaryAddresses && Object.keys(config.AuxiliaryAddresses).length > 0) || (config.AuxAddress && Object.keys(config.AuxAddress).length > 0)}
<div class="mt-3">
- <p class="text-muted-foreground mb-1 text-sm font-medium">Auxiliary Addresses:</p>
+ <p class="text-muted-foreground mb-1 text-sm font-medium">{m.networks_ipam_aux_addresses_label()}:</p>
<ul class="ml-4 space-y-1">
{#each Object.entries(config.AuxiliaryAddresses ?? config.AuxAddress ?? {}) as [name, addr] (name)}
<li class="flex font-mono text-xs">
@@ -304,14 +320,14 @@
{#if network.ipam.Driver}
<div class="mt-4 flex items-center">
- <span class="text-muted-foreground mr-2 text-sm font-medium">IPAM Driver:</span>
+ <span class="text-muted-foreground mr-2 text-sm font-medium">{m.networks_ipam_driver_label()}:</span>
<StatusBadge variant="cyan" text={network.ipam.Driver} />
</div>
{/if}
{#if network.ipam.Options && Object.keys(network.ipam.Options).length > 0}
<div class="mt-4">
- <p class="text-muted-foreground mb-2 text-sm font-medium">IPAM Options:</p>
+ <p class="text-muted-foreground mb-2 text-sm font-medium">{m.networks_ipam_options_label()}</p>
<div class="bg-muted/50 rounded-lg border p-3">
{#each Object.entries(network.ipam.Options) as [key, value] (key)}
<div class="mb-1 flex justify-between font-mono text-xs last:mb-0">
@@ -331,11 +347,11 @@
<Card.Header class="pb-0">
<Card.Title class="flex items-center gap-2 text-lg">
<ContainerIcon class="text-primary size-5" />
- Connected Containers
+ {m.networks_connected_containers_title()}
</Card.Title>
- <Card.Description>
- {connectedContainers.length} container{connectedContainers.length === 1 ? '' : 's'} connected to this network
- </Card.Description>
+ <Card.Description
+ >{m.networks_connected_containers_description({ count: connectedContainers.length })}</Card.Description
+ >
</Card.Header>
<Card.Content class="pt-6">
<div class="bg-card divide-y rounded-lg border">
@@ -349,7 +365,7 @@
</div>
<div class="w-full pl-0 sm:w-2/3 sm:pl-4">
<code class="bg-muted text-muted-foreground break-all rounded px-1.5 py-0.5 font-mono text-xs sm:text-sm">
- {container.IPv4Address || container.IPv6Address || 'N/A'}
+ {container.IPv4Address || container.IPv6Address || m.common_unknown()}
</code>
</div>
</div>
@@ -364,9 +380,9 @@
<Card.Header class="pb-0">
<Card.Title class="flex items-center gap-2 text-lg">
<TagIcon class="text-primary size-5" />
- Labels
+ {m.networks_labels_title()}
</Card.Title>
- <Card.Description>User-defined metadata attached to this network</Card.Description>
+ <Card.Description>{m.networks_labels_description()}</Card.Description>
</Card.Header>
<Card.Content class="pt-6">
<div class="bg-card divide-y rounded-lg border">
@@ -390,9 +406,9 @@
<Card.Header class="pb-0">
<Card.Title class="flex items-center gap-2 text-lg">
<SettingsIcon class="text-primary size-5" />
- Options
+ {m.networks_options_title()}
</Card.Title>
- <Card.Description>Network driver-specific options</Card.Description>
+ <Card.Description>{m.networks_options_description()}</Card.Description>
</Card.Header>
<Card.Content class="pt-6">
<div class="bg-card divide-y rounded-lg border">
@@ -416,9 +432,9 @@
<div class="bg-muted/30 mb-4 rounded-full p-4">
<NetworkIcon class="text-muted-foreground size-10 opacity-70" />
</div>
- <h2 class="mb-2 text-xl font-medium">Network Not Found</h2>
- <p class="text-muted-foreground mb-6">The requested network could not be found or is no longer available.</p>
- <ArcaneButton action="cancel" customLabel="Back to Networks" onclick={() => goto('/networks')} size="sm" />
+ <h2 class="mb-2 text-xl font-medium">{m.networks_not_found_title()}</h2>
+ <p class="text-muted-foreground mb-6">{m.networks_not_found_description()}</p>
+ <ArcaneButton action="cancel" customLabel={m.common_back_to_networks()} onclick={() => goto('/networks')} size="sm" />
</div>
{/if}
</div>
diff --git a/frontend/src/routes/networks/network-table.svelte b/frontend/src/routes/networks/network-table.svelte
index 6a500bd7f..ca662fedb 100644
--- a/frontend/src/routes/networks/network-table.svelte
+++ b/frontend/src/routes/networks/network-table.svelte
@@ -19,6 +19,7 @@
import NetworkIcon from '@lucide/svelte/icons/network';
import { capitalizeFirstLetter } from '$lib/utils/string.utils';
import type { ColumnSpec } from '$lib/components/arcane-table';
+ import { m } from '$lib/paraglide/messages';
let {
networks = $bindable(),
@@ -35,23 +36,24 @@
});
async function handleDeleteNetwork(id: string, name: string) {
+ const safeName = name?.trim() || m.common_unknown();
if (DEFAULT_NETWORK_NAMES.has(name)) {
- toast.error(`Cannot delete default network: ${name}`);
+ toast.error(m.networks_cannot_delete_default({ name: safeName }));
return;
}
openConfirmDialog({
- title: 'Delete Network',
- message: `Are you sure you want to delete network "${name}"? This action cannot be undone.`,
+ title: m.networks_delete_title(),
+ message: m.networks_delete_confirm_message({ name: safeName }),
confirm: {
- label: 'Delete',
+ label: m.common_delete(),
destructive: true,
action: async () => {
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.deleteNetwork(id)),
- message: `Failed to Remove Network "${name}"`,
+ message: m.networks_delete_failed({ name: safeName }),
setLoadingState: (value) => (isLoading.remove = value),
onSuccess: async () => {
- toast.success(`Network "${name}" Removed Successfully.`);
+ toast.success(m.networks_delete_success({ name: safeName }));
networks = await environmentAPI.getNetworks(requestOptions);
}
});
@@ -65,15 +67,16 @@
const defaultNetworks = selectedNetworkList.filter((n) => DEFAULT_NETWORK_NAMES.has(n.name));
if (defaultNetworks.length > 0) {
- toast.error(`Cannot delete default networks: ${defaultNetworks.map((n) => n.name).join(', ')}`);
+ const names = defaultNetworks.map((n) => n.name ?? m.common_unknown()).join(', ');
+ toast.error(m.networks_cannot_delete_default_many({ names }));
return;
}
openConfirmDialog({
- title: 'Delete Selected Networks',
- message: `Are you sure you want to delete ${ids.length} selected network(s)? This action cannot be undone.`,
+ title: m.networks_delete_selected_title({ count: ids.length }),
+ message: m.networks_delete_selected_message({ count: ids.length }),
confirm: {
- label: 'Delete',
+ label: m.common_delete(),
destructive: true,
action: async () => {
isLoading.remove = true;
@@ -87,10 +90,10 @@
const result = await tryCatch(environmentAPI.deleteNetwork(networkId));
if (result.error) {
failureCount++;
- toast.error(`Failed to delete network "${network.name}": ${result.error.message}`);
+ toast.error(m.networks_delete_failed({ name: network.name ?? m.common_unknown() }));
} else {
successCount++;
- toast.success(`Network "${network.name}" deleted successfully.`);
+ toast.success(m.networks_delete_success({ name: network.name ?? m.common_unknown() }));
}
}
@@ -111,24 +114,24 @@
const columns = [
{
accessorKey: 'name',
- title: 'Name',
+ title: m.common_name(),
sortable: true,
cell: NameCell
},
{
accessorKey: 'id',
- title: 'Network ID',
+ title: m.common_id(),
cell: IdCell
},
{
accessorKey: 'driver',
- title: 'Driver',
+ title: m.common_driver(),
sortable: true,
cell: DriverCell
},
{
accessorKey: 'scope',
- title: 'Scope',
+ title: m.common_scope(),
sortable: true,
cell: ScopeCell
}
@@ -167,7 +170,7 @@
<DropdownMenu.Trigger>
{#snippet child({ props })}
<Button {...props} variant="ghost" size="icon" class="relative size-8 p-0">
- <span class="sr-only">Open menu</span>
+ <span class="sr-only">{m.common_open_menu()}</span>
<EllipsisIcon />
</Button>
{/snippet}
@@ -176,7 +179,7 @@
<DropdownMenu.Group>
<DropdownMenu.Item onclick={() => goto(`/networks/${item.id}`)} disabled={isAnyLoading}>
<ScanSearchIcon class="size-4" />
- Inspect
+ {m.common_inspect()}
</DropdownMenu.Item>
{#if !DEFAULT_NETWORK_NAMES.has(item.name)}
<DropdownMenu.Item
@@ -185,7 +188,7 @@
disabled={DEFAULT_NETWORK_NAMES.has(item.name) || isAnyLoading}
>
<Trash2Icon class="size-4" />
- Remove
+ {m.common_remove()}
</DropdownMenu.Item>
{/if}
</DropdownMenu.Group>
@@ -210,9 +213,7 @@
{:else}
<div class="flex flex-col items-center justify-center px-6 py-12 text-center">
<NetworkIcon class="text-muted-foreground mb-4 size-12 opacity-40" />
- <p class="text-lg font-medium">No networks found</p>
- <p class="text-muted-foreground mt-1 text-sm">
- Create a new network using the "Create Network" button above or use the Docker CLI
- </p>
+ <p class="text-lg font-medium">{m.networks_empty_title()}</p>
+ <p class="text-muted-foreground mt-1 text-sm">{m.networks_empty_description()}</p>
</div>
{/if}
diff --git a/frontend/src/routes/settings/docker/+page.svelte b/frontend/src/routes/settings/docker/+page.svelte
index 35e853a2d..2593bb74c 100644
--- a/frontend/src/routes/settings/docker/+page.svelte
+++ b/frontend/src/routes/settings/docker/+page.svelte
@@ -5,6 +5,7 @@
import { settingsAPI } from '$lib/services/api';
import DockerSettingsForm from '../forms/docker-settings-form.svelte';
import BoxesIcon from '@lucide/svelte/icons/boxes';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
let currentSettings = $state<Settings>(data.settings);
@@ -30,15 +31,15 @@
<div
class="from-background/60 via-background/40 to-background/60 relative overflow-hidden rounded-xl border bg-gradient-to-br p-6 shadow-sm"
>
- <div class="bg-primary/10 pointer-events-none absolute -top-10 -right-10 size-40 rounded-full blur-3xl"></div>
+ <div class="bg-primary/10 pointer-events-none absolute -right-10 -top-10 size-40 rounded-full blur-3xl"></div>
<div class="bg-muted/40 pointer-events-none absolute -bottom-10 -left-10 size-40 rounded-full blur-3xl"></div>
<div class="relative flex items-start gap-4">
<div class="bg-primary/10 text-primary ring-primary/20 flex size-10 items-center justify-center rounded-lg ring-1">
<BoxesIcon class="size-5" />
</div>
<div>
- <h1 class="settings-title">Docker Settings</h1>
- <p class="settings-description">Configure Docker automation behavior and container management settings</p>
+ <h1 class="settings-title">{m.docker_title()}</h1>
+ <p class="settings-description">{m.docker_description()}</p>
</div>
</div>
</div>
diff --git a/frontend/src/routes/settings/forms/docker-settings-form.svelte b/frontend/src/routes/settings/forms/docker-settings-form.svelte
index f445a1b82..07ac1a432 100644
--- a/frontend/src/routes/settings/forms/docker-settings-form.svelte
+++ b/frontend/src/routes/settings/forms/docker-settings-form.svelte
@@ -10,6 +10,7 @@
import SwitchWithLabel from '$lib/components/form/labeled-switch.svelte';
import * as FieldSet from '$lib/components/ui/field-set';
import SelectWithLabel from '$lib/components/form/select-with-label.svelte';
+ import { m } from '$lib/paraglide/messages';
let {
callback,
@@ -25,19 +26,18 @@
const pruneModeOptions = [
{
value: 'all',
- label: 'All',
- description:
- 'Remove all images not referenced by containers and include named, unused volumes during System Prune (docker image prune -a + volume prune --all behavior).'
+ label: m.docker_prune_all(),
+ description: m.docker_prune_all_description()
},
{
value: 'dangling',
- label: 'Dangling',
- description: 'Remove only dangling (untagged) images and anonymous volumes during System Prune.'
+ label: m.docker_prune_dangling(),
+ description: m.docker_prune_dangling_description()
}
];
const pruneModeDescription = $derived(
- pruneModeOptions.find((o) => o.value === pruneMode)?.description ?? 'Choose how unused images and volumes should be pruned.'
+ pruneModeOptions.find((o) => o.value === pruneMode)?.description ?? m.docker_prune_mode_description()
);
const formSchema = z.object({
@@ -56,7 +56,7 @@
isLoading = true;
await callback(data).finally(() => (isLoading = false));
- toast.success('Settings Updated Succesfully');
+ toast.success(m.general_settings_saved());
}
</script>
@@ -64,8 +64,8 @@
<div class="mb-4">
<Alert.Root variant="warning">
<ZapIcon class="size-4" />
- <Alert.Title>Auto-update Enabled</Alert.Title>
- <Alert.Description>Automatic container updates are active with polling enabled</Alert.Description>
+ <Alert.Title>{m.docker_auto_update_alert_title()}</Alert.Title>
+ <Alert.Description>{m.docker_auto_update_alert_description()}</Alert.Description>
</Alert.Root>
</div>
{/if}
@@ -77,8 +77,8 @@
<div class="min-w-0 space-y-4">
<SwitchWithLabel
id="pollingEnabled"
- label="Enable Image Polling"
- description="Periodically check registries for newer image versions"
+ label={m.docker_enable_polling_label()}
+ description={m.docker_enable_polling_description()}
bind:checked={$formInputs.pollingEnabled.value}
/>
{#if $formInputs.pollingEnabled.value}
@@ -87,26 +87,24 @@
bind:input={$formInputs.pollingInterval}
type="number"
id="pollingInterval"
- label="Polling Interval (minutes)"
- placeholder="60"
- description="How often to check for new images (5-1440 minutes)"
+ label={m.docker_polling_interval_label()}
+ placeholder={m.docker_polling_interval_placeholder()}
+ description={m.docker_polling_interval_description()}
/>
<div>
{#if $formInputs.pollingInterval.value < 30}
<Alert.Root variant="warning">
<ZapIcon class="size-4" />
- <Alert.Title>Rate Limiting Warning</Alert.Title>
- <Alert.Description>
- Polling intervals below 30 minutes may trigger registry rate limits. Prefer longer intervals in production.
- </Alert.Description>
+ <Alert.Title>{m.docker_rate_limit_warning_title()}</Alert.Title>
+ <Alert.Description>{m.docker_rate_limit_warning_description()}</Alert.Description>
</Alert.Root>
{/if}
</div>
<div>
<SwitchWithLabel
id="autoUpdateSwitch"
- label="Auto-update Containers"
- description="Automatically update containers when newer images are found"
+ label={m.docker_auto_update_label()}
+ description={m.docker_auto_update_description()}
bind:checked={$formInputs.autoUpdate.value}
/>
</div>
@@ -115,9 +113,9 @@
bind:input={$formInputs.autoUpdateInterval}
type="number"
id="autoUpdateInterval"
- label="Auto-update Interval (minutes)"
- placeholder="60"
- description="How often to perform automatic updates (5-1440 minutes)"
+ label={m.docker_auto_update_interval_label()}
+ placeholder={m.docker_auto_update_interval_placeholder()}
+ description={m.docker_auto_update_interval_description()}
/>
{/if}
</div>
@@ -128,19 +126,19 @@
id="dockerPruneMode"
name="pruneMode"
bind:value={$formInputs.dockerPruneMode.value}
- label="Docker Prune Action Behavior"
+ label={m.docker_prune_action_label()}
description={pruneModeDescription}
- placeholder="Docker Prune Mode"
+ placeholder={m.docker_prune_placeholder()}
options={pruneModeOptions}
- groupLabel="Prune Modes"
+ groupLabel={m.docker_prune_group_label()}
onValueChange={(v) => (pruneMode = v as 'all' | 'dangling')}
/>
</div>
</FieldSet.Content>
<FieldSet.Footer>
<div class="flex w-full place-items-center justify-between">
- <span class="text-muted-foreground text-sm">Save your updated settings.</span>
- <Button type="submit" disabled={isLoading} size="sm">{isLoading ? 'Saving…' : 'Save'}</Button>
+ <span class="text-muted-foreground text-sm">{m.general_save_instructions()}</span>
+ <Button type="submit" disabled={isLoading} size="sm">{isLoading ? m.common_saving() : m.common_save()}</Button>
</div>
</FieldSet.Footer>
</FieldSet.Root>
diff --git a/frontend/src/routes/settings/forms/general-settings-form.svelte b/frontend/src/routes/settings/forms/general-settings-form.svelte
index 317705d64..317be241b 100644
--- a/frontend/src/routes/settings/forms/general-settings-form.svelte
+++ b/frontend/src/routes/settings/forms/general-settings-form.svelte
@@ -7,6 +7,7 @@
import type { Settings } from '$lib/types/settings.type';
import { toast } from 'svelte-sonner';
import SwitchWithLabel from '$lib/components/form/labeled-switch.svelte';
+ import { m } from '$lib/paraglide/messages';
let {
settings,
@@ -19,8 +20,8 @@
let isLoading = $state(false);
const formSchema = z.object({
- stacksDirectory: z.string().min(1, 'Projects directory is required'),
- baseServerUrl: z.string().min(1, 'Base server URL is required'),
+ stacksDirectory: z.string().min(1, m.general_projects_directory_required()),
+ baseServerUrl: z.string().min(1, m.general_base_url_required()),
enableGravatar: z.boolean()
});
@@ -32,7 +33,7 @@
isLoading = true;
await callback(data)
- .then(() => toast.success('Settings Updated Successfully'))
+ .then(() => toast.success(m.general_settings_saved()))
.finally(() => (isLoading = false));
}
</script>
@@ -43,35 +44,35 @@
<FieldSet.Content class="grid grid-cols-1 gap-6 md:grid-cols-2">
<div class="bg-background/40 min-w-0 space-y-4 rounded-lg border p-5 shadow-sm">
<div class="space-y-1">
- <h3 class="text-base font-medium">Project Paths</h3>
- <p class="text-muted-foreground text-sm">Configure where Arcane looks for your Compose files.</p>
+ <h3 class="text-base font-medium">{m.general_projects_heading()}</h3>
+ <p class="text-muted-foreground text-sm">{m.general_projects_description()}</p>
</div>
<FormInput
- label="Projects Directory"
- placeholder="data/projects"
+ label={m.general_projects_directory_label()}
+ placeholder={m.general_projects_directory_placeholder()}
bind:input={$formInputs.stacksDirectory}
- helpText="Directory where Docker Compose files are stored (this is inside the container)"
+ helpText={m.general_projects_directory_help()}
/>
<FormInput
- label="Base Server URL"
- placeholder="localhost"
+ label={m.general_base_url_label()}
+ placeholder={m.general_base_url_placeholder()}
bind:input={$formInputs.baseServerUrl}
- helpText="The Base URL for your docker host. Used when opening containers from the service links"
+ helpText={m.general_base_url_help()}
/>
</div>
<div class="bg-background/40 min-w-0 space-y-4 rounded-lg border p-5 shadow-sm">
<div class="space-y-1">
- <h3 class="text-base font-medium">User Avatars</h3>
- <p class="text-muted-foreground text-sm">Control Gravatar usage for profile images.</p>
+ <h3 class="text-base font-medium">{m.general_user_avatars_heading()}</h3>
+ <p class="text-muted-foreground text-sm">{m.general_user_avatars_description()}</p>
</div>
<SwitchWithLabel
id="enableGravatar"
- label="Enable Gravatar"
- description="Whether to use Gravatar-based avatars for user accounts"
+ label={m.general_enable_gravatar_label()}
+ description={m.general_enable_gravatar_description()}
bind:checked={$formInputs.enableGravatar.value}
/>
</div>
@@ -79,8 +80,8 @@
<FieldSet.Footer>
<div class="flex w-full place-items-center justify-between">
- <span class="text-muted-foreground text-sm">Save your updated settings.</span>
- <Button type="submit" disabled={isLoading} size="sm">{isLoading ? 'Saving…' : 'Save'}</Button>
+ <span class="text-muted-foreground text-sm">{m.general_save_instructions()}</span>
+ <Button type="submit" disabled={isLoading} size="sm">{isLoading ? m.common_saving() : m.common_save()}</Button>
</div>
</FieldSet.Footer>
</FieldSet.Root>
diff --git a/frontend/src/routes/settings/forms/security-settings-form.svelte b/frontend/src/routes/settings/forms/security-settings-form.svelte
index afbf4740a..ec7adcb12 100644
--- a/frontend/src/routes/settings/forms/security-settings-form.svelte
+++ b/frontend/src/routes/settings/forms/security-settings-form.svelte
@@ -10,6 +10,7 @@
import type { Settings } from '$lib/types/settings.type';
import type { OidcStatusInfo } from '$lib/types/settings.type';
import * as Tooltip from '$lib/components/ui/tooltip/index.js';
+ import { m } from '$lib/paraglide/messages';
let {
settings,
@@ -38,10 +39,10 @@
authLocalEnabled: z.boolean(),
authOidcEnabled: z.boolean(),
authSessionTimeout: z
- .number('Session timeout is required')
- .int('Must be an integer')
- .min(15, 'Minimum is 15 minutes')
- .max(1440, 'Maximum is 1440 minutes'),
+ .number(m.security_session_timeout_required())
+ .int(m.security_session_timeout_integer())
+ .min(15, m.security_session_timeout_min())
+ .max(1440, m.security_session_timeout_max()),
authPasswordPolicy: z.enum(['basic', 'standard', 'strong'])
})
.superRefine((data, ctx) => {
@@ -50,7 +51,7 @@
if (!data.authLocalEnabled && !data.authOidcEnabled) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
- message: 'Enable at least one authentication provider.',
+ message: m.security_enable_one_provider(),
path: ['authLocalEnabled']
});
}
@@ -85,7 +86,7 @@
authSessionTimeout: data.authSessionTimeout,
authPasswordPolicy: data.authPasswordPolicy
})
- .then(() => toast.success('Settings Saved Successfully'))
+ .then(() => toast.success(m.security_settings_saved()))
.finally(() => (isLoading.saving = false));
}
@@ -95,7 +96,7 @@
if (!checked && !$formInputs.authLocalEnabled.value && !oidcStatus.envForced) {
$formInputs.authLocalEnabled.value = true;
- toast.info('Local Authentication enabled to ensure at least one provider is active.');
+ toast.info(m.security_local_enabled_info());
}
if (checked && !oidcStatus.envForced) {
@@ -106,7 +107,7 @@
function handleLocalSwitchChange(checked: boolean) {
if (!checked && !isOidcActive()) {
$formInputs.authLocalEnabled.value = true;
- toast.error('At least one authentication provider must be enabled.');
+ toast.error(m.security_enable_one_provider_error());
return;
}
$formInputs.authLocalEnabled.value = checked;
@@ -150,7 +151,7 @@
authOidcConfig
});
- toast.success('OIDC configuration saved successfully.');
+ toast.success(m.security_oidc_saved());
showOidcConfigDialog = false;
} finally {
isLoading.saving = false;
@@ -163,12 +164,12 @@
<FieldSet.Root>
<FieldSet.Content class="flex flex-col gap-8">
<div class="min-w-0 space-y-4">
- <h2 class="text-muted-foreground text-sm font-semibold">Authentication</h2>
+ <h2 class="text-muted-foreground text-sm font-semibold">{m.security_authentication_heading()}</h2>
<SwitchWithLabel
id="localAuthSwitch"
- label="Local Authentication"
- description="Username and password stored by Arcane. Keep enabled as a fallback."
+ label={m.security_local_auth_label()}
+ description={m.security_local_auth_description()}
bind:checked={$formInputs.authLocalEnabled.value}
onCheckedChange={handleLocalSwitchChange}
/>
@@ -176,8 +177,8 @@
<div class="space-y-2">
<SwitchWithLabel
id="oidcAuthSwitch"
- label="OIDC Authentication"
- description={`Use an external OIDC provider${oidcStatus.envForced ? ' (forced by server)' : ''}`}
+ label={m.security_oidc_auth_label()}
+ description={oidcStatus.envForced ? m.security_oidc_auth_description_forced() : m.security_oidc_auth_description()}
disabled={oidcStatus.envForced}
checked={$formInputs.authOidcEnabled.value}
onCheckedChange={handleOidcSwitchChange}
@@ -188,16 +189,16 @@
{#if oidcStatus.envForced}
{#if !oidcStatus.envConfigured}
<Button variant="link" class="text-destructive h-auto p-0 text-xs hover:underline" onclick={openOidcDialog}>
- Server forces OIDC, but env vars missing. Configure or fix server env.
+ {m.security_server_forces_oidc_missing_env()}
</Button>
{:else}
<Button variant="link" class="h-auto p-0 text-xs text-sky-600 hover:underline" onclick={openOidcDialog}>
- OIDC configured & forced by server. View status.
+ {m.security_oidc_configured_forced_view()}
</Button>
{/if}
{:else}
<Button variant="link" class="h-auto p-0 text-xs text-sky-600 hover:underline" onclick={openOidcDialog}>
- Manage OIDC configuration
+ {m.security_manage_oidc_config()}
</Button>
{/if}
</div>
@@ -206,19 +207,19 @@
</div>
<div class="min-w-0 space-y-4">
- <h2 class="text-muted-foreground text-sm font-semibold">Session</h2>
+ <h2 class="text-muted-foreground text-sm font-semibold">{m.security_session_heading()}</h2>
<FormInput
type="number"
id="sessionTimeout"
- label="Session Timeout (minutes)"
- placeholder="60"
+ label={m.security_session_timeout_label()}
+ placeholder={m.security_session_timeout_placeholder()}
bind:input={$formInputs.authSessionTimeout}
- description="Inactive sessions will be logged out automatically (15–1440 minutes)."
+ description={m.security_session_timeout_description()}
/>
<div class="space-y-2">
- <span class="text-sm font-medium" id="passwordPolicyLabel">Password Policy</span>
+ <span class="text-sm font-medium" id="passwordPolicyLabel">{m.security_password_policy_label()}</span>
<Tooltip.Provider>
<div class="mt-2 grid grid-cols-3 gap-2" role="group" aria-labelledby="passwordPolicyLabel">
<Tooltip.Root>
@@ -229,10 +230,11 @@
? 'arcane-button-create w-full'
: 'arcane-button-restart w-full'}
onclick={() => ($formInputs.authPasswordPolicy.value = 'basic')}
- type="button">Basic</Button
- >
+ type="button"
+ >{m.security_password_policy_basic()}
+ </Button>
</Tooltip.Trigger>
- <Tooltip.Content side="top" align="center">Minimum 8 characters.</Tooltip.Content>
+ <Tooltip.Content side="top" align="center">{m.security_password_policy_basic_tooltip()}</Tooltip.Content>
</Tooltip.Root>
<Tooltip.Root>
@@ -243,10 +245,11 @@
? 'arcane-button-create w-full'
: 'arcane-button-restart w-full'}
onclick={() => ($formInputs.authPasswordPolicy.value = 'standard')}
- type="button">Standard</Button
- >
+ type="button"
+ >{m.security_password_policy_standard()}
+ </Button>
</Tooltip.Trigger>
- <Tooltip.Content side="top" align="center">10+ chars with upper, lower, and a number.</Tooltip.Content>
+ <Tooltip.Content side="top" align="center">{m.security_password_policy_standard_tooltip()}</Tooltip.Content>
</Tooltip.Root>
<Tooltip.Root>
@@ -257,10 +260,11 @@
? 'arcane-button-create w-full'
: 'arcane-button-restart w-full'}
onclick={() => ($formInputs.authPasswordPolicy.value = 'strong')}
- type="button">Strong</Button
- >
+ type="button"
+ >{m.security_password_policy_strong()}
+ </Button>
</Tooltip.Trigger>
- <Tooltip.Content side="top" align="center">12+ chars with upper, lower, number, and symbol.</Tooltip.Content>
+ <Tooltip.Content side="top" align="center">{m.security_password_policy_strong_tooltip()}</Tooltip.Content>
</Tooltip.Root>
</div>
</Tooltip.Provider>
@@ -270,8 +274,10 @@
<FieldSet.Footer>
<div class="flex w-full place-items-center justify-between">
- <span class="text-muted-foreground text-sm">Save your updated settings.</span>
- <Button type="submit" disabled={isLoading.saving} size="sm">{isLoading.saving ? 'Saving…' : 'Save'}</Button>
+ <span class="text-muted-foreground text-sm">{m.security_save_instructions()}</span>
+ <Button type="submit" disabled={isLoading.saving} size="sm"
+ >{isLoading.saving ? m.common_saving() : m.common_save()}</Button
+ >
</div>
</FieldSet.Footer>
</FieldSet.Root>
diff --git a/frontend/src/routes/settings/general/+page.svelte b/frontend/src/routes/settings/general/+page.svelte
index d1f24701f..712db668b 100644
--- a/frontend/src/routes/settings/general/+page.svelte
+++ b/frontend/src/routes/settings/general/+page.svelte
@@ -4,6 +4,7 @@
import { settingsAPI } from '$lib/services/api';
import GeneralSettingsForm from '../forms/general-settings-form.svelte';
import SettingsIcon from '@lucide/svelte/icons/settings';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
let currentSettings = $state(data.settings);
@@ -25,15 +26,15 @@
<div
class="from-background/60 via-background/40 to-background/60 relative overflow-hidden rounded-xl border bg-gradient-to-br p-6 shadow-sm"
>
- <div class="bg-primary/10 pointer-events-none absolute -top-10 -right-10 size-40 rounded-full blur-3xl"></div>
+ <div class="bg-primary/10 pointer-events-none absolute -right-10 -top-10 size-40 rounded-full blur-3xl"></div>
<div class="bg-muted/40 pointer-events-none absolute -bottom-10 -left-10 size-40 rounded-full blur-3xl"></div>
<div class="relative flex items-start gap-4">
<div class="bg-primary/10 text-primary ring-primary/20 flex size-10 items-center justify-center rounded-lg ring-1">
<SettingsIcon class="size-5" />
</div>
<div>
- <h1 class="settings-title">General Settings</h1>
- <p class="settings-description">Core configuration for how Arcane operates</p>
+ <h1 class="settings-title">{m.general_title()}</h1>
+ <p class="settings-description">{m.general_description()}</p>
</div>
</div>
</div>
diff --git a/frontend/src/routes/settings/security/+page.svelte b/frontend/src/routes/settings/security/+page.svelte
index a28d6e836..5ae01719f 100644
--- a/frontend/src/routes/settings/security/+page.svelte
+++ b/frontend/src/routes/settings/security/+page.svelte
@@ -5,6 +5,7 @@
import { settingsAPI } from '$lib/services/api';
import SecuritySettingsForm from '../forms/security-settings-form.svelte';
import LockIcon from '@lucide/svelte/icons/lock';
+ import { m } from '$lib/paraglide/messages';
let { data }: { data: PageData } = $props();
let currentSettings = $state<Settings>(data.settings);
@@ -26,15 +27,15 @@
<div
class="from-background/60 via-background/40 to-background/60 relative overflow-hidden rounded-xl border bg-gradient-to-br p-6 shadow-sm"
>
- <div class="bg-primary/10 pointer-events-none absolute -top-10 -right-10 size-40 rounded-full blur-3xl"></div>
+ <div class="bg-primary/10 pointer-events-none absolute -right-10 -top-10 size-40 rounded-full blur-3xl"></div>
<div class="bg-muted/40 pointer-events-none absolute -bottom-10 -left-10 size-40 rounded-full blur-3xl"></div>
<div class="relative flex items-start gap-4">
<div class="bg-primary/10 text-primary ring-primary/20 flex size-10 items-center justify-center rounded-lg ring-1">
<LockIcon class="size-5" />
</div>
<div>
- <h1 class="settings-title">Security Settings</h1>
- <p class="settings-description">Configure authentication methods, session policies, and security settings.</p>
+ <h1 class="settings-title">{m.security_title()}</h1>
+ <p class="settings-description">{m.security_description()}</p>
</div>
</div>
</div>
diff --git a/frontend/src/routes/settings/users/+page.svelte b/frontend/src/routes/settings/users/+page.svelte
index 149f39ba3..9c10a2069 100644
--- a/frontend/src/routes/settings/users/+page.svelte
+++ b/frontend/src/routes/settings/users/+page.svelte
@@ -13,6 +13,7 @@
import type { SearchPaginationSortRequest } from '$lib/types/pagination.type';
import type { User } from '$lib/types/user.type';
import type { CreateUser } from '$lib/types/user.type';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
@@ -61,13 +62,14 @@
try {
if (isEditMode && userId) {
+ const safeUsername = user.username?.trim() || m.common_unknown();
const result = await tryCatch(userAPI.update(userId, user));
handleApiResultWithCallbacks({
result,
- message: `Failed to update user "${user.username}"`,
+ message: m.users_update_failed({ username: safeUsername }),
setLoadingState: (value) => (isLoading[loading] = value),
onSuccess: async () => {
- toast.success(`User "${user.username}" updated successfully.`);
+ toast.success(m.users_update_success({ username: safeUsername }));
users = await userAPI.getUsers(requestOptions);
isDialogOpen.edit = false;
userToEdit = null;
@@ -75,11 +77,13 @@
});
} else {
if (!user.username) {
- toast.error('Username is required');
+ toast.error(m.common_username_required());
isLoading[loading] = false;
return;
}
+ const safeUsername = user.username!.trim() || m.common_unknown();
+
const createUser: CreateUser = {
username: user.username!,
displayName: user.displayName,
@@ -91,10 +95,10 @@
const result = await tryCatch(userAPI.create(createUser));
handleApiResultWithCallbacks({
result,
- message: `Failed to create user "${user.username}"`,
+ message: m.users_create_failed({ username: safeUsername }),
setLoadingState: (value) => (isLoading[loading] = value),
onSuccess: async () => {
- toast.success(`User "${user.username}" created successfully.`);
+ toast.success(m.users_create_success({ username: safeUsername }));
users = await userAPI.getUsers(requestOptions);
isDialogOpen.create = false;
}
@@ -109,13 +113,13 @@
<div class="space-y-6 pb-8">
<div class="flex flex-col justify-between gap-4 sm:flex-row sm:items-center">
<div>
- <h1 class="text-3xl font-bold tracking-tight">Users</h1>
- <p class="text-muted-foreground mt-1 text-sm">Manage system users and permissions</p>
+ <h1 class="text-3xl font-bold tracking-tight">{m.users_title()}</h1>
+ <p class="text-muted-foreground mt-1 text-sm">{m.users_subtitle()}</p>
</div>
<div class="flex items-center gap-2">
<ArcaneButton
action="create"
- customLabel="Create User"
+ customLabel={m.users_create_button()}
onclick={openCreateDialog}
loading={isLoading.creating}
disabled={isLoading.creating}
@@ -125,21 +129,21 @@
<div class="grid grid-cols-1 gap-4 sm:grid-cols-3">
<StatCard
- title="Total Users"
+ title={m.users_total()}
value={totalUsers}
icon={UsersIcon}
iconColor="text-blue-500"
class="border-l-4 border-l-blue-500"
/>
<StatCard
- title="Administrators"
+ title={m.users_administrators()}
value={adminUsers}
icon={ShieldIcon}
iconColor="text-red-500"
class="border-l-4 border-l-red-500"
/>
<StatCard
- title="Regular Users"
+ title={m.users_regular()}
value={regularUsers}
icon={UserCheckIcon}
iconColor="text-green-500"
diff --git a/frontend/src/routes/settings/users/user-table.svelte b/frontend/src/routes/settings/users/user-table.svelte
index b05d85235..ecad42497 100644
--- a/frontend/src/routes/settings/users/user-table.svelte
+++ b/frontend/src/routes/settings/users/user-table.svelte
@@ -15,6 +15,7 @@
import type { Paginated, SearchPaginationSortRequest } from '$lib/types/pagination.type';
import type { User } from '$lib/types/user.type';
import type { ColumnSpec } from '$lib/components/arcane-table';
+ import { m } from '$lib/paraglide/messages';
let {
users = $bindable(),
@@ -38,10 +39,10 @@
if (selectedIds.length === 0) return;
openConfirmDialog({
- title: `Delete ${selectedIds.length} User${selectedIds.length > 1 ? 's' : ''}`,
- message: `Are you sure you want to delete the selected user${selectedIds.length > 1 ? 's' : ''}? This action cannot be undone.`,
+ title: m.users_delete_selected_title({ count: selectedIds.length }),
+ message: m.users_delete_selected_message({ count: selectedIds.length }),
confirm: {
- label: 'Delete',
+ label: m.common_delete(),
destructive: true,
action: async () => {
isLoading.removing = true;
@@ -52,7 +53,7 @@
const result = await tryCatch(userAPI.delete(userId));
handleApiResultWithCallbacks({
result,
- message: `Failed to delete user ${userId}`,
+ message: m.users_delete_selected_item_failed({ id: userId }),
setLoadingState: () => {},
onSuccess: () => {
successCount++;
@@ -67,12 +68,14 @@
isLoading.removing = false;
if (successCount > 0) {
- toast.success(`Successfully deleted ${successCount} user${successCount > 1 ? 's' : ''}`);
+ const msg = successCount === 1 ? m.users_delete_success_one() : m.users_delete_success_many({ count: successCount });
+ toast.success(msg);
await onUsersChanged();
}
if (failureCount > 0) {
- toast.error(`Failed to delete ${failureCount} user${failureCount > 1 ? 's' : ''}`);
+ const msg = failureCount === 1 ? m.users_delete_failed_one() : m.users_delete_failed_many({ count: failureCount });
+ toast.error(msg);
}
selectedIds = [];
@@ -82,20 +85,21 @@
}
async function handleDeleteUser(userId: string, username: string) {
+ const safeName = username?.trim() || m.common_unknown();
openConfirmDialog({
- title: `Delete User "${username}"`,
- message: `Are you sure you want to delete the user "${username}"? This action cannot be undone.`,
+ title: m.users_delete_user_title({ username: safeName }),
+ message: m.users_delete_user_message({ username: safeName }),
confirm: {
- label: 'Delete',
+ label: m.common_delete(),
destructive: true,
action: async () => {
isLoading.removing = true;
handleApiResultWithCallbacks({
result: await tryCatch(userAPI.delete(userId)),
- message: `Failed to delete user "${username}"`,
+ message: m.users_delete_user_failed({ username: safeName }),
setLoadingState: (value) => (isLoading.removing = value),
onSuccess: async () => {
- toast.success(`User "${username}" deleted successfully.`);
+ toast.success(m.users_delete_user_success({ username: safeName }));
await onUsersChanged();
}
});
@@ -110,15 +114,15 @@
}
function getRoleText(roles: string[]) {
- if (roles?.includes('admin')) return 'Admin';
- return 'User';
+ if (roles?.includes('admin')) return m.common_admin();
+ return m.common_user();
}
const columns = [
- { accessorKey: 'username', title: 'Username', sortable: true, cell: UsernameCell },
- { accessorKey: 'displayName', title: 'Display Name', sortable: true, cell: DisplayNameCell },
- { accessorKey: 'email', title: 'Email', sortable: true, cell: EmailCell },
- { accessorKey: 'roles', title: 'Role', sortable: true, cell: RoleCell }
+ { accessorKey: 'username', title: m.common_username(), sortable: true, cell: UsernameCell },
+ { accessorKey: 'displayName', title: m.common_display_name(), sortable: true, cell: DisplayNameCell },
+ { accessorKey: 'email', title: m.common_email(), sortable: true, cell: EmailCell },
+ { accessorKey: 'roles', title: m.common_role(), sortable: true, cell: RoleCell }
] satisfies ColumnSpec<User>[];
</script>
@@ -143,7 +147,7 @@
<DropdownMenu.Trigger>
{#snippet child({ props })}
<Button {...props} variant="ghost" size="icon" class="relative size-8 p-0">
- <span class="sr-only">Open menu</span>
+ <span class="sr-only">{m.common_open_menu()}</span>
<EllipsisIcon />
</Button>
{/snippet}
@@ -153,12 +157,12 @@
{#if !item.oidcSubjectId}
<DropdownMenu.Item onclick={() => onEditUser(item)}>
<EditIcon class="size-4" />
- Edit
+ {m.common_edit()}
</DropdownMenu.Item>
{/if}
<DropdownMenu.Item variant="destructive" onclick={() => handleDeleteUser(item.id, item.username)}>
<Trash2Icon class="size-4" />
- Delete
+ {m.common_delete()}
</DropdownMenu.Item>
</DropdownMenu.Group>
</DropdownMenu.Content>
diff --git a/frontend/src/routes/volumes/+page.svelte b/frontend/src/routes/volumes/+page.svelte
index 0c296ecc2..79f0e69ab 100644
--- a/frontend/src/routes/volumes/+page.svelte
+++ b/frontend/src/routes/volumes/+page.svelte
@@ -11,6 +11,7 @@
import { environmentAPI } from '$lib/services/api';
import StatCard from '$lib/components/stat-card.svelte';
import VolumeTable from './volume-table.svelte';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
@@ -31,12 +32,13 @@
async function handleCreateVolumeSubmit(options: VolumeCreateOptions) {
isLoading.creating = true;
+ const name = options.Name?.trim() || m.common_unknown();
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.createVolume(options)),
- message: `Failed to Create Volume "${options.Name}"`,
+ message: m.volumes_create_failed({ name }),
setLoadingState: (value) => (isLoading.creating = value),
onSuccess: async () => {
- toast.success(`Volume "${options.Name}" Created Successfully.`);
+ toast.success(m.volumes_created_success({ name }));
volumes = await environmentAPI.getVolumes(requestOptions);
isCreateDialogOpen = false;
}
@@ -47,7 +49,7 @@
isLoading.refresh = true;
handleApiResultWithCallbacks({
result: await tryCatch(environmentAPI.getVolumes(requestOptions)),
- message: 'Failed to Refresh Volumes',
+ message: m.volumes_refresh_failed(),
setLoadingState: (value) => (isLoading.refresh = value),
async onSuccess(newVolumes) {
volumes = newVolumes;
@@ -59,13 +61,13 @@
<div class="space-y-6">
<div class="flex flex-col justify-between gap-4 sm:flex-row sm:items-center">
<div>
- <h1 class="text-3xl font-bold tracking-tight">Volumes</h1>
- <p class="text-muted-foreground mt-1 text-sm">Manage your Docker volumes</p>
+ <h1 class="text-3xl font-bold tracking-tight">{m.volumes_title()}</h1>
+ <p class="text-muted-foreground mt-1 text-sm">{m.volumes_subtitle()}</p>
</div>
<div class="flex items-center gap-2">
<ArcaneButton
action="create"
- customLabel="Create Volume"
+ customLabel={m.volumes_create_button()}
onclick={() => (isCreateDialogOpen = true)}
loading={isLoading.creating}
disabled={isLoading.creating}
@@ -73,7 +75,7 @@
<ArcaneButton
action="restart"
onclick={refreshVolumes}
- customLabel="Refresh"
+ customLabel={m.common_refresh()}
loading={isLoading.refresh}
disabled={isLoading.refresh}
/>
@@ -82,21 +84,21 @@
<div class="grid grid-cols-1 gap-4 sm:grid-cols-3">
<StatCard
- title="Total Volumes"
+ title={m.volumes_stat_total()}
value={totalVolumes}
icon={HardDriveIcon}
iconColor="text-blue-500"
class="border-l-4 border-l-blue-500"
/>
<StatCard
- title="Used Volumes"
+ title={m.volumes_stat_used()}
value={usedVolumes}
icon={ArchiveRestoreIcon}
iconColor="text-green-500"
class="border-l-4 border-l-green-500"
/>
<StatCard
- title="Unused Volumes"
+ title={m.volumes_stat_unused()}
value={unusedVolumes}
icon={ArchiveXIcon}
iconColor="text-red-500"
diff --git a/frontend/src/routes/volumes/[volumeName]/+page.svelte b/frontend/src/routes/volumes/[volumeName]/+page.svelte
index 5299884f6..51e412630 100644
--- a/frontend/src/routes/volumes/[volumeName]/+page.svelte
+++ b/frontend/src/routes/volumes/[volumeName]/+page.svelte
@@ -19,35 +19,35 @@
import { environmentAPI } from '$lib/services/api';
import { format } from 'date-fns';
import ContainerIcon from '@lucide/svelte/icons/container';
+ import { m } from '$lib/paraglide/messages';
let { data } = $props();
let volume = $state(data.volume);
let containersDetailed = $state<{ id: string; name: string }[]>(data.containersDetailed ?? []);
let isLoading = $state({ remove: false });
- const createdDate = $derived(volume.createdAt ? format(new Date(volume.createdAt), 'PP p') : 'N/A');
+ const createdDate = $derived(volume.createdAt ? format(new Date(volume.createdAt), 'PP p') : m.common_unknown());
async function handleRemoveVolumeConfirm(volumeName: string) {
- let message = 'Are you sure you want to delete this volume? This action cannot be undone.';
-
+ const safeName = volumeName?.trim() || m.common_unknown();
+ let message = m.volumes_remove_confirm_message({ name: safeName });
if (volume.inUse) {
- message +=
- '\n\n⚠️ Warning: This volume is currently in use by containers. Forcing removal may cause data loss or container issues.';
+ message += `\n\n${m.volumes_remove_in_use_warning()}`;
}
openConfirmDialog({
- title: 'Delete Volume',
+ title: m.volumes_remove_title(),
message,
confirm: {
- label: 'Delete',
+ label: m.common_remove(),
destructive: true,
action: async () => {
handleApiResultWithCallbacks({
- result: await tryCatch(environmentAPI.deleteVolume(volumeName)),
- message: 'Failed to Remove Volume',
+ result: await tryCatch(environmentAPI.deleteVolume(safeName)),
+ message: m.volumes_remove_failed({ name: safeName }),
setLoadingState: (value) => (isLoading.remove = value),
onSuccess: async () => {
- toast.success('Volume Removed Successfully.');
+ toast.success(m.volumes_remove_success({ name: safeName }));
goto('/volumes');
}
});
@@ -62,7 +62,7 @@
<Breadcrumb.Root>
<Breadcrumb.List>
<Breadcrumb.Item>
- <Breadcrumb.Link href="/volumes">Volumes</Breadcrumb.Link>
+ <Breadcrumb.Link href="/volumes">{m.volumes_title()}</Breadcrumb.Link>
</Breadcrumb.Item>
<Breadcrumb.Separator />
<Breadcrumb.Item>
@@ -81,9 +81,9 @@
<div class="mt-2 flex gap-2">
{#if volume.inUse}
- <StatusBadge variant="green" text="In Use" />
+ <StatusBadge variant="green" text={m.common_in_use()} />
{:else}
- <StatusBadge variant="amber" text="Unused" />
+ <StatusBadge variant="amber" text={m.common_unused()} />
{/if}
{#if volume.driver}
@@ -99,7 +99,7 @@
<div class="flex gap-2 self-start">
<ArcaneButton
action="remove"
- customLabel="Remove Volume"
+ customLabel={m.volumes_remove_title()}
onclick={() => handleRemoveVolumeConfirm(volume.name)}
loading={isLoading.remove}
disabled={isLoading.remove}
@@ -114,9 +114,9 @@
<Card.Header class="pb-0">
<Card.Title class="flex items-center gap-2 text-lg">
<DatabaseIcon class="text-primary size-5" />
- Volume Details
+ {m.volumes_details_title()}
</Card.Title>
- <Card.Description>Basic information about this Docker volume</Card.Description>
+ <Card.Description>{m.volumes_details_description()}</Card.Description>
</Card.Header>
<Card.Content class="pt-6">
<div class="grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-2 lg:grid-cols-3">
@@ -125,7 +125,7 @@
<DatabaseIcon class="size-5 text-gray-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Name</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_name()}</p>
<p class="mt-1 break-words text-base font-semibold">{volume.name}</p>
</div>
</div>
@@ -135,7 +135,7 @@
<HardDriveIcon class="size-5 text-blue-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Driver</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_driver()}</p>
<p class="mt-1 text-base font-semibold">{volume.driver}</p>
</div>
</div>
@@ -145,7 +145,7 @@
<ClockIcon class="size-5 text-green-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Created</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_created()}</p>
<p class="mt-1 text-base font-semibold">{createdDate}</p>
</div>
</div>
@@ -155,7 +155,7 @@
<GlobeIcon class="size-5 text-purple-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Scope</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_scope()}</p>
<p class="mt-1 text-base font-semibold capitalize">{volume.scope}</p>
</div>
</div>
@@ -165,12 +165,12 @@
<InfoIcon class="size-5 text-amber-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Status</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_status()}</p>
<p class="mt-1 text-base font-semibold">
{#if volume.inUse}
- <StatusBadge variant="green" text="In Use" />
+ <StatusBadge variant="green" text={m.common_in_use()} />
{:else}
- <StatusBadge variant="amber" text="Unused" />
+ <StatusBadge variant="amber" text={m.common_unused()} />
{/if}
</p>
</div>
@@ -181,7 +181,7 @@
<LayersIcon class="size-5 text-teal-500" />
</div>
<div class="min-w-0 flex-1">
- <p class="text-muted-foreground text-sm font-medium">Mountpoint</p>
+ <p class="text-muted-foreground text-sm font-medium">{m.common_mountpoint()}</p>
<div class="bg-muted/50 mt-2 rounded-lg border p-3">
<code class="break-all font-mono text-sm">{volume.mountpoint}</code>
</div>
@@ -195,9 +195,9 @@
<Card.Header class="pb-0">
<Card.Title class="flex items-center gap-2 text-lg">
<HardDriveIcon class="text-primary size-5" />
- Containers Using This Volume
+ {m.volumes_containers_using_title()}
</Card.Title>
- <Card.Description>List of containers currently referencing this volume</Card.Description>
+ <Card.Description>{m.volumes_containers_using_description()}</Card.Description>
</Card.Header>
<Card.Content class="pt-6">
{#if containersDetailed.length > 0}
@@ -224,12 +224,12 @@
{#each volume.containers as id (id)}
<div class="flex items-center justify-between gap-3 p-3">
<code class="break-all font-mono text-sm">{truncateString(id, 48)}</code>
- <a href={`/containers/${id}`} class="text-primary text-sm hover:underline">View</a>
+ <a href={`/containers/${id}`} class="text-primary text-sm hover:underline">{m.common_view()}</a>
</div>
{/each}
</div>
{:else}
- <div class="text-muted-foreground">No containers are currently using this volume.</div>
+ <div class="text-muted-foreground">{m.volumes_no_containers_using()}</div>
{/if}
</Card.Content>
</Card.Root>
@@ -239,9 +239,9 @@
<Card.Header class="pb-0">
<Card.Title class="flex items-center gap-2 text-lg">
<TagIcon class="text-primary size-5" />
- Labels
+ {m.common_labels()}
</Card.Title>
- <Card.Description>User-defined metadata attached to this volume</Card.Description>
+ <Card.Description>{m.volumes_labels_description()}</Card.Description>
</Card.Header>
<Card.Content class="pt-6">
<div class="bg-card divide-y rounded-lg border">
@@ -265,9 +265,9 @@
<Card.Header class="pb-0">
<Card.Title class="flex items-center gap-2 text-lg">
<HardDriveIcon class="text-primary size-5" />
- Driver Options
+ {m.common_driver_options()}
</Card.Title>
- <Card.Description>Volume driver-specific options</Card.Description>
+ <Card.Description>{m.volumes_driver_options_description()}</Card.Description>
</Card.Header>
<Card.Content class="pt-6">
<div class="bg-card divide-y rounded-lg border">
@@ -293,7 +293,7 @@
<div class="bg-muted/30 mb-4 rounded-full p-3">
<TagIcon class="text-muted-foreground size-5 opacity-50" />
</div>
- <p class="text-muted-foreground">This volume has no additional labels or driver options.</p>
+ <p class="text-muted-foreground">{m.volumes_no_labels_or_options()}</p>
</div>
</Card.Content>
</Card.Root>
@@ -304,10 +304,10 @@
<div class="bg-muted/30 mb-4 rounded-full p-4">
<DatabaseIcon class="text-muted-foreground size-10 opacity-70" />
</div>
- <h2 class="mb-2 text-xl font-medium">Volume Not Found</h2>
- <p class="text-muted-foreground mb-6">The requested volume could not be found or is no longer available.</p>
+ <h2 class="mb-2 text-xl font-medium">{m.volumes_not_found_title()}</h2>
+ <p class="text-muted-foreground mb-6">{m.volumes_not_found_description()}</p>
- <ArcaneButton action="cancel" customLabel="Back to Volumes" onclick={() => goto('/volumes')} size="sm" />
+ <ArcaneButton action="cancel" customLabel={m.common_back_to_volumes()} onclick={() => goto('/volumes')} size="sm" />
</div>
{/if}
</div>
diff --git a/frontend/src/routes/volumes/volume-table.svelte b/frontend/src/routes/volumes/volume-table.svelte
index 18aec58f8..d8ee91f94 100644
--- a/frontend/src/routes/volumes/volume-table.svelte
+++ b/frontend/src/routes/volumes/volume-table.svelte
@@ -18,6 +18,7 @@
import type { Paginated, SearchPaginationSortRequest } from '$lib/types/pagination.type';
import type { VolumeSummaryDto } from '$lib/types/volume.type';
import type { ColumnSpec } from '$lib/components/arcane-table';
+ import { m } from '$lib/paraglide/messages';
let {
volumes = $bindable(),
@@ -34,20 +35,21 @@
});
async function handleRemoveVolumeConfirm(name: string) {
+ const safeName = name?.trim() || m.common_unknown();
openConfirmDialog({
- title: `Remove Volume`,
- message: `Are you sure you want to remove the volume "${name}"? This action cannot be undone and will permanently delete all data stored in this volume.`,
+ title: m.volumes_remove_title(),
+ message: m.volumes_remove_confirm_message({ name: safeName }),
confirm: {
- label: 'Remove',
+ label: m.common_remove(),
destructive: true,
action: async () => {
isLoading.removing = true;
handleApiResultWithCallbacks({
- result: await tryCatch(environmentAPI.deleteVolume(name)),
- message: `Failed to Remove Volume "${name}"`,
+ result: await tryCatch(environmentAPI.deleteVolume(safeName)),
+ message: m.volumes_remove_failed({ name: safeName }),
setLoadingState: (value) => (isLoading.removing = value),
onSuccess: async () => {
- toast.success(`Volume "${name}" Removed Successfully.`);
+ toast.success(m.volumes_remove_success({ name: safeName }));
volumes = await environmentAPI.getVolumes(requestOptions);
}
});
@@ -66,11 +68,11 @@
for (const id of ids) {
const name = idToName.get(id);
- if (!name) continue;
- const result = await tryCatch(environmentAPI.deleteVolume(name));
+ const safeName = name?.trim() || m.common_unknown();
+ const result = await tryCatch(environmentAPI.deleteVolume(safeName));
handleApiResultWithCallbacks({
result,
- message: `Failed to remove volume ${name}`,
+ message: m.volumes_remove_failed({ name: safeName }),
setLoadingState: () => {},
onSuccess: () => (successCount += 1)
});
@@ -79,26 +81,30 @@
isLoading.removing = false;
if (successCount > 0) {
- toast.success(`Successfully removed ${successCount} volume${successCount > 1 ? 's' : ''}`);
+ const successMsg =
+ successCount === 1 ? m.volumes_bulk_remove_success_one() : m.volumes_bulk_remove_success_many({ count: successCount });
+ toast.success(successMsg);
volumes = await environmentAPI.getVolumes(requestOptions);
}
if (failureCount > 0) {
- toast.error(`Failed to remove ${failureCount} volume${failureCount > 1 ? 's' : ''}`);
+ const failureMsg =
+ failureCount === 1 ? m.volumes_bulk_remove_failed_one() : m.volumes_bulk_remove_failed_many({ count: failureCount });
+ toast.error(failureMsg);
}
selectedIds = [];
}
const columns = [
- { accessorKey: 'id', title: 'ID', hidden: true },
- { accessorKey: 'name', title: 'Name', sortable: true, cell: NameCell },
+ { accessorKey: 'id', title: m.common_id(), hidden: true },
+ { accessorKey: 'name', title: m.common_name(), sortable: true, cell: NameCell },
{
accessorKey: 'inUse',
- title: 'Status',
+ title: m.common_status(),
sortable: true,
cell: StatusCell
},
- { accessorKey: 'driver', title: 'Driver', sortable: true },
- { accessorKey: 'createdAt', title: 'Created', sortable: true, cell: CreatedCell }
+ { accessorKey: 'driver', title: m.common_driver(), sortable: true },
+ { accessorKey: 'createdAt', title: m.common_created(), sortable: true, cell: CreatedCell }
] satisfies ColumnSpec<VolumeSummaryDto>[];
</script>
@@ -110,9 +116,9 @@
{#snippet StatusCell({ item }: { item: VolumeSummaryDto })}
{#if item.inUse}
- <StatusBadge text="In Use" variant="green" />
+ <StatusBadge text={m.common_in_use()} variant="green" />
{:else}
- <StatusBadge text="Unused" variant="amber" />
+ <StatusBadge text={m.common_unused()} variant="amber" />
{/if}
{/snippet}
@@ -125,7 +131,7 @@
<DropdownMenu.Trigger>
{#snippet child({ props })}
<Button {...props} variant="ghost" size="icon" class="relative size-8 p-0">
- <span class="sr-only">Open menu</span>
+ <span class="sr-only">{m.common_open_menu()}</span>
<EllipsisIcon />
</Button>
{/snippet}
@@ -134,11 +140,11 @@
<DropdownMenu.Group>
<DropdownMenu.Item onclick={() => goto(`/volumes/${item.id}`)}>
<ScanSearchIcon class="size-4" />
- Inspect
+ {m.common_inspect()}
</DropdownMenu.Item>
<DropdownMenu.Item variant="destructive" onclick={() => handleRemoveVolumeConfirm(item.name)} disabled={item.inUse}>
<Trash2Icon class="size-4" />
- Remove
+ {m.common_remove()}
</DropdownMenu.Item>
</DropdownMenu.Group>
</DropdownMenu.Content>
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index e3131daca..0f67fdf29 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -1,3 +1,4 @@
+import { paraglideVitePlugin } from '@inlang/paraglide-js';
import tailwindcss from '@tailwindcss/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
@@ -6,7 +7,16 @@ export default defineConfig({
optimizeDeps: {
exclude: ['@lucide/svelte']
},
- plugins: [tailwindcss(), sveltekit()],
+ plugins: [
+ tailwindcss(),
+ sveltekit(),
+ paraglideVitePlugin({
+ project: './project.inlang',
+ outdir: './src/lib/paraglide',
+ cookieName: 'locale',
+ strategy: ['cookie', 'preferredLanguage', 'baseLocale']
+ })
+ ],
server: {
host: process.env.HOST,
proxy: {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6da2e893a..b2d2a1630 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -80,6 +80,9 @@ importers:
'@eslint/js':
specifier: ^9.33.0
version: 9.33.0
+ '@inlang/paraglide-js':
+ specifier: 2.2.0
+ version: 2.2.0
'@internationalized/date':
specifier: ^3.9.0
version: 3.9.0
@@ -504,6 +507,17 @@ packages:
resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
engines: {node: '>=18.18'}
+ '@inlang/[email protected]':
+ resolution: {integrity: sha512-pkpXu1LanvpcAbvpVPf7PgF11Uq7DliSEBngrcUN36l4ZOOpzn3QBTvVr/tJxvks0O67WseQgiMHet8KH7Oz5A==}
+ hasBin: true
+
+ '@inlang/[email protected]':
+ resolution: {integrity: sha512-ckv8HvHy/iTqaVAEKrr+gnl+p3XFNwe5D2+6w6wJk2ORV2XkcRkKOJ/XsTUJbPSiyi4PI+p+T3bqbmNx/rDUlg==}
+
+ '@inlang/[email protected]':
+ resolution: {integrity: sha512-cvz/C1rF5WBxzHbEoiBoI6Sz6q6M+TdxfWkEGBYTD77opY8i8WN01prUWXEM87GPF4SZcyIySez9U0Ccm12oFQ==}
+ engines: {node: '>=18.0.0'}
+
'@internationalized/[email protected]':
resolution: {integrity: sha512-yaN3brAnHRD+4KyyOsJyk49XUvj2wtbNACSqg0bz3u8t2VuzhC8Q5dfRnrSxjnnbDb+ienBnkn1TzQfE154vyg==}
@@ -539,6 +553,13 @@ packages:
resolution: {integrity: sha512-GuBLekbw9jDBDhGur82nuwkxKQ+a3W5H0GfaAthDXcAu+XdpS43VlnxA9E9hllkpSP5ellRDKjLLj7Lu9Wr6xA==}
+ '@lix-js/[email protected]':
+ resolution: {integrity: sha512-pRbW+joG12L0ULfMiWYosIW0plmW4AsUdiPCp+Z8rAsElJ+wJ6in58zhD3UwUcd4BNcpldEGjg6PdA7e0RgsDQ==}
+ engines: {node: '>=18'}
+
+ '@lix-js/[email protected]':
+ resolution: {integrity: sha512-jBeALB6prAbtr5q4vTuxnRZZv1M2rKe8iNqRQhFJ4Tv7150unEa0vKyz0hs8Gl3fUGsWaNJBh3J8++fpbrpRBQ==}
+
'@lucide/[email protected]':
resolution: {integrity: sha512-NuWttxTVfMSURpOxcKiKvoCtma3JtEpcJWzF/0cO69saZfXlv6G8NYAvEEGLmk75YPl+I+ROe+F97WhddM8r2A==}
peerDependencies:
@@ -679,9 +700,16 @@ packages:
'@sideway/[email protected]':
resolution: {integrity: sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==}
+ '@sinclair/[email protected]':
+ resolution: {integrity: sha512-/s55Jujywdw/Jpan+vsy6JZs1z2ZTGxTmbZTPiuSL2wz9mfzA2gN1zzaqmvfi4pq+uOt7Du85fkiwv5ymW84aQ==}
+
'@sinclair/[email protected]':
resolution: {integrity: sha512-keEoFsevmLwAedzacnTVmra66GViRH3fhWO1M+nZ8rUgpPJyN4mcvqlGr3QMrQXx4L8KNwW0q9/BeHSEoO4teg==}
+ '@sqlite.org/[email protected]':
+ resolution: {integrity: sha512-hI6twvUkzOmyGZhQMza1gpfqErZxXRw6JEsiVjUbo7tFanVD+8Oil0Ih3l2nGzHdxPI41zFmfUQG7GHqhciKZQ==}
+ hasBin: true
+
'@standard-schema/[email protected]':
resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==}
@@ -980,6 +1008,9 @@ packages:
resolution: {integrity: sha512-IZCEEXaJ8g+Ijd59WtSYwtjnqXiwM8sWQ5EjGamcto7+HVN9eK0C4p0zDlCuAwWhpqr6fIBkxPuYDl4/Mcj/+Q==}
+ resolution: {integrity: sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==}
+
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
@@ -1062,13 +1093,28 @@ packages:
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
engines: {node: '>= 0.8'}
+ resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}
+ engines: {node: '>=16'}
+
+ resolution: {integrity: sha512-bKw/r35jR3HGt5PEPm1ljsQQGyCrR8sFGNiN5L+ykDHdpO8Smxkrkla9Yi6NkQyUrb8V54PGhfMs6NrIwtxtdw==}
+ engines: {node: '>= 6'}
+
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
+ resolution: {integrity: sha512-EiPU8G6dQG0GFHNR8ljnZFki/8a+cQwEQ+7wpxdChl02Q8HXlwEZWD5lqAF8vC2sEC3Tehr8hy7vErz88LHyUA==}
+ engines: {node: ^14.18.0 || >=16.10.0}
+
resolution: {integrity: sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==}
engines: {node: '>= 0.6'}
+ resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==}
+
resolution: {integrity: sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==}
@@ -1107,6 +1153,14 @@ packages:
resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==}
+ resolution: {integrity: sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==}
+ peerDependencies:
+ babel-plugin-macros: ^3.1.0
+ peerDependenciesMeta:
+ babel-plugin-macros:
+ optional: true
+
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
@@ -1216,6 +1270,11 @@ packages:
resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
+ engines: {node: '>=4'}
+ hasBin: true
+
resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==}
engines: {node: '>=0.10'}
@@ -1357,6 +1416,10 @@ packages:
resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-Pq0h+hvsVm6dDEa8x82GnLSYHOzNDt7f0ddFa3FqcQlgzEiptPqL+XrOJNavjOzSYiYWIrgeVYYgGlLmnxwilQ==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
engines: {node: '>= 0.4'}
@@ -1381,6 +1444,10 @@ packages:
resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-3gKm/gCSUipeLsRYZbbdA1BD83lBoWUkZ7G9VFrhWPAU76KwYo5KR8V28bpoPm/ygy0x5/GCbpRQdY7VLYCoIg==}
+ hasBin: true
+
resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}
engines: {node: '>=0.10.0'}
@@ -1436,6 +1503,9 @@ packages:
resolution: {integrity: sha512-otDA4ldcIx+ZXsKHWmp0YizCweVRZG96J10b0FevjfuncLO1oX59THoAmHkNubYJ+9gWsYsp5k8v4ib6oDv1fA==}
+ resolution: {integrity: sha512-o6WSo/LUvY2uC4j7mO50a2ms7E/EAdbP0swigLV+nzHKTTaYnaLIWJ02VdXrsJX0vGedDESQnLsOekr94ryfjg==}
+
resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}
hasBin: true
@@ -1462,6 +1532,11 @@ packages:
resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
+ resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
+ engines: {node: '>=6'}
+ hasBin: true
+
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
@@ -1472,6 +1547,10 @@ packages:
resolution: {integrity: sha512-JCDrsP4Z1Sb9JwG0aJ8Eo2r7k4Ou5MwmThS/6lcIe1ICyb7UBJKGRIUUdqc2ASdE/42lgz6zFUnzAIhtXnBVrQ==}
+ resolution: {integrity: sha512-FIyV/64EkKhJmjgC0g2hygpBv5RNWVPyNCqSAD7eTCv6eFWNIi4PN1UvdSJGicN/o35bnevgis4Y0UDC0qi8jQ==}
+ engines: {node: '>=14.0.0'}
+
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
engines: {node: '>= 0.8.0'}
@@ -1818,6 +1897,10 @@ packages:
resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==}
engines: {node: '>= 14.18.0'}
+ resolution: {integrity: sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==}
+ engines: {node: '>=0.10'}
+
resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
engines: {node: '>=4'}
@@ -1902,6 +1985,11 @@ packages:
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-TzjBNv7KwRw6E3pdKdlRyZiTmUIE0UttT/Sl56MVwVARl/u5gp978KepazCJZewFUnlWHz9i3NQd4kOtP/Afdg==}
+ peerDependencies:
+ kysely: '*'
+
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
engines: {node: '>=8'}
@@ -2098,12 +2186,23 @@ packages:
resolution: {integrity: sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==}
+ resolution: {integrity: sha512-6NCPkv1ClwH+/BGE9QeoTIl09nuiAt0gS28nn1PvYXsGKRwM2TCbFA2QiilmehPDTXIe684k4rZI1yl3A1PCUw==}
+ engines: {node: '>=18.12.0'}
+
resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
+ resolution: {integrity: sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==}
+
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
+ resolution: {integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==}
+ hasBin: true
+
resolution: {integrity: sha512-3keXV29Ar5b//Hqi4MbSdV7lfVp6zuYLZuA9V1PvQUsXqogr+u5lvLPLk3A4f74VUXDnf/JfWMN6sB+koJ/FFw==}
peerDependencies:
@@ -2183,6 +2282,9 @@ packages:
resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==}
engines: {node: '>=12'}
+ resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==}
+
resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==}
engines: {node: '>=18'}
@@ -2525,6 +2627,32 @@ snapshots:
'@humanwhocodes/[email protected]': {}
+ '@inlang/[email protected]':
+ dependencies:
+ '@inlang/recommend-sherlock': 0.2.1
+ '@inlang/sdk': 2.4.9
+ commander: 11.1.0
+ consola: 3.4.0
+ json5: 2.2.3
+ unplugin: 2.3.10
+ urlpattern-polyfill: 10.1.0
+ transitivePeerDependencies:
+ - babel-plugin-macros
+
+ '@inlang/[email protected]':
+ dependencies:
+ comment-json: 4.2.5
+
+ '@inlang/[email protected]':
+ dependencies:
+ '@lix-js/sdk': 0.4.7
+ '@sinclair/typebox': 0.31.28
+ kysely: 0.27.6
+ sqlite-wasm-kysely: 0.3.0([email protected])
+ uuid: 10.0.0
+ transitivePeerDependencies:
+ - babel-plugin-macros
+
'@internationalized/[email protected]':
dependencies:
'@swc/helpers': 0.5.17
@@ -2568,6 +2696,20 @@ snapshots:
'@lezer/highlight': 1.2.1
'@lezer/lr': 1.4.2
+ '@lix-js/[email protected]':
+ dependencies:
+ '@lix-js/server-protocol-schema': 0.1.1
+ dedent: 1.5.1
+ human-id: 4.1.1
+ js-sha256: 0.11.1
+ kysely: 0.27.6
+ sqlite-wasm-kysely: 0.3.0([email protected])
+ uuid: 10.0.0
+ transitivePeerDependencies:
+ - babel-plugin-macros
+
+ '@lix-js/[email protected]': {}
+
dependencies:
svelte: 5.38.1
@@ -2666,9 +2808,13 @@ snapshots:
'@sideway/[email protected]':
optional: true
+ '@sinclair/[email protected]': {}
+
'@sinclair/[email protected]':
optional: true
+ '@sqlite.org/[email protected]': {}
+
'@standard-schema/[email protected]': {}
@@ -3001,6 +3147,8 @@ snapshots:
'@ark/util': 0.46.0
optional: true
+
@@ -3094,10 +3242,24 @@ snapshots:
dependencies:
delayed-stream: 1.0.0
+
+ dependencies:
+ array-timsort: 1.0.3
+ core-util-is: 1.0.3
+ esprima: 4.0.1
+ has-own-prop: 2.0.0
+ repeat-string: 1.6.1
+
+
+
@@ -3129,6 +3291,8 @@ snapshots:
+
@@ -3295,6 +3459,8 @@ snapshots:
acorn-jsx: 5.3.2([email protected])
eslint-visitor-keys: 4.2.1
+
dependencies:
estraverse: 5.3.0
@@ -3424,6 +3590,8 @@ snapshots:
+
@@ -3452,6 +3620,8 @@ snapshots:
transitivePeerDependencies:
- supports-color
+
dependencies:
safer-buffer: 2.1.2
@@ -3506,6 +3676,8 @@ snapshots:
'@sideway/pinpoint': 2.0.0
optional: true
+
dependencies:
argparse: 2.0.1
@@ -3549,6 +3721,8 @@ snapshots:
+
dependencies:
json-buffer: 3.0.1
@@ -3557,6 +3731,8 @@ snapshots:
+
dependencies:
prelude-ls: 1.2.1
@@ -3784,6 +3960,8 @@ snapshots:
+
@@ -3879,6 +4057,11 @@ snapshots:
optional: true
+ dependencies:
+ '@sqlite.org/sqlite-wasm': 3.48.0-build4
+ kysely: 0.27.6
+
@@ -4102,12 +4285,23 @@ snapshots:
+ dependencies:
+ '@jridgewell/remapping': 2.3.5
+ acorn: 8.15.0
+ picomatch: 4.0.3
+ webpack-virtual-modules: 0.6.2
+
dependencies:
punycode: 2.3.1
+
+
optionalDependencies:
typescript: 5.9.2
@@ -4148,6 +4342,8 @@ snapshots:
+
dependencies:
iconv-lite: 0.6.3