botbuilder-dialogs
Version:
A dialog stack based conversation manager for Microsoft BotBuilder.
73 lines • 2.05 kB
TypeScript
export interface PromptCultureModel {
/**
* Culture Model's Locale.
*
* @example
* "en-US"
*/
locale: string;
/**
* Culture Model's InlineSeparator.
*
* @example
* ", "
*/
separator: string;
/**
* Culture Model's InlineOr.
*
* @example
* " or "
*/
inlineOr: string;
/**
* Culture Model's InlineOrMore.
*
* @example
* ", or "
*/
inlineOrMore: string;
/**
* Equivalent of "Yes" in Culture Model's Language.
*
* @example
* "Yes"
*/
yesInLanguage: string;
/**
* Equivalent of "No" in Culture Model's Language.
*
* @example
* "No"
*/
noInLanguage: string;
}
/**
* Class container for currently-supported Culture Models in Confirm and Choice Prompt.
*/
export declare class PromptCultureModels {
static Chinese: PromptCultureModel;
static Dutch: PromptCultureModel;
static English: PromptCultureModel;
static French: PromptCultureModel;
static German: PromptCultureModel;
static Italian: PromptCultureModel;
static Japanese: PromptCultureModel;
static Portuguese: PromptCultureModel;
static Spanish: PromptCultureModel;
/**
* @private
*/
private static getSupportedCultureCodes;
/**
* Use Recognizers-Text to normalize various potential Locale strings to a standard.
*
* @remarks This is mostly a copy/paste from https://github.com/microsoft/Recognizers-Text/blob/master/JavaScript/packages/recognizers-text/src/culture.ts#L39
* This doesn't directly use Recognizers-Text's MapToNearestLanguage because if they add language support before we do, it will break our prompts.
* @param cultureCode Represents locale. Examples: "en-US, en-us, EN".
* @returns Normalized locale.
*/
static mapToNearestLanguage(cultureCode: string): string;
static getSupportedCultures: () => PromptCultureModel[];
}
//# sourceMappingURL=promptCultureModels.d.ts.map