UNPKG

381 BTypeScriptView Raw
1/**
2 * Created by hustcc on 18/5/20.
3 * Contract: i@hust.cc
4 */
5import { LocaleFunc } from './interface';
6/**
7 * register a locale
8 * @param locale
9 * @param func
10 */
11export declare const register: (locale: string, func: LocaleFunc) => void;
12/**
13 * get a locale, default is en_US
14 * @param locale
15 * @returns {*}
16 */
17export declare const getLocale: (locale: string) => LocaleFunc;