BogaNet.Avalonia 1.4.0

dotnet add package BogaNet.Avalonia --version 1.4.0                
NuGet\Install-Package BogaNet.Avalonia -Version 1.4.0                
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" />                
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                
#r "nuget: BogaNet.Avalonia, 1.4.0"                
#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

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

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"));

BadWordFilter

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
 
BadWordFilter.Instance.LoadResources(true, BWFAvaloniaConstants.BWF_AV_EN, BWFAvaloniaConstants.BWF_AV_DE); //load English and German

// load all domains to detect urls, emails etc.
DomainFilter.Instance.LoadResources(BWFAvaloniaConstants.DOMAINS_AV);

string foulText = "MARTIANS are assholes/arschlöcher!!!!!!!!!!  => WATCH: https//mytruthpage.com/weirdowatch/martians123.divx or WRITE an EMAIL: weirdo@gmail.com";

// replace all bad words, domains or excessive capitalizations/punctuations
string removedProfanity = Pacifier.Instance.ReplaceAll(foulText);
Console.WriteLine(removedProfanity);

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 78 8/5/2024
1.4.0-alpha2 63 8/5/2024
1.4.0-alpha1 63 8/5/2024
0.7.0 80 7/26/2024
0.6.5 84 7/25/2024
0.6.4 84 7/25/2024
0.6.3 74 7/25/2024
0.6.2 78 7/25/2024
0.6.1 78 7/25/2024
0.6.0 88 7/23/2024
0.5.1 106 7/12/2024
0.5.0 98 7/12/2024
0.4.2 103 7/2/2024
0.4.1 97 7/1/2024
0.4.0 96 7/1/2024
0.3.4 96 6/26/2024
0.3.3 92 6/25/2024
0.3.2 94 6/25/2024
0.3.1 95 6/25/2024
0.3.0 95 6/23/2024
0.1.3 97 6/17/2024
0.1.2 106 6/16/2024
0.1.1 106 6/16/2024
0.1.0 118 6/16/2024

Support for BWF added.