UNPKG

@enact/i18n

Version:

Internationalization support for Enact using iLib

16 lines (12 loc) 469 B
// Type definitions for i18n/$L type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N; /** * Maps a string or key/value object to a translated string for the current locale. */ export function toIString(str: string | object): IString; /** * Maps a string or key/value object to a translated string for the current locale. */ export function $L(str: string | object): string; export default $L;