Releases: d4n3436/GTranslate
Releases · d4n3436/GTranslate
v2.2.8
Additions
- Added checks for max. text length on
BingTranslator
,MicrosoftTranslator
andGoogleTranslator2
- Added new Google TTS language (
fr-CA
)
Changes
- Fixed deserialization errors on
BingTranslator
andMicrosoftTranslator
- Fixed language dictionary not finding values because of a missing comparer
- Marked
BingTranslationResult.SourceLanguage
andBingTransliterationResult.SourceLanguage
as nullable. These properties will returnnull
if the translator can't auto-detect the language of the input text
v2.2.7
v2.2.6
v2.2.5
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, andGoogleTranslator2
doesn't return a valid result in most cases without theX-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
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
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).