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
+8 -4
View File
@@ -1,6 +1,7 @@
'use client';
import * as React from 'react';
import { useTranslations } from 'next-intl';
import { Command as CommandPrimitive } from 'cmdk';
import { SearchIcon } from 'lucide-react';
import { motion } from 'motion/react';
@@ -31,8 +32,8 @@ function Command({
}
function CommandDialog({
title = 'Command Palette',
description = 'Search for a command to run...',
title,
description,
children,
className,
showCloseButton = false,
@@ -45,11 +46,14 @@ function CommandDialog({
showCloseButton?: boolean;
shouldFilter?: boolean;
}) {
const t = useTranslations('runtime');
return (
<Dialog {...props}>
<DialogHeader className='sr-only'>
<DialogTitle>{title}</DialogTitle>
<DialogDescription>{description}</DialogDescription>
<DialogTitle>{title ?? t('ui_commandPalette')}</DialogTitle>
<DialogDescription>
{description ?? t('ui_commandSearch')}
</DialogDescription>
</DialogHeader>
<DialogContent
className={cn('overflow-hidden p-0 shadow-2xl', className)}