Excel文档转 JSON 格式工具
Why need this?
i18n messages is stored in Excel file, but it is not easy to edit in your code. So, this tool is created to convert Excel to JSON.
Features
Excel data structure is converted to JSON.
Key | zh_CN | zh_HK | en | and more languages... |
---|---|---|---|---|
hello | 你好 | 你好 | hello | ... |
world | 世界 | 世界 | world! | ... |
output JSON:
{
"zh_CN": {
"hello": "你好",
"world": "世界",
},
"zh_HK": {
"hello": "你好",
"world": "世界",
},
"en": {
"hello": "hello",
"world": "world!",
}
}
Installation
Using npm:
$ npm install -g excel-to-json-parser
Using yarn:
$ yarn global add excel-to-json-parser
Usage
etj --sourceFile /yourdir/example.xlsx
// or
etj -s /yourDir/example.xlsx
Examples
yarn example
TODO
- Add UI for configuring the output file options
License
Links
作者:GeniusLyzh
出处:http://www.cnblogs.com/GeniusLyzh/
本文链接:https://www.cnblogs.com/GeniusLyzh/p/16307753.html
本文版权归作者和博客园共有,欢迎转载,须保留此段声明,并给出原文链接,谢谢!
如果阅读了本文章,觉得有帮助,欢迎点击右下角推荐
出处:http://www.cnblogs.com/GeniusLyzh/
本文链接:https://www.cnblogs.com/GeniusLyzh/p/16307753.html
本文版权归作者和博客园共有,欢迎转载,须保留此段声明,并给出原文链接,谢谢!
如果阅读了本文章,觉得有帮助,欢迎点击右下角推荐
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战