Skip to content

Added Russian translation for the console#829

Merged
xieyxclack merged 5 commits intoagentscope-ai:mainfrom
seoeaa:main
Mar 6, 2026
Merged

Added Russian translation for the console#829
xieyxclack merged 5 commits intoagentscope-ai:mainfrom
seoeaa:main

Conversation

@seoeaa
Copy link
Copy Markdown
Contributor

@seoeaa seoeaa commented Mar 6, 2026

Description

This PR adds Russian language support and translates console messages to Russian.

@github-actions github-actions bot added the first-time-contributor PR created by a first time contributor label Mar 6, 2026
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces comprehensive Russian language support to the console, significantly enhancing its accessibility for Russian-speaking users. It involves the addition of a new locale file with extensive translations for the user interface, updates to the language switching mechanism to enable Russian selection, and modifications to the internationalization setup to correctly load and apply the new language content. This ensures a fully localized experience across various console features.

Highlights

  • Russian Language Support: Added a complete Russian translation file (ru.json) for the console's user interface, covering various sections like common terms, navigation, workspace, skills, and settings.
  • Language Switcher Enhancement: Updated the LanguageSwitcher component to include 'Русский' (Russian) as an selectable option and improved the logic for detecting and displaying the current language, including handling resolvedLanguage.
  • Internationalization Configuration: Modified the i18n.ts configuration to import and register the new Russian locale, making it available for use throughout the application.
  • Dynamic Content Localization: Integrated Russian translations for dynamic content, specifically the 'How to update CoPaw' section in the sidebar, ensuring that update instructions are available in Russian when selected.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • console/src/components/LanguageSwitcher.tsx
    • Improved language detection logic by using i18n.resolvedLanguage.
    • Added a new menu item for 'Русский' (Russian) in the language dropdown.
    • Refactored language label mapping to use a languageLabels object for better maintainability.
    • Adjusted selectedKeys in the Dropdown to correctly handle base language codes.
  • console/src/i18n.ts
    • Imported the new Russian translation file (./locales/ru.json).
    • Added the 'ru' locale to the resources object for i18next initialization.
  • console/src/layouts/Sidebar.tsx
    • Included Russian markdown content for the 'How to update CoPaw' section.
    • Updated the handleOpenUpdateModal function to dynamically select the correct language for fetching FAQ markdown, now including Russian.
  • console/src/locales/ru.json
    • Added a new file containing a comprehensive set of Russian translations for all console UI elements and messages.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Generative AI Prohibited Use Policy, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds Russian language support to the console, including UI translations and content for the update modal. The changes are well-implemented, introducing a new language resource and updating the language switcher and i18n configuration. I've identified a minor issue in the logic for displaying update information to Russian users, where they might be shown English content. I've provided a suggestion to ensure the translated Russian content is prioritized, improving the user experience.

Comment thread console/src/layouts/Sidebar.tsx
@xieyxclack
Copy link
Copy Markdown
Member

@xieyxclack xieyxclack merged commit c4f565c into agentscope-ai:main Mar 6, 2026
3 checks passed
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 6, 2026

Welcome to CoPaw! 🎉

Thank you @seoeaa for your first contribution! Your PR has been merged. 🚀

We'd love to give you a shout-out in our release notes! If you're comfortable sharing, please reply to this comment with your social media handles using the format below:

discord: your_discord_handle
x: your_x_handle
xiaohongshu: your_xiaohongshu_id

Note: Only share what you're comfortable with — all fields are optional.

Thanks again for helping make CoPaw better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first-time-contributor PR created by a first time contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants