lundi 21 mars 2016

Laravel 5 datepicker multilanguage

I'm using Laravel 5.1 and jquery datepicker:

 <script>
 $(function () {
        $('input[type=date]').datepicker({
            dateFormat: 'dd.mm.yy'
        });

    });
  </script>

I have my page in 3 different langauges. Depending on the current language, which I get from Config::get('app.locale') it should change the language of the datepicker. Any ideas how this can be done? Thank you



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire