@parvineyvazov/json-translator
Version:
Translate your JSON file or object into another languages with Google Translate API
23 lines (22 loc) • 2.34 kB
TypeScript
export declare function translateWithLibre(str: string, from: string, to: string): Promise<string>;
export declare function translateWithArgos(str: string, from: string, to: string): Promise<string>;
export declare function translateWithBing(str: string, from: string, to: string): Promise<string>;
export declare function translateWithGoogle(str: string, from: string, to: string): Promise<string>;
export declare function translateWithDeepL(str: string, from: string, to: string): Promise<string>;
export declare function translateWithGoogle2(str: string, from: string, to: string): Promise<string>;
export declare function translateWithGPT35Turbo(str: string, from: string, to: string): Promise<string>;
export declare function translateWithGPT4(str: string, from: string, to: string): Promise<string>;
export declare function translateWithGPT4o(str: string, from: string, to: string): Promise<string>;
export declare function translateWithGPT4oMini(str: string, from: string, to: string): Promise<string>;
export declare function translateWithGPT5(str: string, from: string, to: string): Promise<string>;
export declare function translateWithGPT5Nano(str: string, from: string, to: string): Promise<string>;
export declare function translateWithGPT5Mini(str: string, from: string, to: string): Promise<string>;
export declare function translateWithGPT(model: string, str: string, from: string, to: string): Promise<string>;
export declare function translateWithGemma7B(str: string, from: string, to: string): Promise<string>;
export declare function translateWithGemma9B(str: string, from: string, to: string): Promise<string>;
export declare function translateWithMixtral8x7B(str: string, from: string, to: string): Promise<string>;
export declare function translateWithLlama8B(str: string, from: string, to: string): Promise<string>;
export declare function translateWithLlama70B(str: string, from: string, to: string): Promise<string>;
export declare function translateWithGroq(model: string, str: string, from: string, to: string): Promise<string>;
export declare function translateWithLlamaCpp(str: string, from: string, to: string): Promise<string>;
export declare function translateWithLLM(model: string, str: string, from: string, to: string, provider: 'openai' | 'groq' | 'llama-cpp'): Promise<string>;