How to create UI Datepicker using jQuery ?
Localization means browser to display data in a different languages as per browser setting or manual setting inside the application. To implement jQuery UI Datepicker to display in different languages as per browser settings follow the steps:
var userLang = navigator.language || navigator.userLanguage;
options = $.extend(
// empty object
// your custom options
Let’s see the following figures how it is showing when the language change:
Output 1: When changing regional language as English using “en-US” in the following code:
Output 2: When changing regional language as Hindi using “hi” in the following code:
You can use regional language code as per your need from the following link : List of ISO 639-1 codes
My Personal Notes arrow_drop_up
Please Login to comment...