From 30d7f3f72505733f883ddcadbb048e1d7d1d71fd Mon Sep 17 00:00:00 2001 From: busya Date: Fri, 15 May 2026 09:00:33 +0300 Subject: [PATCH] feat(i18n): localize all translate components (spec 028) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit P0 — Wired i18n to 4 previously-unlocalized surfaces: - BulkReplaceModal (~25 strings → translate.bulk_replace.*) - CorrectionCell (~20 strings → translate.corrections.cell_*) - TermCorrectionPopup (~30 strings → translate.term_correction.*) - history/+page.svelte (~50 strings → translate.history.*) P1 — Added 85+ keys to en.json + ru.json (identical structures): - 11 previously-missing keys (common.close, config.status, etc.) - bulk_replace.*, corrections.*, term_correction.*, history.*, dictionaries.* P2 — Dictionary detail page: import form, filter-by-language, context display P3 — Russian hardcoded strings in job config replaced with i18n Tests: 280 pass, build succeeds --- .../translate/BulkReplaceModal.svelte | 76 +++---- .../translate/CorrectionCell.svelte | 59 +++--- .../translate/TermCorrectionPopup.svelte | 72 +++---- .../test_bulk_replace_modal.svelte.js | 16 +- .../__tests__/test_correction_cell.svelte.js | 22 +- .../src/lib/i18n/locales/en/translate.json | 194 +++++++++++++++++- .../src/lib/i18n/locales/ru/translate.json | 194 +++++++++++++++++- .../src/routes/translate/[id]/+page.svelte | 4 +- .../translate/dictionaries/[id]/+page.svelte | 152 +++++++------- .../src/routes/translate/history/+page.svelte | 105 +++++----- 10 files changed, 636 insertions(+), 258 deletions(-) diff --git a/frontend/src/lib/components/translate/BulkReplaceModal.svelte b/frontend/src/lib/components/translate/BulkReplaceModal.svelte index ea8d0b19..9b3c486d 100644 --- a/frontend/src/lib/components/translate/BulkReplaceModal.svelte +++ b/frontend/src/lib/components/translate/BulkReplaceModal.svelte @@ -15,6 +15,7 @@