ng2-ui / datetime-picker

Angular2 DateTime Picker
https://ng2-ui.github.io/#/datetime-picker
MIT License
121 stars 62 forks source link

'Current time' is not localized. #153

Closed negberts closed 7 years ago

negberts commented 7 years ago

Current behavior 'Current time' is not localized. It is hardcoded in the css

.ng2-datetime-picker .select-current-time:before {
  content: 'current time';
  position: absolute;
  top: 1em;
  right: 5px;
  z-index: 1;
  cursor: pointer;
  color: #0000ff;
}

Expected/desired behavior Content should be localized. For example via the static locale object.

Other information

allenhwkim commented 7 years ago

I will improve locale object later, but meanwhile, you can override css for your project.

allenhwkim commented 7 years ago

@negberts implemented and thanks for reporting this

negberts commented 7 years ago

Works!