ResourceMultiLanguageGenerator Class

Definition

Uses resourceExplorer to mount root lg and all language variants as a multi language generator.

public class ResourceMultiLanguageGenerator : Microsoft.Bot.Builder.Dialogs.Adaptive.Generators.MultiLanguageGeneratorBase
type ResourceMultiLanguageGenerator = class
    inherit MultiLanguageGeneratorBase
Public Class ResourceMultiLanguageGenerator
Inherits MultiLanguageGeneratorBase
Inheritance
ResourceMultiLanguageGenerator

Remarks

Given file name like "foo.lg" this will generate a map of foo.{LOCALE}.lg files.

Constructors

Name Description
ResourceMultiLanguageGenerator(String)

Initializes a new instance of the ResourceMultiLanguageGenerator class.

Fields

Name Description
Kind

Class identifier.

Properties

Name Description
LanguagePolicy

Gets or sets the language policy.

(Inherited from MultiLanguageGeneratorBase)
ResourceId

Gets or sets the resource id.

Methods

Name Description
GenerateAsync(DialogContext, String, Object, CancellationToken)

Find a language generator that matches the current context locale.

(Inherited from MultiLanguageGeneratorBase)
TryGetGenerator(DialogContext, String, Lazy<LanguageGenerator>)

Implementation of lookup by locale. This uses resourceId and ResourceExplorer to lookup.

Applies to