BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
<h4>DatePicker:</h4>
<ej-date-picker id="datepicker" value="@DateTime.Now"></ej-date-picker>
<h4>DateTimePicker:</h4>
<ej-date-time-picker id="datetimepicker" value="@DateTime.Now"></ej-date-time-picker>
<h4>DateRangePicker:</h4>
<ej-date-range-picker id="daterangepicker></ej-date-range-picker>
<h4>TimePicker:</h4>
<ej-time-picker id="timepicker" value="@DateTime.Now"></ej-time-picker>
<script>
// $(document).ready(function () {
document.addEventListener("DOMContentLoaded", function () {
if (typeof (ej.globalize) != 'undefined') {
ej.setCulture("es-ES");//set Culture es-ES
}
})
</script>
|
_layout.cshtml
<!--refer the spanish culture locale file-->
<!--refer the spanish culture localetext file-->
|
im using a react app, and i want to know which packages i need to add to my proyect to be able to change the language
Hi BYTELABZ GT,
Greetings from Syncfusion support.
We would like to inform you that when you install the node modules using the command "npm install cldr-data", all languages will be installed in the "cldr-data" folder of the node modules in your application. You can import the specific language that you want and apply it in your application. For your convenience, we have created a simple React application to utilize the Spanish culture using the setCulture
method. In the application, we have changed the culture from English to Spanish through the setCulture
method in the button click event. Kindly refer to the attached sample and documentation below for further references.
The locale text package has been made available on npm and our GitHub repository. You can find the relevant links below.
npm: https://www.npmjs.com/package/@syncfusion/ej2-locale
Github: https://github.com/syncfusion/ej2-locale/tree/master/src
Documentation: https://ej2.syncfusion.com/react/documentation/common/globalization/internationalization
sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/React_locale-767013665.zip
Please get back to us if you need further assistance.
Regards,
Anbumani Rajendracholan