16 lines
428 B
TypeScript
16 lines
428 B
TypeScript
interface LgresOptions {
|
|
template?: string,
|
|
callback?: (result: any) => void
|
|
}
|
|
|
|
interface LanguageResource {
|
|
r(key: string, defaultValue?: any): any
|
|
}
|
|
|
|
export function init(dom?: HTMLElement, options?: LgresOptions): Promise<LanguageResource>
|
|
export function r(key: string, defaultValue?: any): any
|
|
export const lang: {
|
|
get current(): string,
|
|
get unknownError(): string,
|
|
get savedSuccessfully(): string
|
|
} |