Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KonghaYao opened this issue Jun 4, 2024 · 1 comment
Open

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

KonghaYao opened this issue Jun 4, 2024 · 1 comment
Labels
🌠 Feature Request New feature or request | 特性与建议 Inactive No response in 30 days | 超过 30 天未活跃

Comments

@KonghaYao
Copy link

🥰 需求描述 | Feature Description

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

🧐 解决方案 | Proposed Solution

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

📝 补充信息 | Additional Information

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

@KonghaYao KonghaYao added the 🌠 Feature Request New feature or request | 特性与建议 label Jun 4, 2024
@lobehubbot
Copy link
Member

👀 @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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot lobehubbot added the Inactive No response in 30 days | 超过 30 天未活跃 label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议 Inactive No response in 30 days | 超过 30 天未活跃
Projects
None yet
Development

No branches or pull requests

2 participants