camoufox-js 0.6.1 → 0.6.2
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/dist/locale.js +4 -2
- package/package.json +1 -1
package/dist/locale.js
CHANGED
|
@@ -114,8 +114,10 @@ export function handleLocales(locales, config) {
|
|
|
114
114
|
if (typeof locales === 'string') {
|
|
115
115
|
locales = locales.split(',').map(loc => loc.trim());
|
|
116
116
|
}
|
|
117
|
-
const intlLocale = handleLocale(locales[0]);
|
|
118
|
-
|
|
117
|
+
const intlLocale = handleLocale(locales[0]).asConfig();
|
|
118
|
+
for (const key in intlLocale) {
|
|
119
|
+
config[key] = intlLocale[key];
|
|
120
|
+
}
|
|
119
121
|
if (locales.length < 2) {
|
|
120
122
|
return;
|
|
121
123
|
}
|