11 lines
724 B
Plaintext
11 lines
724 B
Plaintext
import type { LocaleDictionary, LocalesDictionary } from '../types/index';
|
|
declare const $dictionary: import("svelte/store").Writable<LocalesDictionary>;
|
|
export declare function getLocaleDictionary(locale: string): LocaleDictionary;
|
|
export declare function getDictionary(): LocalesDictionary;
|
|
export declare function hasLocaleDictionary(locale: string): boolean;
|
|
export declare function getMessageFromDictionary(locale: string, id: string): any;
|
|
export declare function getClosestAvailableLocale(refLocale: string): string | null;
|
|
export declare function addMessages(locale: string, ...partials: LocaleDictionary[]): void;
|
|
declare const $locales: import("svelte/store").Readable<string[]>;
|
|
export { $dictionary, $locales };
|