@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.
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/scripts/install.mjs +8 -1
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/scripts/install.mjs
CHANGED
|
@@ -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
|
-
|
|
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 = {
|