Log languages a post is tagged with after translating (#10014)
Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
@@ -1,16 +1,6 @@
|
||||
import {createContext} from 'react'
|
||||
|
||||
import {type TranslationFunctionParams, type TranslationState} from './types'
|
||||
import {type ContextType} 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)
|
||||
export const Context = createContext<ContextType | null>(null)
|
||||
Context.displayName = 'TranslationContext'
|
||||
|
||||
Reference in New Issue
Block a user