mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-29 09:14:59 +03:00
fix(clients): clarify renewal preview times and estimates (#6662)
* fix(clients): clarify renewal preview times and estimates The preview rendered RFC3339 strings directly and labeled the server's Local zone without explaining which clock it represented. Its renewal count also looked like a record of renewals already performed. Display readable dates with an explicit UTC offset while preserving the server's wall time, per-date DST offset and fractional cutoff precision. Explain the panel/server timezone and read-only preview, and label the renewal count as estimated allowance consumption in all 13 locales. Let the first-cutoff button wrap on narrow screens and update the English and Chinese client documentation plus display/form regression coverage. This changes presentation only: renewal calculations, stored expiry values, API payloads and first-use behavior remain unchanged. * test(clients): remove redundant renewal preview copy checks The locale-only preview case repeated the Local timezone branch without covering a distinct behavior. Exact textContent comparisons after matching the same text with getByText also only pinned constant wording, contrary to the repository's testing guidance. Remove that duplicate case, its locale setup and the redundant copy assertions. Keep the UTC, per-boundary DST offset, fractional precision and original datetime checks, together with the existing real form-save tests. Production rendering, translations and renewal behavior are unchanged. --------- Co-authored-by: JacktheRanger <219502738+JacktheRanger@users.noreply.github.com>
This commit is contained in:
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "Calendar monthly",
|
||||
"renewWeekday": "Renew on weekday",
|
||||
"renewScheduleDesc": "Calendar renewal uses midnight in the panel timezone and also resets the client's traffic. Keep independent traffic resets disabled unless an additional reset is intended. Monthly day 1 means valid through the preceding month; day 31 is not the same boundary.",
|
||||
"renewPreview": "Renewal preview ({zone})",
|
||||
"renewPreview": "معاينة التجديد (المنطقة الزمنية للوحة: {zone})",
|
||||
"renewServerLocal": "التوقيت المحلي للخادم",
|
||||
"renewPreviewHint": "تُعرض التواريخ حسب المنطقة الزمنية للوحة. المعاينة لا تجدد العميل.",
|
||||
"renewAt": "Renewal boundary",
|
||||
"renewValidThrough": "Valid through",
|
||||
"renewNextExpiry": "Cutoff after renewal",
|
||||
"renewPeriods": "Periods charged: {count}",
|
||||
"renewPeriods": "عدد التجديدات المتوقع استهلاكها: {count}",
|
||||
"renewUnavailable": "The remaining renewal allowances cannot provide a future cutoff.",
|
||||
"renewFirstUse": "Dates are available after first-use activation. The initial duration is unchanged.",
|
||||
"renewSetExpiry": "Set first cycle cutoff",
|
||||
|
||||
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "Calendar monthly",
|
||||
"renewWeekday": "Renew on weekday",
|
||||
"renewScheduleDesc": "Calendar renewal uses midnight in the panel timezone and also resets the client's traffic. Keep independent traffic resets disabled unless an additional reset is intended. Monthly day 1 means valid through the preceding month; day 31 is not the same boundary.",
|
||||
"renewPreview": "Renewal preview ({zone})",
|
||||
"renewPreview": "Renewal preview (panel time zone: {zone})",
|
||||
"renewServerLocal": "Server local time",
|
||||
"renewPreviewHint": "Dates use the panel time zone. Previewing does not renew the client.",
|
||||
"renewAt": "Renewal boundary",
|
||||
"renewValidThrough": "Valid through",
|
||||
"renewNextExpiry": "Cutoff after renewal",
|
||||
"renewPeriods": "Periods charged: {count}",
|
||||
"renewPeriods": "Estimated renewals used: {count}",
|
||||
"renewUnavailable": "The remaining renewal allowances cannot provide a future cutoff.",
|
||||
"renewFirstUse": "Dates are available after first-use activation. The initial duration is unchanged.",
|
||||
"renewSetExpiry": "Set first cycle cutoff",
|
||||
|
||||
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "Calendar monthly",
|
||||
"renewWeekday": "Renew on weekday",
|
||||
"renewScheduleDesc": "Calendar renewal uses midnight in the panel timezone and also resets the client's traffic. Keep independent traffic resets disabled unless an additional reset is intended. Monthly day 1 means valid through the preceding month; day 31 is not the same boundary.",
|
||||
"renewPreview": "Renewal preview ({zone})",
|
||||
"renewPreview": "Vista previa de renovación (zona horaria del panel: {zone})",
|
||||
"renewServerLocal": "Hora local del servidor",
|
||||
"renewPreviewHint": "Las fechas usan la zona horaria del panel. La vista previa no renueva el cliente.",
|
||||
"renewAt": "Renewal boundary",
|
||||
"renewValidThrough": "Valid through",
|
||||
"renewNextExpiry": "Cutoff after renewal",
|
||||
"renewPeriods": "Periods charged: {count}",
|
||||
"renewPeriods": "Renovaciones que se consumirían: {count}",
|
||||
"renewUnavailable": "The remaining renewal allowances cannot provide a future cutoff.",
|
||||
"renewFirstUse": "Dates are available after first-use activation. The initial duration is unchanged.",
|
||||
"renewSetExpiry": "Set first cycle cutoff",
|
||||
|
||||
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "Calendar monthly",
|
||||
"renewWeekday": "Renew on weekday",
|
||||
"renewScheduleDesc": "Calendar renewal uses midnight in the panel timezone and also resets the client's traffic. Keep independent traffic resets disabled unless an additional reset is intended. Monthly day 1 means valid through the preceding month; day 31 is not the same boundary.",
|
||||
"renewPreview": "Renewal preview ({zone})",
|
||||
"renewPreview": "پیشنمایش تمدید (منطقهٔ زمانی پنل: {zone})",
|
||||
"renewServerLocal": "زمان محلی سرور",
|
||||
"renewPreviewHint": "تاریخها بر اساس منطقهٔ زمانی پنل نمایش داده میشوند. پیشنمایش باعث تمدید کاربر نمیشود.",
|
||||
"renewAt": "Renewal boundary",
|
||||
"renewValidThrough": "Valid through",
|
||||
"renewNextExpiry": "Cutoff after renewal",
|
||||
"renewPeriods": "Periods charged: {count}",
|
||||
"renewPeriods": "تعداد تمدیدهای قابل مصرف در این پیشنمایش: {count}",
|
||||
"renewUnavailable": "The remaining renewal allowances cannot provide a future cutoff.",
|
||||
"renewFirstUse": "Dates are available after first-use activation. The initial duration is unchanged.",
|
||||
"renewSetExpiry": "Set first cycle cutoff",
|
||||
|
||||
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "Calendar monthly",
|
||||
"renewWeekday": "Renew on weekday",
|
||||
"renewScheduleDesc": "Calendar renewal uses midnight in the panel timezone and also resets the client's traffic. Keep independent traffic resets disabled unless an additional reset is intended. Monthly day 1 means valid through the preceding month; day 31 is not the same boundary.",
|
||||
"renewPreview": "Renewal preview ({zone})",
|
||||
"renewPreview": "Pratinjau perpanjangan (zona waktu panel: {zone})",
|
||||
"renewServerLocal": "Waktu lokal server",
|
||||
"renewPreviewHint": "Tanggal menggunakan zona waktu panel. Pratinjau tidak memperpanjang klien.",
|
||||
"renewAt": "Renewal boundary",
|
||||
"renewValidThrough": "Valid through",
|
||||
"renewNextExpiry": "Cutoff after renewal",
|
||||
"renewPeriods": "Periods charged: {count}",
|
||||
"renewPeriods": "Perkiraan jumlah perpanjangan yang digunakan: {count}",
|
||||
"renewUnavailable": "The remaining renewal allowances cannot provide a future cutoff.",
|
||||
"renewFirstUse": "Dates are available after first-use activation. The initial duration is unchanged.",
|
||||
"renewSetExpiry": "Set first cycle cutoff",
|
||||
|
||||
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "Calendar monthly",
|
||||
"renewWeekday": "Renew on weekday",
|
||||
"renewScheduleDesc": "Calendar renewal uses midnight in the panel timezone and also resets the client's traffic. Keep independent traffic resets disabled unless an additional reset is intended. Monthly day 1 means valid through the preceding month; day 31 is not the same boundary.",
|
||||
"renewPreview": "Renewal preview ({zone})",
|
||||
"renewPreview": "更新プレビュー(パネルのタイムゾーン:{zone})",
|
||||
"renewServerLocal": "サーバーのローカル時刻",
|
||||
"renewPreviewHint": "日時はパネルのタイムゾーンで表示されます。プレビューではクライアントは更新されません。",
|
||||
"renewAt": "Renewal boundary",
|
||||
"renewValidThrough": "Valid through",
|
||||
"renewNextExpiry": "Cutoff after renewal",
|
||||
"renewPeriods": "Periods charged: {count}",
|
||||
"renewPeriods": "消費予定の更新回数:{count}",
|
||||
"renewUnavailable": "The remaining renewal allowances cannot provide a future cutoff.",
|
||||
"renewFirstUse": "Dates are available after first-use activation. The initial duration is unchanged.",
|
||||
"renewSetExpiry": "Set first cycle cutoff",
|
||||
|
||||
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "Calendar monthly",
|
||||
"renewWeekday": "Renew on weekday",
|
||||
"renewScheduleDesc": "Calendar renewal uses midnight in the panel timezone and also resets the client's traffic. Keep independent traffic resets disabled unless an additional reset is intended. Monthly day 1 means valid through the preceding month; day 31 is not the same boundary.",
|
||||
"renewPreview": "Renewal preview ({zone})",
|
||||
"renewPreview": "Prévia da renovação (fuso horário do painel: {zone})",
|
||||
"renewServerLocal": "Hora local do servidor",
|
||||
"renewPreviewHint": "As datas usam o fuso horário do painel. A prévia não renova o cliente.",
|
||||
"renewAt": "Renewal boundary",
|
||||
"renewValidThrough": "Valid through",
|
||||
"renewNextExpiry": "Cutoff after renewal",
|
||||
"renewPeriods": "Periods charged: {count}",
|
||||
"renewPeriods": "Renovações que seriam consumidas: {count}",
|
||||
"renewUnavailable": "The remaining renewal allowances cannot provide a future cutoff.",
|
||||
"renewFirstUse": "Dates are available after first-use activation. The initial duration is unchanged.",
|
||||
"renewSetExpiry": "Set first cycle cutoff",
|
||||
|
||||
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "Calendar monthly",
|
||||
"renewWeekday": "Renew on weekday",
|
||||
"renewScheduleDesc": "Calendar renewal uses midnight in the panel timezone and also resets the client's traffic. Keep independent traffic resets disabled unless an additional reset is intended. Monthly day 1 means valid through the preceding month; day 31 is not the same boundary.",
|
||||
"renewPreview": "Renewal preview ({zone})",
|
||||
"renewPreview": "Предпросмотр продления (часовой пояс панели: {zone})",
|
||||
"renewServerLocal": "Местное время сервера",
|
||||
"renewPreviewHint": "Даты указаны в часовом поясе панели. Предпросмотр не продлевает клиента.",
|
||||
"renewAt": "Renewal boundary",
|
||||
"renewValidThrough": "Valid through",
|
||||
"renewNextExpiry": "Cutoff after renewal",
|
||||
"renewPeriods": "Periods charged: {count}",
|
||||
"renewPeriods": "Будет использовано продлений: {count}",
|
||||
"renewUnavailable": "The remaining renewal allowances cannot provide a future cutoff.",
|
||||
"renewFirstUse": "Dates are available after first-use activation. The initial duration is unchanged.",
|
||||
"renewSetExpiry": "Set first cycle cutoff",
|
||||
|
||||
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "Calendar monthly",
|
||||
"renewWeekday": "Renew on weekday",
|
||||
"renewScheduleDesc": "Calendar renewal uses midnight in the panel timezone and also resets the client's traffic. Keep independent traffic resets disabled unless an additional reset is intended. Monthly day 1 means valid through the preceding month; day 31 is not the same boundary.",
|
||||
"renewPreview": "Renewal preview ({zone})",
|
||||
"renewPreview": "Yenileme önizlemesi (panel saat dilimi: {zone})",
|
||||
"renewServerLocal": "Sunucunun yerel saati",
|
||||
"renewPreviewHint": "Tarihler panelin saat dilimine göre gösterilir. Önizleme istemciyi yenilemez.",
|
||||
"renewAt": "Renewal boundary",
|
||||
"renewValidThrough": "Valid through",
|
||||
"renewNextExpiry": "Cutoff after renewal",
|
||||
"renewPeriods": "Periods charged: {count}",
|
||||
"renewPeriods": "Kullanılması beklenen yenileme sayısı: {count}",
|
||||
"renewUnavailable": "The remaining renewal allowances cannot provide a future cutoff.",
|
||||
"renewFirstUse": "Dates are available after first-use activation. The initial duration is unchanged.",
|
||||
"renewSetExpiry": "Set first cycle cutoff",
|
||||
|
||||
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "Calendar monthly",
|
||||
"renewWeekday": "Renew on weekday",
|
||||
"renewScheduleDesc": "Calendar renewal uses midnight in the panel timezone and also resets the client's traffic. Keep independent traffic resets disabled unless an additional reset is intended. Monthly day 1 means valid through the preceding month; day 31 is not the same boundary.",
|
||||
"renewPreview": "Renewal preview ({zone})",
|
||||
"renewPreview": "Попередній перегляд продовження (часовий пояс панелі: {zone})",
|
||||
"renewServerLocal": "Місцевий час сервера",
|
||||
"renewPreviewHint": "Дати вказано в часовому поясі панелі. Попередній перегляд не продовжує клієнта.",
|
||||
"renewAt": "Renewal boundary",
|
||||
"renewValidThrough": "Valid through",
|
||||
"renewNextExpiry": "Cutoff after renewal",
|
||||
"renewPeriods": "Periods charged: {count}",
|
||||
"renewPeriods": "Буде використано продовжень: {count}",
|
||||
"renewUnavailable": "The remaining renewal allowances cannot provide a future cutoff.",
|
||||
"renewFirstUse": "Dates are available after first-use activation. The initial duration is unchanged.",
|
||||
"renewSetExpiry": "Set first cycle cutoff",
|
||||
|
||||
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "Calendar monthly",
|
||||
"renewWeekday": "Renew on weekday",
|
||||
"renewScheduleDesc": "Calendar renewal uses midnight in the panel timezone and also resets the client's traffic. Keep independent traffic resets disabled unless an additional reset is intended. Monthly day 1 means valid through the preceding month; day 31 is not the same boundary.",
|
||||
"renewPreview": "Renewal preview ({zone})",
|
||||
"renewPreview": "Xem trước gia hạn (múi giờ bảng điều khiển: {zone})",
|
||||
"renewServerLocal": "Giờ địa phương của máy chủ",
|
||||
"renewPreviewHint": "Ngày giờ dùng múi giờ của bảng điều khiển. Xem trước không thực hiện gia hạn máy khách.",
|
||||
"renewAt": "Renewal boundary",
|
||||
"renewValidThrough": "Valid through",
|
||||
"renewNextExpiry": "Cutoff after renewal",
|
||||
"renewPeriods": "Periods charged: {count}",
|
||||
"renewPeriods": "Số lượt gia hạn dự kiến sử dụng: {count}",
|
||||
"renewUnavailable": "The remaining renewal allowances cannot provide a future cutoff.",
|
||||
"renewFirstUse": "Dates are available after first-use activation. The initial duration is unchanged.",
|
||||
"renewSetExpiry": "Set first cycle cutoff",
|
||||
|
||||
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "日历月",
|
||||
"renewWeekday": "每周续期日",
|
||||
"renewScheduleDesc": "日历续期按面板时区的午夜执行,并重置客户端流量。若不需要额外重置,请关闭独立的流量重置。每月 1 日续期表示有效至上个月末;每月 31 日不是同一边界。",
|
||||
"renewPreview": "续期预览({zone})",
|
||||
"renewPreview": "续期预览(面板时区:{zone})",
|
||||
"renewServerLocal": "服务器本地时区",
|
||||
"renewPreviewHint": "日期按面板时区显示,查看预览不会执行续期。",
|
||||
"renewAt": "续期边界",
|
||||
"renewValidThrough": "本期有效至",
|
||||
"renewNextExpiry": "续期后的截止时间",
|
||||
"renewPeriods": "计入续期次数:{count}",
|
||||
"renewPeriods": "预计消耗续期次数:{count}",
|
||||
"renewUnavailable": "剩余续期次数不足以提供未来的截止时间。",
|
||||
"renewFirstUse": "首次使用激活后才能确定日期,首次使用后的初始时长保持不变。",
|
||||
"renewSetExpiry": "设置首个周期截止时间",
|
||||
|
||||
@@ -953,11 +953,13 @@
|
||||
"renewModeMonthly": "日曆月",
|
||||
"renewWeekday": "每週續期日",
|
||||
"renewScheduleDesc": "日曆續期按面板時區的午夜執行,並重置客戶端流量。若不需要額外重置,請關閉獨立的流量重置。每月 1 日續期表示有效至上個月末;每月 31 日不是同一邊界。",
|
||||
"renewPreview": "續期預覽({zone})",
|
||||
"renewPreview": "續期預覽(面板時區:{zone})",
|
||||
"renewServerLocal": "伺服器本地時區",
|
||||
"renewPreviewHint": "日期依面板時區顯示,查看預覽不會執行續期。",
|
||||
"renewAt": "續期邊界",
|
||||
"renewValidThrough": "本期有效至",
|
||||
"renewNextExpiry": "續期後的截止時間",
|
||||
"renewPeriods": "計入續期次數:{count}",
|
||||
"renewPeriods": "預計消耗續期次數:{count}",
|
||||
"renewUnavailable": "剩餘續期次數不足以提供未來的截止時間。",
|
||||
"renewFirstUse": "首次使用啟用後才能確定日期,首次使用後的初始時長保持不變。",
|
||||
"renewSetExpiry": "設定首個週期截止時間",
|
||||
|
||||
Reference in New Issue
Block a user