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
+5 -1
View File
@@ -1,5 +1,7 @@
'use client';
import { useTranslations } from 'next-intl';
import * as React from 'react';
import * as SheetPrimitive from '@radix-ui/react-dialog';
import { XIcon } from 'lucide-react';
@@ -52,6 +54,8 @@ function SheetContent({
}: React.ComponentProps<typeof SheetPrimitive.Content> & {
side?: 'top' | 'right' | 'bottom' | 'left';
}) {
const uiText = useTranslations('runtime');
return (
<SheetPortal>
<SheetOverlay />
@@ -74,7 +78,7 @@ function SheetContent({
{children}
<SheetPrimitive.Close className='ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none'>
<XIcon className='size-4' />
<span className='sr-only'>Close</span>
<span className='sr-only'>{uiText('ui_closeLabel')}</span>
</SheetPrimitive.Close>
</SheetPrimitive.Content>
</SheetPortal>