angular-datepicker icon indicating copy to clipboard operation
angular-datepicker copied to clipboard

datepicker int brazilian portuguese

Open benhurazevedo opened this issue 8 years ago • 5 comments

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.

benhurazevedo avatar Jan 05 '17 13:01 benhurazevedo

Someone?

iArtur avatar Jan 12 '17 21:01 iArtur

yes?

benhurazevedo avatar Jan 12 '17 23:01 benhurazevedo

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

iArtur avatar Jan 13 '17 23:01 iArtur

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.

DanTalash avatar Feb 22 '17 00:02 DanTalash

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

renersilva avatar Feb 27 '17 00:02 renersilva