mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6889] [CLOSED] feat(i18n): add complete Slovak localization and API reference #6503
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6503
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6889
Author: @Vaso73
Created: 10/21/2026
Status: ❌ Closed
Base:
main← Head:codex/slovak-localization📝 Commits (6)
06bd0bdtest(frontend): settle deferred balancer validation timers0e37991feat(i18n): add complete Slovak interface localization21871aftest(frontend): drain subscription balancer validation timers175162ffeat(i18n): localize the complete API reference in Slovakd5d5187docs(i18n): add Slovak interface previews6ea92d9fix(i18n): preserve existing CPU labels and 2FA identity📊 Changes
78 files changed (+15034 additions, -365 deletions)
View changed files
📝
.github/claude/issue-analyst-context.md(+4 -2)📝
CLAUDE.md(+5 -2)📝
CONTRIBUTING.md(+13 -2)📝
README.md(+3 -3)📝
REVIEW.md(+1 -1)📝
frontend/CLAUDE.md(+2 -1)📝
frontend/src/components/command-palette/CommandPalette.tsx(+2 -1)📝
frontend/src/components/form/HeaderMapEditor.tsx(+4 -3)📝
frontend/src/entries/login.tsx(+8 -5)📝
frontend/src/entries/subpage.tsx(+8 -5)➕
frontend/src/i18n/LocaleProvider.tsx(+14 -0)📝
frontend/src/i18n/react.ts(+5 -0)📝
frontend/src/lib/xray/forms/transport/CustomSockoptList.tsx(+15 -8)📝
frontend/src/lib/xray/forms/transport/FinalMaskForm.tsx(+249 -144)📝
frontend/src/main.tsx(+8 -5)📝
frontend/src/pages/api-docs/ApiDocsPage.css(+4 -0)📝
frontend/src/pages/api-docs/ApiDocsPage.tsx(+38 -14)➕
frontend/src/pages/api-docs/localization.ts(+68 -0)➕
frontend/src/pages/api-docs/swagger-labels.ts(+70 -0)📝
frontend/src/pages/clients/ClientBulkAddModal.tsx(+6 -5)...and 58 more files
📄 Description
Summary
Add Slovak (
sk-SK, Slovenčina) to the panel, login screen, subscription viewer, bot messages and complete in-panel API reference. The catalog contains 3,353 translated strings, with Slovak validation, calendar controls and decimal formatting.Why
Slovak is currently unavailable. A catalog alone leaves several forms, validation messages and the API reference in English, so this also connects the remaining translatable labels to i18n and supplies the component locales.
sk-SKand detect browser languagesk; keep panel and subscription language preferences independent.Administratoraccount in the 2FA enrollment URI; regression tests cover both boundaries.CONTRIBUTING.md, with coverage failures naming missing and retired prose.Related: #6460 also wires some hardcoded UI labels into i18n. There is partial overlap in six frontend files, plus the existing catalogs; this PR is based directly on current
mainand does not depend on that change. No dependency updates are included.Type of change
Areas affected
Subscription and statistics changes concern displayed text and number formatting. Telegram/Discord changes are localized message templates. API endpoints, protocol/configuration values, numeric calculations and traffic accounting are unchanged.
How was this tested?
npm run typecheck,npm run lint,npm run format:check,npm test(1,857 tests in 194 files),npm run build,npm run build-storybook.go build ./...,go test ./...; the new tests load all catalogs through the real backend parser and render Slovak bot templates with synthetic values.To review manually, select Slovenčina, open Klienti → Upraviť, inspect the calendar and cancel the dialog. Check empty login validation, Dokumentácia API (operation descriptions, schemas, authorization controls and WebSocket events), and the subscription viewer; then switch back to English.
Screenshots / recordings
Compiled UI with synthetic preview data:
Client form
API reference
Breaking changes
None. No migration or configuration change is required.
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.