UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

19 lines 829 B
/** * Extracts localized description from a multi-language string. * * The description string contains multiple translations concatenated together, * each prefixed with a language marker in the format: !*\//||^^{locale}^^||*! * * Example input: * "!*\//||^^en^^||*!English text!*\//||^^uk^^||*!Український текст" * * @param description - Multi-language string with embedded locale markers * @returns Description text in the current locale, or falls back to the first available language * * Priority: * 1. Returns text matching current locale (from getLocale()) * 2. If not found, returns first language-marked text * 3. If no markers present, returns original string as-is */ export declare function getDescription(description?: string | null): string; //# sourceMappingURL=getDescription.d.ts.map