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

datepicker int brazilian portuguese #317

Open
benhurazevedo opened this issue Jan 5, 2017 · 5 comments
Open

datepicker int brazilian portuguese #317

benhurazevedo opened this issue Jan 5, 2017 · 5 comments

Comments

@benhurazevedo
Copy link

hi

I'm using g00fy-angular-datepicker but it is in english. How can i translate it to brasilian portuguese?
i'm using angular-locale_pt-br.js in my code. But it doesn't work with the datepicker.

@iArtur
Copy link

iArtur commented Jan 12, 2017

Someone?

@benhurazevedo
Copy link
Author

yes?

@iArtur
Copy link

iArtur commented Jan 13, 2017

I want to know if anyone can awnser that question cause i'm interested to.

@DanTalash
Copy link
Contributor

All localization is handled by moment.js. It appears that Portuguese (Brazil) is an existing localization, so you do not need to do any translation yourself, just load the appropriate locale file, and set the locale to pt-br.

For more information see the moment.js i18n docs.

@renersilva
Copy link

renersilva commented Feb 27, 2017

Hi @benhurazevedo @iArtur

First you must download this js file and use it instead of moment.js
After you download and include this file in your project, add the following line to configure the Moment JS to "pt-BR" globaly:

moment.locale('pt-BR');

I experienced an issue when using lazy loading. Sometimes I get a "cannot read property isMoment of undefined", even when loading Moment script before angular-datepicker script. So I decided to use moment globaly and I declared it in the index.html file of my Angular project. The locale configuration was set in index.html as well.

Sorry for answering only now, but I saw this issue today

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