Skip to main content

MessageValue

What a placeholder can be filled with. A number is formatted for formatLocale(catalogue) (grouping, decimal separator and digits), a Date as a UTC day in words for the same locale, and a list of strings with Intl.ListFormat for the plain language.

This is a type alias exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { MessageValue } from "@mapcairn/core";

type MessageValue = string | number | Date | readonly string[];

Source: packages/core/src/ports/messages.ts:1194