1.0.5 • Published 8 months ago

free-google-translate-api-ts v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

free-google-translate-api-ts

Description

This is a library that uses Google's unofficial google translate API, and is developed for personal purposes

How to use

Import
import { Translate } from 'free-google-translate-api-ts';
Demo
const demo = async () => {
    const result = await Translate('Hello world!', 'auto', 'fr');
    console.log(result);
};
Results
Console.log

{
    text: 'Hello World!',
    result: 'Bonjour le monde!',
    source_language: 'auto',
    translate_language: 'fr'
}
TYPE
    Language // Language support
    SourceLanguage // Source language code
    TranslateLanguage // Translate language code
    TranslateResult // Translate result
Other
    const languages // Language list array
                        {
                            code: Language;
                            name: string;
                        }[]

Translations from any language to any language in this list are supported.

New Version

1.0.0

Contract

Github: quangtrong1506 Email: quangtrong1506

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago