作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经使用 bower install angular-i18n
下载了 angular I18n 存储库,将其拉入我的 bower_compontents
并更新了 bower.json
带有 angular-i18n : 1.5.3
的文件,这是预期的行为。
我想在我的构建过程中包含一个特定的语言环境(例如 de-de.js),以便它与其他 Angular 脚本一起包含,每次我运行 grunt serve
这是此刻正在发生。有什么想法可以实现吗?
谢谢。
最佳答案
在我的例子中,我使用文件 angular-locale_es.js
的原始版本的链接在我的 bower 文件中添加了我需要的特定版本。bower.json
"dependencies": {
"angular": "^1.5.0",
"angular-mocks": "^1.5.0",
...
"angular-locale_es": "https://raw.githubusercontent.com/angular/bower-angular-i18n/master/angular-locale_es.js",
...
}
关于javascript - 如何使用 Bower 从 AngularJS I18n 文件中包含特定的语言环境?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36398134/
我是一名优秀的程序员,十分优秀!