forked from KaKi87/deepl-scraper
Update glossary support #1
1 changed files with 5 additions and 1 deletions
|
|
@ -34,6 +34,7 @@ const {
|
|||
translate,
|
||||
getSupportedLanguages,
|
||||
setGlossary,
|
||||
clearGlossary,
|
||||
getSupportedGlossaryLanguages,
|
||||
quit
|
||||
} = require('deepl-scraper');
|
||||
|
|
@ -111,7 +112,10 @@ await setGlossary({
|
|||
}, 'en', 'fr');
|
||||
```
|
||||
|
||||
Note: at this time, the only way to reset the glossary is to quit the browser.
|
||||
Glossary is cleared when you quit the browser, although it can be cleared earlier using the following method :
|
||||
```js
|
||||
await clearGlossary();
|
||||
```
|
||||
|
||||
As glossary doesn't support all translation-supported languages, you can get the list using the following method :
|
||||
```js
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue