{"version":3,"file":"i18n-B57GZqP3.mjs","names":["createContext","useContext","Translate","key","params","Record","TranslationContext","undefined","TranslationProvider","Provider","useTranslate"],"sources":["../src/components/i18n/TranslationContext.ts"],"sourcesContent":["import { createContext, useContext } from \"react\";\n\nexport type Translate = (key: string, params?: Record<string, unknown>) => string;\n\nconst TranslationContext = createContext<Translate | undefined>(undefined);\n\nexport const TranslationProvider = TranslationContext.Provider;\n\nexport function useTranslate() {\n  return useContext(TranslationContext);\n}\n"],"mappings":";;AAIA,MAAMM,qBAAqBN,cAAqCO,KAAAA,CAAS;AAEzE,MAAaC,sBAAsBF,mBAAmBG;AAEtD,SAAOC,eAAA;CAAA,OACET,WAAWK,kBAAkB;AAAC"}