UNPKG

ilingo

Version:

This is a lightweight library for translation.

11 lines (10 loc) 489 B
import type { LocalesRecord } from '../types'; import type { IStore, MemoryStoreOptions, StoreGetContext, StoreSetContext } from './types'; export declare class MemoryStore implements IStore { protected data: LocalesRecord; constructor(options: MemoryStoreOptions); get(context: StoreGetContext): Promise<string | undefined>; set(context: StoreSetContext): Promise<void>; protected initLines(group: string, locale: string): void; getLocales(): Promise<string[]>; }