Skip to content

Releases: d4n3436/GTranslate

v2.2.8

27 Sep 03:08
Compare
Choose a tag to compare

Additions

  • Added checks for max. text length on BingTranslator, MicrosoftTranslator and GoogleTranslator2
  • Added new Google TTS language (fr-CA)

Changes

  • Fixed deserialization errors on BingTranslator and MicrosoftTranslator
  • Fixed language dictionary not finding values because of a missing comparer
  • Marked BingTranslationResult.SourceLanguage and BingTransliterationResult.SourceLanguage as nullable. These properties will return null if the translator can't auto-detect the language of the input text

v2.2.7

14 Aug 03:17
Compare
Choose a tag to compare

Additions

  • Added missing default voices to MicrosoftTranslator
  • Added missing TTS language to YandexTranslator

Changes

  • Fixed deserialization error on GoogleTranslator
  • Updated default User-Agent header
  • Improved the performance of language lookups on .NET 8

v2.2.6

05 Aug 00:04
Compare
Choose a tag to compare

Additions

  • Added back the new Google languages that were previously removed

Changes

  • Fixed some deserialization bugs on BingTranslator and MicrosoftTranslator
  • Fixed a bug in the creation of the TTS payload on GoogleTranslator2
  • Minor performance improvements

v2.2.5

31 Jul 00:22
Compare
Choose a tag to compare

Additions

  • Added source transliteration property to multiple translation and transliteration results
  • Added source script property to MicrosoftTransliterationResult

Changes

  • Temporarily removed the new languages of v2.2.3 because GoogleTranslator currently doesn't support the new languages, and GoogleTranslator2 doesn't return a valid result in most cases without the X-Goog-BatchExecute-Bgr header
  • Use source generation for JSON serialization and deserialization of requests and responses in all translator classes
  • Now MicrosoftTransliterationResult.SourceLanguage will return the language of the source text instead of throwing an exception
  • Now the library will reference the System.Net.Http.Json package (except on .NET 8)

v2.2.3

26 Jul 02:34
Compare
Choose a tag to compare

Additions

  • Added 94 new languages, 2 new TTS languages provided by Google and updated the supported services of many languages

Changes

  • Updated the default API endpoint of MicrosoftTranslator. It should be more stable but it has a limit of 1000 characters per translation request
  • Updated System.Text.Json dependency
  • Wrapped the translation and transliteration results of AggregateTranslator to include the exceptions that have occurred before receiving the result

v2.2

26 May 21:28
Compare
Choose a tag to compare

Additions

  • Added 4 new languages, 5 new Google TTS languages and updated the supported services of some languages
  • Added .NET 8 target framework
  • Added support for Native AOT
  • Added TTS support to BingTranslator through new API endpoint

Changes

  • Updated the default API endpoint of MicrosoftTranslator (fixes the HTTP 405 errors)
  • Updated the default User-Agent header
  • Updated System.Text.Json package to latest version

v2.1.6

13 Mar 22:28
Compare
Choose a tag to compare
  • Changed the default API endpoint in MicrosoftTranslator. This removes the 1000 character limit in TranslateAsync().

v2.1.5

10 Mar 22:48
Compare
Choose a tag to compare
  • Added 2 new languages and updated the supported services of some languages.
  • Fixed MicrosoftTranslator. Now it sends requests to the API using a special header that eliminates the need of requesting a token every 10 minutes (except in TTS).
  • Now AggregateTranslator will throw a proper exception when both target and source languages are not supported.

v2.1.3

13 Jan 22:28
Compare
Choose a tag to compare
  • Added 19 new languages and updated the supported services of some languages.
  • Added support for trimming.
  • Reduced the memory usage of BingTranslator.
  • Updated the default User-Agent header.
  • Fixed BingTranslator and MicrosoftTranslator.
  • Now MicrosoftTranslator returns the proper target language from the API response.

v2.1.1

28 Jul 00:06
Compare
Choose a tag to compare
  • Improved the lookup of languages. Now the language dictionary uses a case-insensitive equality comparer.
  • Now BingTranslator and MicrosoftTranslator perform double-checked locking on cached value retrievals to improve thead-safety.
  • Fixed a bug that produced a EncoderFallbackException on translators that required text to be JSON-encoded due to encoding issues caused by transcoding UTF-16 strings with invalid characters.
  • Fixed a bug that produced a 400 Bad Request status code from MicrosoftTranslator's TTS method due to missing escaping in the text.
  • Updated the supported services in languages and added missing language (Somali).