akveo / ngx-admin

Customizable admin dashboard template based on Angular 10+
https://akveo.github.io/ngx-admin/
MIT License
25.24k stars 7.95k forks source link

Bug with russian locale and nb-rangepicker component #5808

Open ramax495 opened 3 years ago

ramax495 commented 3 years ago

Issue type

Issue description

Current behavior: When add russian locale, nb-rangepicker component doesn't show selected result in input control.

Expected behavior: Input control must have a value after range selection

Steps to reproduce:

  1. Add russian locale (in app.module.ts)
  2. Go to '/pages/forms/datepicker', component 'Datepicker With Range'

Related code:

// app.module.ts
...
import { NgModule, LOCALE_ID } from '@angular/core';
import { registerLocaleData } from '@angular/common';
import localeRu from '@angular/common/locales/ru';
registerLocaleData(localeRu, 'ru');
...

@NgModule({
  ...
  providers: [
    ...
    { provide: LOCALE_ID, useValue: 'ru' }
  ],
  bootstrap: [AppComponent]
})
stanciupaul commented 3 years ago

Issue related to @nebular/theme, not ngx-admin. Previously reported here: https://github.com/akveo/nebular/issues/1598