diff --git a/ui/localization/messages/en.json b/ui/localization/messages/en.json index 1c5d85e3..ad70653c 100644 --- a/ui/localization/messages/en.json +++ b/ui/localization/messages/en.json @@ -1,5 +1,52 @@ { "$schema": "https://inlang.com/schema/inlang-message-format", + "access_adopt_kvm": "Adopt KVM to Cloud", + "access_adopted_message": "Your device is adopted to the Cloud", + "access_auth_mode_no_password": "Current mode: No password", + "access_auth_mode_password": "Current mode: Password protected", + "access_authentication_mode_title": "Authentication Mode", + "access_certificate_label": "Certificate", + "access_change_password_button": "Change Password", + "access_change_password_description": "Update your device access password", + "access_change_password_title": "Change Password", + "access_cloud_api_url_label": "Cloud API URL", + "access_cloud_app_url_label": "Cloud Application URL", + "access_cloud_provider_description": "Select the cloud provider for your device", + "access_cloud_provider_title": "Cloud Provider", + "access_cloud_security_title": "Cloud Security", + "access_confirm_deregister": "Are you sure you want to de-register this device?", + "access_deregister": "De-register from Cloud", + "access_description": "Manage the Access Control of the device", + "access_disable_protection": "Disable Protection", + "access_enable_password": "Enable Password", + "access_failed_deregister": "Failed to de-register device: {error}", + "access_failed_update_cloud_url": "Failed to update cloud URL: {error}", + "access_failed_update_tls": "Failed to update TLS settings: {error}", + "access_github_link": "GitHub", + "access_https_description": "Configure secure HTTPS access to your device", + "access_https_mode_title": "HTTPS Mode", + "access_learn_security": "Learn about our cloud security", + "access_local_description": "Manage the mode of local access to the device", + "access_local_title": "Local", + "access_no_device_id": "No device ID available", + "access_private_key_description": "For security reasons, it will not be displayed after saving.", + "access_private_key_label": "Private Key", + "access_provider_custom": "Custom", + "access_provider_jetkvm": "JetKVM Cloud", + "access_remote_description": "Manage the mode of Remote access to the device", + "access_security_encryption": "End-to-end encryption using WebRTC (DTLS and SRTP)", + "access_security_oidc": "OIDC (OpenID Connect) authentication", + "access_security_open_source": "All cloud components are open-source and available on GitHub.", + "access_security_streams": "All streams encrypted in transit", + "access_security_zero_trust": "Zero Trust security model", + "access_title": "Access", + "access_tls_certificate_description": "Paste your TLS certificate below. For certificate chains, include the entire chain (leaf, intermediate, and root certificates).", + "access_tls_certificate_title": "TLS Certificate", + "access_tls_custom": "Custom", + "access_tls_disabled": "Disabled", + "access_tls_self_signed": "Self-signed", + "access_tls_updated": "TLS settings updated successfully", + "access_update_tls_settings": "Update TLS Settings", "action_bar_connection_stats": "Connection Stats", "action_bar_exit_fullscreen": "Exit Fullscreen", "action_bar_extension": "Extension", @@ -10,10 +57,62 @@ "action_bar_virtual_media": "Virtual Media", "action_bar_wake_on_lan": "Wake on LAN", "action_bar_web_terminal": "Web Terminal", + "advanced_description": "Access additional settings for troubleshooting and customization", + "advanced_dev_channel_description": "Receive early updates from the development channel", + "advanced_dev_channel_title": "Dev Channel Updates", + "advanced_developer_mode_description": "Enable advanced features for developers", + "advanced_developer_mode_enabled_title": "Developer Mode Enabled", + "advanced_developer_mode_title": "Developer Mode", + "advanced_developer_mode_warning_advanced": "For advanced users only. Not for production use.", + "advanced_developer_mode_warning_risks": "Only use if you understand the risks", + "advanced_developer_mode_warning_security": "Security is weakened while active", + "advanced_disable_usb_emulation": "Disable USB Emulation", + "advanced_enable_usb_emulation": "Enable USB Emulation", + "advanced_error_loopback_disable": "Failed to disable loopback-only mode: {error}", + "advanced_error_loopback_enable": "Failed to enable loopback-only mode: {error}", + "advanced_error_reset_config": "Failed to reset configuration: {error}", + "advanced_error_set_dev_channel": "Failed to set dev channel state: {error}", + "advanced_error_set_dev_mode": "Failed to set dev mode: {error}", + "advanced_error_update_ssh_key": "Failed to update SSH key: {error}", + "advanced_error_usb_emulation_disable": "Failed to disable USB emulation: {error}", + "advanced_error_usb_emulation_enable": "Failed to enable USB emulation: {error}", + "advanced_loopback_only_description": "Restrict web interface access to localhost only (127.0.0.1)", + "advanced_loopback_only_title": "Loopback-Only Mode", + "advanced_loopback_warning_before": "Before enabling this feature, make sure you have either:", + "advanced_loopback_warning_cloud": "Cloud access enabled and working", + "advanced_loopback_warning_confirm": "I Understand, Enable Anyway", + "advanced_loopback_warning_description": "WARNING: This will restrict web interface access to localhost (127.0.0.1) only.", + "advanced_loopback_warning_ssh": "SSH access configured and tested", + "advanced_loopback_warning_title": "Enable Loopback-Only Mode?", + "advanced_reset_config_button": "Reset Config", + "advanced_reset_config_description": "Reset configuration to default. This will log you out.", + "advanced_reset_config_title": "Reset Configuration", + "advanced_ssh_access_description": "Add your SSH public key to enable secure remote access to the device", + "advanced_ssh_access_title": "SSH Access", + "advanced_ssh_default_user": "The default SSH user is", + "advanced_ssh_public_key_label": "SSH Public Key", + "advanced_ssh_public_key_placeholder": "Enter your SSH public key", + "advanced_success_loopback_disabled": "Loopback-only mode disabled. Restart your device to apply.", + "advanced_success_loopback_enabled": "Loopback-only mode enabled. Restart your device to apply.", + "advanced_success_reset_config": "Configuration reset to default successfully", + "advanced_success_update_ssh_key": "SSH key updated successfully", + "advanced_title": "Advanced", + "advanced_troubleshooting_mode_description": "Diagnostic tools and additional controls for troubleshooting and development purposes", + "advanced_troubleshooting_mode_title": "Troubleshooting Mode", + "advanced_update_ssh_key_button": "Update SSH Key", + "advanced_usb_emulation_description": "Control the USB emulation state", + "advanced_usb_emulation_title": "USB Emulation", "already_adopted_new_owner": "If you're the new owner, please ask the previous owner to de-register the device from their account in the cloud dashboard. If you believe this is an error, contact our support team for assistance.", "already_adopted_other_user": "This device is currently registered to another user in our cloud dashboard.", "already_adopted_return_to_dashboard": "Return to Dashboard", "already_adopted_title": "Device Already Registered", + "appearance_description": "Choose your preferred color theme", + "appearance_page_description": "Customize the look and feel of your JetKVM interface", + "appearance_theme_dark": "Dark", + "appearance_theme_light": "Light", + "appearance_theme_system": "System", + "appearance_theme": "Theme", + "appearance_title": "Appearance", "attach": "Attach", "atx_power_control_get_state_error": "Failed to get ATX power state: {error}", "atx_power_control_hdd_led": "HDD LED", @@ -138,6 +237,47 @@ "extensions_dc_power_control": "DC Power Control", "extensions_popover_extensions": "Extensions", "gathering_ice_candidates": "Gathering ICE candidates...", + "general_app_version": "App: {version}", + "general_auto_update_description": "Automatically update the device to the latest version", + "general_auto_update_error": "Failed to set auto-update: {error}", + "general_auto_update_title": "Auto Update", + "general_check_for_updates": "Check for Updates", + "general_page_description": "Configure device settings and update preferences", + "general_reboot_description": "Do you want to proceed with rebooting the system?", + "general_reboot_device_description": "Power cycle the JetKVM", + "general_reboot_device": "Reboot Device", + "general_reboot_no_button": "No", + "general_reboot_title": "Reboot JetKVM", + "general_reboot_yes_button": "Yes", + "general_system_version": "System: {version}", + "general_title": "General", + "general_update_app_update_title": "App Update", + "general_update_application_type": "App", + "general_update_available_description": "A new update is available to enhance system performance and improve compatibility. We recommend updating to ensure everything runs smoothly.", + "general_update_available_title": "Update available", + "general_update_background_button": "Update in Background", + "general_update_check_again_button": "Check Again", + "general_update_checking_description": "We're ensuring your device has the latest features and improvements.", + "general_update_checking_title": "Checking for updates...", + "general_update_completed_description": "Your device has been successfully updated to the latest version. Enjoy the new features and improvements!", + "general_update_completed_title": "Update Completed Successfully", + "general_update_error_description": "An error occurred while updating your device. Please try again later.", + "general_update_error_details": "Error details: {errorMessage}", + "general_update_error_title": "Update Error", + "general_update_later_button": "Do it later", + "general_update_now_button": "Update Now", + "general_update_rebooting": "Rebooting to complete the update...", + "general_update_status_awaiting_reboot": "Awaiting reboot", + "general_update_status_downloading": "Downloading {update_type} update...", + "general_update_status_fetching": "Fetching update information...", + "general_update_status_installing": "Installing {update_type} update...", + "general_update_status_verifying": "Verifying {update_type} update...", + "general_update_system_type": "System", + "general_update_system_update_title": "Linux System Update", + "general_update_up_to_date_description": "Your system is running the latest version. No updates are currently available.", + "general_update_up_to_date_title": "System is up to date", + "general_update_updating_description": "Please don't turn off your device. This process may take a few minutes.", + "general_update_updating_title": "Updating your device", "getting_remote_session_description": "Getting remote session description attempt {attempt}", "hide": "Hide", "ice_gathering_completed": "ICE Gathering completed", @@ -190,6 +330,45 @@ "learn_more": "Learn more", "load": "Load", "loading": "Loading…", + "local_auth_change_local_device_password_description": "Enter your current password and a new password to update your local device protection.", + "local_auth_change_local_device_password_title": "Change Local Device Password", + "local_auth_confirm_new_password_label": "Confirm New Password", + "local_auth_create_confirm_password_label": "Confirm New Password", + "local_auth_create_confirm_password_placeholder": "Re-enter your password", + "local_auth_create_description": "Create a password to protect your device from unauthorized local access.", + "local_auth_create_new_password_label": "New Password", + "local_auth_create_new_password_placeholder": "Enter a strong password", + "local_auth_create_not_now_button": "Not Now", + "local_auth_create_secure_button": "Secure Device", + "local_auth_create_title": "Local Device Protection", + "local_auth_current_password_label": "Current Password", + "local_auth_disable_local_device_protection_description": "Enter your current password to disable local device protection.", + "local_auth_disable_local_device_protection_title": "Disable Local Device Protection", + "local_auth_disable_protection_button": "Disable Protection", + "local_auth_enter_current_password_placeholder": "Enter your current password", + "local_auth_enter_new_password_placeholder": "Enter a new strong password", + "local_auth_error_changing_password": "An error occurred while changing the password", + "local_auth_error_disabling_password": "An error occurred while disabling the password", + "local_auth_error_enter_current_password": "Please enter your current password", + "local_auth_error_enter_new_password": "Please enter a new password", + "local_auth_error_enter_old_password": "Please enter your old password", + "local_auth_error_enter_password": "Please enter a password", + "local_auth_error_passwords_not_match": "Passwords do not match", + "local_auth_error_setting_password": "An error occurred while setting the password", + "local_auth_new_password_label": "New Password", + "local_auth_reenter_new_password_placeholder": "Re-enter your new password", + "local_auth_success_password_disabled_description": "You've successfully disabled the password protection for local access. Remember, your device is now less secure.", + "local_auth_success_password_disabled_title": "Password Protection Disabled", + "local_auth_success_password_set_description": "You've successfully set up local device protection. Your device is now secure against unauthorized local access.", + "local_auth_success_password_set_title": "Password Set Successfully", + "local_auth_success_password_updated_description": "You've successfully changed your local device protection password. Make sure to remember your new password for future access.", + "local_auth_success_password_updated_title": "Password Updated Successfully", + "local_auth_update_confirm_password_label": "Confirm New Password", + "local_auth_update_current_password_label": "Current Password", + "local_auth_update_description": "Enter your current password and a new password to update your local device protection.", + "local_auth_update_new_password_label": "New Password", + "local_auth_update_password_button": "Update Password", + "local_auth_update_title": "Change Local Device Password", "log_in": "Log In", "log_out": "Log out", "logged_in_as": "Logged in as", @@ -460,190 +639,32 @@ "welcome_to_jetkvm_description": "Control any computer remotely", "welcome_to_jetkvm": "Welcome to JetKVM", - "access_adopt_kvm": "Adopt KVM to Cloud", - "access_adopted_message": "Your device is adopted to the Cloud", - "access_auth_mode_no_password": "Current mode: No password", - "access_auth_mode_password": "Current mode: Password protected", - "access_authentication_mode_title": "Authentication Mode", - "access_certificate_label": "Certificate", - "access_change_password_button": "Change Password", - "access_change_password_description": "Update your device access password", - "access_change_password_title": "Change Password", - "access_cloud_api_url_label": "Cloud API URL", - "access_cloud_app_url_label": "Cloud Application URL", - "access_cloud_provider_description": "Select the cloud provider for your device", - "access_cloud_provider_title": "Cloud Provider", - "access_cloud_security_title": "Cloud Security", - "access_confirm_deregister": "Are you sure you want to de-register this device?", - "access_deregister": "De-register from Cloud", - "access_description": "Manage the Access Control of the device", - "access_disable_protection": "Disable Protection", - "access_enable_password": "Enable Password", - "access_failed_deregister": "Failed to de-register device: {error}", - "access_failed_update_cloud_url": "Failed to update cloud URL: {error}", - "access_failed_update_tls": "Failed to update TLS settings: {error}", - "access_github_link": "GitHub", - "access_https_description": "Configure secure HTTPS access to your device", - "access_https_mode_title": "HTTPS Mode", - "access_learn_security": "Learn about our cloud security", - "access_local_description": "Manage the mode of local access to the device", - "access_local_title": "Local", - "access_no_device_id": "No device ID available", - "access_private_key_description": "For security reasons, it will not be displayed after saving.", - "access_private_key_label": "Private Key", - "access_provider_custom": "Custom", - "access_provider_jetkvm": "JetKVM Cloud", - "access_remote_description": "Manage the mode of Remote access to the device", - "access_security_encryption": "End-to-end encryption using WebRTC (DTLS and SRTP)", - "access_security_oidc": "OIDC (OpenID Connect) authentication", - "access_security_open_source": "All cloud components are open-source and available on GitHub.", - "access_security_streams": "All streams encrypted in transit", - "access_security_zero_trust": "Zero Trust security model", - "access_title": "Access", - "access_tls_certificate_description": "Paste your TLS certificate below. For certificate chains, include the entire chain (leaf, intermediate, and root certificates).", - "access_tls_certificate_title": "TLS Certificate", - "access_tls_custom": "Custom", - "access_tls_disabled": "Disabled", - "access_tls_self_signed": "Self-signed", - "access_tls_updated": "TLS settings updated successfully", - "access_update_tls_settings": "Update TLS Settings", - - "local_auth_change_local_device_password_description": "Enter your current password and a new password to update your local device protection.", - "local_auth_change_local_device_password_title": "Change Local Device Password", - "local_auth_confirm_new_password_label": "Confirm New Password", - "local_auth_create_confirm_password_label": "Confirm New Password", - "local_auth_create_confirm_password_placeholder": "Re-enter your password", - "local_auth_create_description": "Create a password to protect your device from unauthorized local access.", - "local_auth_create_new_password_label": "New Password", - "local_auth_create_new_password_placeholder": "Enter a strong password", - "local_auth_create_not_now_button": "Not Now", - "local_auth_create_secure_button": "Secure Device", - "local_auth_create_title": "Local Device Protection", - "local_auth_current_password_label": "Current Password", - "local_auth_disable_local_device_protection_description": "Enter your current password to disable local device protection.", - "local_auth_disable_local_device_protection_title": "Disable Local Device Protection", - "local_auth_disable_protection_button": "Disable Protection", - "local_auth_enter_current_password_placeholder": "Enter your current password", - "local_auth_enter_new_password_placeholder": "Enter a new strong password", - "local_auth_error_changing_password": "An error occurred while changing the password", - "local_auth_error_disabling_password": "An error occurred while disabling the password", - "local_auth_error_enter_current_password": "Please enter your current password", - "local_auth_error_enter_new_password": "Please enter a new password", - "local_auth_error_enter_old_password": "Please enter your old password", - "local_auth_error_enter_password": "Please enter a password", - "local_auth_error_passwords_not_match": "Passwords do not match", - "local_auth_error_setting_password": "An error occurred while setting the password", - "local_auth_new_password_label": "New Password", - "local_auth_reenter_new_password_placeholder": "Re-enter your new password", - "local_auth_success_password_disabled_description": "You've successfully disabled the password protection for local access. Remember, your device is now less secure.", - "local_auth_success_password_disabled_title": "Password Protection Disabled", - "local_auth_success_password_set_description": "You've successfully set up local device protection. Your device is now secure against unauthorized local access.", - "local_auth_success_password_set_title": "Password Set Successfully", - "local_auth_success_password_updated_description": "You've successfully changed your local device protection password. Make sure to remember your new password for future access.", - "local_auth_success_password_updated_title": "Password Updated Successfully", - "local_auth_update_confirm_password_label": "Confirm New Password", - "local_auth_update_current_password_label": "Current Password", - "local_auth_update_description": "Enter your current password and a new password to update your local device protection.", - "local_auth_update_new_password_label": "New Password", - "local_auth_update_password_button": "Update Password", - "local_auth_update_title": "Change Local Device Password", - - "advanced_description": "Access additional settings for troubleshooting and customization", - "advanced_dev_channel_description": "Receive early updates from the development channel", - "advanced_dev_channel_title": "Dev Channel Updates", - "advanced_developer_mode_description": "Enable advanced features for developers", - "advanced_developer_mode_enabled_title": "Developer Mode Enabled", - "advanced_developer_mode_title": "Developer Mode", - "advanced_developer_mode_warning_advanced": "For advanced users only. Not for production use.", - "advanced_developer_mode_warning_risks": "Only use if you understand the risks", - "advanced_developer_mode_warning_security": "Security is weakened while active", - "advanced_disable_usb_emulation": "Disable USB Emulation", - "advanced_enable_usb_emulation": "Enable USB Emulation", - "advanced_error_loopback_disable": "Failed to disable loopback-only mode: {error}", - "advanced_error_loopback_enable": "Failed to enable loopback-only mode: {error}", - "advanced_error_reset_config": "Failed to reset configuration: {error}", - "advanced_error_set_dev_channel": "Failed to set dev channel state: {error}", - "advanced_error_set_dev_mode": "Failed to set dev mode: {error}", - "advanced_error_update_ssh_key": "Failed to update SSH key: {error}", - "advanced_error_usb_emulation_disable": "Failed to disable USB emulation: {error}", - "advanced_error_usb_emulation_enable": "Failed to enable USB emulation: {error}", - "advanced_loopback_only_description": "Restrict web interface access to localhost only (127.0.0.1)", - "advanced_loopback_only_title": "Loopback-Only Mode", - "advanced_loopback_warning_before": "Before enabling this feature, make sure you have either:", - "advanced_loopback_warning_cloud": "Cloud access enabled and working", - "advanced_loopback_warning_confirm": "I Understand, Enable Anyway", - "advanced_loopback_warning_description": "WARNING: This will restrict web interface access to localhost (127.0.0.1) only.", - "advanced_loopback_warning_ssh": "SSH access configured and tested", - "advanced_loopback_warning_title": "Enable Loopback-Only Mode?", - "advanced_reset_config_button": "Reset Config", - "advanced_reset_config_description": "Reset configuration to default. This will log you out.", - "advanced_reset_config_title": "Reset Configuration", - "advanced_ssh_access_description": "Add your SSH public key to enable secure remote access to the device", - "advanced_ssh_access_title": "SSH Access", - "advanced_ssh_default_user": "The default SSH user is", - "advanced_ssh_public_key_label": "SSH Public Key", - "advanced_ssh_public_key_placeholder": "Enter your SSH public key", - "advanced_success_loopback_disabled": "Loopback-only mode disabled. Restart your device to apply.", - "advanced_success_loopback_enabled": "Loopback-only mode enabled. Restart your device to apply.", - "advanced_success_reset_config": "Configuration reset to default successfully", - "advanced_success_update_ssh_key": "SSH key updated successfully", - "advanced_title": "Advanced", - "advanced_troubleshooting_mode_description": "Diagnostic tools and additional controls for troubleshooting and development purposes", - "advanced_troubleshooting_mode_title": "Troubleshooting Mode", - "advanced_update_ssh_key_button": "Update SSH Key", - "advanced_usb_emulation_description": "Control the USB emulation state", - "advanced_usb_emulation_title": "USB Emulation", - - "appearance_description": "Choose your preferred color theme", - "appearance_page_description": "Customize the look and feel of your JetKVM interface", - "appearance_theme_dark": "Dark", - "appearance_theme_light": "Light", - "appearance_theme_system": "System", - "appearance_theme": "Theme", - "appearance_title": "Appearance", - - "general_app_version": "App: {version}", - "general_auto_update_description": "Automatically update the device to the latest version", - "general_auto_update_error": "Failed to set auto-update: {error}", - "general_auto_update_title": "Auto Update", - "general_check_for_updates": "Check for Updates", - "general_page_description": "Configure device settings and update preferences", - "general_reboot_device": "Reboot Device", - "general_reboot_device_description": "Power cycle the JetKVM", - "general_system_version": "System: {version}", - "general_title": "General", - - "general_update_app_update_title": "App Update", - "general_update_application_type": "App", - "general_update_available_description": "A new update is available to enhance system performance and improve compatibility. We recommend updating to ensure everything runs smoothly.", - "general_update_available_title": "Update available", - "general_update_background_button": "Update in Background", - "general_update_check_again_button": "Check Again", - "general_update_checking_description": "We're ensuring your device has the latest features and improvements.", - "general_update_checking_title": "Checking for updates...", - "general_update_completed_description": "Your device has been successfully updated to the latest version. Enjoy the new features and improvements!", - "general_update_completed_title": "Update Completed Successfully", - "general_update_error_description": "An error occurred while updating your device. Please try again later.", - "general_update_error_details": "Error details: {errorMessage}", - "general_update_error_title": "Update Error", - "general_update_later_button": "Do it later", - "general_update_now_button": "Update Now", - "general_update_rebooting": "Rebooting to complete the update...", - "general_update_system_type": "System", - - "general_update_status_awaiting_reboot": "Awaiting reboot", - "general_update_status_downloading": "Downloading {update_type} update...", - "general_update_status_fetching": "Fetching update information...", - "general_update_status_installing": "Installing {update_type} update...", - "general_update_status_verifying": "Verifying {update_type} update...", - "general_update_system_update_title": "Linux System Update", - "general_update_up_to_date_description": "Your system is running the latest version. No updates are currently available.", - "general_update_up_to_date_title": "System is up to date", - "general_update_updating_description": "Please don't turn off your device. This process may take a few minutes.", - "general_update_updating_title": "Updating your device", - - "general_reboot_description": "Do you want to proceed with rebooting the system?", - "general_reboot_no_button": "No", - "general_reboot_title": "Reboot JetKVM", - "general_reboot_yes_button": "Yes" + "hardware_backlight_settings_error": "Failed to set backlight settings: {error}", + "hardware_backlight_settings_get_error": "Failed to get backlight settings: {error}", + "hardware_backlight_settings_success": "Backlight settings updated successfully", + "hardware_dim_display_after_description": "Set how long to wait before dimming the display", + "hardware_dim_display_after_title": "Dim Display After", + "hardware_display_brightness_description": "Set the brightness of the display", + "hardware_display_brightness_high": "High", + "hardware_display_brightness_low": "Low", + "hardware_display_brightness_medium": "Medium", + "hardware_display_brightness_off": "Off", + "hardware_display_brightness_title": "Display Brightness", + "hardware_display_orientation_description": "Set the orientation of the display", + "hardware_display_orientation_error": "Failed to set display orientation: {error}", + "hardware_display_orientation_inverted": "Inverted", + "hardware_display_orientation_normal": "Normal", + "hardware_display_orientation_success": "Display orientation updated successfully", + "hardware_display_orientation_title": "Display Orientation", + "hardware_display_wake_up_note": "The display will wake up when the connection state changes, or when touched.", + "hardware_page_description": "Configure display settings and hardware options for your JetKVM device", + "hardware_time_10_minutes": "10 Minutes", + "hardware_time_1_hour": "1 Hour", + "hardware_time_1_minute": "1 Minute", + "hardware_time_30_minutes": "30 Minutes", + "hardware_time_5_minutes": "5 Minutes", + "hardware_time_never": "Never", + "hardware_title": "Hardware", + "hardware_turn_off_display_after_description": "Period of inactivity before display automatically turns off", + "hardware_turn_off_display_after_title": "Turn off Display After" } \ No newline at end of file diff --git a/ui/src/routes/devices.$id.settings.hardware.tsx b/ui/src/routes/devices.$id.settings.hardware.tsx index 9ee999ee..92753fa8 100644 --- a/ui/src/routes/devices.$id.settings.hardware.tsx +++ b/ui/src/routes/devices.$id.settings.hardware.tsx @@ -9,6 +9,7 @@ import { SettingsPageHeader } from "@components/SettingsPageheader"; import { UsbDeviceSetting } from "@components/UsbDeviceSetting"; import { UsbInfoSetting } from "@components/UsbInfoSetting"; import notifications from "@/notifications"; +import { m } from "@localizations/messages.js"; export default function SettingsHardwareRoute() { const { send } = useJsonRpc(); @@ -24,11 +25,11 @@ export default function SettingsHardwareRoute() { send("setDisplayRotation", { params: { rotation: displayRotation } }, (resp: JsonRpcResponse) => { if ("error" in resp) { notifications.error( - `Failed to set display orientation: ${resp.error.data || "Unknown error"}`, + m.hardware_display_orientation_error({ error: resp.error.data || m.unknown_error() }), ); return; } - notifications.success("Display orientation updated successfully"); + notifications.success(m.hardware_display_orientation_success()); }); }; @@ -49,11 +50,11 @@ export default function SettingsHardwareRoute() { send("setBacklightSettings", { params: backlightSettings }, (resp: JsonRpcResponse) => { if ("error" in resp) { notifications.error( - `Failed to set backlight settings: ${resp.error.data || "Unknown error"}`, + m.hardware_backlight_settings_error({ error: resp.error.data || m.unknown_error() }), ); return; } - notifications.success("Backlight settings updated successfully"); + notifications.success(m.hardware_backlight_settings_success()); }); }; @@ -76,7 +77,7 @@ export default function SettingsHardwareRoute() { send("getBacklightSettings", {}, (resp: JsonRpcResponse) => { if ("error" in resp) { return notifications.error( - `Failed to get backlight settings: ${resp.error.data || "Unknown error"}`, + m.hardware_backlight_settings_get_error({ error: resp.error.data || m.unknown_error() }), ); } const result = resp.result as BacklightSettings; @@ -87,21 +88,21 @@ export default function SettingsHardwareRoute() { return (
- The display will wake up when the connection state changes, or when touched. + {m.hardware_display_wake_up_note()}