/*!
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
*/
import{computed as o,unref as e,isRef as r,ref as t,inject as n}from"vue";import s from"../locale/lang/en-US.js";import{localeContextKey as l}from"../ConfigProvider/src/constants.js";import m from"../node_modules/lodash-es/get.js";const a=o=>(r,t)=>c(r,t,e(o)),c=(o,e,r)=>m(r,o,o).replace(/\{(\w+)\}/g,(o,r)=>`${e?.[r]??`{${r}}`}`),i=n=>({lang:o(()=>e(n).name),locale:r(n)?n:t(n),t:a(n)}),p=e=>{const r=e||n(l,t());return i(o(()=>r.value||s))};export{i as buildLocaleContext,a as buildTranslator,c as translate,p as useLocale};