Skip to content
Discussion options

You must be logged in to vote

locale="fa-IR" is not enough on its own here. It gives you Persian formatting and labels, but the calendar grid follows the calendar system of the DateValue passed to the component.

In the current UCalendar source, the placeholder date comes from placeholder, then modelValue, then defaultValue, and finally falls back to today(getLocalTimeZone()). That fallback is Gregorian. The docs' "other calendar systems" example uses the same pattern: create a CalendarDate with an explicit calendar object.

For Jalali, seed the picker with a Persian-calendar DateValue:

<script setup lang="ts">
import type { DateValue } from '@internationalized/date'
import { PersianCalendar, getLocalTimeZone, today, to…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mmdfarajzadeh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants