PageSourceSearch

https://ketebe.org/assets/LocaleProvider-DV1gIbg9.js

js ketebe.org collected 2026-10-02 19:23:04 UTC 1,126 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{_ as n,n as r}from"./components-RnQs3wnT.js";import{t as i}from"./jsx-runtime-NZYk81nU.js";import{t as a}from"./compiler-runtime-g2frQZFW.js";import{t as o}from"./useTranslation-CdEafa6C.js";import{a as s,n as c}from"./routes-DXtLR4oY.js";var l=a(),u=e(t(),1),d=i(),f=(0,u.createContext)(c(`tr`));function p(){return(0,u.useContext)(f)}function m(){return p().locale}function h(e){let t=(0,l.c)(11),{locale:n,children:i}=e,{i18n:a}=o(),s;t[0]===n?s=t[1]:(s=c(n),t[0]=n,t[1]=s);let p=s,m,h;t[2]!==a||t[3]!==n?(m=()=>{(a.resolvedLanguage??a.language).split(`-`)[0]!==n&&a.changeLanguage(n)},h=[n,a],t[2]=a,t[3]=n,t[4]=m,t[5]=h):(m=t[4],h=t[5]),(0,u.useLayoutEffect)(m,h);let g;t[6]===i?g=t[7]:(g=i??(0,d.jsx)(r,{}),t[6]=i,t[7]=g);let _;return t[8]!==p||t[9]!==g?(_=(0,d.jsx)(f.Provider,{value:p,children:g}),t[8]=p,t[9]=g,t[10]=_):_=t[10],_}function g(){let e=(0,l.c)(4),{pathname:t}=n(),r;e[0]===t?r=e[1]:(r=s(t),e[0]=t,e[1]=r);let i=r,a;return e[2]===i?a=e[3]:(a=(0,d.jsx)(h,{locale:i}),e[2]=i,e[3]=a),a}export{m as n,p as r,g as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.