json-autotranslate icon indicating copy to clipboard operation
json-autotranslate copied to clipboard

Issue with Inaccurate Caching Behavior in json-autotranslate Across Multiple Directories

Open veneliniliev opened this issue 2 months ago • 2 comments

This package exhibits inaccurate caching behavior when the command is executed across multiple directories containing translation files with identical names.

Steps to Reproduce:

  1. 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.).
  2. 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.

veneliniliev avatar May 13 '24 11:05 veneliniliev