ng-i18n-node:在没有 NodeJS 后端的情况下在 Angular 中使用 i18n-node

时间:2021-06-22 12:15:32
【文件属性】:
文件名称:ng-i18n-node:在没有 NodeJS 后端的情况下在 Angular 中使用 i18n-node
文件大小:9KB
文件格式:ZIP
更新时间:2021-06-22 12:15:32
JavaScript 在没有 NodeJS 后端的 Angular 应用程序中使用解决方案。 介绍 ng-i18n-node拦截$http服务并查找任何去往/i18n/ (默认i18n-node-angular路由)的请求。 如果检测到对/i18n/locale的请求,它将替换为对/i18n/locale.json的请求,以从本地资源中检索 JSON 格式的语言环境文件。 如果检测到对/i18n/locale/translateable的请求,可翻译字符串将以其原始形式返回。 同时它会被记录并打印到开发者控制台,以便您抓取并放入您的翻译文档中。 安装 包含.js文件: [removed][removed] 加载ng-i18n-node作为模块的依赖项: angular.module( "foo", ["i1
【文件预览】:
ng-i18n-node-master
----.gitignore(36B)
----README.md(1KB)
----LICENSE(1KB)
----Gruntfile.js(659B)
----.jshintrc(296B)
----bower.json(318B)
----package.json(419B)
----dist()
--------ng-i18n-node.min.js(1KB)
----src()
--------ng-i18n-node.js(4KB)
----.idea()
--------libraries()
--------vcs.xml(180B)
--------misc.xml(599B)
--------modules.xml(276B)
--------.name(12B)
--------jsLibraryMappings.xml(213B)
--------ng-i18n-node.iml(364B)
----.editorconfig(293B)

网友评论