【问题标题】:How to install and use po2json?po2json的安装和使用方法
【发布时间】:2022-01-22 11:36:20
【问题描述】:

我想将一些 wordpress .po 语言文件转换为 .json 格式并使用 wp-cli 但 PO 文件转换为多个 json 文件但我需要单个 json 文件。

所以安装 po2json 使用:

npm install po2json

我收到此错误:

C:\Users\Mehdi\Desktop\po2json 1.0.0>po2json translation.po translation.json
'po2json' is not recognized as an internal or external command,
operable program or batch file.

谁能帮我轻松使用po2json?

【问题讨论】:

    标签: json wordpress po


    【解决方案1】:

    我尝试使用以下方式安装https://openbase.com/js/@myrotvorets/po2json

    npm i @myrotvorets/po2json
    

    最后我得到了以下代码的输出:

    po2json sourcefile.po > destfile.json
    

    【讨论】:

      猜你喜欢
      • 2016-05-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-06
      • 2016-08-03
      相关资源
      最近更新 更多