I want my bot to support German language. So, I have created a seperate model for German language with the same intents and entities as in the English model. How can I select specific model on the run time based on user language. Apparently, I can ask user to choose their language preference, save that in Bot Databag and then set the culture "en" or "de" based on that. But, how can I select German/English model on run time? I have following Luis model with both German and English model keys as attribute. P.S. I have read other related posts and they are about two models with different intent and entities. I have two models with different locale.
[LuisModel("LuisID", "English Model-Key")]
[LuisModel("LuisID", "German Model-Key")]
[Serializable]
public class LUISDialogClass : LuisDialog<object>
{
public LUISDialogClass(params ILuisService[] services) : base(services)
{
}
[LuisIntent("A")]
public async Task A(IDialogContext context, LuisResult result)
{
}
[LuisIntent("B")]
public async Task B(IDialogContext context, LuisResult result)
{
}
}