| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <title>jQuery UI Datepicker - Localize calendar</title> |
| 7 | <link rel="stylesheet" href="../../themes/base/all.css"> |
| 8 | <link rel="stylesheet" href="../demos.css"> |
| 9 | <script src="../../external/requirejs/require.js"></script> |
| 10 | <script src="../bootstrap.js" data-modules="i18n/datepicker-ar i18n/datepicker-fr i18n/datepicker-he i18n/datepicker-zh-TW"> |
| 11 | $( "#datepicker" ).datepicker( $.datepicker.regional[ "fr" ] ); |
| 12 | $( "#locale" ).on( "change", function() { |
| 13 | $( "#datepicker" ).datepicker( "option", |
| 14 | $.datepicker.regional[ $( this ).val() ] ); |
| 15 | }); |
| 16 | </script> |
| 17 | </head> |
| 18 | <body> |
| 19 | |
| 20 | <p>Date: <input type="text" id="datepicker"> |
| 21 | <select id="locale"> |
| 22 | <option value="ar">Arabic (‫(العربية</option> |
| 23 | <option value="zh-TW">Chinese Traditional (繁體中文)</option> |
| 24 | <option value="">English</option> |
| 25 | <option value="fr" selected="selected">French (Français)</option> |
| 26 | <option value="he">Hebrew (‫(עברית</option> |
| 27 | </select></p> |
| 28 | |
| 29 | <div class="demo-description"> |
| 30 | <p>Localize the datepicker calendar language and format (English / Western formatting is the default). The datepicker includes built-in support for languages that read right-to-left, such as Arabic and Hebrew.</p> |
| 31 | </div> |
| 32 | </body> |
| 33 | </html> |