import{withInstall as e}from"../_util/type.mjs";import t from"../_util/warning.mjs";import{changeConfirmLocale as n}from"../modal/locale.mjs";import{defineComponent as r,provide as i,reactive as a,watch as o}from"vue";var s=`internalMark`,c=r({compatConfig:{MODE:3},name:`ALocaleProvider`,props:{locale:{type:Object},ANT_MARK__:String},setup(e,{slots:r}){t(e.ANT_MARK__===s,`LocaleProvider`,"`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");let c=a({antLocale:{...e.locale,exist:!0},ANT_MARK__:s});return i(`localeData`,c),o(()=>e.locale,e=>{n(e&&e.Modal),c.antLocale={...e,exist:!0}},{immediate:!0}),()=>r.default?.()}});c.install=function(e){return e.component(c.name,c),e};var l=e(c);export{s as ANT_MARK,l as default};