Skip to content

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

Open
KonghaYao wants to merge 2 commits into
lobehub:masterfrom
KonghaYao:feature/i18n/cached_content
Open

✨ feat: lobe-i18n - 添加 Markdown 文件翻译缓存功能 (#98)#99
KonghaYao wants to merge 2 commits into
lobehub:masterfrom
KonghaYao:feature/i18n/cached_content

Conversation

@KonghaYao
Copy link
Copy Markdown

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

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

📝 补充信息 | Additional Information

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

@lobehubbot
Copy link
Copy Markdown
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