@eternalheart/ngx-file-preview
Version:
A powerful Angular file preview component library supporting multiple file formats including images, videos, PDFs, Office documents, text files and more.
24 lines (23 loc) • 652 B
TypeScript
import ZH from "../../assets/i18n/zh.json";
export declare const I18nUtils: {
/**
* 获取语言包
* @param locale
*/
get(locale: string): I18nParser;
/**
* 注册语言包
*/
register(locale: string, langJson: typeof ZH): void;
};
/**
* 单例模式优化语言包的获取 单个语言只会创建一个语言转化实例
*/
declare class I18nParser {
static InstanceMap: Record<string, I18nParser>;
locale: string;
constructor(locale: string);
t(key: string, ...args: (string | number)[]): string;
static getValue(data: Record<string, any>, prop: string | string[]): any;
}
export {};