plain-design 1.0.0-beta.59 → 1.0.0-beta.60
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -191,6 +191,10 @@ export const i18n = (() => {
|
|
191
191
|
return lang1 || lang2;
|
192
192
|
}
|
193
193
|
|
194
|
+
if (typeof lang1 !== "object" || typeof lang2 !== "object") {
|
195
|
+
return lang2 != null ? lang2 : lang1;
|
196
|
+
}
|
197
|
+
|
194
198
|
const keys = new Set<string>();
|
195
199
|
Object.keys(lang1).forEach(key => {keys.add(key);});
|
196
200
|
Object.keys(lang2).forEach(key => {keys.add(key);});
|