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

Add caching mechanism to translation process #86

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

Conversation

nikitok
Copy link

@nikitok nikitok commented Dec 11, 2024

Added an optional caching mechanism to avoid translating the same keys multiple times.
The cache key is generated using the getKey function, which creates a unique identifier for each translation based on the source string, source language and target language

@ParvinEyvazov
Copy link
Member

Hi @nikitok, Thank you so much for your great contribution!

I will merge it soon after proper testing! Also can you please take a look at the conflicts?

Thanks.

@nikitok
Copy link
Author

nikitok commented Dec 17, 2024

Done.

About mechanism: we are creating cache_FROM_TO.json files, for saving state in cache (not 1 file, because we could work in multithread mode).

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