Copy the Chatwoot (v4.14.0) frontend runnable subset into frontend/ for customization: - app/javascript/ (Vue SPA: dashboard, widget, sdk, portal, superadmin) - app/views/ (ERB templates for vite-plugin-ruby entrypoint resolution) - app/helpers/, app/assets/ (Rails view helpers, static assets) - enterprise/ (Enterprise edition frontend overlay) - config/vite.json, vite.config.ts, bin/vite (Vite-Rails toolchain) - package.json, pnpm-lock.yaml, tailwind/postcss/eslint configs - Gemfile, Gemfile.lock (vite_rails gem for bin/vite binstub) Excluded Rails backend: controllers, models, services, jobs, mailers, policies, db, lib, spec, public, node_modules. Update references to the new frontend location: - .gitignore: exclude frontend build artifacts (node_modules, tmp, packs), keep frontend/bin/ and frontend/vendor/ via negation - backend/scripts/parity_frontend_smoke.sh: CHATWOOT_DIR default reference/chatwoot -> ../frontend - backend/scripts/parity_frontend_browser_smoke.mjs: same default update - AGENTS.md: add frontend section with Rails/Vite coupling notes - README: architecture tree includes frontend/
53 lines
1.7 KiB
JSON
53 lines
1.7 KiB
JSON
{
|
|
"CONTENT_TEMPLATES": {
|
|
"MODAL": {
|
|
"TITLE": "Twilio 範本",
|
|
"SUBTITLE": "選擇您想要傳送的 Twilio 範本",
|
|
"TEMPLATE_SELECTED_SUBTITLE": "設定範本:{templateName}"
|
|
},
|
|
"PICKER": {
|
|
"SEARCH_PLACEHOLDER": "搜尋範本",
|
|
"NO_TEMPLATES_FOUND": "找不到對應的範本",
|
|
"NO_CONTENT": "無內容",
|
|
"HEADER": "標頭",
|
|
"BODY": "內文",
|
|
"FOOTER": "頁尾",
|
|
"BUTTONS": "按鈕",
|
|
"CATEGORY": "類別",
|
|
"MEDIA_CONTENT": "媒體內容",
|
|
"MEDIA_CONTENT_FALLBACK": "媒體內容",
|
|
"NO_TEMPLATES_AVAILABLE": "沒有可用的 Twilio 範本。點擊重新整理以從 Twilio 同步範本。",
|
|
"REFRESH_BUTTON": "重新整理範本",
|
|
"REFRESH_SUCCESS": "範本重新整理已啟動,可能需要幾分鐘才能完成更新。",
|
|
"REFRESH_ERROR": "重新整理範本失敗,請再試一次。",
|
|
"LABELS": {
|
|
"LANGUAGE": "語言",
|
|
"TEMPLATE_BODY": "範本內文",
|
|
"CATEGORY": "類別"
|
|
},
|
|
"TYPES": {
|
|
"MEDIA": "媒體",
|
|
"QUICK_REPLY": "快速回覆",
|
|
"CALL_TO_ACTION": "行動呼籲",
|
|
"TEXT": "文字"
|
|
}
|
|
},
|
|
"PARSER": {
|
|
"VARIABLES_LABEL": "變數",
|
|
"LANGUAGE": "語言",
|
|
"CATEGORY": "類別",
|
|
"VARIABLE_PLACEHOLDER": "請填寫 {variable} 的值",
|
|
"GO_BACK_LABEL": "返回",
|
|
"SEND_MESSAGE_LABEL": "傳送訊息",
|
|
"FORM_ERROR_MESSAGE": "傳送前請先填寫所有變數",
|
|
"MEDIA_HEADER_LABEL": "{type} 標頭",
|
|
"MEDIA_URL_LABEL": "輸入完整媒體 URL",
|
|
"MEDIA_URL_PLACEHOLDER": "https://example.com/image.jpg"
|
|
},
|
|
"FORM": {
|
|
"BACK_BUTTON": "返回",
|
|
"SEND_MESSAGE_BUTTON": "傳送訊息"
|
|
}
|
|
}
|
|
}
|