@a2hmarket/a2hmarket 0.8.0 → 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 +9 -2
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 = {
|
|
@@ -765,7 +772,7 @@ async function main() {
|
|
|
765
772
|
if (target) {
|
|
766
773
|
log(` Detected Feishu user: ${CYAN}${target}${RESET}`);
|
|
767
774
|
} else {
|
|
768
|
-
|
|
775
|
+
log(` ${WARN} Could not auto-detect Feishu user. Notification will be configured after first Feishu message.`);
|
|
769
776
|
}
|
|
770
777
|
} else if (chosen.name === "discord") {
|
|
771
778
|
target = await prompt2.ask("Enter Discord channel ID", "");
|