diff --git a/packages/next/src/form/index.tsx b/packages/next/src/form/index.tsx index fbd40abc60e..dc7b0e25dbe 100644 --- a/packages/next/src/form/index.tsx +++ b/packages/next/src/form/index.tsx @@ -25,7 +25,8 @@ export const Form: React.FC = ({ previewTextPlaceholder, ...props }) => { - const lang = (ConfigProvider as any).getContext()?.locale?.momentLocale + const lang = + (ConfigProvider as any).getContext()?.locale?.momentLocale ?? 'zh-CN' useMemo(() => { const validateLanguage = getValidateLocaleIOSCode(lang) setValidateLanguage(validateLanguage)