jQuery UI datepicker >= 1.11.0 的 i18n 文件在哪里

2023-08-01前端开发问题
5

本文介绍了jQuery UI datepicker >= 1.11.0 的 i18n 文件在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我从自定义构建 (http://jqueryui.com/download) 和 http://jqueryui.com/download/all/...但 i18n 文件夹不再存在.p>

文档的 Localization 部分仍然提到具有旧文件名的文件(如 1.10 中):

<块引用>

每个本地化都包含在其自己的文件中,并在名称后附加语言代码,例如,jquery.ui.datepicker-fr.js 表示法语.

我在 GitHub 中找到了新文件名(datepicker-fr.js 而不是 jquery.ui.datepicker-fr.js),但我在其他任何地方都没有找到它们.

jQuery UI 1.11 中的新文件结构是下载器中的错误吗?

我们是否可以在其他地方找到 i18n 文件,除了在 GitHub 源代码中它没有真正版本化(即:您只是从 master 获取最后一个文件而不知道它们与哪个版本的 jQuery UI 兼容).

解决方案

供应商的升级指南提到以下:

"如果您想要完整的 jQuery UI 源文件、演示和测试,您可以从以下位置获取它们:https://github.com/jquery/jquery-ui/releases."

您可以在这里找到您正在寻找的文件,在适当的版本中.

我还发现缩小的文件由 google 托管:http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/i18n/jquery-ui-i18n.min.js

I downloaded jQuery UI from a custom build (http://jqueryui.com/download) and from http://jqueryui.com/download/all/... but the folder i18n is no longer present.

The Localization section of the docs still mention the files with the old filenames (like in 1.10):

Each localization is contained within its own file with the language code appended to the name, e.g., jquery.ui.datepicker-fr.js for French.

I found the files in GitHub, with the new filenames (datepicker-fr.js instead of jquery.ui.datepicker-fr.js), but I didn't find them anywhere else.

Is it a bug in the downloader with the new files structure in jQuery UI 1.11?

Is there somewhere else where we can find the i18n files, except in the GitHub source where it's not really versioned (i.e.: you just get the last files from master without knowing with which version of jQuery UI they are compatible).

解决方案

The vendor's upgrade guide mentions the following:

"If you want the complete jQuery UI source files, demos, and tests, you can get them from: https://github.com/jquery/jquery-ui/releases."

It is here where you will find the files you're looking for, within the appropriate version(s).

I also found the minified file is being hosted by google: http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/i18n/jquery-ui-i18n.min.js

这篇关于jQuery UI datepicker >= 1.11.0 的 i18n 文件在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

layui实现laydate日历控件控制之前日期不可选择
具体实现代码如下: laydate.render({ elem: '#start_time', min:0, //,type: 'date' //默认,可不填}); 只要加一个min参数,就可以控制了。0表示之前的日期不可...
2024-11-29 前端开发问题
133

ajax请求获取json数据并处理的实例代码
ajax请求获取json数据并处理的实例代码 $.ajax({ type: 'GET', url: 'https://localhost:44369/UserInfo/EditUserJson',//请求数据 data: json,//传递数据 //dataType:'json/text',//预计服务器返回的类型 timeout: 3000,//请求超时的时间 //回调函数传参 suc...
2024-11-22 前端开发问题
215

js删除数组中指定元素的5种方法
在JavaScript中,我们有多种方法可以删除数组中的指定元素。以下给出了5种常见的方法并提供了相应的代码示例: 1.使用splice()方法: let array = [0, 1, 2, 3, 4, 5];let index = array.indexOf(2);if (index -1) { array.splice(index, 1);}// array = [0,...
2024-11-22 前端开发问题
182

layui 实现实时刷新一个外部的div
主页面上显示了一个合计,在删除和增加的时候需要更改这个总套数的值: //html代码div class="layui-inline layui-show-xs-block" style="margin-left: 10px" id="sumDiv"spanSOP合计:/spanspan${totalNum}/spanspan套/span/div 于是在我们删除这个条数据后,...
2024-11-14 前端开发问题
156

layui要如何改变时间日历布局大小?
问题描述 我想改变layui时间日历布局大小,这个要怎么操作呢? 解决办法 可以用css样式对时间日历进行重新布局,具体代码如下: !DOCTYPE htmlhtmlheadmeta charset="UTF-8"title/titlelink rel="stylesheet" href="../../layui/css/layui.css" /style#test-...
2024-10-24 前端开发问题
271

layui中表单会自动刷新的问题
layui中表单会自动刷新的问题,因为用到layui的表单,遇到了刷新的问题所以记录一下: script layui.use(['jquery','form','layer'], function(){ var $ = layui.jquery, layer=layui.layer, form = layui.form; form.on('submit(tijiao)', function(data){ a...
2024-10-23 前端开发问题
262