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
+4 -2
View File
@@ -2,7 +2,7 @@
import * as React from 'react';
import { useLocale } from 'next-intl';
import { enUS, zhCN } from 'date-fns/locale';
import { enUS, ru, zhCN } from 'react-day-picker/locale';
import {
ChevronDownIcon,
ChevronLeftIcon,
@@ -27,7 +27,9 @@ function Calendar({
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
}) {
const uiLocale = useLocale();
const locale = localeOverride ?? (uiLocale === 'zh-CN' ? zhCN : enUS);
const locale =
localeOverride ??
(uiLocale === 'zh-CN' ? zhCN : uiLocale === 'ru' ? ru : enUS);
const defaultClassNames = getDefaultClassNames();
return (