Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
819 B · 34 lines
TypeScript
at main
1234567891011121314151617181920212223242526272829303132333435import {type TranslationTaskResult} from '@bsky.app/expo-translate-text/build/ExpoTranslateText.types'
export type TranslationState = | {status: 'idle'} | {status: 'loading'} | { status: 'success' translatedText: string sourceLanguage: TranslationTaskResult['sourceLanguage'] targetLanguage: TranslationTaskResult['targetLanguage'] } | { status: 'error' message: string }
export type TranslationFunctionParams = { /** * The text to be translated. */ text: string /** * The language to translate the text into. */ targetLangCode: string /** * The source language of the text. Will auto-detect if not provided. */ sourceLangCode?: string}
export type TranslationFunction = ( parameters: TranslationFunctionParams,) => Promise<void>