DataFilter.Localization 1.1.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package DataFilter.Localization --version 1.1.3
                    
NuGet\Install-Package DataFilter.Localization -Version 1.1.3
                    
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="DataFilter.Localization" Version="1.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DataFilter.Localization" Version="1.1.3" />
                    
Directory.Packages.props
<PackageReference Include="DataFilter.Localization" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DataFilter.Localization --version 1.1.3
                    
#r "nuget: DataFilter.Localization, 1.1.3"
                    
#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.
#:package DataFilter.Localization@1.1.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DataFilter.Localization&version=1.1.3
                    
Install as a Cake Addin
#tool nuget:?package=DataFilter.Localization&version=1.1.3
                    
Install as a Cake Tool

DataFilter.Localization

Shared localization resources and runtime culture switching helpers used by DataFilter UI integrations.

NuGet integration

Install the package

dotnet add package DataFilter.Localization

Target frameworks

netstandard2.0, net8.0, net9.0

Dependencies

None. Referenced transitively by all UI packages (DataFilter.Wpf, DataFilter.Blazor, DataFilter.WinForms, etc.).

Quick start

using System.Globalization;
using DataFilter.Localization;

// Switch popup language at runtime (all UI stacks)
LocalizationManager.Instance.SetCulture(new CultureInfo("fr"));

// Read a string
var okLabel = LocalizationManager.Instance["Ok"];

// Revert to process UI culture
LocalizationManager.Instance.SetCulture(null);

Per-grid culture override is available on IFilterableDataGridViewModel.CultureOverride (see DataFilter.PlatformShared).

What this project contains

  • Shared RESX resources for popup UI texts (buttons, section headers, operator names, etc.).
  • A single runtime entry point: DataFilter.Localization.LocalizationManager.

Used by the UI integrations:

  • DataFilter.Wpf
  • DataFilter.WinForms
  • DataFilter.WinUI3
  • DataFilter.Maui
  • DataFilter.Blazor

Runtime language switching

Switch the UI culture at runtime:

using System.Globalization;
using DataFilter.Localization;

LocalizationManager.Instance.SetCulture(new CultureInfo("fr"));

Revert to the current process UI culture:

LocalizationManager.Instance.SetCulture(null);

Getting localized strings

Retrieve a string by key:

var ok = LocalizationManager.Instance["Ok"];

If a key is missing, the indexer returns the key itself (so missing resources are easy to spot).

Per-grid popup culture override

UI hosts can force a popup culture via IFilterableDataGridViewModel.CultureOverride. DataFilter.PlatformShared.ViewModels.FilterableDataGridViewModel provides convenience constructors:

using System.Globalization;
using DataFilter.PlatformShared.ViewModels;

var vm = new FilterableDataGridViewModel<MyItem>(new CultureInfo("fr"));

UI integrations apply this override when opening the popup and restore the previous culture when the popup closes.

Common keys

Some frequently used keys:

  • Ok, Cancel, Clear
  • SortAscending, SortDescending, AddSubSortAscending, AddSubSortDescending
  • AdvancedFilter
  • OperatorText, ValueText, ToText
  • SelectAll, Blanks
  • LoadingText
  • ModeUnion, ModeIntersection
  • SearchPlaceholder
Product 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 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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (12)

Showing the top 5 NuGet packages that depend on DataFilter.Localization:

Package Downloads
DataFilter.PlatformShared

Package Description

DataFilter.Wpf

Package Description

DataFilter.Blazor.PopupHost

Package Description

DataFilter.WinUI3

Package Description

DataFilter.Maui

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.4 240 6/9/2026
1.1.3 216 6/8/2026
1.1.2 212 6/8/2026
1.1.1 205 6/5/2026
1.1.0 226 6/4/2026