vue-i18n / general / MessageCompiler
Type Alias: MessageCompiler()<Message, MessageSource>
ts
type MessageCompiler<Message, MessageSource> = (message, context) => MessageFunction<Message>;Vue I18n General
The message compiler
Type Parameters
| Type Parameter | Default type |
|---|---|
Message | string |
MessageSource | string | ResourceNode |
Parameters
| Parameter | Type | Description |
|---|---|---|
message | MessageSource | A resolved message that ususally will be passed the string. if you can transform to it with bundler, will be passed the AST. |
context | MessageCompilerContext | A message context MessageCompilerContext |
Returns
MessageFunction<Message>