idee5.Globalization
3.5.0
See the version list below for details.
dotnet add package idee5.Globalization --version 3.5.0
NuGet\Install-Package idee5.Globalization -Version 3.5.0
<PackageReference Include="idee5.Globalization" Version="3.5.0" />
paket add idee5.Globalization --version 3.5.0
#r "nuget: idee5.Globalization, 3.5.0"
// Install idee5.Globalization as a Cake Addin #addin nuget:?package=idee5.Globalization&version=3.5.0 // Install idee5.Globalization as a Cake Tool #tool nuget:?package=idee5.Globalization&version=3.5.0
idee5.Globalization
Database driven tools for .NET localization. But different.
Why another localizazion library?
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.
What makes this library differnt?
This library supports parlances for industries and customers. Every resource can have:
- a neutral version.
- an industry version.
- a customer version.
All hidden behind the standard .NET localization. There is no need to make big changes in your product. Only a little bit of configuration.
Getting started
There are three nuget packages available.
- idee5.Globalization. The minimum you need.
- dee5.Globalization.EFCore. An EF Core based implementation of the database layer.
- idee5.Globalization.WebApi. ASP.NET Core integration. Including api controllers for your own application.
The code below assumes you are using the .NET DI container.
Configure your Industry and customer
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
Register the EF Core module
Just replace the default StringLocalizerFactory
.
// add the EF Core localization implementation
services.AddEFCoreLocalization(o => o.UseSqlite(new SimpleDB3ConnectionStringProvider().GetConnectionString("idee5.Resources.db3")));
Integrate the localization controllers
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
.
Managing the resources
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 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- idee5.Common (>= 4.0.0)
- idee5.Common.Data (>= 2.2.0)
- Microsoft.Extensions.Localization.Abstractions (>= 8.0.3)
- Microsoft.Extensions.Options (>= 8.0.2)
- NSpecifications (>= 1.1.0)
- ResXResourceReader.NetStandard (>= 1.3.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Configuration.ConfigurationManager (>= 8.0.0)
- System.Drawing.Common (>= 8.0.3)
- System.Text.Json (>= 8.0.3)
NuGet packages (2)
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 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.5.9 | 88 | 10/22/2024 |
3.5.8 | 122 | 4/20/2024 |
3.5.7 | 112 | 4/20/2024 |
3.5.6 | 105 | 4/19/2024 |
3.5.5 | 118 | 4/19/2024 |
3.5.4 | 111 | 4/19/2024 |
3.5.3 | 112 | 4/18/2024 |
3.5.2 | 116 | 4/10/2024 |
3.5.1 | 113 | 4/10/2024 |
3.5.0 | 112 | 4/9/2024 |
3.4.0 | 110 | 4/4/2024 |
3.3.1 | 130 | 3/28/2024 |
3.3.0 | 120 | 3/22/2024 |
3.2.1 | 142 | 3/17/2024 |
3.2.0 | 209 | 1/6/2024 |
3.1.0 | 138 | 12/31/2023 |
Update resource key added