Skip to content

Commit

Permalink
docs: fix typo in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-jones-dev committed Oct 9, 2023
1 parent ec58d44 commit 3c38103
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -20,6 +20,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Note: older library versions also support the new glossary language pairs,
this update only adds new types.
* Fixed typo in readme: `createGlossaryWithCsv` not `createGlossaryFromCsv`
* Issue [#36](https://github.com/DeepLcom/deepl-node/issues/36) thanks to
[phenomen](https://github.com/phenomen).


## [1.10.2] - 2023-06-02
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -260,13 +260,13 @@ const glossaryEnToDe = await translator.createGlossary('My glossary', 'en', 'de'
```

You can also upload a glossary downloaded from the DeepL website using
`createGlossaryFromCsv()`. Instead of supplying the entries as a dictionary,
`createGlossaryWithCsv()`. Instead of supplying the entries as a dictionary,
provide the CSV file as a string containing the file path, or a Stream, Buffer,
or FileHandle containing the CSV file content:

```javascript
const csvFilePath = '/path/to/glossary_file.csv';
const glossaryEnToDe = await translator.createGlossaryFromCsv(
const glossaryEnToDe = await translator.createGlossaryWithCsv(
'My glossary',
'en',
'de',
Expand Down

0 comments on commit 3c38103

Please sign in to comment.