Skip to content

Commit 97f1144

Browse files
feat(mf2): Default to medium rather than short dateStyle (unicode-org/message-format-wg#813)
1 parent 030ecf3 commit 97f1144

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mf2-messageformat/src/functions/datetime.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const datetime = (
7272

7373
// Set defaults if localeMatcher is the only option
7474
if (Object.keys(res).length <= 1) {
75-
res.dateStyle = 'short';
75+
res.dateStyle = 'medium';
7676
res.timeStyle = 'short';
7777
}
7878
});
@@ -89,7 +89,7 @@ export const date = (
8989
input?: unknown
9090
): MessageDateTime =>
9191
dateTimeImplementation(ctx, options, input, res => {
92-
const ds = options.style ?? res.dateStyle ?? 'short';
92+
const ds = options.style ?? res.dateStyle ?? 'medium';
9393
for (const name of Object.keys(res)) {
9494
if (!localeOptions.includes(name)) delete res[name];
9595
}

0 commit comments

Comments
 (0)