Skip to content

Commit

Permalink
docs: Fix glossary entries example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
JanEbbing committed Jan 15, 2025
1 parent aa89025 commit c439d4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
### Fixed
* Fixed code example for getting glossary entries in the README
* [#58](https://github.com/DeepLcom/deepl-dotnet/issues/58) thanks to [KurtBildeSDU](https://github.com/KurtBildeSDU)


## [1.12.0] - 2025-01-09
### Added
* Added document minification as a feature before document translation, to
allow translation of large docx or pptx files. For more info check the README.


## [1.11.0] - 2024-11-15
### Added
* Added `ModelType` option for text translation to use models with higher
Expand Down Expand Up @@ -173,6 +180,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.1.0] - 2021-11-05
Initial release.


[Unreleased]: https://github.com/DeepLcom/deepl-dotnet/compare/v1.12.0...HEAD
[1.12.0]: https://github.com/DeepLcom/deepl-dotnet/compare/v1.11.0...v1.12.0
[1.11.0]: https://github.com/DeepLcom/deepl-dotnet/compare/v1.10.0...v1.11.0
[1.10.0]: https://github.com/DeepLcom/deepl-dotnet/compare/v1.9.0...v1.10.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ To list the entries contained within a stored glossary, use
`GetGlossaryEntriesAsync()` providing either the `GlossaryInfo` object or glossary ID:

```c#
var entries = translator.GetGlossaryEntriesAsync(myGlossary);
var entries = await translator.GetGlossaryEntriesAsync(myGlossary);

foreach (KeyValuePair<string, string> entry in entries.ToDictionary()) {
Console.WriteLine($"{entry.Key}: {entry.Value}");
Expand Down

0 comments on commit c439d4f

Please sign in to comment.