(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,43467,e=>{"use strict";var t=e.i(43476),a=e.i(71645);let u=(0,a.createContext)(void 0);function r({children:e}){let[r,n]=(0,a.useState)("EN");return(0,a.useEffect)(()=>{let e=localStorage.getItem("isuru_lanka_lang");("EN"===e||"SI"===e)&&n(e)},[]),(0,t.jsx)(u.Provider,{value:{language:r,setLanguage:e=>{n(e),localStorage.setItem("isuru_lanka_lang",e)},t:(e,t)=>"EN"===r?e:t},children:e})}function n(){let e=(0,a.useContext)(u);if(!e)throw Error("useLanguage must be used within a LanguageProvider");return e}e.s(["LanguageProvider",()=>r,"useLanguage",()=>n])}]);