Sunstrike527
Sunstrike527

Reputation: 607

ngx-bootstrap datepicker localization month is lowercase

When I localize BsDatepicker monthes are lowercase except English localization

import { kkLocale } from 'ngx-bootstrap/locale';
import { ruLocale } from 'ngx-bootstrap/locale';
defineLocale('kk', kkLocale);
defineLocale('ru', ruLocale);

How can I make all Titlecase or Lowercase?

rus localeeng locale enter image description hereenter image description here

Upvotes: 0

Views: 546

Answers (2)

Nagnath Mungade
Nagnath Mungade

Reputation: 1009

its working through css only Please try this in style.css file

div.bs-datepicker-body>table.months>tbody>tr>td>span {
  text-transform: capitalize !important;
}

Upvotes: 0

Sunstrike527
Sunstrike527

Reputation: 607

The solution was pretty ez , I have just changed some css

.bs-datepicker-head .current span {
  text-transform: capitalize;
}

.bs-datepicker-body table tbody tr td span {
  text-transform: capitalize;
}

Upvotes: 1

Related Questions