import { useMemo } from 'react';
import merge from 'lodash/merge';

const PatchEnLocale = {
  Modal: {
    okText: "OK",
    justOkText: "OK"
  },
  Popconfirm: {
    okText: "OK"
    // ← 需要修改
  },
  DatePicker: {
    lang: {
      ok: "OK"
      // ← 需要修改
    }
  },
  Calendar: {
    lang: {
      ok: "OK"
    }
  }
};
const useAntdPatchEnLocales = (enLocale) => {
  return useMemo(() => merge(enLocale, PatchEnLocale), [enLocale]);
};

export { useAntdPatchEnLocales };
