diff --git a/src/locales/en.json b/src/locales/en.json index 7c157e00..1459ba08 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -641,8 +641,10 @@ "Invalid Profile URL": "Invalid profile URL. Please enter a URL starting with http:// or https://", "Saved Successfully": "Saved successfully", "Connected": "Connected", + "Disconnected": "Disconnected", + "Attention Required": "Attention Required", "Menu": "Menu", - "Add New Profile": "Add New Profile", + "Add Profile": "Add Profile", "Delete Profile": "Delete Profile {{name}}?", "This action cannot be undone.": "This action cannot be undone.", "Check Group Latency": "Check Group Latency", @@ -650,5 +652,9 @@ "Show Basic Info": "Show Basic Info", "Show Detailed Info": "Show Detailed Info", "Set Latency Test URL": "Set Latency Test URL", - "Filter by Name": "Filter by Name" + "Filter by Name": "Filter by Name", + "Expires in": "Expires in {{duration}}", + "Expired": "Expired", + "Get Started": "Get Started", + "You don't have any profiles yet. Add your first one to begin.": "You don't have any profiles yet.\nAdd your first one to begin." } diff --git a/src/locales/ru.json b/src/locales/ru.json index 3aa01f5c..e348fc28 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -591,7 +591,7 @@ "Proxy disabled": "Прокси выключено", "Connecting...": "Подключение...", "Disconnecting...": "Отключение...", - "Add New Profile": "Добавить новый профиль", + "Add Profile": "Добавить профиль", "Delete Profile": "Удалить профиль {{name}}?", "This action cannot be undone.": "Это действие не может быть отменено", "Update via proxy": "Обновить через прокси", @@ -604,5 +604,9 @@ "Update with Clash proxy successfully": "Обновление с помощью прокси Clash прошло успешно", "Proxy Count": "Число прокси", "Set Latency Test URL": "Установить URL-адрес тестирования задержки", - "Filter by Name": "Фильтр по имени" + "Filter by Name": "Фильтр по имени", + "Expires in": "Истекает через {{duration}}", + "Expired": "Истекло", + "Get Started": "Приступить к работе", + "You don't have any profiles yet. Add your first one to begin.": "У вас еще нет профилей.\nДобавьте свой первый профиль, чтобы начать." } diff --git a/src/pages/home.tsx b/src/pages/home.tsx index 3d6d27a8..2eaf6060 100644 --- a/src/pages/home.tsx +++ b/src/pages/home.tsx @@ -95,31 +95,33 @@ const MinimalHomePage: React.FC = () => {
-
- - - - - - {t("Profiles")} - - {profileItems.map((p) => ( - handleProfileChange(p.uid)}> - {p.name} - {profiles?.current === p.uid && } + {profileItems.length > 0 && ( +
+ + + + + + {t("Profiles")} + + {profileItems.map((p) => ( + handleProfileChange(p.uid)}> + {p.name} + {profiles?.current === p.uid && } + + ))} + + viewerRef.current?.create()}> + + {t("Add New Profile")} - ))} - - viewerRef.current?.create()}> - - {t("Add New Profile")} - - - -
+
+
+
+ )}
@@ -180,8 +182,21 @@ const MinimalHomePage: React.FC = () => {
)} -
+
+ {profileItems.length > 0 ? ( + ) : ( + + + {t("Get Started")} + + {t("You don't have any profiles yet. Add your first one to begin.")} + + + + )}