headlamp
headlamp copied to clipboard
Repeat translation key error
Description
There is a recurring issue when running the duplicate keys test for translations, which seems to be specific to Windows environments. The test, which checks for repeated or duplicate translation keys, passes without issue on Linux machines but consistently raises errors on Windows systems.
This error suggests that the problem may be environment-specific and could be related to how file paths or key comparisons are handled differently on Windows compared to Linux.
Steps to Reproduce
-
On a Windows machine, cd into the frontend directory:
cd frontend
-
Run the duplicate keys test:
npm run test
-
Observe the error related to repeated translation keys.
-
Compare this with running the same test on a Linux machine, where no such error occurs.
Expected Behavior
- The test should pass without errors on both Windows and Linux environments, ensuring that translation keys are properly checked for duplicates regardless of the operating system.
Observed Behavior
- The test consistently fails on Windows machines due to a
TypeError
, which incorrectly reports an issue with the translation keys. This error does not occur on Linux machines. - The same test runs without any issues on Linux environments, indicating that the error is specific to the Windows environment.