UNPKG

@botonic/plugin-flow-builder

Version:

Botonic plugin for **Hubtype Flow Builder**: run and bridge flow-driven logic from bots on the **current** line.

23 lines (22 loc) 794 B
import { BotonicContext } from '@botonic/core'; export declare class FlowLocale { private readonly botonicContext; private readonly flowLocales; private readonly defaultLocaleCode; constructor(botonicContext: BotonicContext, flowLocales: string[], defaultLocaleCode: string); resolve(): string; private isLanguageDetectionEnabled; /** * Rules: * - If user and system languages differ, user locale takes priority. * - If both share the same language, the more specific locale wins. * - If both have the same specificity, user locale wins. */ private getPriorityLocale; private matchExactLocale; private matchLanguage; private getDefaultLocale; private applyLocale; private getLanguage; private isSpecificLocale; }