i18n 0.1.0

Compile-time internationalization (i18n) for Dioxus applications using Rust macros
Documentation
// Translation data for i18n.  Included by translations.rs via include!.
// To add a new translation: add a line  field_name: "EN" => "ZH",
translate! {
    // sidebar.rs
    sidebar_brand_title: "WebShelf Admin" => "WebShelf Admin",
    sidebar_brand_subtitle: "Fullend System" => "Fullend System",
    sidebar_dashboard_label: "Dashboard" => "控制中心",
    sidebar_group_monitoring: "Monitoring" => "系统监控",
    sidebar_data_management: "Data Management" => "数据管理",
    sidebar_user_management_label: "User Management" => "用户管理",
    sidebar_github_sub: "View source on GitHub" => "在 GitHub 上查看源码",

    // top_header.rs
    top_header_search_placeholder: "Search resources & API endpoints..." => "搜索资源与 API 端点...",
    top_header_node_online: "Node Online" => "Node Online",
    top_header_click_to_expand: "Click to expand menu" => "点击展开菜单",
    top_header_settings_label: "Settings" => "个人设置",
    top_header_logout_label: "Log out" => "登出",

    // auth_form.rs
    auth_login_tab: "Login" => "登录入口",
    auth_register_tab: "Register" => "注册端口",
    auth_name_label: "Display Name" => "拟定用户昵称",
    auth_name_placeholder: "e.g., rust_master" => "e.g., rust_master",
    auth_email_label_login: "Email" => "注册绑定的邮箱",
    auth_email_label_register: "Email Address" => "电子邮箱载体",
    auth_email_placeholder_login: "name@domain.com" => "name@domain.com",
    auth_email_placeholder_register: "master@rust.org" => "master@rust.org",
    auth_password_label_login: "Password" => "鉴权安全口令",
    auth_password_label_register: "Password" => "强安全密码",
    auth_password_placeholder: "••••••••" => "••••••••",
    auth_password_hint: "Password: ≥8 chars, upper + lower + digit + ASCII symbol" => "密码需 ≥8 字符,包含大小写字母、数字和 ASCII 标点",
    auth_password_confirm_label: "Confirm Password" => "确认密码",
    auth_remember_label: "Remember me" => "维持持久化登录",
    auth_forgot_label: "Forgot password?" => "忘记凭证?",
    auth_submit_login: "Sign In" => "提交请求验证",
    auth_submit_register: "Create Account" => "初始化账户实例",

    // code_console.rs
    code_console_title: "Request Log" => "服务链路追踪监控",
    code_console_subtitle: "Real-time captured WebShelf Axum backend traffic" => "实时拦截捕获的 WebShelf Axum 后端路由流量",

    // modal.rs
    modal_close: "Close" => "关闭",

    // toast.rs
    toast_status_msg: "Status: {status}" => "响应状态: {status}",

    // data_table.rs
    data_table_no_data: "No data" => "暂无数据",

    // login_landing.rs
    login_brand_subtitle: "Rust Full-stack Admin System" => "Rust 全端全栈管理系统",
    login_qr_label: "Follow Us" => "关注公众号",
    login_qr_hint: "Get verification code & latest tech updates" => "获取验证码与最新技术动态",
    login_github_label: "GitHub Repository" => "GitHub 仓库",
    login_copyright_sub: "Fullend Admin System" => "Fullend Admin System",
    login_email_empty: "Email cannot be empty" => "邮箱地址不能为空",
    login_password_empty: "Password cannot be empty" => "密码不能为空",
    login_name_empty: "Username cannot be empty" => "用户名不能为空",
    login_password_mismatch: "Passwords do not match" => "两次输入的密码不一致",

    // dashboard.rs
    dashboard_title: "Welcome to WebShelf Rust Full-stack System 🚀" => "欢迎来到 WebShelf Rust 全端全栈管理系统 🚀",
    dashboard_hello_user: "Hello {name}!" => "你好 {name}!",
    dashboard_click_health_hint: "Click the button to trigger a health check request." => "点击右侧按钮发起一次真实的健康检查请求。",
    dashboard_call_health_btn: "Call Health Check (GET /health)" => "点此调用健康检查 (GET /health)",
    dashboard_stats_health_label: "Service Health" => "服务健康度",
    dashboard_stats_users_label: "Managed Users" => "当前管控用户数",
    dashboard_stats_latency_label: "Avg Latency" => "接口平均耗时",
    dashboard_stats_middleware_label: "Middleware Status" => "中间件拦截器状态",
    dashboard_stats_latency_sub: "/api/health RTT" => "/api/health 单次 RTT",
    dashboard_stats_users_sub: "GET /api/users" => "GET /api/users",
    dashboard_stats_middleware_sub: "Interceptor: require_admin" => "拦截器: require_admin",
    dashboard_middleware_active: "Active" => "Active",
    dashboard_routes_title: "Route Architecture" => "路由架构图",
    dashboard_routes_subtitle: "axum::Router Key Endpoints" => "axum::Router 的关键端点速查",
    dashboard_no_match: "No matching results" => "无匹配结果",
    dashboard_not_yet_checked: "Not yet checked" => "尚未检测",
    dashboard_version_label: "Version" => "版本",
    dashboard_console_line_ready: "// Monitor ready, awaiting events…" => "// 监控引擎已就绪,等待 axum tower stack 路由事件…",
    dashboard_console_line_replay: "// Replay: captured requests in this session ↓" => "// 历史回放:以下为本次会话已捕获的真实请求 ↓",
    dashboard_error_network: "Network Error" => "网络异常",
    dashboard_error_rate_limited: "Too Many Requests" => "请求过于频繁",
    dashboard_error_config: "Client Configuration Error" => "客户端配置异常",
    dashboard_error_deserialize: "Response parse failed" => "响应数据解析失败",
    dashboard_error_unknown: "Unknown Error" => "未知错误",

    // users.rs
    users_title: "User Management" => "用户管理",
    users_subtitle: "Create, edit and remove system users" => "管理员可创建、编辑与移除系统用户实例",
    users_loading: "Loading users…" => "正在加载用户列表…",
    users_column_name: "Username" => "用户名",
    users_column_email: "Email" => "邮箱",
    users_column_role: "Role" => "角色",
    users_column_balance: "Balance" => "余额",
    users_column_created: "Created" => "注册时间",
    users_column_actions: "Actions" => "操作",
    users_guard_pill: "require_admin Guard" => "require_admin 保护",
    users_create_btn: "Create User (POST)" => "创建新用户 (POST)",
    users_empty: "No users" => "暂无用户",
    users_prev_page: "Previous" => "上一页",
    users_next_page: "Next" => "下一页",
    users_per_page_label: "Per page" => "每页",
    users_per_page_unit: "" => "",
    users_count_info: "{total} users, page {page} / {total_pages}" => "共 {total} 个用户,第 {page} / {total_pages} 页",
    users_count_simple: "{total} users" => "共 {total} 个用户",
    users_badge_admin: "Admin" => "管理员",
    users_badge_system: "System" => "系统管理员",
    users_badge_user: "User" => "普通用户",
    users_protected_label: " Protected" => " 受保护",
    users_no_permission: " No Permission" => " 权限不足",
    users_edit_title: "Edit" => "编辑",
    users_delete_title: "Delete" => "删除",
    users_confirm_delete_title: "Confirm Delete" => "确认删除",
    users_confirm_delete_msg: "Are you sure to delete {name} ({id})? This action cannot be undone." => "确定要删除用户 {name} ({id}) 吗?此操作不可撤销。",
    users_no_target: "No target user selected" => "未选择目标用户",
    users_system_editable: "System admin cannot be edited" => "系统管理员不可编辑",
    users_name_empty: "Username is empty" => "用户名为空",
    users_email_empty: "Email cannot be empty" => "邮箱不能为空",
    users_password_empty: "Password cannot be empty" => "密码不能为空",
    users_modal_create_title: "Create New User" => "创建新用户",
    users_modal_edit_title: "Edit User" => "编辑用户节点",
    users_modal_create_submit: "Create (POST)" => "创建实体 (POST)",
    users_modal_edit_submit: "Save (PUT)" => "保存实体 (PUT)",
    users_form_name_label: "Username" => "账户名",
    users_form_name_placeholder: "e.g., rust_master" => "e.g., rust_master",
    users_form_email_label: "Email" => "邮箱地址",
    users_form_email_placeholder: "master@rust.org" => "master@rust.org",
    users_form_password_label: "Password" => "安全密码",
    users_form_password_placeholder_create: "≥8 chars, upper + lower + digit + symbol" => "≥8 字符,含大小写 / 数字 / 标点",
    users_form_password_placeholder_edit: "Leave blank to keep unchanged" => "留空表示不修改",
    users_form_password_hint: "Password: ≥8 chars, upper + lower + digit + ASCII symbol" => "密码需 ≥8 字符,包含大小写字母、数字和 ASCII 标点",
    users_form_role_label: "Role" => "系统授权标签",
    users_form_initial_role_label: "Initial Role" => "初始授权标签",
    users_form_role_admin: "Admin" => "管理员",
    users_form_role_user: "User" => "普通用户",
    users_balance_section_label: "Balance Adjustment" => "余额调整",
    users_balance_current_label: "Current Balance: " => "当前余额: ",
    users_balance_input_label: "Adjustment Amount" => "调整金额",
    users_balance_input_placeholder: "e.g. 0.50" => "例如 0.50",
    users_balance_increase_btn: "Increase" => "增加余额",
    users_balance_decrease_btn: "Decrease" => "减少余额",
    users_adjust_empty: "Please enter an amount" => "请输入调整金额",
    users_adjust_invalid: "Invalid amount format" => "金额格式无效,请输入数字 (如 0.50)",
    users_adjust_positive: "Amount must be greater than 0" => "金额必须大于 0",
    users_adjust_overflow: "Amount exceeds maximum (1,000,000)" => "金额超出允许范围,最大 1,000,000",

    // settings.rs
    settings_title: "Settings" => "个人设置",
    settings_subtitle: "Change your password to secure your account" => "修改账户密码以保护账号安全",
    settings_account_title: "Account Identity" => "账户身份",
    settings_change_password_title: "Change Password" => "修改密码",
    settings_session_title: "Session Management" => "会话管理",
    settings_account_label: "Account" => "账户名",
    settings_email_label: "Email" => "邮箱地址",
    settings_role_label: "Role" => "角色",
    settings_balance_label: "Balance" => "余额",
    settings_not_logged_in: "Not logged in" => "未登录",
    settings_session_desc: "Logging out all devices will immediately invalidate all sessions." => "登出所有设备将使当前账户在所有浏览器和设备上的会话立即失效。",
    settings_update_password_btn: "Update Password" => "更新密码",
    settings_logout_all_btn: "Log Out All Devices" => "登出所有设备",
    settings_confirm_logout_title: "Confirm Log Out All Devices" => "确认登出所有设备",
    settings_confirm_logout_msg: "This will log you out on all devices including this one." => "此操作将使当前账户在所有浏览器和设备上的会话立即失效,包括当前设备。你需要重新登录才能继续使用。",
    settings_current_password_label: "Current Password" => "当前密码",
    settings_current_password_placeholder: "Enter current password" => "请输入当前密码",
    settings_new_password_label: "New Password" => "新密码",
    settings_new_password_placeholder: "≥8 chars, upper + lower + digit + symbol" => "≥8 字符,包含大小写字母、数字和 ASCII 标点",
    settings_new_password_hint: "Password: ≥8 chars, upper + lower + digit + ASCII symbol" => "密码需 ≥8 字符,包含大小写字母、数字和 ASCII 标点",
    settings_confirm_password_label: "Confirm New Password" => "确认新密码",
    settings_confirm_password_placeholder: "Re-enter new password" => "再次输入新密码",
    settings_validation_current_empty: "Please enter current password" => "请输入当前密码",
    settings_validation_new_empty: "Please enter new password" => "请输入新密码",
    settings_validation_new_short: "New password must be at least 8 characters" => "新密码至少需要 8 个字符",
    settings_validation_new_mismatch: "New passwords do not match" => "两次输入的新密码不一致",
    settings_validation_new_same_as_current: "New password must differ from current" => "新密码不能与当前密码相同",

    // forgot_password.rs
    forgot_pw_title: "Forgot Password" => "找回密码",
    forgot_pw_subtitle: "Enter your registered email to receive a verification code" => "输入注册邮箱,我们会向你发送一封含验证码的邮件",
    forgot_pw_email_label: "Registered Email" => "注册邮箱",
    forgot_pw_submit: "Send Code" => "发送验证码",
    forgot_pw_back_to_login: "← Back to Login" => "← 返回登录",
    forgot_pw_email_empty: "Please enter your email" => "请输入邮箱地址",
    forgot_pw_email_invalid: "Invalid email format" => "邮箱格式不正确",

    // reset_password.rs
    reset_pw_title: "Reset Password" => "重置密码",
    reset_pw_subtitle: "Enter your email, the 6-digit code, and set a new password" => "输入注册邮箱和邮件中的 6 位验证码,设置新密码",
    reset_pw_email_label: "Registered Email" => "注册邮箱",
    reset_pw_code_label: "Verification Code (6 digits)" => "验证码 (邮件中的 6 位数字)",
    reset_pw_password_label: "New Password" => "新密码",
    reset_pw_confirm_label: "Confirm New Password" => "确认新密码",
    reset_pw_submit: "Reset & Login" => "重置密码并登录",
    reset_pw_back_to_login: "← Back to Login" => "← 返回登录",
    reset_pw_code_hint: "From your email, valid for 10 minutes" => "从密码重置邮件中获取,10 分钟内有效",
    reset_pw_password_placeholder: "≥8 chars, upper + lower + digit + symbol" => "≥8 字符,含大小写字母、数字和 ASCII 标点",
    reset_pw_password_hint: "Password: ≥8 chars, upper + lower + digit + ASCII symbol" => "密码需 ≥8 字符,包含大小写字母、数字和 ASCII 标点",
    reset_pw_confirm_placeholder: "Re-enter new password" => "再次输入新密码",
    reset_pw_email_empty: "Please enter your email" => "请输入注册邮箱",
    reset_pw_email_invalid: "Invalid email format" => "邮箱格式不正确",
    reset_pw_code_invalid: "Invalid code format (6 digits expected)" => "验证码格式错误(应为 6 位数字)",
    reset_pw_password_short: "New password must be at least 8 characters" => "新密码至少需要 8 个字符",
    reset_pw_password_mismatch: "Passwords do not match" => "两次输入的密码不一致",

    // verify_email.rs
    verify_email_title: "Verify Your Email" => "验证您的邮箱",
    verify_email_code_sent_prefix: "Code sent to " => "验证码已发送至 ",
    verify_email_code_sent_suffix: ", valid for 10 minutes" => " ,10 分钟内有效",
    verify_email_code_label: "6-digit Code" => "6 位数字验证码",
    verify_email_spam_hint: "Check your spam folder" => "请检查垃圾邮件夹",
    verify_email_resend_countdown: "Resend ({count}s)" => "重新发送 ({count}s)",
    verify_email_resend: "Resend Code" => "重新发送验证码",
    verify_email_verify: "Verify" => "验证",
    verify_email_verifying: "Verifying…" => "验证中...",
    verify_email_locked: "Please Resend First" => "请先重新发送",
    verify_email_max_attempts: "Max attempts reached" => "已达最大尝试次数",
    verify_email_locked_hint: " — resend to continue" => " — 请重新发送验证码以继续",
    verify_email_info_sent: "A new code has been sent to your email" => "新验证码已发送至您的邮箱",
    verify_email_auto_login_failed: "Verification succeeded but auto-login failed: {msg}" => "验证成功,但自动登录失败:{msg},请返回登录页",
    verify_email_session_expired: "Session expired, please log in again" => "会话已过期,请重新登录",
    verify_email_attempts_suffix: " (max attempts reached)" => "(已达最大尝试次数)",
    verify_email_code_validation: "Please enter a 6-digit code" => "请输入 6 位数字验证码",
    verify_email_too_many_attempts: "Too many attempts, click below to resend" => "尝试次数过多,请点击下方按钮重新发送验证码",
    verify_email_back_to_login: "Back to Login" => "返回登录",

    // not_found.rs
    not_found_page: "The page you visited does not exist." => "你访问的页面不存在。",
    not_found_back_to_dashboard: "Back to Dashboard" => "返回控制中心",

    // app_shell_layout.rs
    app_shell_guest: "Guest" => "Guest",
    app_shell_not_logged_in: "Not logged in" => "未登录",
    app_shell_confirm_logout: "Confirm Logout" => "确认登出",
    app_shell_confirm_logout_msg: "Are you sure you want to log out?" => "确定要退出当前账号吗?",

    // Desktop / Mobile
    desktop_home_link: "Home" => "首页",
    desktop_blog_link: "Blog" => "博客",
    mobile_home_link: "Home" => "首页",
    mobile_blog_link: "Blog" => "博客",

    // confirm_dialog.rs
    confirm_label: "Confirm" => "确认",
    cancel_label: "Cancel" => "取消",
}