diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 5cf6d62cd..89f315cba 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -4,6 +4,7 @@ "save_changes": "Save Changes", "loading": "Loading...", "error": "Error", + "creating": "Creating...", "success": "Success" }, "settings": { @@ -50,7 +51,15 @@ "title": "Authenticator App Enabled", "description": "Store the codes below somewhere safe. If you lose access to your authenticator app you can use these backup codes to sign in.", "alert": "These codes will not be shown again." + }, + "disable": { + "title": "Remove Authenticator App", + "description": "Removing your authenticator app will make your account less secure." } + }, + "email": { + "update_email": "Update Email", + "updated_successfully": "Your primary email has been updated." } }, "api_key_modal": { @@ -72,7 +81,11 @@ "delete_api_key_desc": "All requests using the {{key}} key will be invalidated.", "no_api_keys": "No API keys exist for this account.", "last_used": "Last used:", - "never": "Never" + "never": "Never", + "key_description": "Description", + "key_description_description": "A description of this API key.", + "allowed_ips": "Allowed IPs", + "allowed_ips_description": "Leave blank to allow any IP address to use this API key, otherwise provide each IP address on a new line." }, "activity_log": { "title": "Account Activity Log", diff --git a/public/locales/vi/translation.json b/public/locales/vi/translation.json index acd420076..cb609a61f 100644 --- a/public/locales/vi/translation.json +++ b/public/locales/vi/translation.json @@ -3,6 +3,7 @@ "language": "Ngôn ngữ", "save_changes": "Lưu thay đổi", "loading": "Đang tải...", + "creating": "Đang tạo...", "error": "Lỗi", "success": "Thành công" }, @@ -50,7 +51,15 @@ "title": "Đã bật ứng dụng xác thực", "description": "Lưu trữ các mã dưới đây ở nơi an toàn. Nếu bạn mất quyền truy cập vào ứng dụng xác thực, bạn có thể sử dụng các mã dự phòng này để đăng nhập.", "alert": "Các mã này sẽ không được hiển thị lại." + }, + "disable": { + "title": "Xóa ứng dụng xác thực", + "description": "Việc xóa ứng dụng xác thực sẽ làm cho tài khoản của bạn kém an toàn hơn." } + }, + "email": { + "update_email": "Cập nhật email", + "updated_successfully": "Email chính của bạn đã được cập nhật." } }, "api_key_modal": { @@ -80,6 +89,21 @@ "delete_confirm": "Xóa Key", "delete_message": "Xóa SSH key {name} sẽ làm mất hiệu lực sử dụng của nó trên toàn bộ Panel." }, + "api": { + "account_api": "API tài khoản", + "create_api_key": "Tạo khóa API", + "api_keys": "Các khóa API", + "delete_api_key_title": "Xóa khóa API", + "delete_key": "Xóa khóa", + "delete_api_key_desc": "Tất cả các yêu cầu sử dụng khóa {{key}} sẽ bị vô hiệu hóa.", + "no_api_keys": "Không có khóa API nào tồn tại cho tài khoản này.", + "last_used": "Sử dụng lần cuối:", + "never": "Chưa bao giờ", + "key_description": "Mô tả", + "key_description_description": "Mô tả về khóa API này.", + "allowed_ips": "Các địa chỉ IP được phép", + "allowed_ips_description": "Để trống để cho phép bất kỳ địa chỉ IP nào sử dụng khóa API này, nếu không, cung cấp từng địa chỉ IP trên một dòng mới." + }, "server_titles": { "schedules": "Lịch trình", "users": "Người dùng", diff --git a/resources/scripts/components/MessageBox.tsx b/resources/scripts/components/MessageBox.tsx index cc68922e8..84bf57755 100644 --- a/resources/scripts/components/MessageBox.tsx +++ b/resources/scripts/components/MessageBox.tsx @@ -14,12 +14,6 @@ interface Props { const Container = styled.div<{ $type?: FlashMessageType }>``; Container.displayName = 'MessageBox.Container'; -/** - * Component hiển thị thông báo với tiêu đề và nội dung - * @param title Tiêu đề thông báo (có thể là key i18n) - * @param children Nội dung thông báo (có thể là key i18n) - * @param type Loại thông báo: success, info, warning, error - */ const MessageBox = ({ title, children, type }: Props) => { const { t } = useTranslation(); diff --git a/resources/scripts/components/PyrodactylProvider.tsx b/resources/scripts/components/PyrodactylProvider.tsx index e3c78903d..cca8edac6 100644 --- a/resources/scripts/components/PyrodactylProvider.tsx +++ b/resources/scripts/components/PyrodactylProvider.tsx @@ -1,16 +1,8 @@ -import { useTranslation } from 'react-i18next'; - interface Props { children: React.ReactNode; } -/** - * Component cung cấp thông tin về phiên bản và môi trường Pyrodactyl - * @param children Nội dung bên trong provider - */ const PyrodactylProvider = ({ children }: Props) => { - const { t } = useTranslation(); - return (