Skip to content

i18n(ru): Complete Russian localization & add CSS variable labels i18n support - #2437

Open
Nikitamce wants to merge 20 commits into
mbnuqw:v5from
Nikitamce:v5
Open

Nikitamce wants to merge 20 commits into
mbnuqw:v5from
Nikitamce:v5

Conversation

@Nikitamce

Copy link
Copy Markdown

i18n(ru): Complete Russian localization & add CSS variable labels i18n support

Description

This PR provides a comprehensive update to the Russian (ru) localization for Sidebery v5, filling in all missing translation keys across all dictionary files. In addition, it introduces dynamic localization support for CSS custom property labels in the Styles Editor component (#styles_editor).


Key Changes

1. Localization Infrastructure (styles-editor.vue)

  • Added dynamic translation lookup (styles.var_label.<CSS_VAR_NAME>) for CSS custom property labels rendered in the Styles Editor (page.setup/components/styles-editor.vue).
  • Retained automatic fallback to formatted variable name strings for unlocalized custom variables.

2. Complete Russian (ru) Translations

🌐 Browser Keybindings & Manifest (src/_locales/dict.browser.json)

  • Added translations for all missing keybinding descriptions (e.g., tab/bookmark sorting by Title/URL/Access time, template copying shortcuts, sub-panels, and navigation shortcuts).

🛠 Sidebar & Common Contexts (src/_locales/dict.common.ts & dict.sidebar.ts)

  • Translated all new tab bar context actions (opening/reopening in specific containers, child tabs, active tab reloading with custom URLs).
  • Translated missing sync sub-section headers (sync.tabs_title, sync.ctx_menu_title, sync.keybindings_title, etc.), system popups, and notification messages.

⚙️ Setup Page & Settings (src/_locales/dict.setup-page.ts)

  • Added missing translations for search persistence options (Keep searching after switching tabs, Keep searching after triggering context menu option).
  • Added missing tab scrolling and tab isolation options (Automatically scroll panel to activated tab, Isolate globally pinned tabs).
  • Translated badge rule documentation notes and step-by-step Google Drive OAuth setup guide.

🎨 Styles Editor CSS Variables (src/_locales/dict.setup-page.ts)

  • Added human-readable Russian translations for 130+ CSS custom property labels covering all sections:
    • General / Frame / Toolbar: Margins, border radii, colors, hover/clicked/selected/active overlay backgrounds and borders.
    • Navigation Bar: Delimiter sizes, button heights/widths, margins, badge offsets, and accent colors.
    • Tabs: Tab heights, indentation levels, discarded title/favicon opacities, audio button dimensions, color layer opacities, close button margins, and notification badges.
    • Bookmarks / History / Popups / Context Menu / Search / Notifications / Buttons / Scrollbars / Animations: Complete coverage for all theme variables.

Verification & Testing

  • ✅ Build Verification: Verified clean build via npm run build.
  • ✅ Extension Packaging: Verified addon packaging via web-ext build.
  • ✅ Runtime UI Check: Verified in Firefox settings page (about:debugging) that all UI strings and CSS variable labels render in clean, accurate Russian text.

Related Issue / Context

Fixes missing untranslated English fallbacks when running Sidebery with the Russian locale enabled.

Enable dynamic translation lookup (styles.var_label.<CSS_VAR_NAME>) for CSS custom property labels in the styles editor component, with fallback to formatted variable name strings.
Add missing Russian localization entries across dict.browser.json, dict.common.ts, dict.sidebar.ts, and dict.setup-page.ts:

- Added missing browser keybinding descriptions in dict.browser.json (tab/bookmark sorting, template copy, panel shortcuts).
- Added missing context menu, notification, and sync entries in dict.common.ts and dict.sidebar.ts.
- Added missing setup page settings strings (search persistence, tab scroll behaviors, badge rules notes, OAuth guide).
- Added comprehensive Russian translations for over 130 CSS custom property labels in dict.setup-page.ts.

@kikvinn kikvinn left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У тебя похоже нейронка переписала версию плагина и ссылки на плагин на свои, верни их как были. И в следующий раз смотри что тебе нейронка пишет

@Nikitamce

Copy link
Copy Markdown
Author

У тебя похоже нейронка переписала версию плагина и ссылки на плагин на свои, верни их как были. И в следующий раз смотри что тебе нейронка пишет

надеюсь получилось исправить

@kikvinn kikvinn left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ошибки что нашел, у тебя неправильный перевод был, суть на английском была совершенно другой. в следующий раз хорошенько проверь перед тем как присылать, это ОЧЕНЬ грубые ошибки

Comment thread src/_locales/dict.browser.json
Comment thread src/_locales/dict.browser.json Outdated
Comment thread src/_locales/dict.browser.json Outdated
Comment thread src/_locales/dict.browser.json Outdated
Comment thread src/_locales/dict.browser.json Outdated
Comment thread src/_locales/dict.common.ts
Comment thread src/_locales/dict.setup-page.ts Outdated
Comment thread src/_locales/dict.setup-page.ts Outdated
Comment thread src/_locales/dict.setup-page.ts Outdated
Comment thread src/_locales/dict.setup-page.ts Outdated

@kikvinn kikvinn left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

моя ошибка, не увидел что часть кода свернута. У тебя там правильно было написано

Nikitamce and others added 16 commits July 29, 2026 18:22
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
Co-authored-by: kikvinn <76880097+kikvinn@users.noreply.github.com>
@Nikitamce
Nikitamce requested a review from kikvinn July 29, 2026 17:42
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.

2 participants