Another way to change locale is from ConfigProvider:
import pt from "antd/locale/pt_BR"; <ConfigProvider locale={pt}> ... </ConfigProvider>