feat: translation (#389)
This commit is contained in:
parent
e2e115ebeb
commit
df9066eae0
43 changed files with 1466 additions and 47 deletions
16
src/types.ts
16
src/types.ts
|
|
@ -121,3 +121,19 @@ export type TEmoji = {
|
|||
shortcode: string
|
||||
url: string
|
||||
}
|
||||
|
||||
export type TTranslationAccount = {
|
||||
pubkey: string
|
||||
api_key: string
|
||||
balance: number
|
||||
}
|
||||
|
||||
export type TTranslationServiceConfig =
|
||||
| {
|
||||
service: 'jumble'
|
||||
}
|
||||
| {
|
||||
service: 'libre_translate'
|
||||
server?: string
|
||||
api_key?: string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue