willba-component-library 0.0.75 → 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 +4 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +4 -2
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/i18n.ts +5 -2
package/lib/index.umd.js
CHANGED
|
@@ -8434,8 +8434,10 @@
|
|
|
8434
8434
|
submit: submit
|
|
8435
8435
|
};
|
|
8436
8436
|
|
|
8437
|
-
var urlParams =
|
|
8438
|
-
|
|
8437
|
+
var urlParams = typeof window !== 'undefined'
|
|
8438
|
+
? new URLSearchParams(window.location.search)
|
|
8439
|
+
: null;
|
|
8440
|
+
var localeFromUrl = (urlParams === null || urlParams === void 0 ? void 0 : urlParams.get('locale')) || 'fi';
|
|
8439
8441
|
instance.use(initReactI18next).init({
|
|
8440
8442
|
resources: {
|
|
8441
8443
|
en: { filterBar: enFilterBar },
|