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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.59",
3
+ "version": "1.0.0-beta.60",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -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);});