Share via


MultiLanguageGenerator Class

Definition

ILanguageGenerator which uses implements a map of locale->ILanguageGenerator for the locale and has a policy which controls fallback (try en-us -> en -> default).

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

Constructors

MultiLanguageGenerator()

Initializes a new instance of the MultiLanguageGenerator class.

Fields

Kind

Class identifier.

Properties

LanguageGenerators

Gets the language generators for multiple languages.

LanguagePolicy

Gets or sets the language policy.

(Inherited from MultiLanguageGeneratorBase)

Methods

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 internal dictionary to lookup.

Applies to