MultiLanguageGenerator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |