Skip to content

Releases: d4n3436/GTranslate

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).

v2.1

23 Apr 21:57
Compare
Choose a tag to compare
  • Added native names to all languages (NativeName property).
  • Added new language (Upper Sorbian).
  • Updated the supported services of some languages.
  • Fixed missing transliteration in GoogleTranslator2.TranslateAsync() that occurred in some cases.
  • Overriden the ToString() method of Language, all translators and translation/transliteration results. This provides a better description of these objects when debugging.
  • Added missing format specifier in YandexTranslator.DetectLanguageAsync(), this caused the method to throw an exception.
  • Now YandexTranslator.TransliterateAsync() will deserialize the response, this removes the extra quotes (") in the response.
  • Updated the default User-Agent headers of all translators. This fixes the HTTP 429 error code returned when trying to get the auth token that MicrosoftTranslator uses.
  • Fixed missing spaces in the translated text in GoogleTranslator2.TranslateAsync().
  • Fixed a bug that produced an exception in GoogleTranslator2.TranslateAsync() caused when translating urls or sentences that returned gender-specific translations.

v2.0.2

07 Apr 04:39
Compare
Choose a tag to compare
  • Fixed a bug in GoogleTranslator that caused the translation source language to be ignored.

v2.0.1

26 Feb 01:10
Compare
Choose a tag to compare
  • Fixed a bug in GoogleTranslator2 that caused the parser to return only the last line of the translation.

v2.0

19 Feb 23:37
Compare
Choose a tag to compare

Additions

  • Added 2 new translators (GoogleTranslator2 and MicrosoftTranslator)
  • Added text-to-speech support to almost all translators
  • Added nullable annotations to the project

Changes

  • Rewritten all the translators to use System.Text.Json
  • Updated target frameworks to .NET Standard 2.0, 2.1 and .NET 6
  • Updated the translators' constructors to make them DI-friendly
  • Renamed Translator to AggregateTranslator
  • Renamed Result property in favor of Translation and Transliteration properties

v1.0.3

22 Jun 05:20
Compare
Choose a tag to compare

The (proper) initial release of GTranslate.

Features:

  • 3 translation services:

    • Google Translate
    • Bing Translator
    • Yandex.Translate
  • Support for translation, transliteration and language detection in the included translators.

  • Support for all the languages of each translator.

  • A language class with methods for getting the supported languages and determining the availability of a language in a specific translator.

  • Interfaces, allowing to write custom translators and languages.

  • A Translator class that groups the default translators for ease of use with the ability to add custom translators.