Open chenyong0923 opened 2 weeks ago
Maybe you need to reload the page after changing the language.
Maybe you need to reload the page after changing the language.
This is official and it seems to have a problem. You can try more times. The solution I provided above should resolve the issue.show code
`typescript import React, { useMemo, useRef } from 'react'; import { Form, InputGroup } from 'react-bootstrap'; import type { FC } from 'react'; import { useTranslation } from 'react-i18next';
interface CustomFileInputProps { value: string; onChange: React.ChangeEventHandler;
isValid?: boolean;
isInvalid?: boolean;
}
const CustomFileInput: FC = ({
onChange,
value,
...rest
}) => {
const { t } = useTranslation('translation', { keyPrefix: 'editor' });
const fileName = useMemo(() => {
return value ?? t('file_upload.text');
}, [value]);
const fileRef = useRef(null);
return (