mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Fix(i18n): Added new translations #3221 - Added and updated internationalization translations in multiple components ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --------- Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
28 lines
641 B
TypeScript
28 lines
641 B
TypeScript
import {
|
|
FormControl,
|
|
FormField,
|
|
FormItem,
|
|
FormLabel,
|
|
} from '@/components/ui/form';
|
|
import { Textarea } from '@/components/ui/textarea';
|
|
import { t } from 'i18next';
|
|
import { useFormContext } from 'react-hook-form';
|
|
|
|
export function DescriptionField() {
|
|
const form = useFormContext();
|
|
return (
|
|
<FormField
|
|
control={form.control}
|
|
name={`description`}
|
|
render={({ field }) => (
|
|
<FormItem className="flex-1">
|
|
<FormLabel>{t('flow.description')}</FormLabel>
|
|
<FormControl>
|
|
<Textarea {...field}></Textarea>
|
|
</FormControl>
|
|
</FormItem>
|
|
)}
|
|
/>
|
|
);
|
|
}
|