LanguageGeneratorManager class

Class which manages cache of all LG resources from a ResourceExplorer.

Constructors

LanguageGeneratorManager(ResourceExplorer)

Initialize a new instance of LanguageResourceManager class.

Properties

languageGenerators

Gets or sets language generators.

Methods

resourceExplorerResolver(string, Map<string, Resource[]>)

Returns the resolver to resolve LG import id to template text based on language and a template resource loader delegate.

Constructor Details

LanguageGeneratorManager(ResourceExplorer)

Initialize a new instance of LanguageResourceManager class.

new LanguageGeneratorManager(resourceManager: ResourceExplorer)

Parameters

resourceManager

ResourceExplorer

Resource explorer to manager LG files.

Property Details

languageGenerators

Gets or sets language generators.

languageGenerators: Map<string, LanguageGenerator<T, D>>

Property Value

Map<string, LanguageGenerator<T, D>>

Method Details

resourceExplorerResolver(string, Map<string, Resource[]>)

Returns the resolver to resolve LG import id to template text based on language and a template resource loader delegate.

static function resourceExplorerResolver(locale: string, resourceMapping: Map<string, Resource[]>): ImportResolverDelegate

Parameters

locale

string

Locale to identify language.

resourceMapping

Map<string, Resource[]>

Template resource loader delegate.

Returns

ImportResolverDelegate

The delegate to resolve the resource.