@expofp/floorplan
Version:
Interactive floor plan library for expos and events
18 lines • 1 kB
TypeScript
import { TFunction } from 'i18next';
export declare const getLocale: () => string;
export declare const getLocales: () => readonly Language[];
export declare const hasLocale: (id: string | undefined) => id is string;
export declare const t: (template: string, options?: any) => string;
/**
* Like {@link t}, but only looks the string up when a matching key exists in the
* active locale; otherwise it returns the string verbatim. Use for values that
* may be organizer-authored (e.g. search-button names): built-in labels still
* localize and react to language switches, while custom names pass through
* without tripping saveMissing / missingKeyHandler (console noise + extra work)
* in non-English locales.
*/
export declare const tIfExists: (template: string, options?: any) => string;
export declare const initI18n: () => Promise<TFunction>;
export declare const setLocale: (id: string) => Promise<void>;
export declare const resetLocale: () => Promise<void>;
//# sourceMappingURL=i18n.d.ts.map