RetroReborn.Localisation
2.1.0-alpha.15
dotnet add package RetroReborn.Localisation --version 2.1.0-alpha.15
NuGet\Install-Package RetroReborn.Localisation -Version 2.1.0-alpha.15
<PackageReference Include="RetroReborn.Localisation" Version="2.1.0-alpha.15" />
<PackageVersion Include="RetroReborn.Localisation" Version="2.1.0-alpha.15" />
<PackageReference Include="RetroReborn.Localisation" />
paket add RetroReborn.Localisation --version 2.1.0-alpha.15
#r "nuget: RetroReborn.Localisation, 2.1.0-alpha.15"
#:package RetroReborn.Localisation@2.1.0-alpha.15
#addin nuget:?package=RetroReborn.Localisation&version=2.1.0-alpha.15&prerelease
#tool nuget:?package=RetroReborn.Localisation&version=2.1.0-alpha.15&prerelease
RetroReborn.Localisation
TOML-backed localisation for the RetroReborn engine.
Install
dotnet add package RetroReborn.Localisation
What's included
Implements ILocalisationService from RetroReborn.Localisation.Abstractions.
Localisation files are TOML, parsed with Samboy063.Tomlet.
Usage
services.AddLocalisation();
// Or via the metapackage:
services.AddRetroReborn();
ILocalisationService loc = services.GetRequiredService<ILocalisationService>();
await loc.LoadAsync("en-GB.toml", cancellationToken);
await loc.SetLocale(new CultureInfo("en-GB"), cancellationToken);
string text = loc.GetLocalisation(new LocalisationKey("ui.start_button"));
Changes
See CHANGELOG.md.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- RetroReborn.Localisation.Abstractions (>= 2.1.0-alpha.15)
- Samboy063.Tomlet (>= 6.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|
2.1.0: Added ICamera (transient), CameraProfile, PresentationFrame redesign, MonoGame.Extended camera, IDisposable on GPU resources, input validation with descriptive exceptions, DI wiring for Game/Localisation/Pilgrimage, ComponentTypes/SpriteProperties/TransformProperties constants. See CHANGELOG.md for breaking changes and migration guidance.