Unicode MessageFormat for JavaScript
MF1 (v3) docs
GitHub
Preparing search index...
messageformat/functions
MessageFunctionContext
Interface MessageFunctionContext
interface
MessageFunctionContext
{
dir
:
undefined
|
"ltr"
|
"rtl"
|
"auto"
;
id
:
undefined
|
string
;
get
literalOptionKeys
()
:
Set
<
string
>
;
get
localeMatcher
()
:
"best fit"
|
"lookup"
;
get
locales
()
:
string
[]
;
onError
(
error
:
unknown
)
:
void
;
onError
(
type
:
|
"bad-operand"
|
"bad-option"
|
"bad-variant-key"
|
"function-error"
|
"not-formattable"
|
"unsupported-operation"
,
message
:
string
,
)
:
void
;
}
Index
Properties
dir
id
Accessors
literal
Option
Keys
locale
Matcher
locales
Methods
on
Error
Properties
Readonly
dir
dir
:
undefined
|
"ltr"
|
"rtl"
|
"auto"
Readonly
id
id
:
undefined
|
string
Accessors
literal
Option
Keys
get
literalOptionKeys
()
:
Set
<
string
>
Returns
Set
<
string
>
locale
Matcher
get
localeMatcher
()
:
"best fit"
|
"lookup"
Returns
"best fit"
|
"lookup"
locales
get
locales
()
:
string
[]
Returns
string
[]
Methods
on
Error
onError
(
error
:
unknown
)
:
void
Parameters
error
:
unknown
Returns
void
onError
(
type
:
|
"bad-operand"
|
"bad-option"
|
"bad-variant-key"
|
"function-error"
|
"not-formattable"
|
"unsupported-operation"
,
message
:
string
,
)
:
void
Parameters
type
:
|
"bad-operand"
|
"bad-option"
|
"bad-variant-key"
|
"function-error"
|
"not-formattable"
|
"unsupported-operation"
message
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
dir
id
Accessors
literal
Option
Keys
locale
Matcher
locales
Methods
on
Error
MF1 (v3) docs
GitHub
Unicode MessageFormat for JavaScript
Loading...