MF1 (v3) docs
GitHub
Preparing search index...
The search index is not available
Unicode MessageFormat for JavaScript
Unicode MessageFormat for JavaScript
messageformat
MessageStringPart
Interface MessageStringPart
The formatted part for a
MessageString
value.
interface
MessageStringPart
{
dir
?:
"ltr"
|
"rtl"
;
id
?:
string
;
locale
:
string
;
parts
?:
{
source
?:
string
;
type
:
string
;
value
?:
unknown
}
[]
;
source
:
string
;
type
:
"string"
;
value
:
string
;
}
Hierarchy (
View Summary
,
Expand
)
MessageExpressionPart
<
"string"
>
MessageStringPart
Index
Properties
dir?
id?
locale
parts?
source
type
value
Properties
Optional
dir
dir
?:
"ltr"
|
"rtl"
Optional
id
id
?:
string
locale
locale
:
string
Optional
parts
parts
?:
{
source
?:
string
;
type
:
string
;
value
?:
unknown
}
[]
source
source
:
string
type
type
:
"string"
value
value
:
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
dir
id
locale
parts
source
type
value
MF1 (v3) docs
GitHub
Unicode MessageFormat for JavaScript
Project Overview
Contributing
@messageformat/fluent
MessageReferencePart
MessageReferenceValue
FluentMessageResource
FluentMessageResourceData
fluentToMessage
fluentToResource
fluentToResourceData
getMessageFunction
messageToFluent
resourceToFluent
@messageformat/icu-messageformat-1
MF1Options
MF1Functions
mf1ToMessage
mf1ToMessageData
mf1Validate
messageformat
Formatting
MessageFormat
MessageFormatOptions
Formatted Parts
MessageBiDiIsolationPart
MessageDateTimePart
MessageExpressionPart
MessageFallbackPart
MessageMarkupPart
MessageNumberPart
MessageStringPart
MessageTextPart
MessageUnknownPart
MessagePart
Message Data Model
Model
CatchallKey
FunctionRef
InputDeclaration
Literal
LocalDeclaration
Markup
PatternMessage
SelectMessage
VariableRef
Variant
Attributes
Declaration
Expression
Message
Node
Options
Pattern
isCatchallKey
isExpression
isFunctionRef
isLiteral
isMarkup
isMessage
isPatternMessage
isSelectMessage
isVariableRef
parseMessage
stringifyMessage
validate
visit
Errors
MessageDataModelError
MessageError
MessageResolutionError
MessageSelectionError
MessageSyntaxError
messageformat/cst
CST
Attribute
CatchallKey
ComplexMessage
Expression
FunctionRef
InputDeclaration
Junk
Literal
LocalDeclaration
Markup
Option
Pattern
SelectMessage
SimpleMessage
Syntax
Text
VariableRef
Variant
Declaration
Identifier
Message
cstKey
messageFromCST
parseCST
stringifyCST
messageformat/functions
MessageFunctionContext
MessageDateTime
MessageFallback
MessageNumber
MessageString
MessageValue
MessageFunction
DefaultFunctions
DraftFunctions
asBoolean
asPositiveInteger
asString
getLocaleDir
M
M
N
E
P
V
F
C
I
C
P
M
F
P
C
P
T
T
A
A
A
T
R
The formatted part for a MessageString value.