BogaNet.Avalonia 1.4.0-alpha1

This is a prerelease version of BogaNet.Avalonia.
There is a newer version of this package available.
See the version list below for details.
dotnet add package BogaNet.Avalonia --version 1.4.0-alpha1                
NuGet\Install-Package BogaNet.Avalonia -Version 1.4.0-alpha1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BogaNet.Avalonia" Version="1.4.0-alpha1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BogaNet.Avalonia --version 1.4.0-alpha1                
#r "nuget: BogaNet.Avalonia, 1.4.0-alpha1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BogaNet.Avalonia as a Cake Addin
#addin nuget:?package=BogaNet.Avalonia&version=1.4.0-alpha1&prerelease

// Install BogaNet.Avalonia as a Cake Tool
#tool nuget:?package=BogaNet.Avalonia&version=1.4.0-alpha1&prerelease                

BogaNet.Avalonia

Little helpers for Avalonia development.

Main classes

i18n

To load translations in Avalonia, move them to the "Assets"-folder. Then use them like this:

ResourceHelper.ResourceAssembly = "YourApp"; //set your app ID here
 
Localizer.Instance.LoadResources("Assets/Translation.csv", "Assets/Translation_de.csv"); //load the translation files
Localizer.Instance.Culture = new CultureInfo("en"); //set the culture to English
Console.WriteLine(Localizer.Instance.GetText("Greeting"));

BadWordFiler

To load BWF sources in Avalonia, move them to the "Assets/Filters"-folder. Then use them like this:

ResourceHelper.ResourceAssembly = "YourApp"; //set your app ID here
 
Localizer.Instance.LoadResources("Assets/Translation.csv", "Assets/Translation_de.csv"); //load the translation files
Localizer.Instance.Culture = new CultureInfo("en"); //set the culture to English
Console.WriteLine(Localizer.Instance.GetText("Greeting"));

Nuget:

BogaNet.Avalonia

API:

https://www.crosstales.com/media/data/BogaNet/api/

GitHub:

https://github.com/slaubenberger/BogaNet/

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.4.0 79 8/5/2024
1.4.0-alpha2 64 8/5/2024
1.4.0-alpha1 64 8/5/2024
0.7.0 81 7/26/2024
0.6.5 85 7/25/2024
0.6.4 85 7/25/2024
0.6.3 75 7/25/2024
0.6.2 79 7/25/2024
0.6.1 79 7/25/2024
0.6.0 89 7/23/2024
0.5.1 107 7/12/2024
0.5.0 99 7/12/2024
0.4.2 104 7/2/2024
0.4.1 98 7/1/2024
0.4.0 97 7/1/2024
0.3.4 97 6/26/2024
0.3.3 93 6/25/2024
0.3.2 95 6/25/2024
0.3.1 96 6/25/2024
0.3.0 96 6/23/2024
0.1.3 98 6/17/2024
0.1.2 107 6/16/2024
0.1.1 107 6/16/2024
0.1.0 119 6/16/2024

Support for BWF added.