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