Type Alias: Catalog
Catalog =
object
Defined in: createCatalog.ts:6
Properties
fallback
fallback:
string
Defined in: createCatalog.ts:15
getI18n
getI18n: (
requested?) =>Promise<I18n>
Defined in: createCatalog.ts:12
The I18n for the best supported match of requested — a locale, a list,
or an Accept-Language header — or for fallback when nothing matches.
Each locale's messages are loaded once and reused.
Parameters
| Parameter | Type |
|---|---|
requested? | string | string[] | null |
Returns
Promise<I18n>
negotiate
negotiate: (
requested?) =>string
Defined in: createCatalog.ts:13
Parameters
| Parameter | Type |
|---|---|
requested? | string | string[] | null |
Returns
string
supported
supported:
string[]
Defined in: createCatalog.ts:14