Files
ECShopX_admin-frontend/.cursor/hooks/continue-translate.js
zhangjing1 8d82817dd3 feat(i18n): sidebar menu locale, invoice keys, and related fixes
Sidebar/header: add utils/menuI18n.js (getMenuDisplayName) so menu labels use route meta.title via $t when available; update layout-sidebar and layout DOM matching.

Invoice: constants use i18nKey; list.vue computed invoiceStatusTabItems/invoiceSourceOptions; listSchema options; pointmall orderList uses $t(i18nKey) and invoiceStatusText.

Other: saleCategory PLATFORM-only switches; order detail show section for suppliers; store-shop, goods, decorate, wxapp, merchant, mallList, sp-picker, sellers route, datacube order, params; locale JSON updates.

Repo: stop ignoring .cursor (track skills/commit-summary/agents); minor package.json/lock and i18n lang index.
Made-with: Cursor
2026-04-03 14:46:06 +08:00

27 lines
806 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// .cursor/hooks/continue-translate.js
// 作为 Cursor stop hook 运行时:从 stdin 读入 stop 的 input向 stdout 输出 { followup_message } 后 Cursor 会自动把该消息作为下一条用户消息提交,继续会话。
const fs = require('fs')
function main() {
let input = { status: 'completed', loop_count: 0 }
try {
const raw = fs.readFileSync(0, 'utf-8')
if (raw && raw.trim()) {
input = JSON.parse(raw)
}
} catch (e) {
// 非 hook 调用时 stdin 可能为空,忽略
}
// Cursor stop hook 约定:输出 { "followup_message": "..." } 时,会自动将该内容作为下一条用户消息提交,继续会话
const response = {
followup_message: '请继续翻译。'
}
console.log(JSON.stringify(response))
process.exit(0)
}
main()