Initial Commit

This commit is contained in:
2026-05-27 23:29:53 +01:00
commit fbc70f96e6
10000 changed files with 1102152 additions and 0 deletions

View File

@@ -0,0 +1 @@
import{j as r}from"./jsx-runtime-D_zvdyIk.js";import{r as n}from"./index-DhY--VwN.js";const a=["en","fr","de","ja"];function s(){if(typeof localStorage>"u")return"en";const e=localStorage.getItem("locale");return a.includes(e??"")?e:"en"}function i(){const[e,l]=n.useState(s);n.useEffect(()=>{localStorage.setItem("locale",e),document.documentElement.setAttribute("lang",e)},[e]);function c(t){const o=t.target.value;a.includes(o)&&l(o)}return r.jsx("select",{"aria-label":"Select locale","data-testid":"locale-switcher",value:e,onChange:c,className:"rounded border border-gray-300 px-2 py-1 text-sm dark:border-gray-600 dark:bg-gray-800",children:a.map(t=>r.jsx("option",{value:t,children:t.toUpperCase()},t))})}i.__docgenInfo={description:"",methods:[],displayName:"LocaleSwitcher"};export{i as L};