Javascript is required
GPT 实现i18n

通过开发cli实现, gpt翻译多语言。

  1. 开发cli
  2. 集成gpt client
  3. 发布npm

参考项目

https://github.com/lobehub/lobe-cli-toolbox

实现了

  • GPT生成git commit
  • GPT生成i18n

所以基础这个项目也完善了个人cli

整体还是使用 TurboRepo+Pnpm+Changeset发布

使用案例- i18n

定义配置文件

定义配置项

总结

关注点, GPT+cli新奇的开发模式。

React组件也可以成为开发终端的工具

        flowchart LR
1["cli"]
2["@inkjs/ui"]
3["ink-testing-library"]
1 --> ink
1 --> 2
1 --> 3

      

开发终端也可以尝试 cac.js

  1. https://github.com/cacjs/cac
  2. https://github.com/vadimdemedes/ink
        flowchart LR
1["终端选型"]
1 --> cac
1 --> ink

      

参考

🌈 React for interactive command-line apps

https://github.com/vadimdemedes/ink

https://github.com/cacjs/cac

https://github.com/lobehub/lobe-cli-toolbox/tree/master/packages/lobe-i18n