gpt4 book ai didi

javascript - 如何使用 Bower 从 AngularJS I18n 文件中包含特定的语言环境?

转载 作者:行者123 更新时间:2023-11-29 14:42:52 25 4
gpt4 key购买 nike

我已经使用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com