-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
34 lines (31 loc) · 839 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import azure from "./azure";
import google from "./google";
import baidu from "./baidu";
import deepl from "./deepl";
import amazon from "./amazon";
import openai from "./google";
import { ValuesOf } from "../../utils";
export const targetLanguages = {
azure: azure,
google: google,
baidu: baidu,
deepl: deepl,
amazon: amazon,
openai: openai,
} as const;
export type targetLanguageMapNames = {
amazon: keyof typeof amazon;
azure: keyof typeof azure;
google: keyof typeof google;
baidu: keyof typeof baidu;
deepl: keyof typeof deepl;
openai: keyof typeof openai;
};
export type targetLanguageMapValues = {
amazon: ValuesOf<typeof amazon>;
azure: ValuesOf<typeof azure>;
google: ValuesOf<typeof google>;
baidu: ValuesOf<typeof baidu>;
deepl: ValuesOf<typeof deepl>;
openai: ValuesOf<typeof openai>;
};