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

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KonghaYao
Copy link

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

🔀 变更说明 | Description of Change

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

📝 补充信息 | Additional Information

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

@lobehubbot
Copy link
Member

👍 @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.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants