Skip to content

Commit d7e9008

Browse files
committed
chore(outbound-latency-test): add "never" translation and improve RTL support in latency dialog
1 parent beda903 commit d7e9008

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

dashboard/public/statics/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@
924924
"header.nodeSettings": "Node Settings",
925925
"header.nodesUsage": "Nodes Usage",
926926
"loading": "Loading...",
927+
"never": "Never",
927928
"noResults": "No results found",
928929
"noAdminsFound": "No admins found",
929930
"emptyState": {

dashboard/public/statics/locales/fa.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@
474474
"saving": "در حال ذخیره...",
475475
"general": "عمومی",
476476
"loading": "در حال بارگذاری...",
477+
"never": "هرگز",
477478
"noResults": "نتیجه‌ای یافت نشد",
478479
"noAdminsFound": "مدیری یافت نشد",
479480
"emptyState": {

dashboard/public/statics/locales/ru.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,6 +3064,7 @@
30643064
"clearAllFilters": "Очистить все фильтры",
30653065
"activeFilters": "активных",
30663066
"loading": "Загрузка...",
3067+
"never": "Никогда",
30673068
"all": "Все",
30683069
"hosts.filters.userStatus": "Правила статуса пользователя",
30693070
"hosts.filters.userStatusDescription": "Фильтрует хосты по заданным статусам пользователей (активен, на паузе, ограничен и т.д.).",

dashboard/public/statics/locales/zh.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2857,6 +2857,7 @@
28572857
},
28582858
"online": "在线",
28592859
"loading": "加载中...",
2860+
"never": "从未",
28602861
"noResults": "未找到结果",
28612862
"noAdminsFound": "未找到管理员",
28622863
"emptyState": {

dashboard/src/features/core-editor/components/xray/outbound-latency-test-dialog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,19 +212,19 @@ export function OutboundLatencyTestDialog({ open, onOpenChange, scope, coreId }:
212212

213213
{!isSingleMode ? (
214214
<div className="grid overflow-hidden rounded-md border sm:grid-cols-3">
215-
<div className="border-b p-3 sm:border-r sm:border-b-0">
215+
<div className="border-b p-3 sm:border-e sm:border-b-0">
216216
<div className="text-muted-foreground text-[11px] font-medium tracking-wide uppercase">{t('coreEditor.outbound.latency.total', { defaultValue: 'Total' })}</div>
217217
<div className="mt-1 text-lg font-semibold tabular-nums">{sortedLatencies.length}</div>
218218
</div>
219-
<div className="border-b p-3 sm:border-r sm:border-b-0">
219+
<div className="border-b p-3 sm:border-e sm:border-b-0">
220220
<div className="text-muted-foreground text-[11px] font-medium tracking-wide uppercase">{t('coreEditor.outbound.latency.alive', { defaultValue: 'Alive' })}</div>
221221
<div className="mt-1 text-lg font-semibold tabular-nums">
222222
{aliveCount}/{sortedLatencies.length || 0}
223223
</div>
224224
</div>
225225
<div className="p-3">
226226
<div className="text-muted-foreground text-[11px] font-medium tracking-wide uppercase">{t('coreEditor.outbound.latency.average', { defaultValue: 'Average delay' })}</div>
227-
<div className="mt-1 text-lg font-semibold tabular-nums">{averageDelay === null ? '-' : `${averageDelay} ms`}</div>
227+
<div dir="ltr" className="mt-1 text-lg font-semibold tabular-nums">{averageDelay === null ? '-' : `${averageDelay} ms`}</div>
228228
</div>
229229
</div>
230230
) : null}
@@ -265,7 +265,7 @@ export function OutboundLatencyTestDialog({ open, onOpenChange, scope, coreId }:
265265
</div>
266266
) : null}
267267
</div>
268-
<Badge variant="outline" className={cn('w-fit shrink-0 font-mono text-xs', getLatencyClassName(health))}>
268+
<Badge dir="ltr" variant="outline" className={cn('w-fit shrink-0 font-mono text-xs', getLatencyClassName(health))}>
269269
{!item.alive || item.delay < 0 ? t('coreEditor.outbound.latency.unreachable', { defaultValue: 'Unreachable' }) : `${item.delay} ms`}
270270
</Badge>
271271
</div>

0 commit comments

Comments
 (0)