Closed
Description
The current implementation in index.js
directly accesses the first element of each imported language file (e.g., en: en[0]
). If any of these language files are empty arrays or do not contain an element at index 0, it will result in an error. Adding a check to ensure the array has at least one element can prevent this error.
Metadata
Metadata
Assignees
Labels
No labels