Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 12:09
· 4 commits to main since this release

TL;DR: this release has breaking changes. See Upgrading to 2.0.0 for how to adapt.

Added

  • Added the interfaces ITextTranslator (TranslateTextAsync()), IDocumentTranslator (TranslateDocumentAsync(),
    TranslateDocumentUploadAsync(), TranslateDocumentGetStatusAsync(), TranslateDocumentWaitUntilDoneAsync(),
    TranslateDocumentDownloadAsync(), all overloads), ILanguageProvider (GetSourceLanguagesAsync(),
    GetTargetLanguagesAsync(), GetGlossaryLanguagesAsync()) and IUsageProvider (GetUsageAsync()), implemented
    by DeepLClient. They take the place of the removed ITranslator, for example for mocking.
  • Breaking: IGlossaryManager now also declares the v2 glossary methods CreateGlossaryAsync(), CreateGlossaryFromCsvAsync(),
    GetGlossaryAsync(), WaitUntilGlossaryReadyAsync(), ListGlossariesAsync(), GetGlossaryEntriesAsync() and
    DeleteGlossaryAsync(). Classes implementing IGlossaryManager themselves must add them.
  • Breaking: IGlossaryManager now also declares the DeepLClient overloads that take CreateMultilingualGlossaryOptions,
    ReplaceMultilingualGlossaryDictionaryOptions or BaseRequestOptions, the MultilingualGlossaryInfo overloads
    of GetMultilingualGlossaryAsync() and UpdateMultilingualGlossaryNameAsync(), and both
    UpdateMultilingualGlossaryAsync() overloads. Classes implementing IGlossaryManager themselves must add them.
  • Breaking: ITranslationMemoryManager now also declares the DeepLClient overloads that take
    TranslationMemorySegmentsOptions, CreateTranslationMemoryImportOptions, ImportTranslationMemoryOptions, a
    timeout or a TranslationMemoryJob. Classes implementing ITranslationMemoryManager themselves must add them.
  • Breaking: IWriter now also declares both CorrectTextAsync() overloads. Classes implementing IWriter themselves must
    add them.
  • Breaking: IStyleRuleManager now also declares the DeepLClient overloads that take a StyleRuleInfo or
    CustomInstruction, and those that take CreateStyleRuleOptions, UpdateStyleRuleNameOptions,
    UpdateStyleRuleConfiguredRulesOptions, CreateStyleRuleCustomInstructionOptions or
    UpdateStyleRuleCustomInstructionOptions. Classes implementing IStyleRuleManager themselves must add them.

Changed

  • Breaking: The package now targets net8.0 and netstandard2.0; the net5.0 target is removed. .NET 5, 6 and 7
    applications now use the netstandard2.0 build, which has no separate connect timeout (see
    PerRetryConnectionTimeout in the README) and does not honour cancellation while it copies a translation
    memory export to a stream. The library is supported on .NET 8 and later, and on .NET Framework 4.6.2 and later.
    Move applications on .NET 5, 6 or 7 to .NET 8 or later.
  • Breaking: The System.Text.Json dependency is now 10.0.14 and applies to the netstandard2.0 build only; net8.0 uses
    the framework's own System.Text.Json. Applications on netstandard2.0 platforms that pin an older
    System.Text.Json must raise it to at least 10.0.14.
  • Breaking: The Microsoft.Extensions.Http.Polly dependency is now 8.0.33 (still Polly 7). Retry and timeout behaviour
    are unchanged. Applications that pin Microsoft.Extensions.Http or Microsoft.Extensions.Http.Polly below 8.0
    must raise them.
  • Breaking: The library is now tested on .NET 8 and .NET 10, instead of .NET 5 and .NET Core 3.1; the netstandard2.0 build
    is tested on the .NET 8 runtime. .NET Core 3.1 and .NET 5 to 7 are not supported: the System.Text.Json 10 and
    Microsoft.Extensions.Http 8 dependencies do not support them, and applications targeting them get a build
    warning that the package "doesn't support" their target framework (an error with TreatWarningsAsErrors). Set
    the SuppressTfmSupportBuildWarnings MSBuild property to true to silence it, at your own risk.
  • Breaking: Glossary endpoints (v2 and v3 multilingual) now throw NotFoundException on HTTP 404, like every other endpoint;
    they threw its subclass GlossaryNotFoundException before. Code catching NotFoundException is unaffected.
    Catch NotFoundException instead of GlossaryNotFoundException.
  • Breaking: DeepL.Internal.LargeFormUrlEncodedContent, MultilingualGlossaryDictionaryEntriesResult and the
    MultilingualGlossaryDictionaryEntries constructor taking a MultilingualGlossaryDictionaryEntriesResult are now
    internal. Construct MultilingualGlossaryDictionaryEntries from the language codes and a GlossaryEntries
    object instead.
  • Breaking: StyleRuleInfo.ConfiguredRules is now a Dictionary<string, Dictionary<string, string>>, the API's
    configured_rules object as sent (category to rule to value, keyed by the API names), the same shape
    CreateStyleRuleAsync() and UpdateStyleRuleConfiguredRulesAsync() take. Categories the removed
    ConfiguredRules class lacked are no longer dropped. Replace rule.ConfiguredRules?.DatesAndTimes with
    rule.ConfiguredRules?["dates_and_times"] (or TryGetValue("dates_and_times", ...)), and likewise for the other
    categories. The IStyleRuleManager methods CreateStyleRuleAsync() and UpdateStyleRuleConfiguredRulesAsync()
    now take this map too, and so does the StyleRuleInfo constructor.
  • Breaking: Text translation, rephrasing and correction, v2 glossary creation, and v3 glossary creation, renaming and
    dictionary updates (CreateMultilingualGlossaryAsync(), CreateMultilingualGlossaryFromCsvAsync(),
    UpdateMultilingualGlossaryNameAsync(), UpdateMultilingualGlossaryDictionaryAsync() and
    UpdateMultilingualGlossaryDictionaryFromCsvAsync()) now send JSON request bodies instead of form-encoded ones.
    text, the tag lists, custom_instructions and glossary_ids are sent as JSON arrays, the v3 dictionaries as
    an array of objects, and booleans and numbers with their JSON types. Code that intercepts or asserts on request
    bodies (proxies, test doubles) sees JSON with Content-Type: application/json. Document upload stays multipart,
    with glossary_ids comma-separated as before. Such code must parse the JSON body instead of form fields.
  • Breaking: BaseRequestOptions.ExtraBodyParameters (on every options class, including those of DeepLAdminClient) is now a
    Dictionary<string, object?>, so extra parameters can be booleans, numbers, arrays or objects. In JSON bodies each
    value is sent with its JSON type, and a null value is sent as JSON null. In the multipart document
    upload, strings are sent as given, collections comma-joined, booleans as true/[secure], numbers in the invariant
    culture and other values as their JSON text. The API does not convert types, so a string for a field it types as
    boolean, number or array (for example ["outline_detection"] = "0") is now rejected: pass the typed value
    (["outline_detection"] = [secure]) or use the matching option. Collection initializers with string values compile
    unchanged; variables or helpers declared as Dictionary<string, string> must be declared as
    Dictionary<string, object?>.
  • Breaking: TranslateDocumentAsync() (all overloads) now returns Task<DocumentStatus>, the final status of the
    translation (for example with BilledCharacters). Code that awaits it without using a result compiles unchanged;
    classes implementing IDocumentTranslator must change the return type.
  • Breaking: TranslateDocumentWaitUntilDoneAsync() (both overloads) now returns Task<DocumentStatus>, the final status with
    status done, instead of discarding it. Classes implementing IDocumentTranslator must change the return type.
  • Breaking: TranslateDocumentAsync() no longer wraps a cancellation requested through its CancellationToken in a
    DocumentTranslationException: the OperationCanceledException (usually a TaskCanceledException) propagates
    as is, as in the step methods. Code catching DocumentTranslationException to detect cancellation must catch
    OperationCanceledException instead. Timeouts and other failures are still wrapped.
  • Breaking: TranslateDocumentAsync(FileInfo, ...) and TranslateDocumentUploadAsync(FileInfo, ...) now throw an
    ArgumentException before any request when the input file does not exist or is a directory, instead of a
    FileNotFoundException, DirectoryNotFoundException or UnauthorizedAccessException. Other local file failures of
    TranslateDocumentAsync(FileInfo, ...) (the input cannot be read, the output file already exists or cannot be
    created) now throw a DocumentTranslationException with the IOException or UnauthorizedAccessException as
    InnerException, still before any request; an existing output file is still left unchanged. Catch
    ArgumentException and DocumentTranslationException instead of the I/O exceptions.
  • Breaking: TranslationMemoryJob.Done and TranslationMemoryJobResult.Done are now true only for
    TranslationMemoryJobStatus.Completed; a failed or expired job is no longer done (check Ok for those). Code that
    used Done to mean "finished, successfully or not" must check Done || !Ok.
    WaitUntilTranslationMemoryJobDoneAsync() still returns a completed job and throws a DeepLException for a failed or expired one.
  • Breaking: ImportTranslationMemoryFromFilepathAsync() and ExportTranslationMemoryToFilepathAsync() now wrap local file
    failures in a TranslationMemoryJobException (see below), with the original IOException or
    UnauthorizedAccessException as InnerException: an input file that cannot be read, an output file that already
    exists or cannot be created, and errors writing the output. The checks still run before any job is created, and a
    missing input file still throws an ArgumentException. Catch DeepLException or
    TranslationMemoryJobException instead of the I/O exceptions.
  • Breaking: TextResult.BilledCharacters is now a long and DocumentStatus.BilledCharacters a long?, so counts above
    int.MaxValue are kept; DocumentStatus read such a count as null before. The TextResult and
    DocumentStatus constructors take long and long?. Code assigning the value to an int must cast or use
    long.
  • Breaking: TranslationMemoryJobResult.SkippedSegmentCount is now a long? instead of an int?. The
    TranslationMemoryJobResult constructor takes a long?. Code assigning it to an int? must cast or use long?.
  • Breaking: TranslationMemoryJob.Product is now a non-nullable string, and CreationTime and UpdatedTime are non-nullable
    DateTimes; a job response without one of them throws a DeepLException. The TranslationMemoryJob
    constructor takes them as required parameters after results. Remove null checks and .Value on these
    properties.
  • Breaking: Usage.AnyLimitReached is replaced by Usage.AnyCharacterLimitReached: true if the account's character limit
    (Character) or this API key's character limit (ApiKeyCharacter) is reached. The speech minutes have their own
    details (SpeechToTextMinutes, SpeechToSpeechMinutes). Code that needs only the account-wide limit must check
    Character directly.
  • Breaking: operations that create a resource are now retried only when the request was not sent: after HTTP 429
    and after a transient network failure before any request byte is written, such as a name resolution failure, a
    refused, reset or timed-out connection, an unreachable host or network, or a reset or timeout in the TLS handshake
    or the proxy tunnel. A TLS or certificate error and an error answer of a proxy are never retried. They are
    TranslateDocumentAsync() and TranslateDocumentUploadAsync(), CreateGlossaryAsync(),
    CreateGlossaryFromCsvAsync(), CreateMultilingualGlossaryAsync(), CreateMultilingualGlossaryFromCsvAsync(),
    CreateStyleRuleAsync(), CreateStyleRuleCustomInstructionAsync(), CreateStyleProfileAsync(),
    CreateSpokenTermsAsync(), CreateTranslationMemoryImportAsync() and CreateTranslationMemoryExportAsync(), like
    DeepLAdminClient.CreateDeveloperKeyAsync() before. After a 5xx, a timeout or a broken connection they no longer
    retry, and DeepLException.ShouldRetry is [secure], because the resource may already exist; check whether it exists
    before creating it again. ImportTranslationMemoryFromFilepathAsync() and
    ExportTranslationMemoryToFilepathAsync() create their jobs the same way.
  • Breaking: a response body cut off mid-read (the connection breaks after the status line) is now retried like a
    connection reset, by every method except the resource creates above. It was not retried before.
  • Breaking: a response body cut off mid-read now throws a ConnectionException with ShouldRetry true for the
    resource creates above and DeepLAdminClient.CreateDeveloperKeyAsync() too, which do not retry it themselves; it
    was [secure] for them before. This also applies to an HttpClient from ClientFactory: the client now reads the
    response body after the headers, so a cut-off body is told apart from a failure to send.
  • Breaking: UpdateMultilingualGlossaryNameAsync() now throws an ArgumentException for an empty or whitespace
    glossary ID (also from a MultilingualGlossaryInfo), like UpdateMultilingualGlossaryAsync(). An empty ID sent
    the request to the glossary collection path before, and a whitespace ID was sent as the ID.
  • Breaking: creating a DeepLClient or DeepLAdminClient now throws an ArgumentException if the Proxy option
    is not an absolute http or https URL. A relative URL threw an InvalidOperationException before, and another
    scheme, for example ftp://, was accepted and failed only at the first request.
  • Breaking: Error messages now include the API's message from a nested error.message field of the response body, as the API
    sends for some statuses (for example 414, 500 and 503), when there is no top-level message. It was dropped before.
    Code that compares the whole message must match its start or check HttpStatusCode instead.
  • Breaking: UploadTranslationMemoryFileAsync() now throws an ArgumentException if the upload URL is not an
    absolute http or https URL, before reading the stream. It threw a UriFormatException for an unparsable URL
    before, and a ConnectionException at the request for a relative path such as /upload or another scheme such as
    ftp://.
  • Breaking: DownloadTranslationMemoryExportAsync() now throws a DeepLException instead of an
    ArgumentException if the job has no download URL: the job state comes from the API. Catch DeepLException.
  • Breaking: ImportTranslationMemoryFromFilepathAsync() and ExportTranslationMemoryToFilepathAsync() now wrap
    every failure in the new TranslationMemoryJobException (a DeepLException), with the cause as InnerException:
    local file errors, argument errors, API errors, a failed or expired job and an expired timeout. Once the job was
    created, JobId is set and Job holds its last retrieved state; HttpStatusCode and ShouldRetry are copied
    from a DeepLException cause. A missing input file still throws an ArgumentException before any request, an
    empty input file now throws before any request too, and cancellation through the CancellationToken is not
    wrapped. Code catching DeepLException still catches it; code catching a subclass such as NotFoundException
    must catch TranslationMemoryJobException and check InnerException.
  • Headers from the Headers option that .NET classes as content headers (for example Content-Language or
    Content-Encoding) are now sent on the content of requests with a body, replacing the client's value, and are not
    sent on requests without a body. Every request failed with a ConnectionException ("Unexpected request failure")
    before.
  • Breaking: creating a DeepLClient or DeepLAdminClient now throws an ArgumentException if the ServerUrl
    option is not an absolute http or https URL. An unparsable URL threw a UriFormatException before, and another
    scheme, for example ftp://, was accepted and failed only at the first request. Catch ArgumentException instead
    of UriFormatException.
  • Breaking: a null value in ExtraBodyParameters is now sent as JSON null in the bodies that became JSON (text
    translation, rephrasing and correction, and v3 glossary creation, renaming and dictionary updates), where 1.x sent
    an empty form value; leave the key out to not send it. In a document upload a null value now removes the key,
    where 1.x threw an ArgumentNullException.
  • Breaking: UpdateMultilingualGlossaryDictionaryFromCsvAsync() and ReplaceMultilingualGlossaryDictionaryFromCsvAsync() now
    throw an ArgumentException for empty or whitespace-only CSV content, without sending a request. The request was
    sent to the API before. Catch ArgumentException for empty CSV content.
  • Breaking: the overloads taking a MultilingualGlossaryInfo, TranslationMemoryInfo, TranslationMemoryJob,
    StyleProfile or SpokenTerms now throw an ArgumentNullException (an ArgumentException) for a null object,
    without sending a request. They threw a NullReferenceException before. ExportTranslationMemoryToFilepathAsync()
    throws a TranslationMemoryJobException with the ArgumentNullException as its cause instead. Catch
    ArgumentException instead of NullReferenceException.
  • Breaking: DeepLAdminClient.CreateDeveloperKeyAsync() is now retried after every transient network failure
    raised before the request is written: besides name resolution failures, refused connections and connect timeouts
    also an unreachable host or network, a reset or timeout while connecting to the server or proxy, in the proxy tunnel
    or in the TLS handshake. The same failures after the request was written are not retried. It threw a
    ConnectionException with ShouldRetry [secure] after one attempt before; ShouldRetry is true now. On .NET 8
    and later the connect timeout (half of PerRetryConnectionTimeout) also covers the proxy tunnel and the TLS
    handshake. Migration: none needed; code that retries CreateDeveloperKeyAsync() itself after such an error now sees
    the library's retries first.
  • Breaking: on .NET Framework a failure to resolve the proxy's name
    (WebExceptionStatus.ProxyNameResolutionFailure) is retried like a failure to resolve the server's name and has
    ShouldRetry true; it was not retried before.
  • Breaking: language codes are checked before any request, by one rule: a required code that is null or empty or
    whitespace-only throws, and an optional one that is empty or whitespace-only throws (null leaves it unset). A
    null target language of TranslateTextAsync(), TranslateDocumentUploadAsync() and TranslateDocumentAsync()
    throws an ArgumentNullException (an ArgumentException; for TranslateDocumentAsync() it is the InnerException
    of the DocumentTranslationException) instead of a NullReferenceException. A whitespace-only source or target
    language of those methods, of RephraseTextAsync() and of CorrectTextAsync() throws an ArgumentException too;
    it was sent to the API before. An empty, whitespace-only or null language of a dictionary in
    CreateMultilingualGlossaryAsync() and UpdateMultilingualGlossaryAsync(), of a term list of the spoken terms
    creates, updates and ReplaceSpokenTermsListAsync(), and the lang of GetSpokenTermsEntriesAsync() and
    DeleteSpokenTermsListAsync() throws an ArgumentException instead of being sent to the API. An empty or
    whitespace-only sourceLanguage of a custom instruction in CreateStyleRuleAsync(),
    CreateStyleRuleCustomInstructionAsync() and UpdateStyleRuleCustomInstructionAsync() throws an
    ArgumentException; null still leaves it unset.
  • Breaking: an empty or whitespace-only Glossary, StyleRule, StyleProfile or TranslationMemory, and an
    empty or whitespace-only entry of GlossaryIds, in TextTranslateOptions or DocumentTranslateOptions now throw an
    ArgumentException without sending a request (for TranslateDocumentAsync() it is the InnerException of the
    DocumentTranslationException). They were sent to the API before. Leave the option unset (null) instead.
  • Breaking: the CustomInstruction parameter of the GetStyleRuleCustomInstructionAsync(),
    UpdateStyleRuleCustomInstructionAsync() and DeleteStyleRuleCustomInstructionAsync() overloads is renamed from
    instruction to instructionId, the name it has in the overloads taking an ID. Calls that pass it by name must use
    instructionId:.
  • Breaking: a null text, texts list or text entry in TranslateTextAsync(), RephraseTextAsync() and
    CorrectTextAsync(), a null entry of GlossaryIds, IgnoreTags, NonSplittingTags, SplittingTags or
    CustomInstructions, and a null argument of the TextTranslateOptions constructors now throw an
    ArgumentNullException (an ArgumentException) naming it before any request. They threw a NullReferenceException,
    an ArgumentNullException naming source (a null list), or sent the request before. Catch ArgumentException
    (or ArgumentNullException) instead of NullReferenceException.
  • Breaking: a null input or output file or stream, or a null inputFileName, in the
    TranslateDocumentAsync(), TranslateDocumentUploadAsync() and TranslateDocumentDownloadAsync() overloads, and a
    null argument of the DocumentTranslateOptions constructors now throw an ArgumentNullException (an
    ArgumentException; for TranslateDocumentAsync() it is the InnerException of the
    DocumentTranslationException, except for a null input FileInfo) before any request. They threw a
    NullReferenceException or a plain ArgumentException, or failed only after the upload, before. Catch
    ArgumentException (or ArgumentNullException) instead of NullReferenceException.
  • Breaking: null IDs, names, language codes, entries, CSV streams and dictionaries of the glossary methods, and
    null arguments or terms of GlossaryEntries and MultilingualGlossaryDictionaryEntries, now throw an
    ArgumentNullException (an ArgumentException) naming the parameter before any request. They threw a
    NullReferenceException, a plain ArgumentException or an ArgumentNullException naming source (a null
    list), or sent a request to v2/glossaries/, before. Catch ArgumentException (or ArgumentNullException)
    instead of NullReferenceException.
  • Breaking: null IDs, names, languages, labels, prompts, StyleRuleInfo and CustomInstruction objects and
    customInstructions entries of the style rule methods now throw an ArgumentNullException (an ArgumentException)
    naming the parameter before any request. They threw a plain ArgumentException or sent JSON null before. catch (ArgumentException) still catches them; code comparing the exact exception type must expect
    ArgumentNullException.
  • Breaking: a null name or style profile ID and a null entry of GlossaryIds, StyleRuleIds or
    TranslationMemoryIds of the style profile methods now throw an ArgumentNullException (an ArgumentException)
    before any request. They threw a plain ArgumentException or sent the request before. catch (ArgumentException)
    still catches them; code comparing the exact exception type must expect ArgumentNullException.
  • Breaking: a null name, spoken terms ID, term list, term list entry or term now throws an
    ArgumentNullException (an ArgumentException) naming the parameter before any request. It threw a
    NullReferenceException or a plain ArgumentException, or was sent as JSON null, before. Catch
    ArgumentException (or ArgumentNullException) instead of NullReferenceException.
  • Breaking: null IDs, file names, file paths, upload URLs, TranslationMemoryImport and TranslationMemoryJob
    objects and streams of the translation memory methods now throw an ArgumentNullException (an ArgumentException)
    naming the parameter before any request (for ExportTranslationMemoryToFilepathAsync() it is the InnerException
    of the TranslationMemoryJobException). They threw a NullReferenceException or a plain ArgumentException
    before. A null contentType of UploadTranslationMemoryFileAsync() now uses application/xml; it threw an
    ArgumentException before. A null file path named the framework's fileName parameter before. Catch
    ArgumentException (or ArgumentNullException) instead of NullReferenceException.
  • Breaking: IsFreeAccountAuthKey(null), a null resource or include entry of
    GetLanguagesForResourceAsync(), and a null key ID or label of the developer key methods now throw an
    ArgumentNullException (an ArgumentException) naming the parameter before any request. They threw a
    NullReferenceException, a plain ArgumentException or an ArgumentNullException naming stringToEscape, or sent
    JSON null, before. Catch ArgumentException (or ArgumentNullException) instead of NullReferenceException.

Removed

  • Breaking: Removed Usage.Document and Usage.TeamDocument; the API no longer returns document usage. Usage.ToString() no
    longer has the "Documents" and "Team documents" lines. Responses that still contain the document_* or
    team_document_* fields are parsed as before; the fields are ignored. Remove code that reads these properties.
  • Breaking: Removed the ConfiguredRules class and the DeepLClient.CreateStyleRuleAsync() and
    UpdateStyleRuleConfiguredRulesAsync() overloads taking it. Pass the configured rules as a
    Dictionary<string, Dictionary<string, string>> keyed by the API names instead, for example
    new() { ["dates_and_times"] = new() { ["calendar_era"] = "use_bc_and_ad" } } for
    new ConfiguredRules(datesAndTimes: ...).
  • Breaking: Removed the Translator class, its ITranslator interface and TranslatorOptions. DeepLClient no longer
    derives from Translator and now holds all of its methods. Replace new Translator(authKey, new TranslatorOptions { ... }) with new DeepLClient(authKey, new DeepLClientOptions { ... }), and variables or parameters typed
    Translator or ITranslator with DeepLClient or the interfaces listed under Added. DeepLClientOptions now
    derives from BaseClientOptions.
  • Breaking: Removed Translator.AuthKeyIsFreeAccount(); use DeepLClient.IsFreeAccountAuthKey() instead.
  • Breaking: Removed TranslateDocumentStatusAsync(); use TranslateDocumentGetStatusAsync() instead.
  • Breaking: Removed GlossaryNotFoundException; catch NotFoundException instead.
  • Breaking: Removed TranslationMemoryJobStatus.Downloaded; the DeepL API does not define that status. A "downloaded" status
    is now TranslationMemoryJobStatus.Unknown, with "downloaded" in StatusValue, and
    WaitUntilTranslationMemoryJobDoneAsync() keeps polling on it instead of returning. Compare StatusValue with
    "downloaded" where you compared Status with TranslationMemoryJobStatus.Downloaded.
    Removing it also renumbers TranslationMemoryJobStatus: Failed is now 3 (was 4), Expired 4 (was 5) and
    Unknown 5 (was 6). Code that stores or compares the numeric values must change.
  • Breaking: Removed document minification: DocumentTranslateOptions.EnableDocumentMinification, DocumentMinifier,
    IDocumentMinifier, DocumentMinificationException and DocumentDeminificationException. Translate the document
    as is; the DeepL API accepts larger documents than when minification was added. A missing or unreadable input
    file of TranslateDocumentAsync() no longer throws a DocumentMinificationException; see Changed for the
    exceptions it throws now.
  • Breaking: Removed the language code constants of the LanguageCode class (for example LanguageCode.German). Pass the
    language code as a string, for example "de", and use GetSourceLanguagesAsync() and GetTargetLanguagesAsync()
    to retrieve the supported languages. LanguageCode.RemoveRegionalVariant() remains.
  • Breaking: Removed Usage.JsonFieldsStruct and the Usage(in Usage.JsonFieldsStruct) constructor; GetUsageAsync() does not
    use them, and Usage no longer has a public constructor. Obtain Usage from GetUsageAsync().
  • Breaking: Removed the obsolete GlossaryId, StyleId and TranslationMemoryId properties of TextTranslateOptions and
    DocumentTranslateOptions. Use Glossary, StyleRule and TranslationMemory instead; they take the same ID.

Fixed

  • The NuGet package now contains the XML documentation file (DeepL.net.xml) for each target framework, so IDEs
    show the API documentation of the library.