Skip to content

Commit b7d0aeb

Browse files
committed
docs: add comment explaining undefined locale fallback
1 parent 0aeadf5 commit b7d0aeb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs-site/src/examples/ts/intlDateFormat.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// undefined falls back to the browser's default locale
12
const formatter = new Intl.DateTimeFormat(undefined, {
23
weekday: "short",
34
year: "numeric",

0 commit comments

Comments
 (0)