我从自定义构建 (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 文件在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!