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 header is not translating #65

Closed
mapmalith opened this issue Jul 25, 2016 · 1 comment
Closed

Datepicker header is not translating #65

mapmalith opened this issue Jul 25, 2016 · 1 comment

Comments

@mapmalith
Copy link

mapmalith commented Jul 25, 2016

I am using this date-picker in Ionic Mobile app and I have linked following lines to translate into French

<script type="text/javascript" src="lib/moment/min/moment.min.js"></script>
<script type="text/javascript" src="lib/moment/locale/fr.js"></script>
<script>
    moment.locale('fr');
</script>

Button is trnaslating as expected but the headers' month is not translating the month name into French.

You can see screenshot here

@mobinni
Copy link
Owner

mobinni commented Dec 4, 2016

This is because the month header has a broken implementation detail:

      scope.month = $filter('date')(new Date(next_month), 'MMM')

you can fork off it and use moment instead. This project is no longer maintained

@mobinni mobinni closed this as completed Dec 4, 2016
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

2 participants