import React from 'react'; import { Input } from 'antd'; import SemanticPreview from '../../../.dumi/components/SemanticPreview'; import useLocale from '../../../.dumi/hooks/useLocale'; const locales = { cn: { textarea: '输入框元素', count: '文字计数元素', }, en: { textarea: 'textarea element', count: 'count element', }, }; const App: React.FC = () => { const [locale] = useLocale(locales); return ( ); }; export default App;