czon 0.3.9 → 0.4.0

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.
@@ -43,6 +43,11 @@ const RootPage = props => {
43
43
  window.location.href = mapUserLangToSupported[lang] + '/index.html';
44
44
  return;
45
45
  }
46
+ const shortLang = lang.split('-')[0];
47
+ if (mapUserLangToSupported[shortLang]) {
48
+ window.location.href = mapUserLangToSupported[shortLang] + '/index.html';
49
+ return;
50
+ }
46
51
  }
47
52
  window.location.href = '${props.ctx.site.options.langs[0]}/index.html'; // 默认语言
48
53
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "czon",
3
- "version": "0.3.9",
3
+ "version": "0.4.0",
4
4
  "description": "CZone - AI enhanced Markdown content engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",