Skip to content

Commit

Permalink
docs: update ItalianLabels example
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Nov 3, 2024
1 parent 7d419f5 commit 436b7e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/ItalianLabels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function ItalianLabels() {
locale={it}
labels={{
labelDayButton: (date, { today, selected }) => {
let label = format(date, "PPPP");
let label = format(date, "PPPP", { locale: it });
if (today) label = `Oggi, ${label}`;
if (selected) label = `${label}, selezionato`;
return label;
Expand Down
2 changes: 1 addition & 1 deletion website/docs/docs/translation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function ItalianLabels() {
locale={it}
labels={{
labelDayButton: (date, { today, selected }) => {
let label = format(date, "PPPP");
let label = format(date, "PPPP", { locale: it });
if (today) label = `Oggi, ${label}`;
if (selected) label = `${label}, selezionato`;
return label;
Expand Down

0 comments on commit 436b7e1

Please sign in to comment.