/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("../locale/lang/en-US.js"),t=require("../ConfigProvider/src/constants.js"),o=require("../node_modules/lodash-es/get.js"),l=r=>(t,o)=>s(t,o,e.unref(r)),s=(e,r,t)=>o.default(t,e,e).replace(/\{(\w+)\}/g,(e,t)=>`${r?.[t]??`{${t}}`}`),a=r=>({lang:e.computed(()=>e.unref(r).name),locale:e.isRef(r)?r:e.ref(r),t:l(r)});exports.buildLocaleContext=a,exports.buildTranslator=l,exports.translate=s,exports.useLocale=o=>{const l=o||e.inject(t.localeContextKey,e.ref());return a(e.computed(()=>l.value||r.default))};