javascript jQuery UI datepicker >= 1.11.0的i18n文件在哪里
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25765124/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where are the i18n files of jQuery UI datepicker >= 1.11.0
提问by Yann Dìnendal
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.
我从自定义版本 ( http://jqueryui.com/download) 和http://jqueryui.com/download/all/下载了 jQuery UI ...但该文件夹i18n
不再存在。
The Localizationsection of the docs still mention the files with the old filenames (like in 1.10):
文档的本地化部分仍然提到具有旧文件名的文件(如 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.
每个本地化都包含在其自己的文件中,名称后附有语言代码,例如
jquery.ui.datepicker-fr.js
法语。
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.
我在GitHub 中找到了带有新文件名(datepicker-fr.js
而不是jquery.ui.datepicker-fr.js
)的文件,但我没有在其他任何地方找到它们。
Is it a bug in the downloader with the new files structure in jQuery UI 1.11?
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).
是否还有其他地方可以找到 i18n 文件,除了在 GitHub 源中它没有真正进行版本控制(即:您只是从 master 获取最后一个文件而不知道它们与哪个版本的 jQuery UI 兼容)。
采纳答案by ne1410s
The vendor's upgrade guidementions 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."
“如果你想要完整的 jQuery UI 源文件、演示和测试,你可以从: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
我还发现缩小的文件由谷歌托管:http: //ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/i18n/jquery-ui-i18n.min.js
回答by Yann Dìnendal
I ended up downloading the files from https://github.com/jquery/jquery-ui/tree/master/ui/i18n, but I would still like to know if they are available elsewhere.
我最终从https://github.com/jquery/jquery-ui/tree/master/ui/i18n下载了文件,但我仍然想知道它们是否在其他地方可用。
I have tested them and can confirm they are compatible with my jQuery UI 1.11.1 datepicker.
我已经对它们进行了测试,可以确认它们与我的 jQuery UI 1.11.1 日期选择器兼容。