/** * 使用多语言仓储 */ declare let useI18nStore: import("pinia").StoreDefinition<"i18n", { i18n: import("vue-i18n").I18n<{}, {}, {}, any, true>; locale: any; loadedLocales: any[]; }, {}, { /** * 判断指定key是否存在 */ $t_exists(key: any): any; /** * 翻译指定key,不存在使用默认值 */ $t(key: string, value?: string): any; /** * 业务翻译:菜单多余言、多个窗口的多语言同时切换,而不用重载接口 */ $t_menu(key: string): any; /** * 模块业务翻译 */ $t_module(type: string, key: string): string; /** * 业务翻译:菜单多余言、多个窗口的多语言同时切换,而不用重载接口 */ $t_table(table: string): any; /** * 业务翻译:菜单多余言、多个窗口的多语言同时切换,而不用重载接口 * 注意:如果结果返回未完毕},则vue编译异常 */ $t_field(table: string, field: string): any; /** * 枚举翻译:菜单多余言、多个窗口的多语言同时切换,而不用重载接口 */ $t_enum(name: string, value: string): any; /** * 字段占位符翻译 */ $t_field_placeholder(table: string, field: string): any; /** * 字段占位符翻译 */ $t_field_choose_placeholder(table: string, field: string): any; /** * 系统翻译 */ $t_sys(key: string): any; /** * 系统标题 */ $t_title(): any; /** * 添加多语言包 */ addMessages(messages: object): void; /** * 加载语言包 */ loadI18n(lang: string): Promise; /** * 切换语言,自动加载菜单 */ switchI18n(lang: string): Promise; }>; export default useI18nStore;