Release/v1.9.5 - #12
Merged
Merged
Conversation
Introduces AddLibreTranslate() extension method that registers LibreTranslate using IHttpClientFactory, following ASP.NET Core DI conventions. Adds LibreTranslateConfiguration model and LibraryConstants for centralized defaults. Marks direct HttpClient constructors as obsolete in favor of the DI-friendly HttpClient constructor. Includes DI-based integration tests.
…sion-methods Add DI registration support via IServiceCollection extension methods
Extends TargetFrameworks to include net8.0 and net10.0 alongside the existing netstandard2.0, and runs tests against both runtimes.
Add explicit net8.0 and net10.0 targets
Replaces FormUrlEncodedContent with a generic RequestUtils.ToStringContent<T>() helper. Adds LanguageCodeConverter and TextFormatConverter to handle custom type serialization, and covers the suggest endpoint with integration tests.
Migrate POST requests from form-urlencoded to JSON body
Replaces FormUrlEncodedContent with a generic RequestUtils.ToStringContent<T>() helper. Adds LanguageCodeConverter and TextFormatConverter to handle custom type serialization, and covers the suggest endpoint with integration tests.
Migrate POST requests from form-urlencoded to JSON body
Adds GitHub Actions workflows for CI (build + test on net8.0 and net10.0 with LibreTranslate service container) and NuGet publishing via trusted publishing (OIDC). Rewrites README with modern badges, DI usage example, full API reference, and language code documentation. Removes the legacy CodeQL workflow and the LibreTranslate.Net.Cmd console project.
Add CI/CD workflows, update README, and remove legacy projects
ALDamico
added a commit
that referenced
this pull request
Apr 28, 2026
Merge pull request #12 from ALDamico/release/v1.9.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.