feat(i18n): add Russian UI and harden localization

This commit is contained in:
Arthur Koba
2026-10-25 22:35:32 +03:00
parent 65a96670d5
commit b4e94076c9
115 changed files with 7767 additions and 993 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import { locales } from '@/i18n/config';
import { getRuntimeTranslator, runtimeText } from '@/i18n/runtime';
/**
* API 错误类型定义
@@ -126,7 +127,7 @@ export function isCancelError(error: unknown): boolean {
(('__CANCEL__' in error &&
(error as { __CANCEL__?: boolean }).__CANCEL__ === true) ||
('message' in error &&
(['en', 'zh-CN'] as const).some(
locales.some(
(locale) =>
(error as { message?: string }).message ===
getRuntimeTranslator(locale)('request_canceled_5892f9b1'),