diff --git a/CHANGELOG.md b/CHANGELOG.md index 84f1191..bd49209 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index b2c4b6c..56e6ba2 100644 --- a/README.md +++ b/README.md @@ -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',