@antv/s2
Version:
effective spreadsheet render core lib
17 lines (16 loc) • 497 B
TypeScript
export type LangType = 'zh_CN' | 'en_US' | 'ru_RU';
export type LocaleType = {
[K in LangType]: Record<string, string>;
};
export declare const getLang: () => LangType;
/**
* 设置语言
* @param lang
*/
export declare const setLang: (langType: LangType) => void;
/**
* 拓展locale配置
*/
export declare const extendLocale: (extraLocale: LocaleType) => void;
export declare const getLocale: () => LocaleType;
export declare const i18n: (key: string, defaultValue?: string) => string;