Skip to content
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

jMMM in farsi #2

Closed
aliqasemzadeh opened this issue Jun 14, 2019 · 10 comments
Closed

jMMM in farsi #2

aliqasemzadeh opened this issue Jun 14, 2019 · 10 comments

Comments

@aliqasemzadeh
Copy link

aliqasemzadeh commented Jun 14, 2019

Hello,
How can I set locale farsi in vue??

@aliqasemzadeh aliqasemzadeh changed the title Hello, jMMM in farsi Jun 14, 2019
@fingerpich
Copy link
Owner

Please follow this link vue-jalali-moment
hope it helps you

@aliqasemzadeh
Copy link
Author

aliqasemzadeh commented Jun 15, 2019

@fingerpich not work for me.

const moment = require('moment');
import VueMoment from 'vue-jalali-moment';
require('moment/locale/fa');

//Plugins
Vue.use(Vuetify, {
    iconfont: 'md',
    rtl: true
});
Vue.use(VueMoment,{moment});

@fingerpich
Copy link
Owner

Please create a demo in stackblitz then everyone could help you.

@aliqasemzadeh
Copy link
Author

@fingerpich
سلام
فکر می کنم واضح مشکل شما راهنمایی درستی در این مورد نداشتید.

@fingerpich
Copy link
Owner

I don't know what is the problem,
when you create a demo some of problems will solve automatically
please create a demo and share it with us

@fingerpich fingerpich reopened this Jun 16, 2019
@aliqasemzadeh
Copy link
Author

@fingerpich
سلام
من دارم از کد زیر برای نمایش فارسی استفاده می کنم
{{ message.created_at | moment("jD jMMMM,jYYYY HH:mm") }}
اسم ماه را به صورت انگلیسی نمایش می دهد یعنی خرداد را می نویسد
Khordad
باید بنویسه
خرداد.

@fingerpich
Copy link
Owner

Please take a look at the demo in stackblitz.

@aliqasemzadeh
Copy link
Author

@fingerpich
الان فارسی شد ولی درست نشون نمی دهد
1- سال را میلادی می زنه
2-ماه را اشتباه می زنه

@matinwd
Copy link

matinwd commented Sep 26, 2020

I have same here. still shows date wrong

@pouyaGit
Copy link

any way to show jMMMM in persian instead of finglish yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants