This implementation of a Weblibrary will load different JS files based on the current language used. Useful to load translation files in JS.
You simply put a [lang] placeholder in the file name you want to load.
If the current locale used is French, the file requested will be
If the current locale used is German, the file requested will be
If the current locale used is the default one, the file requested will be
The locale is decided thanks to the
$languageDetection property of
This property must point to a class implementing Fine's LanguageDetectionInterface interface.