Skip to content

feat(i18n): add Russian language support#765

Open
AlexZander85 wants to merge 1 commit intonextlevelbuilder:devfrom
AlexZander85:feat/russian-localization
Open

feat(i18n): add Russian language support#765
AlexZander85 wants to merge 1 commit intonextlevelbuilder:devfrom
AlexZander85:feat/russian-localization

Conversation

@AlexZander85
Copy link
Copy Markdown

  • Add Russian (ru) locale to web UI (35 JSON files, 3921 keys)
  • Add Russian locale to desktop UI (15 JSON files)
  • Add Russian locale to backend (186 message keys)
  • Update i18n.go: LocaleRU constant, IsSupported, Normalize
  • Update web/desktop index.ts: ru imports, resources, language detection
  • Update constants.ts: add 'ru' to SUPPORTED_LANGUAGES/LANGUAGES

Summary

Add Russian (ru) language localization to GoClaw: Web UI (35 files, ~3,921 keys), Desktop UI (15 files), and Backend message catalog (186 keys).

Type

Feature

Target Branch

dev

Checklist

go build ./... passes
go build -tags sqliteonly ./... passes (if Go changes)
go vet ./... passes
Tests pass: go test -race ./...
Web UI builds: cd ui/web && pnpm build (if UI changes)
No hardcoded secrets or credentials
SQL queries use parameterized $1, $2 (no string concat)
New user-facing strings added to all 3 locales (en/vi/zh) — N/A (translations only, no new strings)
Migration version bumped in internal/upgrade/version.go (if new migration) — N/A (no DB changes)

Test Plan

All 56 locale files validated as correct JSON
Language detection follows existing patterns (ru prefix → ru, fallback vi)
Backend catalog follows established catalog_*.go pattern

- Add Russian (ru) locale to web UI (35 JSON files, 3921 keys)
- Add Russian locale to desktop UI (15 JSON files)
- Add Russian locale to backend (186 message keys)
- Update i18n.go: LocaleRU constant, IsSupported, Normalize
- Update web/desktop index.ts: ru imports, resources, language detection
- Update constants.ts: add 'ru' to SUPPORTED_LANGUAGES/LANGUAGES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant