nuxt-i18n-micro 2.15.2 → 2.16.2
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/client/200.html +8 -8
- package/dist/client/404.html +8 -8
- package/dist/client/_nuxt/BFrUkGSa.js +14 -0
- package/dist/client/_nuxt/{CNGrSHEf.js → YZS8RX49.js} +1 -1
- package/dist/client/_nuxt/{CNzK7XfC.js → bXHUd9L-.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/1aa61770-ac5d-493b-a2d0-b9b668345c88.json +1 -0
- package/dist/client/_nuxt/error-404.OwiUC7VJ.css +1 -0
- package/dist/client/_nuxt/error-500.CJE2oXy_.css +1 -0
- package/dist/client/_nuxt/{Bn_tQT_J.js → sOueiY8Y.js} +1 -1
- package/dist/client/index.html +8 -8
- package/dist/module.json +1 -1
- package/dist/runtime/plugins/01.plugin.js +9 -5
- package/dist/runtime/plugins/04.auto-detect.js +1 -2
- package/package.json +4 -4
- package/dist/client/_nuxt/D1jHVVXL.js +0 -13
- package/dist/client/_nuxt/builds/meta/0071ae47-aec8-4b4f-9a63-03465539f01f.json +0 -1
- package/dist/client/_nuxt/builds/meta/dev.json +0 -1
- package/dist/client/_nuxt/error-404.Bee8QxB2.css +0 -1
- package/dist/client/_nuxt/error-500.DqTJYfAv.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s,u as a}from"./
|
|
1
|
+
import{_ as s,u as a}from"./bXHUd9L-.js";import{v as i,x as u,y as e,z as o}from"./BFrUkGSa.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(u(),i("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},b=s(f,[["__scopeId","data-v-84668211"]]);export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as a,E as o,F as u,G as c,H as i}from"./
|
|
1
|
+
import{D as a,E as o,F as u,G as c,H as i}from"./BFrUkGSa.js";function x(e){const t=e||o();return t?.ssrContext?.head||t?.runWithContext(()=>{if(u())return c(i)})}function d(e,t={}){const n=x(t.nuxt);if(n)return a(e,{head:n,...t})}const h=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};export{h as _,d as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"1aa61770-ac5d-493b-a2d0-b9b668345c88","timestamp":1766718534981}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"1aa61770-ac5d-493b-a2d0-b9b668345c88","timestamp":1766718534981,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.spotlight[data-v-e377ae42]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-e377ae42]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media(prefers-color-scheme:light){.gradient-border[data-v-e377ae42]{background-color:#ffffff4d}.gradient-border[data-v-e377ae42]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media(prefers-color-scheme:dark){.gradient-border[data-v-e377ae42]{background-color:#1414144d}.gradient-border[data-v-e377ae42]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-e377ae42]:before{background-size:400% auto;border-radius:.5rem;content:"";inset:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-e377ae42]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-e377ae42]{position:fixed}.left-0[data-v-e377ae42]{left:0}.right-0[data-v-e377ae42]{right:0}.z-10[data-v-e377ae42]{z-index:10}.z-20[data-v-e377ae42]{z-index:20}.grid[data-v-e377ae42]{display:grid}.mb-16[data-v-e377ae42]{margin-bottom:4rem}.mb-8[data-v-e377ae42]{margin-bottom:2rem}.max-w-520px[data-v-e377ae42]{max-width:520px}.min-h-screen[data-v-e377ae42]{min-height:100vh}.w-full[data-v-e377ae42]{width:100%}.flex[data-v-e377ae42]{display:flex}.cursor-pointer[data-v-e377ae42]{cursor:pointer}.place-content-center[data-v-e377ae42]{place-content:center}.items-center[data-v-e377ae42]{align-items:center}.justify-center[data-v-e377ae42]{justify-content:center}.overflow-hidden[data-v-e377ae42]{overflow:hidden}.bg-white[data-v-e377ae42]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-e377ae42]{padding-left:1rem;padding-right:1rem}.px-8[data-v-e377ae42]{padding-left:2rem;padding-right:2rem}.py-2[data-v-e377ae42]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-e377ae42]{text-align:center}.text-8xl[data-v-e377ae42]{font-size:6rem;line-height:1}.text-xl[data-v-e377ae42]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-e377ae42]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-e377ae42]{font-weight:300}.font-medium[data-v-e377ae42]{font-weight:500}.leading-tight[data-v-e377ae42]{line-height:1.25}.font-sans[data-v-e377ae42]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-e377ae42]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-black[data-v-e377ae42]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-e377ae42]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:px-0[data-v-e377ae42]{padding-left:0;padding-right:0}.sm\:px-6[data-v-e377ae42]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-e377ae42]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-e377ae42]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-e377ae42]{font-size:1.25rem;line-height:1.75rem}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.spotlight[data-v-84668211]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-84668211]{position:fixed}.-bottom-1\/2[data-v-84668211]{bottom:-50%}.left-0[data-v-84668211]{left:0}.right-0[data-v-84668211]{right:0}.grid[data-v-84668211]{display:grid}.mb-16[data-v-84668211]{margin-bottom:4rem}.mb-8[data-v-84668211]{margin-bottom:2rem}.h-1\/2[data-v-84668211]{height:50%}.max-w-520px[data-v-84668211]{max-width:520px}.min-h-screen[data-v-84668211]{min-height:100vh}.place-content-center[data-v-84668211]{place-content:center}.overflow-hidden[data-v-84668211]{overflow:hidden}.bg-white[data-v-84668211]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-84668211]{padding-left:2rem;padding-right:2rem}.text-center[data-v-84668211]{text-align:center}.text-8xl[data-v-84668211]{font-size:6rem;line-height:1}.text-xl[data-v-84668211]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-84668211]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-84668211]{font-weight:300}.font-medium[data-v-84668211]{font-weight:500}.leading-tight[data-v-84668211]{line-height:1.25}.font-sans[data-v-84668211]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-84668211]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\:bg-black[data-v-84668211]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-84668211]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\:px-0[data-v-84668211]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-84668211]{font-size:2.25rem;line-height:2.5rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as P,d as O,s as B,r as E,a as L,o as T,b as H,c as I,e as U,f as M,h as N,g as R,p as V,i as q,j as b,k as A,l as D,m as F,n as $,w as W,q as G,t as K,v as Q,x as J,y as S,z as C,A as X,B as Y,C as Z}from"./
|
|
1
|
+
import{u as P,d as O,s as B,r as E,a as L,o as T,b as H,c as I,e as U,f as M,h as N,g as R,p as V,i as q,j as b,k as A,l as D,m as F,n as $,w as W,q as G,t as K,v as Q,x as J,y as S,z as C,A as X,B as Y,C as Z}from"./BFrUkGSa.js";import{_ as ee,u as te}from"./bXHUd9L-.js";async function z(t,n=P()){const{path:u,matched:v}=n.resolve(t);if(!v.length||(n._routePreloaded||=new Set,n._routePreloaded.has(u)))return;const d=n._preloadPromises||=[];if(d.length>4)return Promise.all(d).then(()=>z(t,n));n._routePreloaded.add(u);const e=v.map(r=>r.components?.default).filter(r=>typeof r=="function");for(const r of e){const c=Promise.resolve(r()).catch(()=>{}).finally(()=>d.splice(d.indexOf(c)));d.push(c)}await Promise.all(d)}const ne=(...t)=>t.find(n=>n!==void 0);function re(t){const n=t.componentName||"NuxtLink";function u(e){return typeof e=="string"&&e.startsWith("#")}function v(e,r,c){const o=c??t.trailingSlash;if(!e||o!=="append"&&o!=="remove")return e;if(typeof e=="string")return _(e,o);const s="path"in e&&e.path!==void 0?e.path:r(e).path;return{...e,name:void 0,path:_(s,o)}}function d(e){const r=P(),c=F(),o=b(()=>!!e.target&&e.target!=="_self"),s=b(()=>{const l=e.to||e.href||"";return typeof l=="string"&&A(l,{acceptRelative:!0})}),y=R("RouterLink"),g=y&&typeof y!="string"?y.useLink:void 0,h=b(()=>{if(e.external)return!0;const l=e.to||e.href||"";return typeof l=="object"?!1:l===""||s.value}),i=b(()=>{const l=e.to||e.href||"";return h.value?l:v(l,r.resolve,e.trailingSlash)}),m=h.value?void 0:g?.({...e,to:i}),x=b(()=>{const l=e.trailingSlash??t.trailingSlash;if(!i.value||s.value||u(i.value))return i.value;if(h.value){const k=typeof i.value=="object"&&"path"in i.value?q(i.value):i.value,w=typeof k=="object"?r.resolve(k).href:k;return _(w,l)}return typeof i.value=="object"?r.resolve(i.value)?.href??null:_(D(c.app.baseURL,i.value),l)});return{to:i,hasTarget:o,isAbsoluteUrl:s,isExternal:h,href:x,isActive:m?.isActive??b(()=>i.value===r.currentRoute.value.path),isExactActive:m?.isExactActive??b(()=>i.value===r.currentRoute.value.path),route:m?.route??b(()=>r.resolve(i.value)),async navigate(l){await $(x.value,{replace:e.replace,external:h.value||o.value})}}}return O({name:n,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:d,setup(e,{slots:r}){const c=P(),{to:o,href:s,navigate:y,isExternal:g,hasTarget:h,isAbsoluteUrl:i}=d(e),m=B(!1),x=E(null),l=f=>{x.value=e.custom?f?.$el?.nextElementSibling:f?.$el};function k(f){return!m.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===f:e.prefetchOn?.[f]??t.prefetchOn?.[f])&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!se()}async function w(f=L()){if(m.value)return;m.value=!0;const p=typeof o.value=="string"?o.value:g.value?q(o.value):c.resolve(o.value).fullPath,a=g.value?new URL(p,window.location.href).href:p;await Promise.all([f.hooks.callHook("link:prefetch",a).catch(()=>{}),!g.value&&!h.value&&z(o.value,c).catch(()=>{})])}if(k("visibility")){const f=L();let p,a=null;T(()=>{const j=oe();H(()=>{p=I(()=>{x?.value?.tagName&&(a=j.observe(x.value,async()=>{a?.(),a=null,await w(f)}))})})}),U(()=>{p&&M(p),a?.(),a=null})}return()=>{if(!g.value&&!h.value&&!u(o.value)){const a={ref:l,to:o.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(k("interaction")&&(a.onPointerenter=w.bind(null,void 0),a.onFocus=w.bind(null,void 0)),m.value&&(a.class=e.prefetchedClass||t.prefetchedClass),a.rel=e.rel||void 0),N(R("RouterLink"),a,r.default)}const f=e.target||null,p=ne(e.noRel?"":e.rel,t.externalRelAttribute,i.value||h.value?"noopener noreferrer":"")||null;return e.custom?r.default?r.default({href:s.value,navigate:y,prefetch:w,get route(){if(!s.value)return;const a=new URL(s.value,window.location.href);return{path:a.pathname,fullPath:a.pathname,get query(){return V(a.search)},hash:a.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:s.value}},rel:p,target:f,isExternal:g.value||h.value,isActive:!1,isExactActive:!1}):null:N("a",{ref:x,href:s.value||null,rel:p,target:f,onClick:a=>{if(!(g.value||h.value))return a.preventDefault(),e.replace?c.replace(s.value):c.push(s.value)}},r.default?.())}}})}const ae=re(K);function _(t,n){const u=n==="append"?W:G;return A(t)&&!t.startsWith("http")?t:u(t,!0)}function oe(){const t=L();if(t._observer)return t._observer;let n=null;const u=new Map,v=(e,r)=>(n||=new IntersectionObserver(c=>{for(const o of c){const s=u.get(o.target);(o.isIntersecting||o.intersectionRatio>0)&&s&&s()}}),u.set(e,r),n.observe(e),()=>{u.delete(e),n?.unobserve(e),u.size===0&&(n?.disconnect(),n=null)});return t._observer={observe:v}}const ie=/2g/;function se(){const t=navigator.connection;return!!(t&&(t.saveData||ie.test(t.effectiveType)))}const le={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},ue={class:"max-w-520px text-center z-20"},ce=["textContent"],fe=["textContent"],de={class:"flex items-center justify-center w-full"},he={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return te({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(u,v)=>{const d=ae;return J(),Q("div",le,[v[0]||(v[0]=S("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),S("div",ue,[S("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:C(t.statusCode)},null,8,ce),S("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:C(t.description)},null,8,fe),S("div",de,[X(d,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:Y(()=>[Z(C(t.backHome),1)]),_:1})])])])}}},ge=ee(he,[["__scopeId","data-v-e377ae42"]]);export{ge as default};
|
package/dist/client/index.html
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<!DOCTYPE html><html><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
3
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/entry.v6jsTdX3.css" crossorigin>
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/
|
|
5
|
-
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-404.
|
|
6
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/
|
|
8
|
-
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-500.
|
|
9
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/
|
|
10
|
-
<script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/
|
|
11
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/BFrUkGSa.js">
|
|
5
|
+
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-404.OwiUC7VJ.css">
|
|
6
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/sOueiY8Y.js">
|
|
7
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/bXHUd9L-.js">
|
|
8
|
+
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/error-500.CJE2oXy_.css">
|
|
9
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/YZS8RX49.js">
|
|
10
|
+
<script type="module" src="/__NUXT_DEVTOOLS_I18N_BASE__/_nuxt/BFrUkGSa.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1766718537830,false]</script>
|
|
11
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_I18N_BASE__/",buildId:"1aa61770-ac5d-493b-a2d0-b9b668345c88",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
|
@@ -25,15 +25,19 @@ export default defineNuxtPlugin(async (nuxtApp) => {
|
|
|
25
25
|
let hashLocaleDefault = null;
|
|
26
26
|
let noPrefixDefault = null;
|
|
27
27
|
let cookieLocaleDefault = null;
|
|
28
|
+
let cookieLocaleName = null;
|
|
29
|
+
if (!i18nConfig.hashMode) {
|
|
30
|
+
cookieLocaleName = i18nConfig.localeCookie || "user-locale";
|
|
31
|
+
}
|
|
28
32
|
if (i18nConfig.hashMode) {
|
|
29
33
|
hashLocaleDefault = await nuxtApp.runWithContext(() => useCookie("hash-locale").value);
|
|
30
34
|
}
|
|
31
35
|
if (isNoPrefixStrategy(i18nConfig.strategy)) {
|
|
32
|
-
|
|
36
|
+
if (cookieLocaleName) {
|
|
37
|
+
noPrefixDefault = await nuxtApp.runWithContext(() => useCookie(cookieLocaleName).value);
|
|
38
|
+
}
|
|
33
39
|
}
|
|
34
|
-
let cookieLocaleName = null;
|
|
35
40
|
if (!i18nConfig.hashMode && !isNoPrefixStrategy(i18nConfig.strategy)) {
|
|
36
|
-
cookieLocaleName = i18nConfig.localeCookie || "user-locale";
|
|
37
41
|
cookieLocaleDefault = await nuxtApp.runWithContext(() => useCookie(cookieLocaleName).value);
|
|
38
42
|
}
|
|
39
43
|
const routeService = new RouteService(
|
|
@@ -66,8 +70,8 @@ export default defineNuxtPlugin(async (nuxtApp) => {
|
|
|
66
70
|
if (i18nConfig.hashMode) {
|
|
67
71
|
locale = await nuxtApp.runWithContext(() => useCookie("hash-locale", { default: () => locale }).value);
|
|
68
72
|
}
|
|
69
|
-
if (isNoPrefixStrategy(i18nConfig.strategy)) {
|
|
70
|
-
locale = await nuxtApp.runWithContext(() => useCookie(
|
|
73
|
+
if (isNoPrefixStrategy(i18nConfig.strategy) && cookieLocaleName) {
|
|
74
|
+
locale = await nuxtApp.runWithContext(() => useCookie(cookieLocaleName, { default: () => locale }).value);
|
|
71
75
|
}
|
|
72
76
|
const routeName = routeService.getPluginRouteName(to, locale);
|
|
73
77
|
if (!routeName) {
|
|
@@ -29,8 +29,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
|
|
|
29
29
|
name: routeName2,
|
|
30
30
|
params: newParams2
|
|
31
31
|
});
|
|
32
|
-
|
|
33
|
-
userLocaleCookie2.value = newLocale;
|
|
32
|
+
userLocaleCookie.value = newLocale;
|
|
34
33
|
await navigateTo(newRoute2, {
|
|
35
34
|
redirectCode: 302,
|
|
36
35
|
external: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-i18n-micro",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.2",
|
|
4
4
|
"description": "Nuxt I18n Micro is a lightweight, high-performance internationalization module for Nuxt, designed to handle multi-language support with minimal overhead, fast build times, and efficient runtime performance.",
|
|
5
5
|
"repository": "s00d/nuxt-i18n-micro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"chokidar": "^3.6.0",
|
|
61
61
|
"globby": "^14.1.0",
|
|
62
62
|
"ufo": "^1.5.4",
|
|
63
|
-
"@i18n-micro/
|
|
64
|
-
"@i18n-micro/
|
|
65
|
-
"@i18n-micro/
|
|
63
|
+
"@i18n-micro/core": "1.0.28",
|
|
64
|
+
"@i18n-micro/test-utils": "1.0.8",
|
|
65
|
+
"@i18n-micro/types": "1.0.16"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@nuxt/devtools": "^2.6.3",
|