Spaces:
Running
Running
Download node_modules/open-google-translator/example/client.ts from JimmyK300/Translator: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/spaces/JimmyK300/Translator/resolve/main/node_modules/open-google-translator/example/client.ts
- Command line
-
hf download hf://spaces/JimmyK300/Translator/node_modules/open-google-translator/example/client.ts
-
curl -L -o client.ts https://huggingface.co/spaces/JimmyK300/Translator/resolve/main/node_modules/open-google-translator/example/client.ts
297 Bytes
| const { supportedLanguages, TranslateLanguageData } = require("../"); | |
| console.log(Object.keys(supportedLanguages()).length); | |
| TranslateLanguageData({ | |
| listOfWordsToTranslate: ["hello here i am", "HI hello"], | |
| fromLanguage: "en", | |
| toLanguage: "pa", | |
| }).then((data) => { | |
| console.log(data); | |
| }); | |