UNPKG

@wangeditor-next/code-highlight

Version:
33 lines (32 loc) 764 B
/** * @description i18n entry * @author wangfupeng */ import i18next from 'i18next'; /** * 添加多语言配置 * @param lng 语言 * @param resources 多语言配置 */ export declare function i18nAddResources(lng: string, resources: object): void; /** * 设置语言 * @param lng 语言 */ export declare function i18nChangeLanguage(lng: string): void; /** * 获取多语言配置 * @param lng lang */ export declare function i18nGetResources(lng: string): any; /** * 监听语言变更 * @param callback * @returns */ export declare function i18nListenLanguage(callback: (lng: string) => void): () => void; /** * 翻译 */ export declare const t: import("i18next").TFunction<["translation", ...string[]], undefined>; export default i18next;