react-intl-po:从react-intl提取POT并转换回json

时间:2024-06-02 08:01:49
【文件属性】:

文件名称:react-intl-po:从react-intl提取POT并转换回json

文件大小:147KB

文件格式:ZIP

更新时间:2024-06-02 08:01:49

react-intl pot po2json babel-plugin-react-intl JavaScript

react-intl-po 从react-intl提取POT并转换回json。 messages.json→POT→PO→translation.json 教程 请看看基于Create-React-App的独立回购协议: : 安装 $ yarn add react-intl-po 需求和工作流程 react-intl ^2.0.0 babel-plugin-react-intl ^2.0.0 用法 有两个子命令react-intl-po或rip : json2pot:将从babel-plugin-react-intl提取的json文件转换为一个.pot文件。 po2json:转换翻译.po文件回.json格式。 json2pot $ rip json2pot ' _translations/src/**/*.json ' \ -o ./mcs-public.p


【文件预览】:
react-intl-po-master
----.gitignore(150B)
----README.md(9KB)
----CHANGELOG.md(3KB)
----test()
--------readAllMessageAsObjectSync.test.js(876B)
--------potHeader.test.js(1KB)
--------extractAndWritePOTFromMessagesSync.test.js(1KB)
--------__snapshots__()
--------potFormater.test.js(3KB)
--------alternate_po()
--------messages()
--------temp()
--------po()
--------filterPOAndWriteTranslateSync.test.js(4KB)
--------readAllPOAsObjectSync.test.js(2KB)
----docs()
--------workflow.png(60KB)
--------workflow.sketch(64KB)
----LICENSE(1KB)
----package.json(3KB)
----src()
--------cli.js(2KB)
--------filterPOAndWriteTranslateSync.js(3KB)
--------utils()
--------readAllPOAsObjectSync.js(815B)
--------readAllMessageAsObjectSync.js(1KB)
--------potFormater.js(2KB)
--------potHeader.js(1KB)
--------index.js(549B)
--------extractAndWritePOTFromMessagesSync.js(999B)
----renovate.json(35B)
----config()
--------stringSerializer.js(90B)
--------jsonSerializer.js(115B)
----.travis.yml(1KB)
----.editorconfig(238B)
----yarn.lock(173KB)

网友评论