@x18n/ui 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -1
- package/dist/nitro.json +1 -1
- package/dist/public/200.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_nuxt/{CU-cHgDp.js → 6DTeintI.js} +1 -1
- package/dist/public/_nuxt/{C059D2ly.js → AdR9tqED.js} +1 -1
- package/dist/public/_nuxt/{D4W_YgBv.js → BH143Pz-.js} +1 -1
- package/dist/public/_nuxt/BHxb101O.js +1 -0
- package/dist/public/_nuxt/{D3lsgOGg.js → BQbrRyj1.js} +1 -1
- package/dist/public/_nuxt/Boxecvzt.js +1 -0
- package/dist/public/_nuxt/{BtGb9LkL.js → BuVS4UTW.js} +1 -1
- package/dist/public/_nuxt/{BqPdh3b3.js → C3YrgNlB.js} +1 -1
- package/dist/public/_nuxt/{D5tpRc1q.js → C5AT5PNH.js} +1 -1
- package/dist/public/_nuxt/{BWdW6dXs.js → CAeV2zG7.js} +1 -1
- package/dist/public/_nuxt/{eVN_U-F6.js → CugIO4Ok.js} +1 -1
- package/dist/public/_nuxt/{Bkjpr8TV.js → D08T24dG.js} +1 -1
- package/dist/public/_nuxt/{Cnqs6S_B.js → D8wRJGd0.js} +1 -1
- package/dist/public/_nuxt/D9175g8g.js +1 -0
- package/dist/public/_nuxt/{DsqCc3fC.js → DF0vjjh8.js} +1 -1
- package/dist/public/_nuxt/{Dc1J86T9.js → DFNwy14e.js} +1 -1
- package/dist/public/_nuxt/{Eg7r6GmC.js → DPc4aOpP.js} +1 -1
- package/dist/public/_nuxt/{BR2xHYez.js → DSHArhRM.js} +1 -1
- package/dist/public/_nuxt/{Cr_IeTC5.js → DvBiEoxc.js} +1 -1
- package/dist/public/_nuxt/{0cXQUs3T.js → DwGgiVOP.js} +1 -1
- package/dist/public/_nuxt/{CGD9uLl4.js → EGsfZg42.js} +1 -1
- package/dist/public/_nuxt/{JMXpOiMg.js → HmocOjc4.js} +3 -2
- package/dist/public/_nuxt/{z56wu47o.js → MHlmqv3A.js} +1 -1
- package/dist/public/_nuxt/{Q_pa0PYz.js → UNeUdORH.js} +4 -4
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/3aca01cb-a9af-4da3-9d17-d110d7e229c4.json +1 -0
- package/dist/public/_nuxt/entry.O6-qt5XN.css +1 -0
- package/dist/public/_nuxt/{CcXhso-T.js → f6bf8PNO.js} +1 -1
- package/dist/public/_nuxt/mUMfez_o.js +1 -0
- package/dist/public/index.html +1 -1
- package/package.json +4 -4
- package/dist/public/_nuxt/BJFGPxOj.js +0 -1
- package/dist/public/_nuxt/BSomwWYk.js +0 -1
- package/dist/public/_nuxt/builds/meta/235d93ab-29e8-4de8-b81b-d46616104d4c.json +0 -1
- package/dist/public/_nuxt/entry.ByHxb6Pl.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,Ct as t,E as n,Et as r,F as i,H as a,M as o,P as s,Q as c,R as l,T as u,Tt as d,U as f,_ as p,c as m,d as h,h as g,it as _,m as v,r as y,s as b,u as x,wt as ee,y as te,z as S}from"./B4prFwj0.js";import{a as C,i as w,o as T,s as E}from"./DoHg1T7s.js";import{d as ne,u as re}from"./D4dwYDex.js";import{D as ie,S as D,h as ae,m as oe,n as se,t as O}from"./DsqCc3fC.js";import{n as ce}from"#entry";import{t as le}from"./CcXhso-T.js";import{i as k,n as ue,r as de}from"./Bkjpr8TV.js";import{t as fe}from"./C7ReGOzp.js";var A={class:`inline-flex cursor-pointer items-center gap-2 text-xs select-none`},j=p({__name:`UiToggle`,props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let n=l(e,`modelValue`);return(e,r)=>(o(),h(`label`,A,[f(m(`input`,{"onUpdate:modelValue":r[0]||=e=>n.value=e,type:`checkbox`,class:`peer sr-only`},null,512),[[w,n.value]]),m(`span`,{class:t([`relative h-4 w-7 border transition-colors peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-[var(--x-fg)]`,n.value?`border-inverse bg-inverse`:`border-strong bg-base`])},[m(`span`,{class:t([`absolute top-[2px] size-[10px] transition-all`,n.value?`left-[14px] bg-base`:`left-[2px] bg-inverse`])},null,2)],2),i(e.$slots,`default`)]))}}),pe={class:`h-full flex flex-col`},me={class:`shrink-0 flex flex-wrap items-center gap-3 border-b border-base px-4 py-2`},he={class:`input w-80 flex items-center gap-2 focus-within:border-inverse`},ge=[`placeholder`,`aria-label`],_e=[`aria-label`],ve={value:``},ye=[`value`],be=[`aria-label`],xe={value:``},Se=[`value`],Ce={class:`font-mono text-xs color-muted tabular-nums`},we={key:0,class:`shrink-0 flex items-center gap-2 border-b border-base px-4 py-1.5 color-warn`,role:`alert`},Te={class:`color-base`},Ee=[`aria-label`,`aria-rowcount`],De={class:`label flex items-center px-4`,role:`columnheader`},Oe={class:`label color-base`},ke={key:0,class:`badge`},Ae=[`aria-rowindex`,`data-key`],je=[`title`,`onClick`,`onDblclick`],Me={class:`truncate`},Ne=[`title`],Pe=[`title`],Fe=[`data-locale`,`onClick`,`onDblclick`],Ie=[`aria-label`],Le=[`title`],Re=[`title`],ze={key:0,class:`p-4 color-muted`},Be={class:`shrink-0 flex gap-4 border-t border-base px-4 py-1.5 font-mono text-[11px] color-muted`},Ve={key:0},M=32,N=p({__name:`index`,setup(i){let l=re(),p=ne(),w=oe((e,t)=>e.keys(t)),A=c(``),N=c(``),P=c(typeof l.query.missing==`string`?l.query.missing:``),F=c(!1),I=c(!1),L=c(l.query.outdated!==void 0),R=c(`key`),He=b(()=>[{value:`key`,label:D(`keys.sortKey`)},{value:`recent`,label:D(`keys.sortRecent`)}]),Ue=b(()=>(w.value?.rows??[]).some(e=>e.changedAt!==void 0)),z=b(()=>ae.value.map(e=>e.code)),B=b(()=>[...new Set((w.value?.rows??[]).flatMap(e=>e.namespace??[]))].sort()),V=b(()=>{let e=A.value.trim(),t=(w.value?.rows??[]).filter(e=>(!N.value||e.namespace===N.value)&&(!P.value||!z.value.includes(P.value)||e.missing.includes(P.value))&&(!F.value||e.unused)&&(!I.value||e.diagnostics>0)&&(!L.value||e.outdated.some(e=>z.value.includes(e))));return e?t.map(t=>{let n=Object.values(t.values).map(t=>k(e,String(t))/2);return{row:t,score:Math.max(k(e,t.key),...n)}}).filter(e=>e.score>=0).sort((e,t)=>t.score-e.score).map(e=>e.row):R.value===`recent`?[...t].sort((e,t)=>(t.changedAt??0)-(e.changedAt??0)):t}),{list:We,containerProps:H,wrapperProps:Ge,scrollTo:Ke}=ie(V,{itemHeight:M,overscan:12}),U=c({row:0,col:0}),W=c(),G=c(),K=S(`searchInput`),q=S(`editor`);e(V,()=>{U.value={row:Math.min(U.value.row,Math.max(V.value.length-1,0)),col:U.value.col}});let J=b(()=>z.value.length?`minmax(16rem, 1.2fr) repeat(${z.value.length}, minmax(12rem, 1fr))`:`1fr`);function Y(e,t){let n={row:Math.max(0,Math.min(V.value.length-1,e)),col:Math.max(0,Math.min(z.value.length,t))};U.value=n;let r=H.ref.value;if(r){let e=n.row*M;(e<r.scrollTop||e+64>r.scrollTop+r.clientHeight)&&Ke(n.row)}}async function X(e,t){if(!O.value?.capabilities.write)return;let r=e.values[t];W.value={key:e.key,locale:t,draft:r==null?``:String(r)},await n(),q.value?.[0]?.focus()}async function Z(e=!1){let t=W.value;if(!t)return;W.value=void 0;let n=await de(t.key,t.locale,t.draft,e);G.value=n.applied?void 0:{key:t.key,locale:t.locale,value:t.draft,message:n.problems.map(ue).join(`; `)},H.ref.value?.focus()}function qe(){W.value=void 0,H.ref.value?.focus()}async function Je(){let e=G.value;e&&(W.value={key:e.key,locale:e.locale,draft:e.value},await Z(!0))}function Q(e){p.push(`/keys/${encodeURIComponent(e.key)}`)}function $(){let e=V.value[U.value.row];if(!e)return;let t=z.value[U.value.col-1];t?X(e,t):Q(e)}let Ye={ArrowDown:()=>Y(U.value.row+1,U.value.col),ArrowUp:()=>Y(U.value.row-1,U.value.col),ArrowRight:()=>Y(U.value.row,U.value.col+1),ArrowLeft:()=>Y(U.value.row,U.value.col-1),PageDown:()=>Y(U.value.row+20,U.value.col),PageUp:()=>Y(U.value.row-20,U.value.col),Home:()=>Y(0,U.value.col),End:()=>Y(V.value.length-1,U.value.col),Enter:$,F2:$,o:()=>V.value[U.value.row]&&Q(V.value[U.value.row]),j:()=>Y(U.value.row+1,U.value.col),k:()=>Y(U.value.row-1,U.value.col),"/":()=>K.value?.focus()};function Xe(e){if(W.value||e.metaKey||e.ctrlKey||e.altKey)return;let t=Ye[e.key];t&&(e.preventDefault(),t())}function Ze(e){e.stopPropagation(),e.key===`Escape`?(e.preventDefault(),qe()):(e.key===`Enter`||e.key===`Tab`)&&(e.preventDefault(),Z().then(()=>{e.key===`Tab`&&Y(U.value.row,U.value.col+1)}))}return(e,n)=>(o(),h(`div`,pe,[m(`div`,me,[m(`label`,he,[n[12]||=m(`span`,{class:`i-ph-magnifying-glass-duotone color-faint`},null,-1),f(m(`input`,{ref_key:`searchInput`,ref:K,"onUpdate:modelValue":n[0]||=e=>A.value=e,class:`flex-auto bg-transparent outline-none`,placeholder:_(D)(`keys.search`),"aria-label":_(D)(`keys.search`),onKeydown:[n[1]||=E(e=>_(H).ref.value?.focus(),[`escape`]),n[2]||=E(e=>_(H).ref.value?.focus(),[`enter`])]},null,40,ge),[[T,A.value]]),n[13]||=m(`kbd`,{class:`badge`},`/`,-1)]),B.value.length?f((o(),h(`select`,{key:0,"onUpdate:modelValue":n[3]||=e=>N.value=e,class:`input text-xs`,"aria-label":_(D)(`keys.namespace`)},[m(`option`,ve,r(_(D)(`keys.allNamespaces`)),1),(o(!0),h(y,null,s(B.value,e=>(o(),h(`option`,{key:e,value:e},r(e),9,ye))),128))],8,_e)),[[C,N.value]]):x(``,!0),f(m(`select`,{"onUpdate:modelValue":n[4]||=e=>P.value=e,class:`input text-xs`,"aria-label":_(D)(`keys.missingIn`)},[m(`option`,xe,r(_(D)(`keys.anyLocale`)),1),(o(!0),h(y,null,s(z.value,e=>(o(),h(`option`,{key:e,value:e},r(_(D)(`keys.missingInLocale`,{locale:e})),9,Se))),128))],8,be),[[C,P.value]]),g(j,{modelValue:F.value,"onUpdate:modelValue":n[5]||=e=>F.value=e},{default:a(()=>[v(r(_(D)(`keys.unused`)),1)]),_:1},8,[`modelValue`]),g(j,{modelValue:I.value,"onUpdate:modelValue":n[6]||=e=>I.value=e},{default:a(()=>[v(r(_(D)(`keys.withDiagnostics`)),1)]),_:1},8,[`modelValue`]),Ue.value?(o(),h(y,{key:1},[g(j,{modelValue:L.value,"onUpdate:modelValue":n[7]||=e=>L.value=e},{default:a(()=>[v(r(_(D)(`keys.outdated`)),1)]),_:1},8,[`modelValue`]),g(fe,{modelValue:R.value,"onUpdate:modelValue":n[8]||=e=>R.value=e,options:He.value,label:_(D)(`keys.sort`)},null,8,[`modelValue`,`options`,`label`])],64)):x(``,!0),n[14]||=m(`div`,{class:`flex-auto`},null,-1),m(`span`,Ce,r(_(D)(`keys.count`,{shown:V.value.length,total:_(w)?.rows.length??0})),1)]),G.value?(o(),h(`div`,we,[n[15]||=m(`span`,{class:`i-ph-warning-duotone`},null,-1),m(`span`,Te,r(_(D)(`edit.rejected`,{key:G.value.key,locale:G.value.locale,message:G.value.message})),1),m(`button`,{class:`btn-outline h-7`,onClick:Je},r(_(D)(`edit.saveAnyway`)),1),m(`button`,{class:`btn-ghost h-7`,onClick:n[9]||=e=>G.value=void 0},r(_(D)(`edit.dismiss`)),1)])):x(``,!0),m(`div`,u(_(H),{class:`flex-auto min-h-0 of-auto outline-none`,tabindex:`0`,role:`grid`,"aria-label":_(D)(`keys.grid`),"aria-rowcount":V.value.length,onKeydown:Xe}),[m(`div`,{class:`sticky top-0 z-20 grid border-b border-strong bg-base`,style:d({gridTemplateColumns:J.value,height:`${M}px`}),role:`row`},[m(`div`,De,r(_(D)(`keys.key`)),1),(o(!0),h(y,null,s(z.value,e=>(o(),h(`div`,{key:e,class:`flex items-center gap-2 border-l border-base px-3`,role:`columnheader`},[g(ce,{code:e},null,8,[`code`]),m(`span`,Oe,r(e),1),e===_(se)?.sourceLocale?(o(),h(`span`,ke,r(_(D)(`overview.source`)),1)):x(``,!0)]))),128))],4),m(`div`,ee(te(_(Ge))),[(o(!0),h(y,null,s(_(We),({data:e,index:i})=>(o(),h(`div`,{key:e.key,class:t([`grid border-b border-base`,i===U.value.row?`bg-hover`:``]),style:d({gridTemplateColumns:J.value,height:`${M}px`}),role:`row`,"aria-rowindex":i+1,"data-key":e.key},[m(`div`,{class:t([`flex min-w-0 cursor-pointer items-center gap-1.5 px-4 font-mono text-xs`,i===U.value.row&&U.value.col===0?`outline outline-1 outline-[var(--x-fg)] -outline-offset-1`:``]),role:`gridcell`,title:e.key,onClick:e=>Y(i,0),onDblclick:t=>Q(e)},[m(`span`,Me,r(e.key),1),e.unused?(o(),h(`span`,{key:0,class:`i-ph-ghost-duotone shrink-0 color-faint`,title:_(D)(`keys.unusedHint`)},null,8,Ne)):x(``,!0),e.diagnostics?(o(),h(`span`,{key:1,class:`badge shrink-0 border-current color-error`,title:_(D)(`keys.diagnosticsHint`)},r(e.diagnostics),9,Pe)):x(``,!0)],42,je),(o(!0),h(y,null,s(z.value,(r,a)=>(o(),h(`div`,{key:r,class:t([`flex min-w-0 items-center border-l border-base px-3`,i===U.value.row&&U.value.col===a+1?`outline outline-1 outline-[var(--x-fg)] -outline-offset-1`:``]),role:`gridcell`,"data-locale":r,onClick:e=>Y(i,a+1),onDblclick:t=>X(e,r)},[W.value&&W.value.key===e.key&&W.value.locale===r?f((o(),h(`input`,{key:0,ref_for:!0,ref_key:`editor`,ref:q,"onUpdate:modelValue":n[10]||=e=>W.value.draft=e,class:`w-full bg-transparent outline-none`,"aria-label":_(D)(`keys.editValue`,{key:e.key,locale:r}),onKeydown:Ze,onBlur:n[11]||=e=>Z()},null,40,Ie)),[[T,W.value.draft]]):(o(),h(y,{key:1},[m(`span`,{class:`truncate`,title:String(e.values[r]??``)},[g(le,{value:e.values[r],inline:``},null,8,[`value`])],8,Le),e.outdated.includes(r)?(o(),h(`span`,{key:0,class:`ml-auto shrink-0 pl-2 color-warn`,title:_(D)(`history.outdatedHint`)},[...n[16]||=[m(`span`,{class:`i-ph-clock-counter-clockwise-duotone block`},null,-1)]],8,Re)):x(``,!0)],64))],42,Fe))),128))],14,Ae))),128))],16),_(w)&&!V.value.length?(o(),h(`p`,ze,r(_(D)(`keys.empty`)),1)):x(``,!0)],16,Ee),m(`div`,Be,[m(`span`,null,r(_(D)(`keys.helpMove`)),1),_(O)?.capabilities.write?(o(),h(`span`,Ve,r(_(D)(`keys.helpEdit`)),1)):x(``,!0),m(`span`,null,r(_(D)(`keys.helpOpen`)),1),m(`span`,null,r(_(D)(`keys.helpSearch`)),1)])]))}});export{N as default};
|
|
1
|
+
import{B as e,Ct as t,E as n,Et as r,F as i,H as a,M as o,P as s,Q as c,R as l,T as u,Tt as d,U as f,_ as p,c as m,d as h,h as g,it as _,m as v,r as y,s as b,u as x,wt as ee,y as te,z as S}from"./B4prFwj0.js";import{a as C,i as w,o as T,s as E}from"./DoHg1T7s.js";import{d as ne,u as re}from"./D4dwYDex.js";import{D as ie,S as D,h as ae,m as oe,n as se,t as O}from"./DF0vjjh8.js";import{n as ce}from"#entry";import{t as le}from"./f6bf8PNO.js";import{i as k,n as ue,r as de}from"./D08T24dG.js";import{t as fe}from"./C7ReGOzp.js";var A={class:`inline-flex cursor-pointer items-center gap-2 text-xs select-none`},j=p({__name:`UiToggle`,props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let n=l(e,`modelValue`);return(e,r)=>(o(),h(`label`,A,[f(m(`input`,{"onUpdate:modelValue":r[0]||=e=>n.value=e,type:`checkbox`,class:`peer sr-only`},null,512),[[w,n.value]]),m(`span`,{class:t([`relative h-4 w-7 border transition-colors peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-[var(--x-fg)]`,n.value?`border-inverse bg-inverse`:`border-strong bg-base`])},[m(`span`,{class:t([`absolute top-[2px] size-[10px] transition-all`,n.value?`left-[14px] bg-base`:`left-[2px] bg-inverse`])},null,2)],2),i(e.$slots,`default`)]))}}),pe={class:`h-full flex flex-col`},me={class:`shrink-0 flex flex-wrap items-center gap-3 border-b border-base px-4 py-2`},he={class:`input w-80 flex items-center gap-2 focus-within:border-inverse`},ge=[`placeholder`,`aria-label`],_e=[`aria-label`],ve={value:``},ye=[`value`],be=[`aria-label`],xe={value:``},Se=[`value`],Ce={class:`font-mono text-xs color-muted tabular-nums`},we={key:0,class:`shrink-0 flex items-center gap-2 border-b border-base px-4 py-1.5 color-warn`,role:`alert`},Te={class:`color-base`},Ee=[`aria-label`,`aria-rowcount`],De={class:`label flex items-center px-4`,role:`columnheader`},Oe={class:`label color-base`},ke={key:0,class:`badge`},Ae=[`aria-rowindex`,`data-key`],je=[`title`,`onClick`,`onDblclick`],Me={class:`truncate`},Ne=[`title`],Pe=[`title`],Fe=[`data-locale`,`onClick`,`onDblclick`],Ie=[`aria-label`],Le=[`title`],Re=[`title`],ze={key:0,class:`p-4 color-muted`},Be={class:`shrink-0 flex gap-4 border-t border-base px-4 py-1.5 font-mono text-[11px] color-muted`},Ve={key:0},M=32,N=p({__name:`index`,setup(i){let l=re(),p=ne(),w=oe((e,t)=>e.keys(t)),A=c(``),N=c(``),P=c(typeof l.query.missing==`string`?l.query.missing:``),F=c(!1),I=c(!1),L=c(l.query.outdated!==void 0),R=c(`key`),He=b(()=>[{value:`key`,label:D(`keys.sortKey`)},{value:`recent`,label:D(`keys.sortRecent`)}]),Ue=b(()=>(w.value?.rows??[]).some(e=>e.changedAt!==void 0)),z=b(()=>ae.value.map(e=>e.code)),B=b(()=>[...new Set((w.value?.rows??[]).flatMap(e=>e.namespace??[]))].sort()),V=b(()=>{let e=A.value.trim(),t=(w.value?.rows??[]).filter(e=>(!N.value||e.namespace===N.value)&&(!P.value||!z.value.includes(P.value)||e.missing.includes(P.value))&&(!F.value||e.unused)&&(!I.value||e.diagnostics>0)&&(!L.value||e.outdated.some(e=>z.value.includes(e))));return e?t.map(t=>{let n=Object.values(t.values).map(t=>k(e,String(t))/2);return{row:t,score:Math.max(k(e,t.key),...n)}}).filter(e=>e.score>=0).sort((e,t)=>t.score-e.score).map(e=>e.row):R.value===`recent`?[...t].sort((e,t)=>(t.changedAt??0)-(e.changedAt??0)):t}),{list:We,containerProps:H,wrapperProps:Ge,scrollTo:Ke}=ie(V,{itemHeight:M,overscan:12}),U=c({row:0,col:0}),W=c(),G=c(),K=S(`searchInput`),q=S(`editor`);e(V,()=>{U.value={row:Math.min(U.value.row,Math.max(V.value.length-1,0)),col:U.value.col}});let J=b(()=>z.value.length?`minmax(16rem, 1.2fr) repeat(${z.value.length}, minmax(12rem, 1fr))`:`1fr`);function Y(e,t){let n={row:Math.max(0,Math.min(V.value.length-1,e)),col:Math.max(0,Math.min(z.value.length,t))};U.value=n;let r=H.ref.value;if(r){let e=n.row*M;(e<r.scrollTop||e+64>r.scrollTop+r.clientHeight)&&Ke(n.row)}}async function X(e,t){if(!O.value?.capabilities.write)return;let r=e.values[t];W.value={key:e.key,locale:t,draft:r==null?``:String(r)},await n(),q.value?.[0]?.focus()}async function Z(e=!1){let t=W.value;if(!t)return;W.value=void 0;let n=await de(t.key,t.locale,t.draft,e);G.value=n.applied?void 0:{key:t.key,locale:t.locale,value:t.draft,message:n.problems.map(ue).join(`; `)},H.ref.value?.focus()}function qe(){W.value=void 0,H.ref.value?.focus()}async function Je(){let e=G.value;e&&(W.value={key:e.key,locale:e.locale,draft:e.value},await Z(!0))}function Q(e){p.push(`/keys/${encodeURIComponent(e.key)}`)}function $(){let e=V.value[U.value.row];if(!e)return;let t=z.value[U.value.col-1];t?X(e,t):Q(e)}let Ye={ArrowDown:()=>Y(U.value.row+1,U.value.col),ArrowUp:()=>Y(U.value.row-1,U.value.col),ArrowRight:()=>Y(U.value.row,U.value.col+1),ArrowLeft:()=>Y(U.value.row,U.value.col-1),PageDown:()=>Y(U.value.row+20,U.value.col),PageUp:()=>Y(U.value.row-20,U.value.col),Home:()=>Y(0,U.value.col),End:()=>Y(V.value.length-1,U.value.col),Enter:$,F2:$,o:()=>V.value[U.value.row]&&Q(V.value[U.value.row]),j:()=>Y(U.value.row+1,U.value.col),k:()=>Y(U.value.row-1,U.value.col),"/":()=>K.value?.focus()};function Xe(e){if(W.value||e.metaKey||e.ctrlKey||e.altKey)return;let t=Ye[e.key];t&&(e.preventDefault(),t())}function Ze(e){e.stopPropagation(),e.key===`Escape`?(e.preventDefault(),qe()):(e.key===`Enter`||e.key===`Tab`)&&(e.preventDefault(),Z().then(()=>{e.key===`Tab`&&Y(U.value.row,U.value.col+1)}))}return(e,n)=>(o(),h(`div`,pe,[m(`div`,me,[m(`label`,he,[n[12]||=m(`span`,{class:`i-ph-magnifying-glass-duotone color-faint`},null,-1),f(m(`input`,{ref_key:`searchInput`,ref:K,"onUpdate:modelValue":n[0]||=e=>A.value=e,class:`flex-auto bg-transparent outline-none`,placeholder:_(D)(`keys.search`),"aria-label":_(D)(`keys.search`),onKeydown:[n[1]||=E(e=>_(H).ref.value?.focus(),[`escape`]),n[2]||=E(e=>_(H).ref.value?.focus(),[`enter`])]},null,40,ge),[[T,A.value]]),n[13]||=m(`kbd`,{class:`badge`},`/`,-1)]),B.value.length?f((o(),h(`select`,{key:0,"onUpdate:modelValue":n[3]||=e=>N.value=e,class:`input text-xs`,"aria-label":_(D)(`keys.namespace`)},[m(`option`,ve,r(_(D)(`keys.allNamespaces`)),1),(o(!0),h(y,null,s(B.value,e=>(o(),h(`option`,{key:e,value:e},r(e),9,ye))),128))],8,_e)),[[C,N.value]]):x(``,!0),f(m(`select`,{"onUpdate:modelValue":n[4]||=e=>P.value=e,class:`input text-xs`,"aria-label":_(D)(`keys.missingIn`)},[m(`option`,xe,r(_(D)(`keys.anyLocale`)),1),(o(!0),h(y,null,s(z.value,e=>(o(),h(`option`,{key:e,value:e},r(_(D)(`keys.missingInLocale`,{locale:e})),9,Se))),128))],8,be),[[C,P.value]]),g(j,{modelValue:F.value,"onUpdate:modelValue":n[5]||=e=>F.value=e},{default:a(()=>[v(r(_(D)(`keys.unused`)),1)]),_:1},8,[`modelValue`]),g(j,{modelValue:I.value,"onUpdate:modelValue":n[6]||=e=>I.value=e},{default:a(()=>[v(r(_(D)(`keys.withDiagnostics`)),1)]),_:1},8,[`modelValue`]),Ue.value?(o(),h(y,{key:1},[g(j,{modelValue:L.value,"onUpdate:modelValue":n[7]||=e=>L.value=e},{default:a(()=>[v(r(_(D)(`keys.outdated`)),1)]),_:1},8,[`modelValue`]),g(fe,{modelValue:R.value,"onUpdate:modelValue":n[8]||=e=>R.value=e,options:He.value,label:_(D)(`keys.sort`)},null,8,[`modelValue`,`options`,`label`])],64)):x(``,!0),n[14]||=m(`div`,{class:`flex-auto`},null,-1),m(`span`,Ce,r(_(D)(`keys.count`,{shown:V.value.length,total:_(w)?.rows.length??0})),1)]),G.value?(o(),h(`div`,we,[n[15]||=m(`span`,{class:`i-ph-warning-duotone`},null,-1),m(`span`,Te,r(_(D)(`edit.rejected`,{key:G.value.key,locale:G.value.locale,message:G.value.message})),1),m(`button`,{class:`btn-outline h-7`,onClick:Je},r(_(D)(`edit.saveAnyway`)),1),m(`button`,{class:`btn-ghost h-7`,onClick:n[9]||=e=>G.value=void 0},r(_(D)(`edit.dismiss`)),1)])):x(``,!0),m(`div`,u(_(H),{class:`flex-auto min-h-0 of-auto outline-none`,tabindex:`0`,role:`grid`,"aria-label":_(D)(`keys.grid`),"aria-rowcount":V.value.length,onKeydown:Xe}),[m(`div`,{class:`sticky top-0 z-20 grid border-b border-strong bg-base`,style:d({gridTemplateColumns:J.value,height:`${M}px`}),role:`row`},[m(`div`,De,r(_(D)(`keys.key`)),1),(o(!0),h(y,null,s(z.value,e=>(o(),h(`div`,{key:e,class:`flex items-center gap-2 border-l border-base px-3`,role:`columnheader`},[g(ce,{code:e},null,8,[`code`]),m(`span`,Oe,r(e),1),e===_(se)?.sourceLocale?(o(),h(`span`,ke,r(_(D)(`overview.source`)),1)):x(``,!0)]))),128))],4),m(`div`,ee(te(_(Ge))),[(o(!0),h(y,null,s(_(We),({data:e,index:i})=>(o(),h(`div`,{key:e.key,class:t([`grid border-b border-base`,i===U.value.row?`bg-hover`:``]),style:d({gridTemplateColumns:J.value,height:`${M}px`}),role:`row`,"aria-rowindex":i+1,"data-key":e.key},[m(`div`,{class:t([`flex min-w-0 cursor-pointer items-center gap-1.5 px-4 font-mono text-xs`,i===U.value.row&&U.value.col===0?`outline outline-1 outline-[var(--x-fg)] -outline-offset-1`:``]),role:`gridcell`,title:e.key,onClick:e=>Y(i,0),onDblclick:t=>Q(e)},[m(`span`,Me,r(e.key),1),e.unused?(o(),h(`span`,{key:0,class:`i-ph-ghost-duotone shrink-0 color-faint`,title:_(D)(`keys.unusedHint`)},null,8,Ne)):x(``,!0),e.diagnostics?(o(),h(`span`,{key:1,class:`badge shrink-0 border-current color-error`,title:_(D)(`keys.diagnosticsHint`)},r(e.diagnostics),9,Pe)):x(``,!0)],42,je),(o(!0),h(y,null,s(z.value,(r,a)=>(o(),h(`div`,{key:r,class:t([`flex min-w-0 items-center border-l border-base px-3`,i===U.value.row&&U.value.col===a+1?`outline outline-1 outline-[var(--x-fg)] -outline-offset-1`:``]),role:`gridcell`,"data-locale":r,onClick:e=>Y(i,a+1),onDblclick:t=>X(e,r)},[W.value&&W.value.key===e.key&&W.value.locale===r?f((o(),h(`input`,{key:0,ref_for:!0,ref_key:`editor`,ref:q,"onUpdate:modelValue":n[10]||=e=>W.value.draft=e,class:`w-full bg-transparent outline-none`,"aria-label":_(D)(`keys.editValue`,{key:e.key,locale:r}),onKeydown:Ze,onBlur:n[11]||=e=>Z()},null,40,Ie)),[[T,W.value.draft]]):(o(),h(y,{key:1},[m(`span`,{class:`truncate`,title:String(e.values[r]??``)},[g(le,{value:e.values[r],inline:``},null,8,[`value`])],8,Le),e.outdated.includes(r)?(o(),h(`span`,{key:0,class:`ml-auto shrink-0 pl-2 color-warn`,title:_(D)(`history.outdatedHint`)},[...n[16]||=[m(`span`,{class:`i-ph-clock-counter-clockwise-duotone block`},null,-1)]],8,Re)):x(``,!0)],64))],42,Fe))),128))],14,Ae))),128))],16),_(w)&&!V.value.length?(o(),h(`p`,ze,r(_(D)(`keys.empty`)),1)):x(``,!0)],16,Ee),m(`div`,Be,[m(`span`,null,r(_(D)(`keys.helpMove`)),1),_(O)?.capabilities.write?(o(),h(`span`,Ve,r(_(D)(`keys.helpEdit`)),1)):x(``,!0),m(`span`,null,r(_(D)(`keys.helpOpen`)),1),m(`span`,null,r(_(D)(`keys.helpSearch`)),1)])]))}});export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ct as e,Et as t,H as n,L as r,M as i,_ as a,c as o,d as s,it as c,l,m as u,r as d,s as f,u as p}from"./B4prFwj0.js";import{S as m,c as h,t as g}from"./
|
|
1
|
+
import{Ct as e,Et as t,H as n,L as r,M as i,_ as a,c as o,d as s,it as c,l,m as u,r as d,s as f,u as p}from"./B4prFwj0.js";import{S as m,c as h,t as g}from"./DF0vjjh8.js";var _=f(()=>!!(g.value?.capabilities.openInEditor&&h.value));function v(e,t=1,n=1){_.value&&g.value.openInEditor({project:h.value,path:e,line:t,column:n})}var y=[{match:/\.vue$/,name:`vue`,icon:`i-catppuccin:vue`},{match:/\.svelte$/,name:`svelte`,icon:`i-catppuccin:svelte`},{match:/\.astro$/,name:`astro`,icon:`i-catppuccin:astro`},{match:/\.tsx$/,name:`tsx`,icon:`i-catppuccin:typescript-react`},{match:/\.jsx$/,name:`jsx`,icon:`i-catppuccin:javascript-react`},{match:/\.d\.[cm]?ts$/,name:`dts`,icon:`i-catppuccin:typescript-def`},{match:/\.(?:test|spec)\.[cm]?[jt]sx?$/,name:`test`,icon:`i-catppuccin:typescript-test`},{match:/\.[cm]?ts$/,name:`ts`,icon:`i-catppuccin:typescript`},{match:/\.[cm]?js$/,name:`js`,icon:`i-catppuccin:javascript`},{match:/\.json[5c]?$/,name:`json`,icon:`i-catppuccin:json`},{match:/\.ya?ml$/,name:`yaml`,icon:`i-catppuccin:yaml`},{match:/\.toml$/,name:`toml`,icon:`i-catppuccin:toml`},{match:/\.md$/,name:`markdown`,icon:`i-catppuccin:markdown`},{match:/\.html?$/,name:`html`,icon:`i-catppuccin:html`},{match:/\.php$/,name:`php`,icon:`i-catppuccin:php`},{match:/\.rb$/,name:`ruby`,icon:`i-catppuccin:ruby`},{match:/\.(?:xml|xliff|xlf)$/,name:`xml`,icon:`i-catppuccin:xml`},{match:/\.properties$/,name:`properties`,icon:`i-catppuccin:properties`},{match:/\.(?:po|pot|strings|arb|txt)$/,name:`text`,icon:`i-catppuccin:text`}];function b(e){return y.find(t=>t.match.test(e))??{name:`file`,icon:`i-catppuccin:file`}}var x=[`title`],S=a({__name:`FileIcon`,props:{path:{}},setup(t){let n=t,r=f(()=>b(n.path));return(t,n)=>(i(),s(`span`,{class:e([`icon-catppuccin shrink-0`,r.value.icon]),title:r.value.name,"aria-hidden":`true`},null,10,x))}}),C={class:`truncate`},w={class:`color-faint`},T={class:`color-base`},E={key:0,class:`color-faint`},D=a({__name:`FilePath`,props:{path:{},line:{},column:{},icon:{type:Boolean,default:!0}},setup(a){let h=f(()=>{let e=a.path.lastIndexOf(`/`)+1;return{dir:a.path.slice(0,e),base:a.path.slice(e)}});function g(e){e.preventDefault(),e.stopPropagation(),v(a.path,a.line,a.column)}return(f,v)=>(i(),l(r(c(_)?`button`:`span`),{type:c(_)?`button`:void 0,class:e([`inline-flex min-w-0 max-w-full items-center gap-1.5 font-mono text-xs`,c(_)&&`focus-ring cursor-pointer text-left hover:underline`]),title:c(_)?`${c(m)(`detail.openInEditor`)}: ${a.path}`:a.path,onClick:v[0]||=e=>c(_)&&g(e)},{default:n(()=>[a.icon?(i(),l(S,{key:0,path:a.path},null,8,[`path`])):p(``,!0),o(`span`,C,[o(`span`,w,t(h.value.dir),1),o(`span`,T,t(h.value.base),1),a.line===void 0?p(``,!0):(i(),s(`span`,E,[u(`:`+t(a.line),1),a.column===void 0?p(``,!0):(i(),s(d,{key:0},[u(`:`+t(a.column),1)],64))]))])]),_:1},8,[`type`,`class`,`title`]))}});export{_ as n,v as r,D as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,Et as t,H as n,M as r,P as i,Q as a,U as o,_ as s,c,d as l,h as u,it as d,l as f,r as p,s as m,u as h}from"./B4prFwj0.js";import{i as g,o as _}from"./DoHg1T7s.js";import{S as v,c as y,m as b,t as x}from"./
|
|
1
|
+
import{B as e,Et as t,H as n,M as r,P as i,Q as a,U as o,_ as s,c,d as l,h as u,it as d,l as f,r as p,s as m,u as h}from"./B4prFwj0.js";import{i as g,o as _}from"./DoHg1T7s.js";import{S as v,c as y,m as b,t as x}from"./DF0vjjh8.js";import{t as S}from"./DwGgiVOP.js";import{t as C}from"./ztSLDBsK.js";import{t as w}from"./DQNu8teu.js";var T={class:`flex items-center gap-3 border-b border-base px-4 py-3`},E={class:`flex-auto color-muted`},D={key:0,class:`color-ok`},O=[`disabled`],k={key:0,class:`px-4 py-3 color-muted`},A=[`onUpdate:modelValue`,`disabled`],j={class:`text-right font-mono text-xs color-faint tabular-nums`},M=[`title`],N=[`onUpdate:modelValue`,`readonly`,`aria-label`],P=s({__name:`extract`,setup(s){let P=b((e,t)=>e.extractCandidates(t)),F=a([]);e(P,e=>{F.value=(e??[]).map(e=>({candidate:e,key:e.key,picked:!0}))});let I=m(()=>{let e=new Map;for(let t of F.value){let n=e.get(t.candidate.path)??[];e.set(t.candidate.path,n),n.push(t)}return[...e]}),L=m(()=>F.value.filter(e=>e.picked)),R=a();async function z(){let e=L.value.map(({candidate:e,key:t})=>({path:e.path,range:e.range,original:e.original,key:t,value:e.value,replacement:e.replacement.replace(e.key,t),imports:e.imports})),t=await x.value.extractApply({project:y.value,items:e});R.value={count:t.keys.length,files:t.changes.length}}return(e,a)=>(r(),f(C,null,{default:n(()=>[c(`header`,T,[c(`p`,E,t(d(v)(`extract.hint`)),1),R.value?(r(),l(`span`,D,t(d(v)(`extract.done`,R.value)),1)):h(``,!0),d(x)?.capabilities.write?(r(),l(`button`,{key:1,class:`btn-solid`,disabled:!L.value.length,onClick:z},t(d(v)(`extract.apply`,{count:L.value.length})),9,O)):h(``,!0)]),d(P)&&!F.value.length?(r(),l(`p`,k,t(d(v)(`extract.none`)),1)):h(``,!0),(r(!0),l(p,null,i(I.value,([e,a],s)=>(r(),f(w,{key:e,index:String(s+1).padStart(2,`0`),title:d(v)(`extract.strings`,{count:a.length})},{aside:n(()=>[u(S,{path:e,class:`ml-2`},null,8,[`path`])]),default:n(()=>[(r(!0),l(p,null,i(a,e=>(r(),l(`label`,{key:e.candidate.range.start,class:`grid grid-cols-[auto_3rem_1fr_18rem] items-center gap-3 border-b border-base px-4 py-1.5 last:border-b-0`},[o(c(`input`,{"onUpdate:modelValue":t=>e.picked=t,type:`checkbox`,class:`accent-[var(--x-fg)]`,disabled:!d(x)?.capabilities.write},null,8,A),[[g,e.picked]]),c(`span`,j,t(e.candidate.line),1),c(`span`,{class:`truncate`,title:e.candidate.text},t(e.candidate.text),9,M),o(c(`input`,{"onUpdate:modelValue":t=>e.key=t,class:`input font-mono text-xs`,readonly:!d(x)?.capabilities.write,"aria-label":d(v)(`extract.key`)},null,8,N),[[_,e.key]])]))),128))]),_:2},1032,[`index`,`title`]))),128))]),_:1}))}});export{P as default};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import{B as e,Ct as t,Et as n,F as r,H as i,M as a,Q as o,_ as s,c,d as l,it as u,l as d,u as f,z as p}from"./B4prFwj0.js";import{s as m}from"./DoHg1T7s.js";import{S as h,T as g,c as _,s as v,t as y}from"./
|
|
1
|
+
import{B as e,Ct as t,Et as n,F as r,H as i,M as a,Q as o,_ as s,c,d as l,it as u,l as d,u as f,z as p}from"./B4prFwj0.js";import{s as m}from"./DoHg1T7s.js";import{S as h,T as g,c as _,s as v,t as y}from"./DF0vjjh8.js";var b=[`aria-label`,`aria-expanded`],x={class:`border border-strong bg-base p-2 shadow-lg`},S=s({__name:`InfoPop`,props:{icon:{},label:{},align:{default:`right`},pinnable:{type:Boolean,default:!0}},emits:[`show`,`click`],setup(n,{emit:i}){let s=i,u=p(`root`),d=o(!1),h=o(!1);g(u,()=>h.value=!1),e(()=>d.value||h.value,e=>{e&&s(`show`)});function _(){n.pinnable?h.value=!h.value:s(`click`)}return(e,i)=>(a(),l(`span`,{ref_key:`root`,ref:u,class:`relative inline-flex`,onMouseenter:i[2]||=e=>d.value=!0,onMouseleave:i[3]||=e=>d.value=!1,onKeydown:i[4]||=m(e=>h.value=!1,[`escape`])},[r(e.$slots,`trigger`,{},()=>[c(`button`,{type:`button`,class:t([`btn-icon h-6 w-6 text-sm`,h.value&&`bg-hover color-base`]),"aria-label":n.label,"aria-expanded":d.value||h.value,onClick:_,onFocus:i[0]||=e=>d.value=!0,onBlur:i[1]||=e=>d.value=!1},[c(`span`,{class:t(n.icon)},null,2)],42,b)]),d.value||h.value?(a(),l(`div`,{key:0,class:t([`absolute top-full z-10 w-max max-w-96 pt-1`,n.align===`left`?`left-0`:`right-0`]),role:`tooltip`},[c(`div`,x,[r(e.$slots,`default`)])],2)):f(``,!0)],544))}}),C={class:`grid w-80 gap-2`},w={class:`text-xs font-medium`},T={class:`text-xs color-muted`},E={class:`max-h-64 of-auto whitespace-pre-wrap break-words border border-base p-2 font-mono text-[11px] leading-4`},D=s({__name:`CopyPrompt`,props:{text:{},label:{},hint:{}},setup(e){let t=e,r=o(!1);async function s(){await navigator.clipboard.writeText(t.text),r.value=!0,setTimeout(()=>r.value=!1,1500)}return(t,o)=>u(y)?.capabilities.prompts?(a(),d(S,{key:0,icon:r.value?`i-ph-check-duotone`:`i-ph-sparkle-duotone`,label:e.label,pinnable:!1,onClick:s},{default:i(()=>[c(`div`,C,[c(`span`,w,n(r.value?u(h)(`prompt.copied`):e.label),1),c(`p`,T,n(e.hint),1),c(`pre`,E,n(e.text),1)])]),_:1},8,[`icon`,`label`])):f(``,!0)}});function O(e){let t=(v.value?.projects.length??0)>1?_.value:void 0,n=t?` --project ${t}`:``,r=({locale:e,stale:t,key:r})=>`x18n prompt translate --to ${e}${r?` --keys ${r}`:``}${t?` --stale`:``}${n}`,[i]=e;return e.length===1&&i?[`Translate ${i.key?`the message \`${i.key}\``:`the missing${i.stale?` and outdated`:``} messages of this project`} into ${i.locale} with the x18n CLI.`,``,`Run \`${r(i)}\` and follow its instructions: it lists the messages with their context and says how to write the translations back.${i.key?``:` It works in pages, so repeat with the cursor it prints until \`x18n keys --missing ${i.locale}${n}\` lists nothing.`}`].join(`
|
|
2
2
|
`):[`Translate the missing messages of this project into each locale below with the x18n CLI.`,``,"For every locale, run its command and follow the instructions it prints: it lists the messages with their context and says how to write the translations back. It works in pages, so repeat with the cursor it prints until `x18n keys --missing <locale>` lists nothing.",``,...e.map(e=>`- ${e.locale}: \`${r(e)}\``)].join(`
|
|
3
|
-
`)}
|
|
3
|
+
`)}function k(e){let t=(v.value?.projects.length??0)>1?_.value:void 0,n=`${e?` --only ${e}`:``}${t?` --project ${t}`:``}`;return[e?`Fix the \`${e}\` diagnostics of this project with the x18n CLI.`:`Fix the diagnostics of this project with the x18n CLI.`,``,`Run \`x18n check${n}\` to list them. Fix each one at its source: edit the locale files or the code that uses the key, and use \`x18n\` commands to add, rename or remove keys instead of editing by hand where you can. Do not silence a diagnostic in the config.`,``,`Run \`x18n check${n}\` again until it reports nothing.`].join(`
|
|
4
|
+
`)}export{S as i,O as n,D as r,k as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={app:{error:`无法连接:{message}`,language:`语言`,loading:`正在加载项目…`,name:`x18n`,project:`项目`,static:`只读报告`,staticHint:"由 `x18n build` 生成的快照。运行 `x18n ui` 进行编辑。"},auth:{code:`验证码`,hint:"输入 `x18n ui` 在终端中打印的 6 位验证码。",label:`身份验证`,rejected:`验证码无效。请在终端中查看当前验证码。`,submit:`连接`,title:`连接到 x18n`},detail:{back:`返回键列表`,diagnostics:`问题`,edit:`编辑`,label:`键`,noUsages:`没有代码使用此键。`,notFound:`此键未定义。`,openInEditor:`在编辑器中打开`,possible:`可能`,usages:`引用({count})`,values:`值`,showAllLocales:`显示所有语言`,file:`文件`},edit:{dismiss:`关闭`,placeholdersExtra:`多余的占位符 {names}`,placeholdersMissing:`缺少占位符 {names}`,rejected:`未保存:{key}({locale}):{message}。`,saveAnyway:`仍然保存`},extract:{apply:`提取({count})`,done:`已提取键:{count}。已修改文件:{files}。`,hint:`带有建议键的硬编码字符串。可编辑键,取消勾选要跳过的字符串,然后应用。`,key:`键`,none:`未发现硬编码字符串。`,strings:`字符串:{count}`},keys:{allNamespaces:`所有命名空间`,anyLocale:`任意语言`,count:`{shown} / {total} 个键`,diagnosticsHint:`此键存在的问题`,editValue:`{key} 在 {locale} 中的值`,empty:`没有匹配的键。`,grid:`各语言的键和值`,helpEdit:`Enter 编辑,Esc 取消`,helpMove:`方向键或 j/k 移动`,helpOpen:`o 打开键`,helpSearch:`/ 搜索`,key:`键`,missingIn:`缺失于`,missingInLocale:`{locale} 中缺失`,namespace:`命名空间`,search:`搜索键和值`,unused:`未使用`,unusedHint:`没有代码使用此键`,withDiagnostics:`有问题`,outdated:`过时`,sort:`排序`,sortKey:`键`,sortRecent:`最近更改`},locale:{complete:`所有键均已翻译。`,empty:`空值({count})`,label:`语言`,missing:`缺失({count})`,notFound:`此项目中没有该语言。`,openInGrid:`在表格中显示`,problems:`占位符和语法问题({count})`,progress:`已翻译 {translated} / {total}({percent})`,outdated:`过时({count})`},localeBar:{bar:`要显示的语言`,noneShown:`所有语言均已隐藏。请在上方栏中选择一个。`,showAll:`全部显示`,shown:`已显示 {shown} / {total}`,title:`语言`,toggle:`显示或隐藏 {locale}`,resetOrder:`重置顺序`,flags:`显示旗帜`,reorder:`拖动或按 Alt 加方向键以调整顺序。`},nav:{extract:`提取`,keys:`键`,overview:`概览`,project:`项目`,usages:`引用`},overview:{clean:`未发现问题。`,coverage:`覆盖率`,diagnostics:`诊断`,errors:`错误:{count}`,keys:`键`,locales:`语言`,missing:`{missing} 个缺失,{empty} 个为空`,noPresets:`未检测到预设。`,noRecent:`自页面打开以来没有更改。`,presets:`预设`,recent:`最近更改`,resources:`资源`,source:`源`,usages:`引用`,warnings:`警告:{count}`,outdated:`{count} 条过时`},project:{config:`配置及各值来源`,conflict:`.{extension}:{winner} 优先于 {loser}`,files:`文件:{count}`,finders:`语言查找器`,formats:`格式`,presets:`预设`,problems:`问题`,resources:`资源:{count}`,scanners:`扫描器`,showAllPresets
|
|
1
|
+
var e={app:{error:`无法连接:{message}`,language:`语言`,loading:`正在加载项目…`,name:`x18n`,project:`项目`,static:`只读报告`,staticHint:"由 `x18n build` 生成的快照。运行 `x18n ui` 进行编辑。"},auth:{code:`验证码`,hint:"输入 `x18n ui` 在终端中打印的 6 位验证码。",label:`身份验证`,rejected:`验证码无效。请在终端中查看当前验证码。`,submit:`连接`,title:`连接到 x18n`},detail:{back:`返回键列表`,diagnostics:`问题`,edit:`编辑`,label:`键`,noUsages:`没有代码使用此键。`,notFound:`此键未定义。`,openInEditor:`在编辑器中打开`,possible:`可能`,usages:`引用({count})`,values:`值`,showAllLocales:`显示所有语言`,file:`文件`},edit:{dismiss:`关闭`,placeholdersExtra:`多余的占位符 {names}`,placeholdersMissing:`缺少占位符 {names}`,rejected:`未保存:{key}({locale}):{message}。`,saveAnyway:`仍然保存`},extract:{apply:`提取({count})`,done:`已提取键:{count}。已修改文件:{files}。`,hint:`带有建议键的硬编码字符串。可编辑键,取消勾选要跳过的字符串,然后应用。`,key:`键`,none:`未发现硬编码字符串。`,strings:`字符串:{count}`},keys:{allNamespaces:`所有命名空间`,anyLocale:`任意语言`,count:`{shown} / {total} 个键`,diagnosticsHint:`此键存在的问题`,editValue:`{key} 在 {locale} 中的值`,empty:`没有匹配的键。`,grid:`各语言的键和值`,helpEdit:`Enter 编辑,Esc 取消`,helpMove:`方向键或 j/k 移动`,helpOpen:`o 打开键`,helpSearch:`/ 搜索`,key:`键`,missingIn:`缺失于`,missingInLocale:`{locale} 中缺失`,namespace:`命名空间`,search:`搜索键和值`,unused:`未使用`,unusedHint:`没有代码使用此键`,withDiagnostics:`有问题`,outdated:`过时`,sort:`排序`,sortKey:`键`,sortRecent:`最近更改`},locale:{complete:`所有键均已翻译。`,empty:`空值({count})`,label:`语言`,missing:`缺失({count})`,notFound:`此项目中没有该语言。`,openInGrid:`在表格中显示`,problems:`占位符和语法问题({count})`,progress:`已翻译 {translated} / {total}({percent})`,outdated:`过时({count})`},localeBar:{bar:`要显示的语言`,noneShown:`所有语言均已隐藏。请在上方栏中选择一个。`,showAll:`全部显示`,shown:`已显示 {shown} / {total}`,title:`语言`,toggle:`显示或隐藏 {locale}`,resetOrder:`重置顺序`,flags:`显示旗帜`,reorder:`拖动或按 Alt 加方向键以调整顺序。`},nav:{extract:`提取`,keys:`键`,overview:`概览`,project:`项目`,usages:`引用`},overview:{clean:`未发现问题。`,coverage:`覆盖率`,diagnostics:`诊断`,errors:`错误:{count}`,keys:`键`,locales:`语言`,missing:`{missing} 个缺失,{empty} 个为空`,noPresets:`未检测到预设。`,noRecent:`自页面打开以来没有更改。`,presets:`预设`,recent:`最近更改`,resources:`资源`,source:`源`,usages:`引用`,warnings:`警告:{count}`,outdated:`{count} 条过时`},project:{config:`配置及各值来源`,conflict:`.{extension}:{winner} 优先于 {loser}`,files:`文件:{count}`,finders:`语言查找器`,formats:`格式`,presets:`预设`,problems:`问题`,resources:`资源:{count}`,scanners:`扫描器`,showAllPresets:`显示所有预设`,plugins:`插件`,none:`未找到任何内容`,duplicates:`已跳过的重复资源:{count}`,skipped:`已跳过的预设和插件`,rawConfig:`原始配置`},prompt:{copied:`已复制`,copy:`复制翻译提示词`,hint:`复制一段提示词,供 LLM 或智能体翻译缺失的消息`,copyStale:`复制包含过时翻译的提示词`,staleHint:`复制提示词,供 LLM 或智能体翻译缺失的消息并更新过时的翻译`,copyAll:`复制所有语言的翻译提示词`,allHint:`复制一段提示词,供 LLM 或智能体翻译每种语言中缺失的消息`},usages:{all:`全部({count})`,dynamic:`动态({count})`,dynamicHint:`使用计算键的引用。其前缀下的键均视为已使用。`,filter:`按文件或键筛选`,missing:`未定义({count})`,missingHint:`代码中使用但未在源语言中定义的键。`,unused:`未使用({count})`,unusedHint:`已在源语言中定义但没有代码使用的键。`},value:{empty:`空`,missing:`缺失`},history:{title:`历史`,local:`本地已更改`,outdated:`过时`,outdatedHint:`此翻译之后源消息发生了更改`,sourceThen:`当时的源文本`,sourceNow:`现在的源文本`,more:`以及另外 {count} 个`,locales:`{count} 种语言`},sidebar:{list:`列表视图`,tree:`树状视图`,filter:`筛选键`,view:`键列表视图`},diagnostics:{all:`全部 ({count})`,viewAll:`查看全部`,copyFix:`复制修复提示词`,fixHint:`复制提示词,供 LLM 或智能体修复此项目的所有诊断`,fixCodeHint:`复制提示词,供 LLM 或智能体修复 {code} 诊断`}};export{e as default};
|