syncfusion / ej2-angular-ui-components

Syncfusion Angular UI components library offer more than 50+ cross-browser, responsive, and lightweight angular UI controls for building modern web applications.
https://www.syncfusion.com/angular-ui-components
Other
274 stars 113 forks source link

date-range-picker: 'Today' text is not translated #71

Closed frankvdb7 closed 4 years ago

frankvdb7 commented 4 years ago

Hello,

The text 'Today' in the date-range-picker component can not be translated. It's also not listed in the component documentation page: https://ej2.syncfusion.com/documentation/daterangepicker/globalization/

With best regards, Frank

BerlyChristopher commented 4 years ago

Hi Fmavdb,

Greetings from Syncfusion support.

While checking the reported query, we would like to inform you that DateRangePicker does not have a Today button in the popup and DatePicker having this label on its popup. So, we can change the today button text of the DatePicker as mentioned in the below code example.

DateRangePicker popup:

daternagepicke

DatePicker popup:

datepicker

[app.component.ts]

//Load the L10n from ej2-base
import { L10n } from '@syncfusion/ej2-base'; 
export class AppComponent {
   ngOnInit() {
    //load the locale object to set the localized placeholder value
    L10n.load({
      'en-US': {
        'datepicker': {
          placeholder: 'Wählen Sie ein Datum aus',
          today: 'heute'
        }
      }
    });
  }
}

Please find the sample for DatePicker from the below link.

Sample Linkhttps://stackblitz.com/edit/angular-1h1skw-lf6wp8?file=app.component.ts

Also, If you are facing any other issues in DateRangePicker, please let us know. We will happy to assist you. 

Regards, Berly B.C

frankvdb7 commented 4 years ago

Yes, I'm sorry we've made a mistake in our translations and made the assumption date-range-picker also used 'Today'.