Calendar in spanish

Calendar in spanish

zarzazarza Posts: 7Questions: 3Answers: 0

How can we setup the date field to display its calendar in spanish?
https://editor.datatables.net/reference/field/

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Editor's "datetime" field is preferred, and it has a "locale" option.

  • zarzazarza Posts: 7Questions: 3Answers: 0

    For those who are looking for a complete answer, you can add this:

    i18n: {
    
        datetime: {
    
                    previous: 'Anterior',
    
                    next:     'Siguiente',
    
                    months:   ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
    
                    weekdays: ['Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb']
    
                },
    
      },
    
  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    Internationalisation documentation is available here.

    Allan

This discussion has been closed.