Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MessageSource<K, V, K, V, K, V>

多语言支持实现 支持文件夹载入以及文件载入

Type parameters

  • K

  • V

  • K

  • V

  • K

  • V

Hierarchy

  • Map
    • MessageSource

Implements

Constructors

constructor

Properties

Readonly [Symbol.toStringTag]

[Symbol.toStringTag]: string

Readonly size

size: number

Static Map

Map: MapConstructor

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<[K, V]>

clear

  • clear(): void

delete

  • delete(key: K): boolean

entries

  • entries(): IterableIterator<[K, V]>

forEach

  • forEach(callbackfn: function, thisArg?: any): void

get

  • get(key: K): V | undefined

getMessage

  • getMessage(code: string, args?: any[], defaultMessage?: string, locale?: Locale): string

has

  • has(key: K): boolean

keys

  • keys(): IterableIterator<K>

load

loadUseFileName

  • loadUseFileName(res: IResource): Promise<void>

set

  • set(key: K, value: V): this

values

  • values(): IterableIterator<V>

Generated using TypeDoc