1. 首页
  2. 考试认证
  3. 其它
  4. messageformat bundle.js使用messageformat.js编译消息树,输出无全局变量

messageformat bundle.js使用messageformat.js编译消息树,输出无全局变量

上传者: 2024-12-21 10:16:44上传 ZIP文件 4.09KB 热度 7次

消息格式包使用 messageformat.js 编译消息树。输出中没有全局变量。安装:npm install messageformat-bundle

用法


var messageformatBundle = require('messageformat-bundle');

// Work in progress…

应用程序接口

messageformatBundle(消息, [选项])

消息类型:Object,必需的。

选项

  • 格式类型:Function,默认值:messageformatBundle.formatting.asModule

  • locale:String,默认值:undefined

  • customPlurals:Function,默认值:undefined

工作正在进行中…

下载地址
用户评论