feat: update some translations

This commit is contained in:
divocat
2025-10-23 18:35:34 +03:00
parent e0d149f03a
commit c4078c8242
9 changed files with 158 additions and 114 deletions

View File

@@ -40,7 +40,7 @@ export function renderAvailableActions({
showSingBoxConfig,
}: IRenderAvailableActionsProps) {
return E('div', { class: 'pdk_diagnostic-page__right-bar__actions' }, [
E('b', {}, 'Available actions'),
E('b', {}, _('Available actions')),
...insertIf(restart.visible, [
renderButton({
classNames: ['cbi-button-apply'],

View File

@@ -18,7 +18,7 @@ export function renderSystemInfo({ items }: IRenderSystemInfoProps) {
E(
'b',
{ class: 'pdk_diagnostic-page__right-bar__system-info__title' },
'System information',
_('System information'),
),
...items.map((item) => {
const tagClass = [

View File

@@ -43,7 +43,8 @@ export function validateVlessUrl(url: string): ValidationResult {
if (!port)
return { valid: false, message: 'Invalid VLESS URL: missing port' };
const portNum = Number(port);
const cleanedPort = port.replace('/', '');
const portNum = Number(cleanedPort);
if (!Number.isInteger(portNum) || portNum < 1 || portNum > 65535)
return {
valid: false,