Constructors
constructor
- new Locales(
entries?: null | readonly (readonly [Locale | "default", string])[],
): Locales Parameters
Optional
entries: null | readonly (readonly [Locale | "default", string])[]
- new Locales(
iterable?: null | Iterable<readonly [Locale | "default", string]>,
): Locales Parameters
Optional
iterable: null | Iterable<readonly [Locale | "default", string]>
Accessors
default
- get default(): string
Returns string
Methods
toJSON
- toJSON(): Partial<Record<Locale | "default", string>>
Returns Partial<Record<Locale | "default", string>>
A map of locales.
Used internally to store locales, and convert them to JSON.