import { FormControl, FormField, FormItem, FormLabel, } from '@/components/ui/form'; import { MultiSelect } from '@/components/ui/multi-select'; import { cn } from '@/lib/utils'; import { useFormContext } from 'react-hook-form'; import { useTranslation } from 'react-i18next'; const Languages = [ 'English', 'Chinese', 'Spanish', 'French', 'German', 'Japanese', 'Korean', 'Vietnamese', ]; const options = Languages.map((x) => ({ label: x, value: x })); type CrossLanguageItemProps = { name?: string; vertical?: boolean; }; export const CrossLanguageFormField = ({ name = 'prompt_config.cross_languages', vertical = true, }: CrossLanguageItemProps) => { const { t } = useTranslation(); const form = useFormContext(); return ( ( {t('chat.crossLanguage')} )} /> ); };