New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requiring unknown module "./locale/fa" #142
Comments
any update on this issue? |
+1 |
I fixed this problem, see my code in bottom: import m from 'moment-jalaali';
import fa from 'moment/src/locale/fa';
function convertDate(language, date) {
const calender = m
.utc(date, 'YYYY-MM-DDTHH:mm:ss')
.utcOffset(getTimezone())
.format('YYYY-MM-DDTHH:mm:ss');
if (language.value === 'fa') {
m.locale('fa', fa);
m.loadPersian({ dialect: 'persian-modern' });
}
return m.utc(calender, 'YYYY-MM-DDTHH:mm:ss').calendar();
} |
Was able to fix with this one moment/moment#3624 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, Thanks for this nice library,
I'm using moment-jalaali in my React Native project, I get this error when launch release version of application:
I think this error related to
Can you fix it, or give any solution for me ??
The text was updated successfully, but these errors were encountered: