Open sm2017 opened 5 years ago
I had the same error
But I fixed it with usePersianDigits: false
import fa from 'moment/locale/fa';
import en from 'moment/locale/en-gb'
import jmoment from "moment-jalaali";
if(lang === 'fa'){
jmoment.locale("fa", fa);
jmoment.loadPersian({usePersianDigits: false, dialect: 'persian-modern'})
} else {
jmoment.loadPersian({usePersianDigits: false})
jmoment.locale('en', en)
}
@rghorbani
type="gregorian"
works well but ,jalaali
is notlogged console is :