add legacy support of checkbox, add documents for cookie/lgres/request

This commit is contained in:
2023-03-31 00:11:55 +08:00
parent 5406eea20e
commit 45ae222d25
13 changed files with 222 additions and 18 deletions

View File

@ -3,7 +3,11 @@ interface LgresOptions {
callback?: (result: any) => void
}
export function init(dom?: HTMLElement, options?: LgresOptions): Promise<any>
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,