Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

289 B
Raw Blame
import { createContext } from "react"
import i18next from "./setup"

// Create context for translations
export const TranslationContext = createContext<{
	t: (key: string, options?: Record<string, unknown>) => string
	i18n: typeof i18next
}>({
	t: (key: string) => key,
	i18n: i18next,
})