forked from FezVrasta/bootstrap-material-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Locale issue #104
Comments
hexadecy
added a commit
to beenote/angular-material-datetimepicker
that referenced
this issue
Apr 6, 2017
Yes, it's because the format is a moment format. |
Hello, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When switching locale language in real time the calendar is translated but the date in the textbox is not being translated.
That's the input
<input type="text" id="endDate" class="form-control" format="MMM D, YYYY" style="width:150px" placeholder="{{'forever' | translate}}" ng-model="validUntilDate" ok-text="{{'ok' | translate}}" cancel-text="{{'cancel' | translate}}" today-text="{{'today' | translate}}" mdc-datetime-picker="" time="false" date="true" lang="{{vm.languageCode}}" close-text="Close" />
first i do
vm.languageCode = 'en'; moment.locale('en');
then switching to french
vm.languageCode = 'fr' ; moment.locale('fr');
Notice the textbox on the right is not beeing translated
The text was updated successfully, but these errors were encountered: