Skip to content

Commit 1c1e4f0

Browse files
committed
Fixes
1 parent d459cfc commit 1c1e4f0

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Use with **Qwen Code:**
7070
- **Cross-platform** - Desktop app and web interface
7171
- **File @-mentions** - Reference files directly in conversations
7272
- **MCP server integration** - Model Context Protocol support
73-
- **Multi-language UI** - English, Chinese (Simplified & Traditional)
73+
- **Multi-language UI** - English, Chinese (Simplified & Traditional), Russian
7474

7575
## Development & Building
7676

crates/backend/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,6 @@ impl<E: EventEmitter + 'static> GeminiBackend<E> {
483483
let output = {
484484
#[cfg(windows)]
485485
{
486-
use std::os::windows::process::CommandExt;
487486
const CREATE_NO_WINDOW: u32 = 0x08000000;
488487
Command::new("cmd.exe")
489488
.args(["/C", &command])

frontend/src/components/common/SettingsDialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ export const SettingsDialog: React.FC<SettingsDialogProps> = ({
252252
<SelectItem value="en">English</SelectItem>
253253
<SelectItem value="zh-CN">简体中文</SelectItem>
254254
<SelectItem value="zh-TW">繁體中文</SelectItem>
255+
<SelectItem value="ru">Русский</SelectItem>
255256
</SelectContent>
256257
</Select>
257258
</div>

frontend/src/i18n/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ export {
99
// Re-export commonly used react-i18next functions for convenience
1010
export { useTranslation, Trans, Translation } from "react-i18next";
1111

12-
// Import the type for use in function definitions
13-
import type { SupportedLanguage } from "./config";
12+
// Import the type and constant for use in function definitions
13+
import { supportedLanguages, type SupportedLanguage } from "./config";
1414

1515
// Export language detection utility
1616
export const isValidLanguage = (lang: string): lang is SupportedLanguage => {
17-
return ["en", "zh-CN", "zh-TW", "ru"].includes(lang);
17+
return supportedLanguages.includes(lang as SupportedLanguage);
1818
};
1919

2020
// Export language display utility

0 commit comments

Comments
 (0)