willba-component-library 0.0.74 → 0.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -8412,8 +8412,10 @@ var fiFilterBar = {
8412
8412
  submit: submit
8413
8413
  };
8414
8414
 
8415
- var urlParams = new URLSearchParams(window.location.search);
8416
- var localeFromUrl = urlParams.get('locale') || 'fi';
8415
+ var urlParams = typeof window !== 'undefined'
8416
+ ? new URLSearchParams(window.location.search)
8417
+ : null;
8418
+ var localeFromUrl = (urlParams === null || urlParams === void 0 ? void 0 : urlParams.get('locale')) || 'fi';
8417
8419
  instance.use(initReactI18next).init({
8418
8420
  resources: {
8419
8421
  en: { filterBar: enFilterBar },