ilingo
Version:
This is a lightweight library for translation.
16 lines • 568 B
TypeScript
import type { ConfigInput } from './config';
import type { Store } from './store';
import type { GetContext } from './types';
export declare class Ilingo {
readonly stores: Set<Store>;
protected locale: string;
constructor(input?: ConfigInput);
merge(instance: Ilingo): void;
setLocale(key: string): void;
resetLocale(): void;
getLocale(): string;
getLocales(): Promise<string[]>;
get(ctx: GetContext): Promise<string | undefined>;
format(input: string, data: Record<string, any>): string;
}
//# sourceMappingURL=module.d.ts.map