Skip to content

LocalTextDataScript.GetPackageData method

Gets a local text package as a dictionary.

public static IDictionary<string, string> GetPackageData(ILocalTextRegistry registry, 
    string? includes, string languageId, bool isPending, string? packageId = null, 
    Func<string, bool>? keyFilter = null)
parameter description
registry The text registry.
includes The includes regex.
languageId The language ID.
isPending true to include pending texts.
packageId The package ID.
keyFilter Optional predicate that returns true for the keys to include, e.g. from GetKeyFilter.

Return Value

A dictionary of local text keys and values.

Exceptions

exception condition
ArgumentNullException registry is null.

See Also