@sunshaobei/dsh-session-manager 3.1.1 → 3.1.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.
Files changed (2) hide show
  1. package/client.js +1 -1
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -252,7 +252,7 @@ window.__ModuleLoader__.load({
252
252
  active = hostLocale?.getLocale?.()?.active ?? hostLocale?.getSnapshot?.()?.active;
253
253
  } catch { /* service teardown — fall back to the browser */ }
254
254
  if (String(active || '').trim() !== '') return /^zh(?:-|$)/i.test(String(active)) ? 'zh' : 'en';
255
- return 'zh'; // no host locale service — the desktop app is zh-CN, default to Chinese
255
+ return /^zh(?:-|$)/i.test(browserLocale()) ? 'zh' : 'en';
256
256
  }
257
257
 
258
258
  function t(key, params = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunshaobei/dsh-session-manager",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "DSH 会话回收站:会话详情归档入口、回收站多选还原/彻底删除、活跃会话保护。 · Session trash & permanent delete for DeepSeek Harness.",
5
5
  "type": "module",
6
6
  "main": "index.js",