Releases: d4n3436/GTranslate
Releases · d4n3436/GTranslate
v2.2
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
v2.1.5
- 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
- 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
andMicrosoftTranslator
. - Now
MicrosoftTranslator
returns the proper target language from the API response.
v2.1.1
- Improved the lookup of languages. Now the language dictionary uses a case-insensitive equality comparer.
- Now
BingTranslator
andMicrosoftTranslator
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
- 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 ofLanguage
, 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 thatMicrosoftTranslator
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
v2.0.1
v2.0
Additions
- Added 2 new translators (
GoogleTranslator2
andMicrosoftTranslator
) - 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
toAggregateTranslator
- Renamed
Result
property in favor ofTranslation
andTransliteration
properties
v1.0.3
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.