Open veneliniliev opened 4 months ago
Hey @veneliniliev,
I hadn't thought of this use case yet, let me see if I can fix this. In the meantime, you could run json-autotranslate from each of the directories, like this:
(cd src/translations/a && json-autotranslate -i .); (cd src/translations/b && json-autotranslate -i .); (cd src/translations/c && json-autotranslate -i .);
This creates a separate cache per directory.
@leolabs thanks. I'll try.
This package exhibits inaccurate caching behavior when the command is executed across multiple directories containing translation files with identical names.
Steps to Reproduce:
json-autotranslate -i src/translations/a; json-autotranslate -i src/translations/b; json-autotranslate -i src/translations/b;
where there exist translation files with the same name (a.json, for example) in the specified directories (src/translations/a, src/translations/b, etc.).Expected Behavior: The package should cache the translation data for each file separately, ensuring accurate translation results even when files with the same name exist in multiple directories.
Actual Behavior: The package fails to cache the translation data accurately, leading to inconsistencies or incorrect translations when files with identical names are present in different directories.