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

Change the DateTimePicker Display Language #51

Closed
HamzaJridi opened this issue Jun 28, 2016 · 14 comments
Closed

Change the DateTimePicker Display Language #51

HamzaJridi opened this issue Jun 28, 2016 · 14 comments

Comments

@HamzaJridi
Copy link

can I display the dateTimePicker with the french language?
I used the angular-i18n library but it won't work...any help please!!!

@ljcljc
Copy link

ljcljc commented Aug 30, 2016

Did you solve this problem? I am facing the same issue.

I found 'picker.param.lang' variable in the source code, and I use
<input mdc-datetime-picker date="true" time="false" type="text" id="date" short-time="true" class="value" lang="zh-CN">

But it still does not work.

@lakshaybansal
Copy link

Same Issue ?Is the Issue solved?

@kniort
Copy link

kniort commented Oct 4, 2016

Hello everyone,

I have the same issue, I just want to display the component with the french language but it doesn't work, it's only display in english
Here is my code :

Any solution ?

Thanks a lot

@ljcljc
Copy link

ljcljc commented Oct 4, 2016

Guys. I have solved this issue.

You need to specify the language code like I did previously. And also include the moment local js file.

In my case, it's momentjs/locale/zh-cn.js for Chinese language.

@kniort
Copy link

kniort commented Oct 4, 2016

Thanks a lot ljcljc it works like a charm !

@lakshaybansal
Copy link

Hi,
The solution which u gave is not working .Can u please share the exact changes with files also.

@huilianyi
Copy link

Well. I believe I made it clear before.
There is something wrong with your code. If you could post your code, I may help you to find the problem.

@lakshaybansal
Copy link

Hi,
The solution which u gave is not working .Can u please share the exact changes with files also.

@lakshaybansal
Copy link

I am applying this to the directive and included the file for angular-locale_zh-cn.js

@brenolf
Copy link

brenolf commented Oct 26, 2016

The solution provided by @lakshaybansal did work for me. You should include Momentjs's locale .js file.

@MUNEERALNAJDI
Copy link

MUNEERALNAJDI commented Dec 10, 2016

      <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment-with-locales.min.js"></script> 

this file include

example input

<input lang="ar-tn"
to get location code please search inside moment-with-locales.min.js with your langage

@logbon72
Copy link
Owner

logbon72 commented Feb 4, 2017

Will include solution in README.md

@logbon72 logbon72 closed this as completed Feb 4, 2017
@joelmm1
Copy link

joelmm1 commented Oct 13, 2018

Scrolling to previous months is not possible

@hexadecy
Copy link

@joelmm1 this issue is closed...

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

10 participants