UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

56 lines (55 loc) 1.6 kB
/** * @module botbuilder-dialogs-adaptive */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * load all lg resource and split them into different language group. */ import { Resource, ResourceExplorer } from 'botbuilder-dialogs-declarative'; /** * Load all LG resource and split them into different language groups. */ export declare class LanguageResourceLoader { private static readonly lgSuffix; /** * Group LG resource by locale. * * @param resourceExplorer The resource explorer to use. * @returns The dictionary of grouped locale. */ static groupByLocale(resourceExplorer: ResourceExplorer): Map<string, Resource[]>; /** * Parse LG file name into prefix and language. * * @param lgFileName LG input file name. * @returns The name and language. */ static parseLGFileName(lgFileName: string): { prefix: string; language: string; }; /** * Get the fallback locale from optional locales. * * @param locale Current locale * @param optionalLocales Optional locales. * @returns The final locale. */ static fallbackLocale(locale: string, optionalLocales: string[]): string; /** * @private */ private static fallbackMultiLangResource; /** * @private */ private static findCommonAncestorLocale; /** * @private */ private static hasSameResourcePool; } //# sourceMappingURL=languageResourceLoader.d.ts.map