lobehub / lobe-cli-toolbox

🪀 Lobe CLI Toolbox - AI CLI Toolbox, enhancing git commit and i18n workflow efficiency
MIT License
260 stars 46 forks source link

✨ feat: lobe-i18n - 添加 Markdown 文件翻译缓存功能 (#98) #99

Open KonghaYao opened 3 months ago

KonghaYao commented 3 months ago

💻 变更类型 | Change Type

🔀 变更说明 | Description of Change

通过计算每个原始文件的 hash 值缓存 AI 的翻译结果,这个结果并存储在项目的 db 文件。 每次运行时,从 cache 中检查 hash 值,并过滤对应文件。

📝 补充信息 | Additional Information

持久化存储使用了 @deno/kv 这个仓库,由于您可能希望使用其它的库,那么在 cache 文件夹里面可以替换这个库

lobehubbot commented 3 months ago

👍 @KonghaYao

Thank you for raising your pull request and contributing to our Community Please make sure you have followed our contributing guidelines. We will review it as soon as possible. If you encounter any problems, please feel free to connect with us.\ 非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。 如果您遇到任何问题,请随时与我们联系。