LazyApiPack.Localization.Manager
0.0.5
See the version list below for details.
dotnet add package LazyApiPack.Localization.Manager --version 0.0.5
NuGet\Install-Package LazyApiPack.Localization.Manager -Version 0.0.5
<PackageReference Include="LazyApiPack.Localization.Manager" Version="0.0.5" />
paket add LazyApiPack.Localization.Manager --version 0.0.5
#r "nuget: LazyApiPack.Localization.Manager, 0.0.5"
// Install LazyApiPack.Localization.Manager as a Cake Addin #addin nuget:?package=LazyApiPack.Localization.Manager&version=0.0.5 // Install LazyApiPack.Localization.Manager as a Cake Tool #tool nuget:?package=LazyApiPack.Localization.Manager&version=0.0.5
About this project
This library provides a way to localize applications. It uses the JSON format to store the localizations. Please refer to the LazyApiPack.Localization library documentation to learn, how to use the localization functionality and the file format.
How to use this library
This library can be uses as a service in an MVVM pattern, since it uses the interface from the LazyApiPack.Localization
library.
LocalizationService
This service implements a Read-Only service for localizations
To create an instance, just use DependencyInjection with the LazyApiPack.Localization
library or create the instance with
new LocalizationService();
after the instantiation, you need to initialize the service (AddLocalizations).
Function AddLocalizations (Files)
This method is used to initialize the localization resources.
localizationDirectories: A list of directories and files that contain your translation files.
searchPattern: If you pass directories with localizationDirectories
, you can pass a file filter (e.g. *.json
)
options: You can specify, how to deal with directories (e.g. find files in subdirectories etc.)
Function AddLocalizations (Embedded resources)
To load localization files from an embedded resource, use the overloaded function.
**Assembly^^: Specifies the assembly where the resources are located
localizationNamespaces: Specifies the namespace (and subnamespaces) where the resources are located.
searchPattern: If specified, only the files that match the searchPattern (e.g. Localization.*.json) are loaded.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. |
-
net6.0
- LazyApiPack.Collections (>= 0.0.4)
- LazyApiPack.Localization (>= 0.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added support for embedded localization resources.