lobehub / lobe-cli-toolbox

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

[Request] lobe-i18n - 添加文件缓存功能 #98

Open KonghaYao opened 3 weeks ago

KonghaYao commented 3 weeks ago

🥰 需求描述 | Feature Description

当多次翻译的时候,貌似只检查了翻译后文件是否存在,并未进行 hash 校验,导致增量生成会有问题。 image

🧐 解决方案 | Proposed Solution

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

📝 补充信息 | Additional Information

可能我会提交一个 PR 去解决这个问题,不过还没看过项目代码

lobehubbot commented 3 weeks ago

👀 @KonghaYao

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。