![]() |
VOOZH | about |
dotnet add package idee5.Globalization --version 3.6.0
NuGet\Install-Package idee5.Globalization -Version 3.6.0
<PackageReference Include="idee5.Globalization" Version="3.6.0" />
<PackageVersion Include="idee5.Globalization" Version="3.6.0" />Directory.Packages.props
<PackageReference Include="idee5.Globalization" />Project file
paket add idee5.Globalization --version 3.6.0
#r "nuget: idee5.Globalization, 3.6.0"
#:package idee5.Globalization@3.6.0
#addin nuget:?package=idee5.Globalization&version=3.6.0Install as a Cake Addin
#tool nuget:?package=idee5.Globalization&version=3.6.0Install as a Cake Tool
Database driven tools for .NET localization. But different.
The existing solutions are well suited for tailormade products or products without any modifcations for customers or groups of customers.
Every industry has its own parlance. The same thing has a different name and your customers might not understand you or your product.
Maybe you need to create custom versions for your customers industries. Keeping text in your UI in sync with all the versions can quickly create a lot of overhead.
Sometimes customers addiotionally have their own terminology. The mess is even growing.
This is why we created our own implementation of a database driven localization library.
This library supports parlances for industries and customers. Every resource can have:
All hidden behind the standard .NET localization. There is no need to make big changes in your product. Only a little bit of configuration.
There are three nuget packages available.
The code below assumes you are using the .NET DI container.
Using the Options pattern you are able to set the industry and/or customer. Both being null would be the neutral/standard version.
services.Configure<ExtendedLocalizationOptions>(o => {
o.Customer = null;
o.Industry = null;
});
In production you should use another configuration provider. E.g. appsettings.json
Just replace the default StringLocalizerFactory.
// add the EF Core localization implementation
services.AddEFCoreLocalization(o => o.UseSqlite(new SimpleDB3ConnectionStringProvider().GetConnectionString("idee5.Resources.db3")));
By adding the controllers you can use web api calls to read and mange your resources.
// add the localization controllers
services.AddMvc().AddLocalizationControllers();
// configure the authorization policy
services.AddAuthorizationBuilder()
.AddPolicy("CommandPolicy", p => p.RequireAssertion(_ => true))
.AddPolicy("QueryPolicy", p => p.RequireAssertion(_ => true));
Protecting the localization controllers from unauthorized access can be configured with the QueryPolicy and the CommandPolicy.
For desktop applications we recommend using the commands and queries from idee5.Globalization directly.
For web applications we recommend the integration of the localization controllers from idee5.Globalization.WebApi into your application.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 2 NuGet packages that depend on idee5.Globalization:
| Package | Downloads |
|---|---|
|
idee5.Globalization.EFCore
Entity Framework Core context provider for idee5.Globalization. |
|
|
idee5.Globalization.WebApi
Web api controllers for idee5.Globalization |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.6.0 | 213 | 1/6/2025 |
| 3.5.9 | 201 | 10/22/2024 |
| 3.5.8 | 205 | 4/20/2024 |
| 3.5.7 | 212 | 4/20/2024 |
| 3.5.6 | 211 | 4/19/2024 |
| 3.5.5 | 197 | 4/19/2024 |
| 3.5.4 | 202 | 4/19/2024 |
| 3.5.3 | 211 | 4/18/2024 |
| 3.5.2 | 210 | 4/10/2024 |
| 3.5.1 | 201 | 4/10/2024 |
| 3.5.0 | 197 | 4/9/2024 |
| 3.4.0 | 195 | 4/4/2024 |
| 3.3.1 | 229 | 3/28/2024 |
| 3.3.0 | 214 | 3/22/2024 |
| 3.2.1 | 250 | 3/17/2024 |
| 3.2.0 | 315 | 1/6/2024 |
| 3.1.0 | 256 | 12/31/2023 |
Support for custom resource sets in Stringlocalizer