json-autotranslate
json-autotranslate copied to clipboard
Issue with Inaccurate Caching Behavior in json-autotranslate Across Multiple Directories
This package exhibits inaccurate caching behavior when the command is executed across multiple directories containing translation files with identical names.
Steps to Reproduce:
- Execute the command
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.). - Observe the caching behavior of the package.
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.