没有合适的资源?快使用搜索试试~ 我知道了~
template-i18n:国际化模板字符串
共27个文件
js:9个
dot:5个
html:4个
需积分: 50 2 下载量 46 浏览量
2021-06-20
20:26:34
上传
评论
收藏 15KB ZIP 举报
温馨提示
模板-i18n 注意:您可能感兴趣的 ,对于包装template-i18n的gulp 。 用于创建国际化模板字符串的工具。 它接收一个包含 i18n 占位符的模板字符串,并用适当的翻译字符串替换它们。 例如: 重要提示:默认情况下,我们使用 dot 模板处理器。 但是template-i18n还支持ejs 、 underscore和lodash模板,并且还允许您为其他模板引擎设置自定义处理器。 请参阅 。 < article> < h1> {{:i18n(title)}}: {{=it.title}} </ h1> < p> {{:i18n(date)}}: {{=it.date}} </ p> </ article> 变成了下面的dot模板: < article> < h1> Title: {{=it.title}} </ h1> < p
资源推荐
资源详情
资源评论
收起资源包目录
template-i18n-v0.1.zip (27个子文件)
template-i18n-0.1
lib
locale.test.js 3KB
processor
index.test.js 3KB
dot.js 828B
ejs.js 861B
index.js 3KB
locale.js 1KB
util.js 901B
.npmignore 134B
gulpfile.js 391B
LICENSE 1KB
test
test.yml 522B
fixtures
test.lodash.html 317B
test.dot 331B
test.underscore.html 317B
custom_pattern.dot 103B
test.ejs 317B
test.json 42B
expected
ejs-processor.ejs 577B
dot-processor.dot 518B
underscore-processor.html 577B
custom-pattern.dot 141B
default_options.dot 518B
lodash-processor.html 577B
README.md 5KB
.gitignore 587B
index.js 1KB
package.json 874B
共 27 条
- 1
资源评论
凯然
- 粉丝: 19
- 资源: 4568
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功