n1crack / vuefinder

Empower your Vue.js applications with this versatile and customizable file manager component, simplifying file organization and navigation.
https://vuefinder.ozdemir.be
MIT License
259 stars 75 forks source link

Avoiding recursive behaviour at locale errors #23

Closed andreas-lundgren-qlucore closed 1 year ago

andreas-lundgren-qlucore commented 1 year ago

If the locale folder cannot be found, or the default language "en" is not present, this method will start a recursive loop with no exit criteria.

This change updates the code to first try and load the selected locale. It that fails, it will try to load default locale but only once. If that also fails, it will raise an alert and no longer hang the application.

n1crack commented 1 year ago

Thanks!