add i18n step1
This commit is contained in:
parent
34d553a890
commit
79e3db6078
23 changed files with 2309 additions and 450 deletions
140
frontend/locales/en.json
Normal file
140
frontend/locales/en.json
Normal file
|
|
@ -0,0 +1,140 @@
|
|||
{
|
||||
"nav": {
|
||||
"configs": "Site Configs",
|
||||
"global": "Global Config",
|
||||
"settings": "Panel Settings",
|
||||
"logout": "Logout"
|
||||
},
|
||||
"status": {
|
||||
"checking": "Checking...",
|
||||
"running": "Running",
|
||||
"stopped": "Stopped",
|
||||
"unknown": "Unknown"
|
||||
},
|
||||
"caddy": {
|
||||
"start_btn": "Start Caddy",
|
||||
"stop_btn": "Stop Caddy",
|
||||
"reload_btn": "Reload Config"
|
||||
},
|
||||
"common": {
|
||||
"save": "Save",
|
||||
"cancel": "Cancel",
|
||||
"append": "Append",
|
||||
"replace": "Replace",
|
||||
"back_to_list": "Back to list",
|
||||
"error_prefix": "Error",
|
||||
"loading": "Loading...",
|
||||
"logout": "Logout"
|
||||
},
|
||||
"pages": {
|
||||
"configs": {
|
||||
"page_title": "Site Configs - CaddyDash",
|
||||
"title": "Site Configuration",
|
||||
"add_new_btn": "New Config",
|
||||
"form_title_create": "Create New Config",
|
||||
"form_title_edit": "Edit Config",
|
||||
"listtitle": "Site Configs",
|
||||
"rendered_caddyfile_title": "Rendered Caddyfile"
|
||||
},
|
||||
"global": {
|
||||
"page_title": "Global Config - CaddyDash",
|
||||
"title": "Global Caddyfile Configuration",
|
||||
"description": "Changes here will overwrite your main Caddyfile and trigger a Caddy reload.",
|
||||
"save_btn": "Save and Reload"
|
||||
},
|
||||
"settings": {
|
||||
"page_title": "Panel Settings - CaddyDash",
|
||||
"title": "Panel Settings",
|
||||
"account_security_title": "Account Security",
|
||||
"language_label": "Language",
|
||||
"current_password_label": "Current Password",
|
||||
"new_password_label": "New Password (min. 8 characters)",
|
||||
"confirm_new_password_label": "Confirm New Password",
|
||||
"reset_password_btn": "Reset Password",
|
||||
"resetting_password_btn": "Resetting..."
|
||||
},
|
||||
"login": {
|
||||
"page_title": "Login - CaddyDash",
|
||||
"welcome": "Welcome to CaddyDash",
|
||||
"prompt": "Please enter your credentials to continue",
|
||||
"username_label": "Username",
|
||||
"password_label": "Password",
|
||||
"login_btn": "Login",
|
||||
"logging_in_btn": "Logging in..."
|
||||
},
|
||||
"init": {
|
||||
"page_title": "Initial Setup - CaddyDash",
|
||||
"title": "Welcome to CaddyDash",
|
||||
"prompt": "Please create your administrator account to complete setup",
|
||||
"admin_user_label": "Admin Username",
|
||||
"password_label": "Password (min. 8 characters)",
|
||||
"confirm_password_label": "Confirm Password",
|
||||
"setup_btn": "Complete Setup",
|
||||
"setting_up_btn": "Setting up..."
|
||||
}
|
||||
},
|
||||
"form": {
|
||||
"legend_basic": "Basic Config",
|
||||
"domain_label": "Primary Domain (used as filename)",
|
||||
"legend_service_mode": "Service Mode",
|
||||
"mode_none": "None",
|
||||
"mode_rp": "Reverse Proxy",
|
||||
"mode_fs": "File Server",
|
||||
"legend_rp": "Reverse Proxy Config",
|
||||
"upstream_addr_label": "Upstream Address",
|
||||
"upstream_addr_placeholder": "e.g., 127.0.0.1:8080",
|
||||
"enable_multi_upstream": "Enable Multi-Upstream Load Balancing",
|
||||
"upstream_servers_label": "Upstream Server List",
|
||||
"add_upstream_server_btn": "Add Upstream Server",
|
||||
"upstream_server_placeholder": "e.g., 127.0.0.1:8081",
|
||||
"upstream_headers_label": "Upstream Headers",
|
||||
"fill_from_preset": "Fill from Preset",
|
||||
"add_header_btn": "Add Header",
|
||||
"legend_fs": "File Server Config",
|
||||
"fs_root_label": "Root Directory Path",
|
||||
"fs_root_placeholder": "e.g., /srv/www",
|
||||
"enable_fs_browser": "Enable File Browser",
|
||||
"legend_global_headers": "Global Headers",
|
||||
"legend_features": "Additional Features",
|
||||
"feature_log": "Enable Logging",
|
||||
"feature_error_page": "Enable Custom Error Pages",
|
||||
"feature_encode": "Enable Compression"
|
||||
},
|
||||
"dialogs": {
|
||||
"unsaved_changes_title": "Unsaved Changes",
|
||||
"unsaved_changes_msg": "You have unsaved changes. Are you sure you want to discard them?",
|
||||
"delete_config_title": "Confirm Deletion",
|
||||
"delete_config_msg": "Are you sure you want to delete \"{filename}\"?",
|
||||
"stop_caddy_msg": "Are you sure you want to stop the Caddy instance?",
|
||||
"reload_caddy_msg": "Are you sure you want to reload Caddy config?",
|
||||
"logout_msg": "Are you sure you want to log out?",
|
||||
"preset_fill_title": "Fill Method",
|
||||
"preset_fill_msg": "How would you like to apply the preset?",
|
||||
"confirm_btn": "Confirm",
|
||||
"cancel_btn": "Cancel"
|
||||
},
|
||||
"toasts": {
|
||||
"save_success": "Configuration saved successfully.",
|
||||
"save_error": "Failed to save configuration: {error}",
|
||||
"reload_sent": "Reload command has been sent.",
|
||||
"delete_success": "Configuration deleted successfully.",
|
||||
"delete_error": "Failed to delete configuration: {error}",
|
||||
"load_configs_error": "Failed to load site configs: {error}",
|
||||
"load_config_detail_error": "Failed to load config details: {error}",
|
||||
"error_domain_empty": "Domain name cannot be empty.",
|
||||
"loading_preset": "Loading preset...",
|
||||
"preset_no_data": "This preset contains no data.",
|
||||
"load_preset_error": "Failed to load preset: {error}",
|
||||
"preset_fill_success": "Preset \"{presetName}\" filled successfully.",
|
||||
"no_presets_available": "No applicable presets available for this section.",
|
||||
"logout_processing": "Logging out...",
|
||||
"error_username_empty": "Username cannot be empty.",
|
||||
"error_password_empty": "Password cannot be empty.",
|
||||
"login_success": "Login successful! Redirecting...",
|
||||
"login_error_generic": "Login failed. Please check your credentials.",
|
||||
"init_error_mismatch": "Passwords do not match.",
|
||||
"init_error_short": "Password must be at least {minLength} characters long.",
|
||||
"init_success": "Setup complete! Redirecting to login...",
|
||||
"init_error_generic": "Initialization failed. Please try again."
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue