I18n.d.ts 296 B

12345678910
  1. import types = require('./types');
  2. declare class I18n {
  3. constructor(locale: string, langs: types.PlainObj<any>);
  4. set(locale: string, lang: types.PlainObj<any>): void;
  5. t(path: string | string[], data?: types.PlainObj<any>): string;
  6. locale(locale: string): void;
  7. }
  8. export = I18n;