We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 030ecf3 commit 97f1144Copy full SHA for 97f1144
packages/mf2-messageformat/src/functions/datetime.ts
@@ -72,7 +72,7 @@ export const datetime = (
72
73
// Set defaults if localeMatcher is the only option
74
if (Object.keys(res).length <= 1) {
75
- res.dateStyle = 'short';
+ res.dateStyle = 'medium';
76
res.timeStyle = 'short';
77
}
78
});
@@ -89,7 +89,7 @@ export const date = (
89
input?: unknown
90
): MessageDateTime =>
91
dateTimeImplementation(ctx, options, input, res => {
92
- const ds = options.style ?? res.dateStyle ?? 'short';
+ const ds = options.style ?? res.dateStyle ?? 'medium';
93
for (const name of Object.keys(res)) {
94
if (!localeOptions.includes(name)) delete res[name];
95
0 commit comments