Date and Link Field is not working in portal page with frappe dialog

Date and Link Field is not working in portal page with frappe dialog

Uncaught TypeError: Cannot read property ‘language’ of undefined
at set_date_options (date.js:44)
at s.make_input (date.js:6)
at s.make_input (class.js:53)
at t (base_input.js:60)
at s.refresh_input (base_input.js:87)
at s.refresh (base_control.js:85)
at frappe.ui.Dialog.attach_doc_and_docfields (layout.js:325)
at frappe.ui.Dialog.refresh (layout.js:223)
at frappe.ui.Dialog.make (field_group.js:23)
at frappe.ui.Dialog.make (class.js:53)

this is the error when we use date field