Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
502 B · 16 lines
TypeScript
at main
1234567891011121314151617import {createContext} from 'react'
import {type TranslationFunctionParams, type TranslationState} from './types'
export const Context = createContext<{ translationState: Record<string, TranslationState> translate: ( parameters: TranslationFunctionParams & { key: string forceGoogleTranslate: boolean }, ) => Promise<void> clearTranslation: (key: string) => void acquireTranslation: (key: string) => () => void} | null>(null)Context.displayName = 'TranslationContext'