I18n
interfaz
ts
import type { I18n } from "@meekojs/meeko/i18n";Source code src/shared/i18n.ts:7
Declaración #
ts
interface I18n {
readonly locale: string
t(key: MessageKey, values?: Values): string
number(value: number, options?: Intl.NumberFormatOptions): string
date(value: Date | number, options?: Intl.DateTimeFormatOptions): string
switchLocale(locale: string): void
}Miembros #
locale
#
readonly locale: string
t
#
t(key: MessageKey, values?: Values): string
number
#
number(value: number, options?: Intl.NumberFormatOptions): string
date
#
date(value: Date | number, options?: Intl.DateTimeFormatOptions): string