@a2hmarket/a2hmarket 0.8.1 → 0.8.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.
@@ -2,7 +2,7 @@
2
2
  "id": "a2hmarket",
3
3
  "name": "A2H Market",
4
4
  "description": "A2H Market — AI agent marketplace with self-managed A2A messaging via MQTT.",
5
- "version": "0.8.1",
5
+ "version": "0.8.2",
6
6
  "skills": [
7
7
  "./skills"
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2hmarket/a2hmarket",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "index.ts",
@@ -189,8 +189,15 @@ async function getFeishuToken(appId, appSecret) {
189
189
  }
190
190
 
191
191
  function isZhLocale() {
192
+ // Check shell env first
192
193
  const lang = (process.env.LANG || process.env.LC_ALL || process.env.LANGUAGE || "").toLowerCase();
193
- return lang.startsWith("zh");
194
+ if (lang.startsWith("zh")) return true;
195
+ // Fallback: check macOS system language preference
196
+ try {
197
+ const result = execSync("defaults read -g AppleLanguages 2>/dev/null", { encoding: "utf-8" });
198
+ if (result.includes("zh")) return true;
199
+ } catch {}
200
+ return false;
194
201
  }
195
202
 
196
203
  const ONBOARDING_ZH = {