diff --git a/dist.tar.gz b/dist.tar.gz index a4b20041..59192ca6 100644 Binary files a/dist.tar.gz and b/dist.tar.gz differ diff --git a/env.d.ts b/env.d.ts index ff7cb8a1..b43cdaad 100644 --- a/env.d.ts +++ b/env.d.ts @@ -4,9 +4,3 @@ declare module '@/utils/auth' { export function setToken(token: string): void export function removeToken(): void } -declare module '@/api/user/user' { - export function login(data: any): Promise - export function getInfo(data: any): Promise - export function changeRole(data: any): Promise - export function logout(data: any): Promise -} diff --git a/package.json b/package.json index dac533a6..3737055a 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,8 @@ "apiconfig:api-interface-update": "node ./workflows/api-doc-system/api-interface-update.mjs", "apiconfig:api-interface-clean": "node ./workflows/api-doc-system/api-interface-clean.mjs", "apiconfig:apidata": "node ./workflows/api-doc-system/scripts/apidata.mjs", + "apiconfig:apidata:clear": "node ./workflows/api-doc-system/scripts/apidata.mjs -- --clear", + "apiconfig:apidata:help": "node ./workflows/api-doc-system/scripts/apidata.mjs -- --help", "apiagent": "node ./workflows/api-doc-system/scripts/agent/run.mjs", "lint": "eslint . --cache", "lint:fix": "eslint . --cache --fix", diff --git a/src/api/index/index.ts b/src/api/index/index.ts index 0cde4752..28111ef3 100644 --- a/src/api/index/index.ts +++ b/src/api/index/index.ts @@ -123,7 +123,7 @@ export function putI18nCollect(data:any){ } as any) } -export function getExpressList(data?: { systemOnly?: boolean }){ +export function getExpressList(data?: Record) { return request({ url: '/system', method: 'post', @@ -137,7 +137,7 @@ export function getExpressList(data?: { systemOnly?: boolean }){ } as any) } -export function getPlatformList(data?: { systemOnly?: boolean }) { +export function getPlatformList(data?: Record) { return request({ url: '/system', method: 'post', @@ -194,3 +194,17 @@ export function searchSpace(data:any){ isSystemApi: true } as any) } + +export function recognizeLicensePlate(data:any){ + return request({ + url: '/system', + method: 'post', + params: { + method: 'index.recognizeLicensePlate', + v: '1.0', + timestamp: new Date().getTime() + }, + data: data, + isSystemApi: true + } as any) +} \ No newline at end of file diff --git a/src/api/order.archiveorder/orderarchiveorder.ts b/src/api/order.archiveorder/orderarchiveorder.ts new file mode 100644 index 00000000..cbf6bc6c --- /dev/null +++ b/src/api/order.archiveorder/orderarchiveorder.ts @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +const v = '1.0' + +export type OrderWhere = Record +export type OrderSort = { + sortField?: string + sortOrder?: 'asc' | 'desc' | 'ASC' | 'DESC' + field?: string + order?: 'asc' | 'desc' | 'ASC' | 'DESC' +} +export type OrderPagination = { + page?: number + pageSize?: number +} + +export type ArchiveOrderListParams = { + pagination?: OrderPagination + where?: OrderWhere + sort?: OrderSort +} + +export function orderArchiveOrderList(data: ArchiveOrderListParams = {}): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'order.archiveOrder.list', + v, + timestamp: Date.now() + }, + data, + isSystemApi: true + } as any) +} + +export const orderArchiveOrder = { + list: orderArchiveOrderList +} diff --git a/src/api/order.deliveryexpectionorder/orderdeliveryexpectionorder.ts b/src/api/order.deliveryexpectionorder/orderdeliveryexpectionorder.ts new file mode 100644 index 00000000..26c131f6 --- /dev/null +++ b/src/api/order.deliveryexpectionorder/orderdeliveryexpectionorder.ts @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +const v = '1.0' + +export type OrderWhere = Record +export type OrderSort = { + sortField?: string + sortOrder?: 'asc' | 'desc' | 'ASC' | 'DESC' + field?: string + order?: 'asc' | 'desc' | 'ASC' | 'DESC' +} +export type OrderPagination = { + page?: number + pageSize?: number +} + +export type DeliveryExpectionOrderListParams = { + pagination?: OrderPagination + where?: OrderWhere + sort?: OrderSort +} + +export function orderDeliveryExpectionOrderList(data: DeliveryExpectionOrderListParams = {}): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'order.deliveryExpectionOrder.list', + v, + timestamp: Date.now() + }, + data, + isSystemApi: true + } as any) +} + +export const orderDeliveryExpectionOrder = { + list: orderDeliveryExpectionOrderList +} diff --git a/src/api/order.entrustorder/orderentrustorder.ts b/src/api/order.entrustorder/orderentrustorder.ts new file mode 100644 index 00000000..b745aedf --- /dev/null +++ b/src/api/order.entrustorder/orderentrustorder.ts @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +const v = '1.0' + +export type OrderWhere = Record +export type OrderSort = { + sortField?: string + sortOrder?: 'asc' | 'desc' | 'ASC' | 'DESC' + field?: string + order?: 'asc' | 'desc' | 'ASC' | 'DESC' +} +export type OrderPagination = { + page?: number + pageSize?: number +} + +export type EntrustOrderListParams = { + pagination?: OrderPagination + where?: OrderWhere + sort?: OrderSort +} + +export function orderEntrustOrderList(data: EntrustOrderListParams = {}): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'order.entrustOrder.list', + v, + timestamp: Date.now() + }, + data, + isSystemApi: true + } as any) +} + +export const orderEntrustOrder = { + list: orderEntrustOrderList +} diff --git a/src/api/order.expectionorder/orderexpectionorder.ts b/src/api/order.expectionorder/orderexpectionorder.ts new file mode 100644 index 00000000..f39cc005 --- /dev/null +++ b/src/api/order.expectionorder/orderexpectionorder.ts @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +const v = '1.0' + +export type OrderWhere = Record +export type OrderSort = { + sortField?: string + sortOrder?: 'asc' | 'desc' | 'ASC' | 'DESC' + field?: string + order?: 'asc' | 'desc' | 'ASC' | 'DESC' +} +export type OrderPagination = { + page?: number + pageSize?: number +} + +export type ExpectionOrderListParams = { + pagination?: OrderPagination + where?: OrderWhere + sort?: OrderSort +} + +export function orderExpectionOrderList(data: ExpectionOrderListParams = {}): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'order.expectionOrder.list', + v, + timestamp: Date.now() + }, + data, + isSystemApi: true + } as any) +} + +export const orderExpectionOrder = { + list: orderExpectionOrderList +} diff --git a/src/api/order.index/orderindex.ts b/src/api/order.index/orderindex.ts index b27c26cd..fffc0ff0 100644 --- a/src/api/order.index/orderindex.ts +++ b/src/api/order.index/orderindex.ts @@ -69,8 +69,24 @@ export function orderBadgeCount(): Promise { } as any) } +/** 订单明细行(历史接口 order.detail,未纳入远端 module 清单) */ +export function orderDetail(data: Record = {}): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'order.detail', + v, + timestamp: new Date().getTime() + }, + data, + isSystemApi: true + } as any) +} + export const order = { list: orderList, manualOutboundOrder: orderManualOutboundOrder, - badgeCount: orderBadgeCount + badgeCount: orderBadgeCount, + detail: orderDetail } diff --git a/src/api/order.pendingOrder/orderpendingOrder.ts b/src/api/order.pendingOrder/orderpendingOrder.ts index 7ff1c50a..0143fe72 100644 --- a/src/api/order.pendingOrder/orderpendingOrder.ts +++ b/src/api/order.pendingOrder/orderpendingOrder.ts @@ -30,6 +30,10 @@ export type PendingOrderReverseReviewParams = { order_id?: number | string } +export type PendingOrderAllocateExpressCodeParams = { + orders: Array> +} + export function orderPendingOrderList(data: PendingOrderListParams = {}): Promise { return request({ url: '/system', @@ -86,9 +90,26 @@ export function orderPendingOrderCancelOrder(data: PendingOrderIdsParams): Promi } as any) } +export function orderPendingOrderAllocateExpressCode( + data: PendingOrderAllocateExpressCodeParams +): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'order.pendingOrder.allocateExpressCode', + v, + timestamp: Date.now() + }, + data, + isSystemApi: true + } as any) +} + export const orderPendingOrder = { list: orderPendingOrderList, reverseReviewOrder: orderPendingOrderReverseReviewOrder, markPendingOutboundOrder: orderPendingOrderMarkPendingOutboundOrder, - cancelOrder: orderPendingOrderCancelOrder + cancelOrder: orderPendingOrderCancelOrder, + allocateExpressCode: orderPendingOrderAllocateExpressCode } diff --git a/src/api/order.storageallocation/orderstorageallocation.ts b/src/api/order.storageallocation/orderstorageallocation.ts new file mode 100644 index 00000000..d7dcb759 --- /dev/null +++ b/src/api/order.storageallocation/orderstorageallocation.ts @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +const v = '1.0' + +/** 与文档 Params 别名对齐;至少提供一种订单 ID 列表形式 */ +export type OrderStorageAllocationAllocateStorageParams = { + allow_storage_location?: boolean + allowStorageLocation?: boolean + is_allow_storage?: boolean + isAllowStorage?: boolean + order_ids?: Array | string | number + orderIds?: Array | string | number + ids?: Array | string | number + order_id?: number | string + orderId?: number | string + id?: number | string + warehouse_id?: number + warehouseId?: number +} + +export function orderStorageAllocationAllocateStorage( + data: OrderStorageAllocationAllocateStorageParams +): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'order.storageAllocation.allocateStorage', + v, + timestamp: Date.now() + }, + data, + isSystemApi: true + } as any) +} + +export const orderStorageAllocation = { + allocateStorage: orderStorageAllocationAllocateStorage +} diff --git a/src/api/order/order.ts b/src/api/order/order.ts deleted file mode 100644 index b0dceae7..00000000 --- a/src/api/order/order.ts +++ /dev/null @@ -1,132 +0,0 @@ -import request from '@/utils/request' -const v = "1.0" - -export const getreviewOrderlist = (data: any): Promise => { - return request({ - url: '/system', - method: 'post', - params: { - method: 'order.reviewOrder.getreviewOrderlist', - v, - timestamp: new Date().getTime() - }, - data: data - }) -} - -export const reviewOrder = (data: any): Promise => { - return request({ - url: '/system', - method: 'post', - params: { - method: 'order.reviewOrder.reviewOrder', - v, - timestamp: new Date().getTime() - }, - data: data - }) -} - -export function getdeliveryOrderlist(data: any): Promise { - return request({ - url: '/system', - method: 'post', - params: { - method: 'order.deliveryOrder.getdeliveryOrderlist', - v, - timestamp: new Date().getTime() - }, - data: data - }) -} - -// export const getdeliveryOrderDetail = (data: any): Promise => { -// return request({ -// url: '/system', -// method: 'post', -// params: { -// method: 'order.deliveryOrder.getdeliveryOrderDetail', -// v, -// timestamp: new Date().getTime() -// }, -// data: data -// }) -// } - -export const getpendingOrderlist = (data: any): Promise => { - return request({ - url: '/system', - method: 'post', - params: { - method: 'order.pendingOrder.getpendingOrderlist', - v, - timestamp: new Date().getTime() - }, - data: data - }) -} - -export const getexpectionOrderlist = (data: any): Promise => { - return request({ - url: '/system', - method: 'post', - params: { - method: 'order.expectionOrder.getexpectionOrderlist', - v, - timestamp: new Date().getTime() - }, - data: data - }) -} - -export const getarchiveOrderlist = (data: any): Promise => { - return request({ - url: '/system', - method: 'post', - params: { - method: 'order.archiveOrder.getarchiveOrderlist', - v, - timestamp: new Date().getTime() - }, - data: data - }) -} - -// 订单列表接口(接口文档:order.list) -export const orderList = (data: any): Promise => { - return request({ - url: '/system', - method: 'post', - params: { - method: 'order.list', - v, - timestamp: new Date().getTime() - }, - data: data - }) -} - -// 查询订单详情(接口文档:order.detail) -// 已停用:deliveryOrder 页面已改为使用 order.deliveryOrder.list 返回数据进行详情展示,不再依赖该接口。 -export const orderDetail = (data: any): Promise => { - return request({ - url: '/system', - method: 'post', - params: { - method: 'order.detail', - v, - timestamp: new Date().getTime() - }, - data: data - }) -} - -// New APIs from test.txt -export const orderReviewList = (data: any): Promise => request({ url: '/system', method: 'post', params: { method: 'order.reviewOrder.list', v: '1.0', timestamp: Date.now() }, data: data }); -export const orderReviewOrder = (data: any): Promise => request({ url: '/system', method: 'post', params: { method: 'order.reviewOrder.reviewOrder', v: '1.0', timestamp: Date.now() }, data: data }); -export const orderPendingList = (data: any): Promise => request({ url: '/system', method: 'post', params: { method: 'order.pendingOrder.getpendingOrderlist', v: '1.0', timestamp: Date.now() }, data: data }); -export const orderExpectionList = (data: any): Promise => request({ url: '/system', method: 'post', params: { method: 'order.expectionOrder.getexpectionOrderlist', v: '1.0', timestamp: Date.now() }, data: data }); -export const orderEntrustList = (data: any): Promise => request({ url: '/system', method: 'post', params: { method: 'order.entrustOrder.list', v: '1.0', timestamp: Date.now() }, data: data }); -export const orderDeliveryList = (data: any): Promise => request({ url: '/system', method: 'post', params: { method: 'order.deliveryOrder.list', v: '1.0', timestamp: Date.now() }, data: data }); -export const orderDeliveryExpectionList = (data: any): Promise => request({ url: '/system', method: 'post', params: { method: 'order.deliveryExpectionOrder.list', v: '1.0', timestamp: Date.now() }, data: data }); -export const orderArchiveList = (data: any): Promise => request({ url: '/system', method: 'post', params: { method: 'order.archiveOrder.list', v: '1.0', timestamp: Date.now() }, data: data }); diff --git a/src/api/print/print.ts b/src/api/print/print.ts index 701653e0..f3845aa7 100644 --- a/src/api/print/print.ts +++ b/src/api/print/print.ts @@ -14,7 +14,8 @@ export function getList(data:any){ }) } -export function getItem(id: string) { +export function getItem(id: string | number) { + const numId = Number(id) return request({ url: '/system', method: 'post', @@ -23,11 +24,16 @@ export function getItem(id: string) { v, timestamp: new Date().getTime() }, - data: { id } + data: Number.isFinite(numId) ? { id: numId } : { id } }) } -export function add(data: any) { +export function add(data: Record) { + const body = { ...data } + if (body.computer_id !== undefined && body.computer_id !== null && body.computer_id !== '') { + const n = Number(body.computer_id) + if (Number.isFinite(n)) body.computer_id = n + } return request({ url: '/system', method: 'post', @@ -36,11 +42,16 @@ export function add(data: any) { v, timestamp: new Date().getTime() }, - data: data + data: body }) } -export function hasName(data: any) { +export function hasName(data: { name: string; id?: string | number | null }) { + const body: Record = { name: data.name } + if (data.id !== undefined && data.id !== null && data.id !== '') { + const n = Number(data.id) + if (Number.isFinite(n)) body.id = n + } return request({ url: '/system', method: 'post', @@ -49,14 +60,23 @@ export function hasName(data: any) { v, timestamp: new Date().getTime() }, - data: data + data: body }) } -export function updateItem(data: any) { +export function updateItem(data: Record) { + const body = { ...data } + if (body.id !== undefined && body.id !== null && body.id !== '') { + const n = Number(body.id) + if (Number.isFinite(n)) body.id = n + } + if (body.computer_id !== undefined && body.computer_id !== null && body.computer_id !== '') { + const n = Number(body.computer_id) + if (Number.isFinite(n)) body.computer_id = n + } return request({ url: '/system', method: 'post', @@ -65,17 +85,25 @@ export function updateItem(data: any) { v, timestamp: new Date().getTime() }, - data: data + data: body }) } +function normalizeDelIds(ids: unknown[]): number[] { + return ids + .map((i) => Number(i)) + .filter((n) => Number.isFinite(n)) +} + // 删除单个打印台(兼容传入 id 或 { ids: [...] }) export function delItem(idOrPayload: any) { let payload: any = idOrPayload if (typeof idOrPayload === 'string' || typeof idOrPayload === 'number') { - payload = { ids: [String(idOrPayload)] } + payload = { ids: normalizeDelIds([idOrPayload]) } } else if (Array.isArray(idOrPayload)) { - payload = { ids: idOrPayload } + payload = { ids: normalizeDelIds(idOrPayload) } + } else if (idOrPayload && Array.isArray(idOrPayload.ids)) { + payload = { ids: normalizeDelIds(idOrPayload.ids) } } return request({ @@ -90,9 +118,9 @@ export function delItem(idOrPayload: any) { }) } -// 批量删除打印台,接受 id 字符串数组 -export function delItems(ids: string[]) { - const payload = { ids: ids.map(String) } +// 批量删除打印台,接受 id 数组(与后端约定为数字 id) +export function delItems(ids: Array) { + const payload = { ids: normalizeDelIds(ids) } return request({ url: '/system', method: 'post', @@ -118,7 +146,7 @@ export function getComputer() { }) } -export function getExpressList(data?: { systemOnly?: boolean }) { +export function getExpressList(data?: Record) { return request({ url: '/system', method: 'post', @@ -134,7 +162,8 @@ export function getExpressList(data?: { systemOnly?: boolean }) { }) } -export function getComputerPrinter(id: string) { +export function getComputerPrinter(id: string | number) { + const numId = Number(id) return request({ url: '/system', method: 'post', @@ -143,12 +172,24 @@ export function getComputerPrinter(id: string) { v, timestamp: new Date().getTime() }, - data: { id } + data: Number.isFinite(numId) ? { id: numId } : { id } }) } -// 保存打印机与快递绑定关系 -export function savePrinters(data: any) { +// 保存打印机与快递绑定关系(字段名与接口 print.savePrinters 一致) +export function savePrinters(data: { + defaultPrinter: string + express?: Array> + print_station_id?: number +}) { + const body: Record = { + defaultPrinter: data.defaultPrinter, + express: data.express ?? [] + } + if (data.print_station_id !== undefined && data.print_station_id !== null) { + const n = Number(data.print_station_id) + if (Number.isFinite(n)) body.print_station_id = n + } return request({ url: '/system', method: 'post', @@ -157,7 +198,7 @@ export function savePrinters(data: any) { v, timestamp: new Date().getTime() }, - data: data + data: body }) } @@ -174,7 +215,3 @@ export function sendPrint(data: any) { data: data }) } - -export function getStationList(arg0: {}): any { - throw new Error('Function not implemented.'); -} diff --git a/src/api/setting.express/express.ts b/src/api/setting.express/express.ts index 1cf84414..3e6ca753 100644 --- a/src/api/setting.express/express.ts +++ b/src/api/setting.express/express.ts @@ -66,3 +66,16 @@ export function expressUpdate(data: any) { data }) } + +export function expressDelete(data: { ids: number[] | string | number }) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'setting.express.delete', + v, + timestamp: new Date().getTime() + }, + data + }) +} diff --git a/src/api/storage_receiving/receiving.ts b/src/api/storage_receiving/receiving.ts index abf2c0cc..05e4c861 100644 --- a/src/api/storage_receiving/receiving.ts +++ b/src/api/storage_receiving/receiving.ts @@ -68,24 +68,6 @@ export function batchCancelReceiving(data: any): Promise { // }) // } -// 发送打印任务 -// data: { stationId, printerName, templateId, businessType, businessId, printData } -// 未使用 -export function sendPrint(data: any) { - return request({ - url: '/system', - method: 'post', - params: { - method: 'print.send', - v, - timestamp: new Date().getTime() - }, - data: data - }) -} - - - export function createReceiving(data: any): Promise { return request({ url: '/system', diff --git a/src/apijsonconfig.txt b/src/apijsonconfig.txt deleted file mode 100644 index cc88735e..00000000 --- a/src/apijsonconfig.txt +++ /dev/null @@ -1,4878 +0,0 @@ -{ - "releaseVersion": "1.13.5", - "immediateTranslationTextCount": 4999, - "immediateTranslationScrollLimitScreens": 1, - "translationStartMode": "dynamic", - "domReadyDetectTimeout": 3000, - "translationService": "bing", - "clientImageTranslationService": "inherit", - "inputTranslationService": "inherit", - "userTranslationServices": {}, - "mouseModifierKeyPressTimeout": 400, - "sameLangCheck": true, - "aiTranslatedCheck": true, - "isPreview": false, - "useOnlineOptions": false, - "enableMachineTranslateTerms": false, - "termsDomainWithSelf": false, - "disableOpenUpgradePage": false, - "forceAutoTranslate": false, - "sensitiveConfig": { - "telemetry": true, - "sensitiveMode": "close", - "maskConfig": { - "maskPhoneNumber": true, - "maskBankNumber": true, - "maskPayment": true, - "maskPassword": true, - "maskRandomSeed": true, - "maskPrivateKey": true, - "maskEmail": true, - "maskVerificationCode": false, - "maskOrganization": false, - "maskAddress": false, - "maskUserName": false, - "maskUrl": false - } - }, - "storeGuide": { - "enable": true, - "newUserDays": 7, - "startNextDay": true, - "usageDays": 3, - "usageCondition": "html.avgPerDay > 2 || input_translation.avgPerDay > 2 || videoSubtitle.avgPerDay > 2 || web_page.avgPerDay > 2 || input.avgPerDay > 2 || subtitle_video.avgPerDay > 2", - "countdownSeconds": 15, - "platform": "chrome|edge|firefox" - }, - "improveQuality": false, - "accurateConfigs": { - "AO3": { - "enable": false, - "matches": [ - "https://archiveofourown.org/*", - "https://isnull.info/*", - "https://i.aois.top/*", - "https://xn--iao3-lw4b.ws/*", - "https://browser.immersivetranslate.*/ebook-reader/*" - ], - "translationService": "deepseek-pro", - "serviceConfig": { - "assistantId": "ao3", - "enableAIContext": true - } - } - }, - "immediateTranslationPattern": { - "matches": [ - "twitter.com", - "x.com", - "*.twitter.com", - "*.x.com", - "medium.com", - "*.medium.com", - "https://old.reddit.com/", - "https://www.reddit.com/r/popular/", - "https://www.reddit.com/", - "https://www.reddit.com/hot/", - "https://www.reddit.com/new/", - "https://www.reddit.com/top/", - "https://www.reddit.com/.compact", - "https://app.immersivetranslate.*/pdf*", - "https://bsky.app" - ], - "excludeMatches": [], - "selectorMatches": [ - "meta[property='al:ios:url'][content^='medium://']" - ], - "selectorExcludeMatches": [] - }, - "popupMoreMenus.add_v.[1.16.1]": [ - { - "i18n": { - "zh-CN": "🔔 沉浸式翻译术语库", - "zh-TW": "🔔 沉浸式翻譯術語庫", - "en": "🔔 Immersive Translate Glossary" - }, - "key": "terms20250415", - "targetUrl": "https://dash.immersivetranslate.com/#terms", - "userType": "all", - "startTime": "2025-04-15 00:00:00", - "endTime": "2025-04-25 23:59:59" - } - ], - "sidePanel": { - "i18n": { - "zh-CN": { - "upgradeTitle": "订阅立省 30%" - }, - "zh-TW": { - "upgradeTitle": "訂閱立省 30%" - }, - "en": { - "upgradeTitle": "Subscribe (30% off)" - } - }, - "upgradeUrl": "https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=side_panel_footer_upgrade", - "rewardCenter": { - "disabledAt": "2025-01-01 00:00:00" - } - }, - "sidePanel.add_v.[1.24.2]": { - "rewardCenter": { - "disabledAt": "" - } - }, - "aiAssistantIds": [ - "paraphrase", - "plain-english", - "paragraph-summarizer-expert", - "twitter", - "tech", - "reddit", - "paper", - "news", - "music", - "medical", - "legal", - "github", - "game", - "ecommerce", - "financial", - "fiction", - "ao3", - "ebook", - "fiction", - "design", - "web3", - "bilingual-mix" - ], - "interval": 3600000, - "beta": false, - "cache": true, - "enableAiAssistant": true, - "enableSelfServiceReport": true, - "enablePerformanceReport": false, - "enablePerformanceReport.add_v.[1.25.3]": true, - "enableProSecretAPIKey": false, - "batchReportConfig": { - "enabled": false, - "maxSize": 5, - "maxWaitMs": 2000 - }, - "batchReportConfig.add_v.[1.23.4]": { - "enabled": true - }, - "performanceBlockUrls": [ - "https://www.chase.com", - "https://www.bankofamerica.com", - "https://www.wellsfargo.com", - "https://www.citi.com", - "https://www.usbank.com", - "https://www.pnc.com", - "https://www.capitalone.com", - "https://www.tdbank.com", - "https://www.hsbc.co.uk", - "https://www.barclays.co.uk", - "https://www.lloydsbank.com", - "https://www.natwest.com", - "https://www.santander.co.uk", - "https://www.nationwide.co.uk", - "https://www.deutsche-bank.de", - "https://www.commerzbank.de", - "https://www.dzbank.de", - "https://www.ing.de", - "https://www.hypovereinsbank.de", - "https://www.bnpparibas.fr", - "https://www.credit-agricole.fr", - "https://www.societegenerale.fr", - "https://www.lcl.fr", - "https://www.labanquepostale.fr", - "https://www.bk.mufg.jp", - "https://www.smbc.co.jp", - "https://www.mizuhobank.com", - "https://www.resonabank.co.jp", - "https://www.shinseibank.com", - "http://www.icbc.com.cn", - "http://www.ccb.com", - "https://www.boc.cn", - "http://www.abchina.com", - "http://www.cmbchina.com", - "http://www.psbc.com", - "http://www.cebbank.com", - "http://www.cmbc.com.cn", - "http://www.citicbank.com", - "http://www.spdb.com.cn", - "http://www.bankcomm.com", - "http://www.cib.com.cn", - "http://www.hxb.com.cn", - "http://www.cbhb.com.cn", - "http://www.czbank.com", - "http://www.bankofbeijing.com.cn", - "http://www.bankofshanghai.com", - "http://www.hfbank.com.cn", - "http://www.gdb.com.cn", - "http://www.pingan.com", - "https://www.rbcroyalbank.com", - "https://www.td.com", - "https://www.scotiabank.com", - "https://www.cibc.com", - "https://www.bmo.com", - "https://www.commbank.com.au", - "https://www.westpac.com.au", - "https://www.anz.com.au", - "https://www.nab.com.au", - "https://www.macquarie.com.au", - "https://www.sbi.co.in", - "https://www.icicibank.com", - "https://www.hdfcbank.com", - "https://www.axisbank.com", - "https://www.pnbindia.in", - "https://www.bb.com.br", - "https://www.itau.com.br", - "https://www.bradesco.com.br", - "https://www.santander.com.br", - "https://www.caixa.gov.br", - "https://www.sberbank.ru", - "https://www.vtb.ru", - "https://www.gazprombank.ru", - "https://www.alfabank.ru", - "https://www.rshb.ru", - "https://www.bancosantander.es", - "https://www.bbva.es", - "https://www.caixabank.es", - "https://www.bankia.es", - "https://www.sabadell.com", - "https://www.unicredit.it", - "https://www.intesasanpaolo.com", - "https://www.mps.it", - "https://www.ubibanca.com", - "https://www.bancobpm.it", - "https://www.ing.nl", - "https://www.rabobank.nl", - "https://www.abnamro.nl", - "https://www.volksbank.nl", - "https://www.triodos.nl", - "https://www.ubs.com", - "https://www.credit-suisse.com", - "https://www.raiffeisen.ch", - "https://www.zkb.ch", - "https://www.postfinance.ch" - ], - "proOpenaiModels": [ - "gpt-3.5-turbo", - "gpt-3.5-turbo-0125", - "gpt-3.5-turbo-1106", - "gpt-3.5-turbo-0613" - ], - "rtlLanguages": [ - "ar", - "arc", - "az", - "dv", - "he", - "ckb", - "fa", - "ur", - "ug" - ], - "translationMode": "dual", - "inputTranslationMode": "translation", - "translationModeUrlPattern": { - "dualMatches": [], - "translationMatches": [ - "https://app.immersivetranslate.*/pdf/" - ] - }, - "translationModeLanguagePattern": { - "dualMatches": [], - "translationMatches": [] - }, - "translationLanguagePairs": [ - "zh-CN:zh-TW", - "zh-TW:zh-CN" - ], - "autoTranslateParams": [ - "_immersive_translate_auto_translate", - "crosearch_translate", - "bilin_translate" - ], - "enabled": true, - "minVersion": "1.21.0", - "showOpenaiOnSafari": true, - "showUnconfiguredTranslationServiceInPopup": true, - "managedHostFallbacks": { - "api2": [ - "immersivetranslate.com", - "imtintl.com" - ], - "aigw1": [ - "immersivetranslate.com", - "imtintl.com" - ], - "analytics": [ - "immersivetranslate.com" - ], - "config": [ - "immersivetranslate.com", - "imtintl.com" - ], - "ai": [ - "immersivetranslate.com", - "imtintl.com" - ], - "lang-detect": [ - "immersivetranslate.com" - ], - "s": [ - "immersivetranslate.com", - "imtintl.com" - ] - }, - "donateUrl": "https://immersivetranslate.com/pricing", - "uninstallUrl": "https://onboarding.immersivetranslate.com/uninstall", - "feedbackUrl": "https://github.com/immersive-translate/immersive-translate/issues", - "termsBaseUrl": "https://assets.immersivetranslate.cn/static/terms/", - "arxivRule": { - "injectContainerSelector": ".extra-services .full-text ul", - "officialHtmlSelector": "#latexml-download-link", - "validBefore": "2023-10-31", - "validOnlySelector": ".download-format", - "detectOrders": [ - "https://arxiv.org/html", - "https://ar5iv.labs.arxiv.org/html" - ], - "matches": [ - "https://arxiv.org/abs/*" - ] - }, - "translationGeneralConfig": { - "engine": "bing", - "_systemExcludeWordRegex": "\\b({word})\\b" - }, - "popupConfig": { - "enableTrialPro": true, - "trialProShowLimit": 20 - }, - "ignoreReportEmailRegex": "@immersivetranslate.com|privaterelay.appleid.com", - "enableNewUserActivity": false, - "discountActivity": { - "enable": false, - "upgradeShowCountCacheKey": "upgradeDiscountActivity20250618", - "upgradeShowLimit": 20, - "start": "2025-06-15T16:00:00.000Z", - "end": "2025-06-19T16:00:00.000Z", - "titleI18n": { - "zh-CN": "618 大促", - "zh-TW": "ON SALE", - "en": "ON SALE" - }, - "popupUrl": "https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=popup_618", - "floatBallUrl": "https://immersivetranslate.com/pricing/?utm_source=extension&utm_medium=extension&utm_campaign=float_ball_discount", - "tipsI18n": { - "zh-CN": "", - "zh-TW": "", - "en": "" - } - }, - "tokenUsageTips": { - "enableMaxTips": true - }, - "supportedMangaSites": [ - "https://www.pixiv.net/manga[Pixiv][chrome,firefox,imtAndroid]", - "https://mangaplus.shueisha.co.jp[MANGA Plus by SHUEISHA][chrome,firefox,safari,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://zebrack-comic.shueisha.co.jp/[Zebrack by SHUEISHA][chrome,firefox,safari,userscript,imtIOS,imtIOSNew]", - "https://readcomiconline.li[ReadComicOnline][]", - "https://comic-fuz.com/[COMIC FUZ][chrome,firefox,safari,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://mangadex.org/[MangaDex][chrome,firefox,safari,userscript,imtIOS,imtIOSNew]", - "https://www.yamibo.com/site/manga[Yamibo][chrome,firefox,imtIOSNew]", - "https://shonenjumpplus.com[ShonenJumpPlus][chrome,firefox,safari,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://www.rimacomiplus.jp[Rimacomiplus][chrome,firefox,safari,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://viewer.heros-web.com/[Heros Web][chrome,firefox,safari,userscript,imtIOS,imtIOSNew]", - "https://comic-days.com/[Comic Days][chrome,firefox,safari,userscript,imtIOS,imtIOSNew]", - "https://comic-top.com[Comic Top][chrome,firefox,safari,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://comic-walker.com/[ComicWalker][chrome,firefox,safari,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://web-ace.jp/[Web Ace][chrome,firefox,safari,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://www.antbyw.com[Antbyw][chrome,firefox,safari,imtAndroid,imtIOSNew]", - "https://jmanga.org[Jmanga][chrome,firefox,safari,imtIOSNew]", - "https://twicomi.com/manga*[Twitter Comic][chrome,firefox,safari,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://www.mangaz.com[MangaZ][chrome,firefox,imtIOSNew]", - "https://pash-up.jp[PASH UP][chrome]", - "https://www.colamanga.com[COLAMANGA][chrome,firefox,safari,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://www.ganganonline.com[GANGAN ONLINE][chrome,firefox,safari,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://battwo.com[BATOTO][chrome,firefox,safari,imtAndroid,imtIOSNew]", - "https://asuracomic.net[Asura Scans][chrome,firefox,safari,imtIOSNew]", - "https://asurascanz.com[Asura Scans][chrome,safari,imtIOSNew]", - "https://allmanga.to[All Manga][chrome,firefox,safari,imtAndroid,imtIOSNew]", - "https://manhwaclan.com[Manhwaclan][chrome,firefox,safari,imtIOSNew]", - "https://www.corocoro.jp[CoroCoro][chrome,firefox,safari,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://tonarinoyj.jp[tonarinoyj][chrome,firefox,safari,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://yymanhua.com[Yymanhua][chrome,firefox,imtAndroid,imtIOSNew]", - "https://manhwatop.com[Manhwatop][chrome,firefox,imtAndroid,imtIOSNew]", - "https://palcy.jp/[Palcy][chrome,firefox,safari,imtAndroid,imtIOSNew]", - "https://comic-trail.com/[Comic-Trail][chrome,firefox,userscript,imtAndroid,imtIOS,imtIOSNew]", - "https://templetoons.com/[Templetoons][chrome,firefox,safari,imtIOSNew]", - "https://batocomic.net/[Batocomic][chrome,firefox,safari,imtAndroid,imtIOSNew]", - "https://comic-action.com/[Comic-action][chrome,firefox,safari,imtIOSNew]", - "https://m.ac.qq.com/[腾讯动漫][chrome,firefox,safari,imtIOSNew]", - "https://www.sololevelingmangafree.com/[Sololevelingmangafree][chrome,firefox,safari,imtIOSNew]", - "https://syosetu.si/[Syosetu][chrome,firefox,safari,imtIOSNew]", - "https://comick.dev/[Comick][chrome,firefox,safari,imtIOSNew]", - "https://comick.art/[Comick][chrome,firefox,safari,imtIOSNew]", - "https://younganimal.com[YoungAnimal][chrome,firefox,safari,imtIOS,imtIOSNew]", - "https://piccoma.com[Piccoma][chrome,firefox,safari,imtIOSNew]", - "https://hentaizap.com/[Hentaizap][chrome,firefox,safari,imtIOSNew]", - "https://jmanga.sh/[Jmanga][chrome,firefox,safari,imtIOSNew]", - "https://hanime1.me/[Hanime1][chrome,firefox,safari,imtIOSNew]", - "https://globalcomix.com/[Globalcomix][chrome,firefox,safari,imtIOSNew]", - "https://klz9.com[KL][chrome]", - "https://www.comemh8.com[comemh8][chrome]", - "https://xbato.com/[Xbato][chrome,firefox,safari]", - "https://mangarawjp.me[Mangaraw][chrome,firefox,safari]", - "https://manga.bilibili.com[Bilibili-Manga][chrome,firefox,safari]", - "https://w9.kaijimanga.com[Kaijimanga][chrome,firefox,safari]", - "https://m.idmzj.com[Idmzj][chrome,firefox,safari]", - "https://mn4u.net[Manga4u][chrome,firefox,safari]", - "https://www.animatebookstore.com[Animatebookstore][chrome,firefox,safari]", - "https://ganma.jp[GANMA][chrome,firefox,safari]", - "https://mangafire.to/[Mangafire][chrome,firefox,safari]", - "https://reaperscans.com/[Reaperscans][chrome,firefox,safari]", - "https://manhuatop.com/[Manhuatop][chrome,firefox,safari]", - "https://play.dlsite.com/[Dlsite][chrome,firefox,safari]", - "https://ww2.uzakichanmanga.com/[uzakichanmanga][chrome,firefox,safari]", - "https://pocket.shonenmagazine.com/[Shonenmagazine][chrome,firefox,safari]", - "https://comic.naver.com[ComicNaver][chrome,firefox,safari,imtAndroid]", - "https://comic-zenon.com/[comic-zenon][chrome,firefox,safari]", - "https://www.webtoons.com/[Webtoons][chrome,firefox,safari]", - "https://www.lezhin.com/[Lezhin Comics][chrome,firefox,safari]", - "https://klmanga.my/[KLMANGA][chrome,firefox,safari,imtAndroid]", - "https://sololevelingfree.vip/[SoloLevelingFree][chrome,firefox,safari,imtAndroid]", - "https://rawkuma.net/[Rawkuma][chrome,firefox,safari,imtAndroid]", - "https://page.kakao.com/[Kakao][chrome,firefox,safari,imtAndroid]", - "https://topreadmanga.com/[TopReadManga][chrome,firefox,safari,imtAndroid]", - "https://revengeoftheiron-bloodedswordhound.one/[Revenge of the Iron Blooded Swordhound][chrome,firefox,safari,imtAndroid]", - "https://poipiku.com/[Poipiku][chrome,firefox,safari,imtAndroid]", - "https://manhuaus.com/[Manhuaus][chrome,firefox,safari]", - "https://www.hmttmh.com/[HMTTMH][chrome,firefox,safari,imtAndroid]", - "https://smokingbehindthesupermarket.com/[Smoking Behind the Supermarket][chrome,firefox,safari,imtAndroid]", - "https://comic-growl.com/[Comic Growl][chrome,firefox,safari,imtAndroid]", - "https://jumptoon.com/[Jumptoon][chrome,firefox,safari,imtAndroid]", - "https://www.baozimh.com/[Fenoxo][chrome,firefox,safari,imtAndroid]", - "https://ww2.mangafreak.me/[MangaFreak][chrome,firefox,safari,imtAndroid]", - "https://www.cmoa.jp/[cmoa][chrome,firefox,safari,imtAndroid]", - "https://comic-gardo.com/[ComicGardo][chrome,firefox,safari,imtAndroid]", - "https://booklive.jp/[Booklive][chrome,firefox,safari,imtAndroid]", - "https://www.mrblue.com/[MrBlue][chrome,firefox,safari,imtAndroid]", - "https://mangalove.me/[MangaLove][chrome,firefox,safari,imtAndroid,imtIOSNew]" - ], - "supportedVideoSubtitleSites": [ - "https://www.youtube.com[YouTube]", - "https://tv.youtube.com[TV YouTube]", - "https://www.youtubekids.com[YouTube Kids]", - "https://www.netflix.com[Netflix]", - "https://www.primevideo.com[Prime Video]", - "https://twitter.com[Twitter Spaces]", - "https://www.facebook.com/[Facebook]", - "https://play.max.com[HBO Max]", - "https://www.hbogoasia.tw[HBO GO]", - "https://vimeo.com/watch[Vimeo]", - "https://www.khanacademy.org/[Khan Academy]", - "https://www.coursera.org/[Coursera]", - "https://www.udemy.com/[Udemy]", - "https://www.bloomberg.com[Bloomberg]", - "https://nebula.tv/videos[Nebula]", - "https://www.bilibili.com[Bilibili]", - "https://www.ted.com/[TED]", - "https://frontendmasters.com[FrontendMasters]", - "https://learn.codewithchris.com[CodeWithChris]", - "https://www.edx.org[edX]", - "https://www.skillshare.com/[Skillshare]", - "https://www.bbc.com/[BBC]", - "https://www.disneyplus.com/[Disney+]", - "https://www.ardmediathek.de/[ARD Mediathek]", - "https://www.itv.com/[ITV]", - "https://www.domestika.org/[Domestika]", - "https://www.artstation.com/learning[ArtStation]", - "https://www.zdf.de[ZDF]", - "https://www.masterclass.com[MasterClass]", - "https://learn.microsoft.com[Learn Microsoft]", - "https://home.mindvalley.com[Mindvalley]", - "https://iview.abc.net.au/[iview]", - "https://www.nma.art/[nmaArt]", - "https://developer.apple.com[Developer Apple]", - "https://egghead.io/[egghead.io]", - "https://cn.linkedin.com/[LinkedIn]", - "https://www.kanopy.com/[Kanopy]", - "https://www.rachelsenglishacademy.com/[RachelsEnglishAcademy]", - "https://threejs-journey.com/[three.js journey]", - "https://www.iflix.com/[WeTV iflix]", - "https://www.hulu.com/[Hulu]", - "https://www.espn.com/[ESPN]", - "https://www.imdb.com/[IMDb]", - "https://www.rottentomatoes.com/[Rotten Tomatoes]", - "https://ww4.fmovies.co/[FMovies]", - "https://bflixhd.to/[Bflixhd]", - "https://hianime.to/[Hianime]", - "https://www.iq.com/[iQIYI]", - "https://www.youku.tv/[Youku]", - "https://www.dailymotion.com/[Dailymotion]", - "https://www.paramountplus.com/[Paramount Plus]", - "https://www.starz.com/[starz]", - "https://pluto.tv/[pluto]", - "https://movie-web-me.vercel.app/[movie-web]", - "https://www.unrealsenseiacademy.com/[Unreal Sensei]", - "https://learn.deeplearning.ai[DeepLearning.ai]", - "https://piped.video/[Piped.Video]", - "https://southampton.cloud.panopto.eu[University of Southampton]", - "https://vk.com/video[VK Video]", - "https://www.comsol.com/video[COMSOL]", - "https://themotionmagic.com/[The Motion Magic]", - "https://www.svtplay.se/[SVT Play]", - "https://www.osmosis.org/[Osmosis]", - "https://www.dr.dk/[DR]", - "https://www.pbs.org/[PBS]", - "https://www.viki.com/[Viki]", - "https://play.aetv.com/[A&E]", - "https://w.mgtv.com/[MGTV]", - "https://dev.epicgames.com/[DevEpicGames]", - "https://app.zoom.us/[ZOOM]", - "https://teams.live.com/[TEAM]", - "https://meet.google.com/[Google Meet]", - "https://weverse.io/[Weverse]", - "https://academy.zenva.com[Zenva Academy]", - "https://courses.kevinpowell.co[Kevin Powell]", - "https://www.fau.tv[Fau TV]", - "https://www.thaipbs.or.th/[Thai PBS]", - "https://gorails.com/[GORAILS]", - "https://quantra.quantinsti.com/[QUANTRA]", - "https://www.gaia.com/[Gaia]", - "https://www.rtve.es[RTVE.es]", - "https://www.amazon.com/[Amazon]", - "https://www.kika.de[KIKA]", - "https://www.jove.com[Jove]", - "https://asu.instructure.com/[ASU]", - "https://f1tv.formula1.com/[F1tv]", - "https://www.patreon.com[Patreon]", - "https://www.cbsnews.com[CBS NEWS]", - "https://khflix.com[Khflix]", - "https://donghuaworld.com[Donghuaworld]", - "https://projector.datacamp.com[Datacamp]", - "https://urplay.se[Urplay]", - "https://www.ganjingworld.com[Ganjingworld]", - "https://app.lecturio.com[Lecturio]", - "https://www.gagaoolala.com[Gagaoolala]", - "https://curiositystream.com[curiositystream]", - "https://tv.nrk.no[NRK TV]", - "https://tubitv.com[TUBI]", - "https://www.tiktok.com[TikTok]", - "https://www.barrons.com/[BARRONS]", - "https://courses.mitxonline.mit.edu/[MITXONLINE]", - "https://www.docubay.com/[Docubay]", - "https://app.hubspot.com/[Hubspot]", - "https://rumble.com/[Rumble]", - "https://www.wsj.com/[WSJ]", - "https://cn.wsj.com/[WSJ-CN]", - "https://www.lmanga.com/[Lmanga]", - "https://spring.academy/[SpringAcademy]", - "https://pan.quark.cn/[Quark]", - "https://www.medici.tv/[Medici]", - "https://canvas.ucdavis.edu/[UCDAVIS]", - "https://learning.iaabcfoundation.org/[IAABCFOUNDATION]", - "https://www.coindesk.com/[CoinDesk]", - "https://www.reuters.com/[Reuters]", - "https://tver.jp/[TVer]", - "https://pro.codewithandrea.com/[CodeWithAndrea]", - "https://watch.hikaritv.xyz/[Hikaritv]", - "https://university.lowstresshandling.com/[LowStressHandling]", - "https://learn.unity.com/[UnityLearn]", - "https://www.medbridge.com/[Medbridge]", - "https://anix.com.co/[anix]", - "https://ahrefs.com/[ahrefs]", - "https://www.domestika.org/[DOMESTIKA]", - "https://www.angel.com/[ANGEL]", - "https://shangpa-academy.mn.co/[Shangpa Academy]", - "https://internetfundamentals.com/[Internetfundamentals]", - "https://tv.dmm.com/[DMM]", - "https://learning.sap.com/[SAP]", - "https://dynasty-scans.com/[Dynasty Scans]", - "https://weebcentral.com/[Weebcentral]", - "https://www.aljazeera.com/[Aljazeera]", - "https://www.arte.tv/[Arte]", - "https://www.feynmanlectures.caltech.edu/[Feynmanlectures]", - "https://updraft.cyfrin.io/[Updraft]", - "https://mediaspace.illinois.edu/[MediaSpace]", - "https://www.nbcnews.com/[NBCNEWS]", - "https://fawesome.tv[Fawesome]" - ], - "isShowContextMenu": true, - "enableInputTranslation": true, - "enableFloatShare": true, - "isShowInputTranslationConsent": true, - "isEnableGuideTips": true, - "isEnableNotification": true, - "enableShowFloatingBallGuide": true, - "verifyRequestTimeout": 5000, - "inactiveDays": 21, - "enableInputTranslationWithoutTriggerKey": true, - "enableRenderHtmlTag": false, - "enableContextDiffPreview": false, - "enableEditTranslation": false, - "autoSelectTargetLanguageAfterInstalledAt": "2024-01-04", - "autoSelectAllTargetLanguageAfterInstalledAt": "2025-03-27", - "sentryCaptureConfig": { - "enable": false - }, - "defaultAlwaysTranslatedUrls": [ - "twitter.com", - "x.com", - "www.reddit.com", - "www.kadaza.com", - "en.wikipedia.org", - "*.medium.com", - "news.ycombinator.com" - ], - "spVersion": "99.99.99", - "ispVersion": "99.99.99", - "gspVersion": "99.99.99", - "modifiedBySystem": false, - "enableDefaultAlwaysTranslatedUrls": true, - "isChangedAlwaysTranslatedUrls": false, - "inputTranslationUrlPattern": { - "matches": [], - "excludeMatches": [] - }, - "excludeTranslationHtmlTags": [ - "textarea", - "input", - "body", - "marquee" - ], - "translationPosition": "after", - "inputTranslationBlockUrls": [ - "*.larkoffice.com", - "*.larksuite.com", - "www.notion.so", - "www.figma.com/file/*", - "*.lanhuapp.com", - "https://*.immersivetranslate.*/text*" - ], - "inputStyleBlockUrls": [], - "inputTargetLanguage": "en", - "enableEnToZhInputTargetLang": true, - "inputStartingTriggerKey": "/", - "inputTrailingTriggerKey": "space", - "inputTrailingTriggerKeyRepeatTimes": 3, - "inputTrailingTriggerKeyRepeatTimes.add_v.[1.24.1]": 2, - "inputTrailingTriggerKeyRepeatTimes.add_v.[1.25.1]": 3, - "inputTrailingTriggerKeyTimeout": 200, - "inputTrailingTriggerKeyTimeout.add_v.[1.24.1]": 300, - "inputTrailingMobileTriggerKeyTimeout": 300, - "mutationBlockUrls": [ - "*.larkoffice.com", - "*.larksuite.com" - ], - "joinJobs": [], - "monkeyH5FloatBall": { - "enable": true, - "enableSidePanel": true, - "enablePinSidePanel": true, - "blockUrls": [ - "*immersivetranslate.*/preview", - "*.immersivetranslate.*/download-subtitle*", - "*immersivetranslate.*/accounts/login*", - "dash.immersivetranslate.*/*" - ], - "guideBlockUrls": [ - "https://immersivetranslate.*/accounts/login*", - "https://immersivetranslate.cn/accounts/login*", - "https://immersivetranslate.*/profile/", - "https://onboarding.immersivetranslate.*", - "https://*.immersivetranslate.*/*/intro/tutorial/step-1*", - "https://*.immersivetranslate.*/*/new-guide/step-1*", - "https://*.immersivetranslate.*/*/new-guide/step-2*", - "https://*.immersivetranslate.*/*/quickstart/*" - ], - "guideContentBlockUrls": [ - "https://*.immersivetranslate.*/*/tutorial/*", - "https://*.immersivetranslate.*/*/intro/*", - "https://*.immersivetranslate.*/*/init/*", - "https://*.immersivetranslate.*/*/new-guide/*" - ], - "guideArrowPermanentUrls": [ - "https://*.immersivetranslate.*/*/intro/step-1", - "https://*.immersivetranslate.*/*/tutorial/step-2", - "https://*.immersivetranslate.*/*/new-guide/step-3" - ], - "defaultShowGuideNums": 2, - "clickType": "translate", - "afterInstalledAt": "", - "fixedPosition": "right", - "upgradeVisible": true, - "upgradeShowLimit": 20, - "transparency": 30 - }, - "pcFloatBall": { - "enable": true, - "enableSidePanel": true, - "enablePinSidePanel": true, - "transparency": 30, - "blockUrls": [ - "*immersivetranslate.*/preview", - "*.immersivetranslate.*/download-subtitle*", - "dash.immersivetranslate.*/*" - ], - "guideBlockUrls": [ - "https://immersivetranslate.*/accounts/login*", - "https://immersivetranslate.*/profile/", - "https://onboarding.immersivetranslate.**", - "https://*.immersivetranslate.*/*/intro/tutorial/step-1*", - "https://*.immersivetranslate.*/*/new-guide/step-1*", - "https://*.immersivetranslate.*/*/new-guide/step-2*", - "https://*.immersivetranslate.*/*/quickstart/*" - ], - "guideContentBlockUrls": [ - "https://*.immersivetranslate.*/*/tutorial/*", - "https://*.immersivetranslate.*/*/intro/*", - "https://*.immersivetranslate.*/*/init/*", - "https://*.immersivetranslate.*/*/new-guide/*" - ], - "guideArrowPermanentUrls": [ - "https://*.immersivetranslate.*/*/intro/step-1", - "https://*.immersivetranslate.*/*/tutorial/step-2", - "https://*.immersivetranslate.*/*/new-guide/step-3" - ], - "defaultShowGuideNums": 4, - "clickType": "translate", - "afterInstalledAt": "2023-10-28", - "fixedPosition": "right", - "upgradeVisible": true, - "upgradeShowLimit": 20 - }, - "floatBallTooltipRule": { - "mainBtnTooltipImmediateShowCount": 5, - "mainBtnTooltipDelayTime": 800, - "h5MainBtnTooltipMaxShowCount": 1 - }, - "pcFloatBallMainBtnTooltipShownCount": 0, - "h5FloatBallMainBtnTooltipShownCount": 0, - "translationUsageLimit": { - "enable": false, - "usageScenes": [ - "web_page", - "subtitle_video", - "mouse_hover", - "selection", - "input" - ], - "totalLimit": { - "unregisteredSoft": 20, - "unregisteredHard": 30, - "soft": 40, - "hard": 90 - } - }, - "defaultTranslationServicesOrder": [ - "free-model", - "google-free", - "bing-free", - "siliconcloud-free", - "zhipu-free", - "deepseek-pro", - "openai-pro", - "claude-pro", - "gemini-pro", - "grok-pro", - "deepl-pro", - "zhipu-pro", - "qwen-pro", - "hunyuan-pro", - "openai-max", - "claude-max", - "gemini-max", - "qwen-max", - "kimi-max" - ], - "forceApplyFreeModel": null, - "enableFreeModelMode": false, - "advanceMergeConfig": [ - { - "condition": "isCNPlugin==true", - "advanceConfig": { - "managedHostFallbacks": { - "api2": [ - "immersivetranslate.cn" - ], - "aigw1": [ - "immersivetranslate.cn" - ], - "analytics": [ - "immersivetranslate.cn" - ], - "config": [ - "immersivetranslate.cn" - ], - "ai": [ - "immersivetranslate.cn" - ], - "lang-detect": [ - "immersivetranslate.cn" - ], - "s": [ - "immersivetranslate.cn" - ] - } - } - }, - { - "condition": "abTagNumber<2", - "advanceConfig": { - "translationServices.add": { - "zhipu-free.add_v.[1.23.1]": { - "enableImtServe": true, - "apiUrl": "" - } - } - } - }, - { - "condition": "imtAndroidVersionNumber>10107", - "advanceConfig": { - "monkeyH5FloatBall.add": { - "enable": false - }, - "pcFloatBall.add": { - "enable": false - } - } - }, - { - "condition": "imtIOSVersionNumber>10104", - "advanceConfig": { - "monkeyH5FloatBall.add": { - "enable": false - }, - "pcFloatBall.add": { - "enable": false - } - } - }, - { - "condition": "platform==imtAndroid || platform==imtIOSNew || platform==imtIOS", - "advanceConfig": { - "generalRule": { - "privacyProtocolEnableTime": "3025-10-31T00:00:00Z" - } - } - }, - { - "condition": "iosSystemVersion==18_3", - "advanceConfig": { - "useOnlineOptions": true - } - }, - { - "condition": "imtAndroidVersionNumber>10110", - "advanceConfig": { - "generalRule": { - "imageRule.add": { - "supportPlatform": { - "chrome_pc": "all", - "imtAndroid_mobile": "all" - } - } - } - } - }, - { - "condition": "imtIOSVersionNumber>10107", - "advanceConfig": { - "generalRule": { - "imageRule.add": { - "supportPlatform": { - "chrome_pc": "all", - "imtIOS_mobile": "all" - } - } - } - } - }, - { - "condition": "platform==safari", - "advanceConfig": { - "generalRule": { - "enableServerDetectLanguage": true - } - } - }, - { - "condition": "abTagNumber<1 && installedAtTimestamp<1754438400000", - "advanceConfig": { - "generalRule": { - "selectionTranslation.add": { - "enable": true - } - } - } - }, - { - "condition": "versionNumber > 12006 && installedAtTimestamp>1754438400000", - "advanceConfig": { - "generalRule": { - "selectionTranslation.add": { - "enable": true - } - } - } - }, - { - "condition": "isPro==false && isMobile==false && hasOpenedRewardCenter==false && abTagNumber>0 && abTagNumber<2", - "advanceConfig": { - "notificationList.add": [ - { - "enable": true, - "excludeMatches": [ - "*.immersivetranslate.com" - ], - "displayPosition": "webpage", - "expireTime": "2025-08-15", - "id": "reward-center", - "content": { - "zh-CN": { - "bannerUrl": "https://s.immersivetranslate.com/assets/r2-uploads/notification_reward_center.png", - "title": "奖励中心已上线", - "updateDetail": "包含以下超值奖励:
200,000 高级模型 Token
5 次 AI 字幕翻译
100 页 PDF Pro 翻译额度", - "buttonText": "立即查看", - "buttonLink": "imt://sendToExt/openRewardCenter?trigger=notification" - }, - "zh-TW": { - "bannerUrl": "https://s.immersivetranslate.com/assets/r2-uploads/notification_reward_center.png", - "title": "重寫更新通知", - "updateDetail": "包含以下超值獎勵:
200,000 高級模型 Token
5 次 AI 字幕翻譯
100 頁 PDF Pro 翻譯額度", - "buttonText": "立即查看", - "buttonLink": "imt://sendToExt/openRewardCenter?trigger=notification" - }, - "en": { - "bannerUrl": "https://s.immersivetranslate.com/assets/r2-uploads/notification_reward_center.png", - "title": "Reward Center is now live", - "updateDetail": "Includes the following valuable rewards:
200,000 advanced model Tokens
5 AI subtitle translations
100 pages of PDF Pro translation quota", - "buttonText": "View Now", - "buttonLink": "imt://sendToExt/openRewardCenter?trigger=notification" - } - } - } - ] - } - }, - { - "condition": "isPro==true", - "advanceConfig": { - "translationServices.add": { - "deepl.add_v.[1.21.7]": { - "provider": "pro" - }, - "deepseek.add_v.[1.21.7]": { - "provider": "pro" - } - } - } - }, - { - "condition": "isPro==false && isMobile==false && hasOpenedRewardCenter==false && abTagNumber<1", - "advanceConfig": { - "notificationList.add": [ - { - "enable": true, - "displayPosition": "sidePanel", - "forcePinSidePanel": true, - "expireTime": "2025-08-15", - "id": "reward-center", - "excludeMatches": [ - "*.immersivetranslate.com" - ], - "content": { - "zh-CN": { - "bannerUrl": "https://s.immersivetranslate.com/assets/r2-uploads/notification_reward_center.png", - "title": "奖励中心已上线", - "updateDetail": "包含以下超值奖励:
200,000 高级模型 Token
5 次 AI 字幕翻译
100 页 PDF Pro 翻译额度", - "buttonText": "立即查看", - "buttonLink": "imt://sendToExt/openRewardCenter?trigger=notification" - }, - "zh-TW": { - "bannerUrl": "https://s.immersivetranslate.com/assets/r2-uploads/notification_reward_center.png", - "title": "重寫更新通知", - "updateDetail": "包含以下超值獎勵:
200,000 高級模型 Token
5 次 AI 字幕翻譯
100 頁 PDF Pro 翻譯額度", - "buttonText": "立即查看", - "buttonLink": "imt://sendToExt/openRewardCenter?trigger=notification" - }, - "en": { - "bannerUrl": "https://s.immersivetranslate.com/assets/r2-uploads/notification_reward_center.png", - "title": "Reward Center is now live", - "updateDetail": "Includes the following valuable rewards:
200,000 advanced model Tokens
5 AI subtitle translations
100 pages of PDF Pro translation quota", - "buttonText": "View Now", - "buttonLink": "imt://sendToExt/openRewardCenter?trigger=notification" - } - } - } - ] - } - }, - { - "condition": "abTagNumber==0 && interfaceLanguage==zh-CN", - "advanceConfig": { - "translationUsageLimit.add": { - "enable": true, - "totalLimit": { - "unregisteredSoft": 20, - "unregisteredHard": 30, - "soft": 40, - "hard": 90 - } - } - } - }, - { - "condition": "abTagNumber==0 && interfaceLanguage!=zh-CN", - "advanceConfig": { - "enableFreeModelMode": true, - "translationUsageLimit.add": { - "enable": true, - "totalLimit": { - "unregisteredSoft": 20, - "unregisteredHard": 30, - "soft": 40, - "hard": 60 - } - } - } - }, - { - "condition": "abTagNumber==1", - "advanceConfig": { - "translationUsageLimit.add": { - "enable": true, - "totalLimit": { - "unregisteredSoft": 20, - "unregisteredHard": 30, - "soft": 40, - "hard": 50 - } - } - } - }, - { - "condition": "abTagNumber>1 && abTagNumber<6 && interfaceLanguage==zh-CN", - "advanceConfig": { - "translationUsageLimit.add": { - "enable": true, - "totalLimit": { - "unregisteredSoft": 20, - "unregisteredHard": 30, - "soft": 40, - "hard": 90 - } - } - } - }, - { - "condition": "abTagNumber>1 && abTagNumber<6 && interfaceLanguage!=zh-CN", - "advanceConfig": { - "translationUsageLimit.add": { - "enable": true, - "totalLimit": { - "unregisteredSoft": 20, - "unregisteredHard": 30, - "soft": 40, - "hard": 60 - } - } - } - }, - { - "condition": "abTagNumber>5 && abTagNumber<10", - "advanceConfig": { - "translationUsageLimit.add": { - "enable": true, - "totalLimit": { - "unregisteredSoft": 20, - "unregisteredHard": 30, - "soft": 40, - "hard": 50 - } - } - } - }, - { - "condition": "interfaceLanguage==zh-CN", - "advanceConfig": { - "defaultTranslationServicesOrder": [ - "free-model", - "google-free", - "bing-free", - "siliconcloud-free", - "zhipu-free", - "babel-lite-free", - "deepseek-pro", - "qwen-pro", - "gemini-pro", - "openai-pro", - "zhipu-pro", - "deepl-pro", - "openai-max", - "gemini-max", - "kimi-max", - "claude-max" - ] - } - }, - { - "condition": "interfaceLanguage==zh-TW", - "advanceConfig": { - "defaultTranslationServicesOrder": [ - "free-model", - "google-free", - "bing-free", - "gemini-pro", - "openai-pro", - "deepl-pro", - "openai-max", - "claude-max", - "gemini-max" - ] - } - }, - { - "condition": "interfaceLanguage==zh-HK", - "advanceConfig": { - "defaultTranslationServicesOrder": [ - "free-model", - "google-free", - "bing-free", - "siliconcloud-free", - "zhipu-free", - "babel-lite-free", - "gemini-pro", - "deepseek-pro", - "qwen-pro", - "openai-pro", - "zhipu-pro", - "deepl-pro", - "openai-max", - "gemini-max", - "kimi-max", - "claude-max" - ] - } - }, - { - "condition": "interfaceLanguage==ja", - "advanceConfig": { - "defaultTranslationServicesOrder": [ - "free-model", - "google-free", - "bing-free", - "deepl-pro", - "openai-pro", - "deepseek-pro", - "gemini-pro", - "qwen-pro", - "gemini-max", - "openai-max", - "claude-max" - ] - } - }, - { - "condition": "interfaceLanguage==ko", - "advanceConfig": { - "defaultTranslationServicesOrder": [ - "free-model", - "google-free", - "bing-free", - "deepl-pro", - "openai-pro", - "gemini-pro", - "qwen-pro", - "gemini-max", - "openai-max", - "claude-max" - ] - } - } - ], - "inputLanguageCodeAlias": { - "en": [ - "英文", - "英语" - ], - "zh-CN": [ - "zh", - "zh-Hant", - "中文" - ], - "zh-TW": [ - "zht", - "zh-Hant", - "繁中" - ], - "ja": [ - "日语", - "日文" - ], - "ko": [ - "韩语", - "韩文" - ], - "fr": [ - "法语", - "发文" - ], - "es": [ - "西班牙语", - "西语" - ], - "ru": [ - "俄语", - "俄文" - ], - "bo": [ - "藏语" - ] - }, - "inputStartingTriggerKeyAlias": { - "/": [ - "、", - "slash" - ], - ".": [ - "。", - "period" - ], - ",": [ - ",", - "comma" - ], - "space": [ - " ", - " ", - " " - ], - ";": [ - ";", - "semicolon" - ], - ":": [ - ":" - ] - }, - "blockUrls": [ - "https://dash.immersivetranslate.*/auth-done/", - "http://localhost:8000/dist/userscript/options/", - "http://localhost:8000/auth-done/", - "http://192.168.50.9:8000/dist/userscript/options/", - "http://192.168.31.183:8000/dist/userscript/options/", - "https://www.deepl.com/translator", - "translate.google.com", - "http://localhost:8000/options/", - "http://192.168.50.9:8000/options/", - "https://silverbullet.md/", - "googleads.g.doubleclick.net", - "s1.hdslb.com", - "oapi.dingtalk.com", - "login.dingtalk.com", - "imasdk.googleapis.com", - "acdn.adnxs.com", - "pos.baidu.com", - "js-sec.indexww.com", - "g.alicdn.com", - "ads.pubmatic.com", - "challenges.cloudflare.com", - "accounts.google.com", - "images-na.ssl-images-amazon.com", - "tpc.googlesyndication.com", - "js.stripe.com", - "acdn.adnxs-simple.com", - "s.union.360.cn", - "s.amazon-adsystem.com", - "www.recaptcha.net", - "s7.addthis.com", - "z.moatads.com", - "https://www.marketwatch.com/static_html/daa-min.html", - "tr.snapchat.com", - "ct.pinterest.com", - "*.moatads.com", - "secure-us.imrworldwide.com", - "static.noeyeon.click", - "widgets.outbrain.com", - "www.dianomi.com/smartads.epl", - "secure-assets.rubiconproject.com", - "eus.rubiconproject.com", - "i.liadm.com", - "eb2.3lift.com", - "googleads.g.doubleclick.net", - "www.google.com/recaptcha/*", - "*.safeframe.googlesyndication.com", - "ad.doubanio.com", - "datawrapper.dwcdn.net", - "*://*/*\\.svg", - "*://*/*/sitemap.xml", - "*://*/*/feed.xml", - "*://*/*/rss.xml", - "*://*/*/atom.xml", - "file://*/*\\.xml", - "file://*/*\\.svg" - ], - "monkeyAddTimeStampHosts": [ - "api-edge.cognitive.microsofttranslator.com", - "transmart.qq.com", - "translate.yandex.net", - "tmt.tencentcloudapi.com", - "open.volcengineapi.com", - "fanyi.baidu.com", - "api.fanyi.baidu.com", - "api.interpreter.caiyunai.com", - "api-free.deepl.com", - "api.deepl.com", - "api.openl.club", - "openapi.youdao.com", - "translate.volcengine.com", - "api.niutrans.com", - "api2.immersivetranslate.com", - "test-api2.immersivetranslate.com", - "api.cognitive.microsofttranslator.com", - "api.groq.com", - "api.x.ai", - "api.openai.com", - "api.interpreter.caiyunai.com", - "api.cognitive.microsofttranslator.com", - "aidemo.youdao.com", - "openai.azure.com", - "mt.aliyuncs.com", - "api.anthropic.com", - "localhost", - "127.0.0.1", - "openrouter.ai", - "api.deepseek.com", - "aip.baidubce.com", - "ark.cn-beijing.volces.com", - "hunyuan.tencentcloudapi.com", - "public-beta-api.siliconflow.cn", - "api.siliconflow.cn", - "open.bigmodel.cn", - "qianfan.baidubce.com", - "aigw1.immersivetranslate.com" - ], - "telemetry": true, - "loadingTheme": "spinner", - "canary": false, - "cacheCleanIntervalDay": 1, - "cacheMaxAgeDay": 30, - "translationThemePatterns": {}, - "translationLanguagePattern": { - "matches": [], - "excludeMatches": [] - }, - "sameLangTranslationTheme": "background", - "translationServices": { - "volcAlpha": { - "placeholderDelimiters": [ - "{", - "}", - "b" - ] - }, - "volc": { - "placeholderDelimiters": [ - "{", - "}", - "b" - ] - }, - "tencent": { - "placeholderDelimiters": [ - "{", - "}", - "b" - ] - }, - "google": { - "defaultVisible": true, - "requestTimeout": 15000, - "retry": 1, - "placeholderDelimiters": [ - "{", - "}" - ], - "maxTextGroupLengthPerRequest": 50, - "enableRichTranslate": true, - "enableBrowserApi": true - }, - "transmart": { - "limit": 20, - "defaultVisible": true, - "defaultHiddenLangs": [ - "zh-TW" - ], - "requestTimeout": 10000, - "placeholderDelimiters": [ - "#", - "#" - ], - "translatedPlaceholderDelimiters": [ - "#\\s?", - "\\s?#" - ], - "enableRichTranslate": true - }, - "baidu": { - "placeholderDelimiters": [ - "#", - "#" - ], - "enableRichTranslate": false - }, - "cai": { - "placeholderDelimiters": [ - "{", - "}" - ] - }, - "caiyun": { - "placeholderDelimiters": [ - "{", - "}" - ] - }, - "youdao": { - "placeholderDelimiters": [ - "🚠", - "🚠" - ] - }, - "youdao-ziyue": { - "env": { - "title_prompt": "" - }, - "placeholderDelimiters": [ - "#", - "#" - ], - "prompt": "", - "limit": 1, - "maxTextLengthPerRequest": 1200, - "maxTextGroupLengthPerRequest": 5, - "translationTextSeparator": "\n\n%%\n\n", - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true - }, - "qwen-mt": { - "withTerms": false, - "name": "Qwen MT", - "model": "qwen-mt-plus", - "models": "qwen-mt-plus|qwen-mt-turbo", - "limit": 10, - "provider": "custom", - "maxTextLengthPerRequest": 1200, - "maxTextGroupLengthPerRequest": 5, - "translationTextSeparator": "\n\n%%\n\n", - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "ignoreResRegexs": [ - "may contain inappropriate content" - ] - }, - "aliyun": { - "placeholderDelimiters": [ - "{{", - "}}", - "b" - ] - }, - "deepl": { - "visible": true, - "immediateTranslationTextCountForImmersiveDeepl": 50000, - "requestTimeout": 30000, - "maxTextLengthPerRequest": 1800, - "maxTextGroupLengthPerRequest": 50, - "qualityDelimiterBetaV3": "", - "qualityNoSymoblBetaV3": "", - "", - "b" - ], - "enableRichTranslate": true, - "enableRichGlossaries": false, - "richTag": "c" - }, - "yandex": { - "defaultVisible": true, - "maxTextLengthPerRequest": 1000, - "requestTimeout": 10000, - "retry": 1, - "placeholderDelimiters": [ - "", - "", - "b" - ], - "enableRichTranslate": true - }, - "deeplx": { - "limit": 3, - "enableRichTranslate": false, - "placeholderDelimiters": [ - "@", - "#" - ] - }, - "d": { - "immediateTranslationTextCount": 0, - "placeholderDelimiters": [ - "@", - "#" - ] - }, - "papago": { - "placeholderDelimiters": [ - "{", - "}" - ] - }, - "dpro": { - "apiUrl": "https://api.deepl.com/jsonrpc" - }, - "ai": { - "env": { - "html_only": "\n\nPs. if the text contains html tags, please consider after translate, where the tags should be in translated result, meanwhile keep the result fluently.", - "imt_source_field": "text", - "imt_trans_field": "text", - "imt_sub_source_field": "text", - "imt_sub_trans_field": "translation", - "imt_yaml_item": "- id: {{id}}\n {{imt_source_field}}: {{text}}", - "imt_subtitle_yaml_item": "- id: {{id}}\n {{imt_sub_source_field}}: {{text}}", - "normal_result_yaml_example": "\nInput:\n - id: 1\n {{imt_source_field}}: Source\nOutput:\n - id: 1\n {{imt_trans_field}}: Translation\n", - "subtitle_result_yaml_example": "\nInput:\n - id: 1\n {{imt_sub_source_field}}: ...\n - id: 2\n {{imt_sub_source_field}}: ...\n - id: 3\n {{imt_sub_source_field}}: ...\nOutput:\n - id: 1\n {{imt_sub_source_field}}: ...\n - id: 2\n {{imt_sub_source_field}}: ...\n - id: 3\n {{imt_sub_source_field}}: ...\n", - "title_prompt": "\n\n## Context Awareness\nDocument Metadata:\nTitle: 《{{imt_title}}》", - "summary_prompt": "\n\n## Context Awareness\nDocument Metadata:\nSummary: {{imt_theme}}...", - "sub_summary_prompt": "\n\n## Context Awareness\nDocument Metadata:\nType: Subtitle\nSummary: {{imt_theme}}...", - "imt_terms_with_domain": "* **If `[domain]` tag IS present:** Check context. If context matches `[domain]`, use the listed Translation (even if Source==Translation). If context *doesn't* match, ignore the list entry & translate the term generally.", - "imt_terms_without_domain": "* **If NO `[domain]` tag:** Apply strictly with absolute priority, ** overriding any other translation logic for the term**. (Use original Source Term if Source==Translation, else use listed Translation).\n * *Example:* If rule is `'kick': 'kick'` and text is `(kick drum)`, the output MUST contain `kick` literally within the context, like `(kick 鼓)` or similar, NOT translated as `(底鼓)`.", - "terms_prompt": "\n\nRequired Terminology: For terms in `Terms ->`:\n{{imt_terms_with_domain}}\n{{imt_terms_without_domain}}\nTerms -> \n{{imt_terms}}", - "sub_terms_prompt": "\n\nRequired Terminology: For terms in `Terms ->`:\n{{imt_terms_with_domain}}\n{{imt_terms_without_domain}}\nTerms -> \n{{imt_terms}}" - }, - "systemPrompt": "You are a professional {{to}} native translator who needs to fluently translate text into {{to}}.\n\n## Translation Rules\n1. Output only the translated content, without explanations or additional content (such as \"Here's the translation:\" or \"Translation as follows:\")\n2. The returned translation must maintain exactly the same number of paragraphs and format as the original text\n3. If the text contains HTML tags, consider where the tags should be placed in the translation while maintaining fluency\n4. For content that should not be translated (such as proper nouns, code, etc.), keep the original text.\n5. If input contains %%, use %% in your output, if input has no %%, don't use %% in your output{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## OUTPUT FORMAT:\n- **Single paragraph input** → Output translation directly (no separators, no extra text)\n- **Multi-paragraph input** → Use %% as paragraph separator between translations\n\n## Examples\n### Multi-paragraph Input:\nParagraph A\n\n%%\n\nParagraph B\n\n%%\n\nParagraph C\n\n%%\n\nParagraph D\n\n### Multi-paragraph Output:\nTranslation A\n\n%%\n\nTranslation B\n\n%%\n\nTranslation C\n\n%%\n\nTranslation D\n\n### Single paragraph Input:\nSingle paragraph content\n\n### Single paragraph Output:\nDirect translation without separators\n\n{{imt_style_guide}}", - "multipleSystemPrompt": "You are a professional {{to}} native translator who needs to fluently translate text into {{to}}.\n\n## Translation Rules\n1. Output only the translated content, without explanations or additional content (such as \"Here's the translation:\" or \"Translation as follows:\")\n2. The returned translation must maintain exactly the same number of paragraphs and format as the original text\n3. If the text contains HTML tags, consider where the tags should be placed in the translation while maintaining fluency\n4. For content that should not be translated (such as proper nouns, code, etc.), keep the original text{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## Input-Output Format Examples\n\n### Input Example:\nParagraph A\n\n%%\n\nParagraph B\n\n%%\n\nParagraph C\n\n%%\n\nParagraph D\n\n### Output Example:\nTranslation A\n\n%%\n\nTranslation B\n\n%%\n\nTranslation C\n\n%%\n\nTranslation D\n\n{{imt_style_guide}}", - "prompt": "Translate to {{to}} (output translation only):\n\n{{text}}", - "multiplePrompt": "Translate to {{to}}:\n\n{{text}}", - "subtitlePrompt": "Translate to {{to}}:\n\n{{text}}", - "selectionSystemPrompt": "# Role Definition \nYou are a professional multilingual translation engine that can translate the provided text into {{to}}.\n# Core Capabilities \n1. Input Type Recognition:\n - Single word: Provide dictionary functions (phonetic symbols, part of speech, definitions, example sentences)\n - Phrase/Sentence: Return translation only\n\n2. Context Analysis: \n【Current Context】: \"{{context_text}}\"\n# Translation Rules \n1. For word input:\n - Return complete dictionary information\n - Group definitions by part of speech (keep concise, must use {{to}} language)\n - Provide contextual analysis\n - Include natural context examples\n\n2. For phrase/sentence input:\n - Return translation only\n - No additional information allowed\n\n3. Format Specifications:\n - Strictly follow example JSON structure\n - No Markdown code blocks\n - Use American phonetic symbols for English© words (maintain original system for other languages)\n \n# Language System Rules\n- The output must be entirely in the target language {{to}}\n- Accurately identify the source language\n- For Source language is English, use American phonetic symbols for phonetic symbols\n- For Source language is Chinese, Use standard Pinyin for phonetic symbols (with tone marks)\n- For other languages, use their native phonetic systems for phonetic symbols\n- DO NOT using languages other than those requested\n# Output Examples \n【Word Example】: \n{\n \"phonetic\": \"/həˈləʊ/\",\n \"definitions\": [\n {\n \"pos\": \"adj.\",\n \"meaning\": \"hello\",\n \"example\": {\n \"source\": \"Hello, how are you\",\n \"target\": \"你好啊,最近怎么样\"\n }\n }\n ],\n \"translation\": \"你好\",\n \"contextual_analysis\": \"Analysis of the word's meaning within the provided context\"\n}\n【Sentence Example】: \n{\n \"translation\": \"This is a test sentence.\"\n}\n# Strict Prohibitions \n- Mixed output formats\n- Missing required fields\n- Unrequested additional information\n- Language system mixing", - "selectionPrompt": "【Content to Translate】:\n\"{{text}}\"", - "langOverrides": [ - { - "id": "auto2zh-CN", - "prompt": ";; 把下一行文本作为纯文本输入,并将其翻译为简体中文,{{html_only}}仅输出翻译。如果某些内容无需翻译(如专有名词、代码等),则保持原文不变。不要解释,输入文本:\n {{text}}", - "multipleSystemPrompt": "" - }, - { - "id": "auto2zh-TW", - "prompt": ";; Treat next line as plain text input and translate it into Traditional Chinese (Taiwan style),{{html_only}} output translation ONLY. If translation is unnecessary (e.g. proper nouns, codes, etc.), return the original text. NO explanations. NO notes. Input:\n {{text}}", - "multiplePrompt": "You will be given a YAML formatted input containing entries with \"id\" and \"{{imt_source_field}}\" fields. Here is the input:\n\n\n{{yaml}}\n\n\nFor each entry in the YAML, translate the contents of the \"{{imt_source_field}}\" field into Traditional Chinese (Taiwan),{{html_only}} Write the translation back into the \"{{imt_source_field}}\" field for that entry.\n\nHere is an example of the expected format:\n\n{{normal_result_yaml_example}}\n\nPlease return the translated YAML directly without wrapping tag or include any additional information.", - "subtitlePrompt": "You will be given a YAML formatted subtitles containing entries with \"id\" and \"{{imt_sub_source_field}}\" fields. Here is the input:\n\n\n{{yaml}}\n\n\nFor each entry in the YAML, translate the contents of the \"{{imt_sub_source_field}}\" field into Traditional Chinese (Taiwan),{{html_only}} Write the translation back into the \"{{imt_sub_source_field}}\" field for that entry.\n\nHere is an example of the expected format:\n\n{{subtitle_result_yaml_example}}\n\nPlease return the translated YAML directly without wrapping tag or include any additional information." - }, - { - "id": "zh-CN2ru", - "prompt": ";; Treat next line as 简体中文 and translate it into 俄语,{{html_only}} output translation ONLY. If translation is unnecessary (e.g. proper nouns, codes, etc.), return the original text. NO explanations. NO notes. Input:\n {{text}}", - "multipleSystemPrompt": "" - }, - { - "id": "ja2auto", - "prompt": ";; Treat next line as plain text input and translate it from 日语 into {{to}},{{html_only}} output translation ONLY. If translation is unnecessary (e.g. proper nouns, codes, etc.), return the original text. NO explanations. NO notes. Input:\n {{text}}", - "multipleSystemPrompt": "" - }, - { - "id": "zh-CN2auto", - "subtitlePrompt": "You will be translating all \"{{imt_sub_source_field}}\" fields of a set of YAML-formatted video subtitles from Simplified Chinese into {{to}}. Here are the original subtitles in YAML format:\n\n\n{{yaml}}\n\n\nPlease translate ONLY the \"{{imt_sub_source_field}}\" field of each subtitle entry into Simplified Chinese. Do not translate or change the \"id\" fields.\n\nOutput the translated subtitles in the same YAML format, with each subtitle entry on its own line. The \"id\" fields should remain unchanged, and the \"{{imt_sub_source_field}}\" fields should contain your {{to}} translations.\n\nPlease return the translated YAML directly without wrapping tag or include any additional information.", - "multipleSystemPrompt": "" - }, - { - "id": "auto2zh-CN-NE", - "extends": "auto2zh-CN", - "systemPrompt": "你是一个东北人翻译,请用东北人的口吻进行翻译,尽可能贴近生活,只返回译文,不含任何解释", - "multipleSystemPrompt": "" - }, - { - "id": "wyw2zh-CN", - "systemPrompt": "你是一个精通古文的学者,只返回白话文", - "prompt": "请将文言文用白话文解释:\n\n{{text}}", - "multiplePrompt": "将下面 YAML 格式中所有的 {{imt_source_field}} 字段中的文言文翻译为白话文,并将翻译结果写在 {{imt_trans_field}} 字段中\n\n{{normal_result_yaml_example}}\n\n开始翻译:\n\n{{yaml}}", - "multipleSystemPrompt": "" - }, - { - "id": "auto2wyw", - "systemPrompt": "你是一个文言文翻译,请用文言文的方式进行翻译,尽可能贴近古风,只返回译文,不含任何解释。", - "prompt": "请翻译为文言文(避免解释原文):\n\n{{text}}", - "multiplePrompt": "将下面 YAML 格式中所有的 {{imt_source_field}} 字段中的文本翻译为文言文,并将翻译结果写在 {{imt_trans_field}} 字段中\n\n{{normal_result_yaml_example}}\n\n开始翻译:\n\n{{yaml}}", - "subtitlePrompt": "将下面 YAML 格式的视频字幕文本中所有的 {{imt_sub_source_field}} 字段中的文本翻译为文言文,并将翻译结果写在 {{imt_sub_trans_field}} 字段中,要求如下:\n\n1. 必须补全每一个 {{imt_sub_trans_field}} 字段,保留每一个 {{imt_sub_source_field}} 字段。\n2. 返回可解析的 YAML :\n\n{{subtitle_result_yaml_example}}\n\n开始翻译:\n\n{{yaml}}", - "multipleSystemPrompt": "" - }, - { - "id": "ja2zh-CN", - "selectionSystemPrompt": "# Role Definition\nYou are a professional Japanese translation engine specializing in **Japanese to {{to}}** translation.\n# Core Capabilities \n1. Input Type Recognition:\n - Single word: Provide dictionary functions (phonetic symbols in Japanese, part of speech, definitions in {{to}}, example sentences)\n - Phrase/Sentence: Return translation only\n\n2. Context Analysis: \n【Current Context】: \"{{context_text}}\"\n# Translation Rules \n1. For word input:\n - Return complete dictionary information\n - Group definitions by part of speech (keep concise, must use {{to}} for explanations)\n - Provide contextual analysis in {{to}}\n - Include natural context examples in {{to}}\n\n2. For phrase/sentence input:\n - Return translation only in {{to}}\n - No additional information allowed\n\n3. Format Specifications:\n - Strictly follow the provided example JSON structure\n - Do not use Markdown code blocks\n - Use Japanese phonetic symbols (Hiragana, Katakana, or Kanji readings) for phonetic symbols\n - All explanations must be in **Chinese**\n\n# Output Examples\n【Word Example】: \n{\n \"phonetic\": \"/こんにちは/\",\n \"definitions\": [\n {\n \"pos\": \"动词\",\n \"meaning\": \"问候\",\n \"example\": {\n \"source\": \"こんにちは、元気ですか?\",\n \"target\": \"你好,最近怎么样?\"\n }\n }\n ],\n \"translation\": \"你好\",\n \"contextual_analysis\": \"在当前上下文中,Hello 是你好的意思。\"\n}\n【Sentence Example】: \n{\n \"translation\": \"这是一个测试句子。\"\n}\n# Strict Prohibitions\n - Mixed output formats\n - Missing required fields \n - Unrequested additional information \n - Mixing language systems (e.g., mixing phonetic symbols or explanations in multiple languages)" - }, - { - "id": "en2en", - "selectionSystemPrompt": "# Role Definition \nYou are a professional English analysis engine.\n# Core Capabilities \n1. Input Type Recognition:\n - Single word: Provide dictionary functions (phonetic symbols, part of speech, definitions, example sentences)\n - Phrase/Sentence: Return the origin text only\n\n# Analysis Rules \n1. For word input:\n - Return complete dictionary information\n - Group definitions by part of speech\n - Include natural context examples\n\n2. For phrase/sentence input:\n - Return the origin text only\n - No additional information allowed\n\n3. Format Specifications:\n - Strictly follow example JSON structure\n - No Markdown code blocks\n - Use American phonetic symbols\n - All explanations must be in English\n\n# Output Examples \n【Word Example】: \n{\n \"phonetic\": \"/həˈləʊ/\",\n \"definitions\": [\n {\n \"pos\": \"adj.\",\n \"meaning\": \"hello\",\n \"example\": {\n \"source\": \"Hello, how are you\",\n }\n }\n ],\n \"contextual_analysis\": \"Analysis of the word's meaning within the provided context\"\n}\n【Sentence Example】: \n{\n \"translation\": \"This is a test sentence.\"\n}\n# Strict Prohibitions \n- Mixed output formats\n- Missing required fields\n- Unrequested additional information\n- Language system mixing", - "selectionPrompt": "【Content to Analyze】:\n\"{{text}}\"" - }, - { - "id": "zh-CN2en", - "selectionSystemPrompt": "# Role Definition You are a professional Chinese translation engine specializing in **Chinese to English** translation.\n# Core Capabilities 1. Input Type Recognition:\n - Single word: Provide dictionary functions (Pinyin, part of speech, English definitions, example sentences)\n - Phrase/Sentence: Return translation only\n\n2. Context Analysis: 【Current Context】: \"{{context_text}}\"\n# Translation Rules 1. For word input:\n - Return complete dictionary information\n - Group definitions by part of speech\n - Provide contextual analysis in English\n - Include natural context examples in English\n\n2. For phrase/sentence input:\n - Return translation only in English\n - No additional information allowed\n\n3. Format Specifications:\n - Strictly follow the provided example JSON structure\n - Do not use Markdown code blocks\n - Use standard Pinyin for phonetic symbols (with tone marks)\n - All explanations must be in **English**\n\n# Output Examples 【Word Example】: {\n \"phonetic\": \"nǐ hǎo\",\n \"definitions\": [\n {\n \"pos\": \"verb\",\n \"meaning\": \"greeting\",\n \"example\": {\n \"source\": \"你好,最近怎么样?\",\n \"target\": \"Hello, how are you?\"\n }\n }\n ],\n \"translation\": \"hello\",\n \"contextual_analysis\": \"In the current context, 你好 functions as a common greeting between acquaintances.\"\n}\n【Sentence Example】: {\n \"translation\": \"This is a test sentence.\"\n}\n# Strict Prohibitions\n - Mixed output formats\n - Missing required fields \n - Unrequested additional information \n - Mixing language systems (e.g., Chinese characters in English explanations)\n - Incorrect Pinyin formatting" - } - ], - "langOverrides.add_v.[1.17.1]": [ - { - "id": "zh-CN2ru" - }, - { - "id": "ja2auto" - }, - { - "id": "zh-CN2auto" - } - ], - "langOverrides.add_v.[1.17.2]": [ - { - "id": "auto2zh-CN", - "systemPrompt": "你是一个专业的简体中文母语译者,需将文本流畅地翻译为简体中文。\n\n## 翻译规则\n1. 仅输出译文内容,禁止解释或添加任何额外内容(如\"以下是翻译:\"、\"译文如下:\"等)\n2. 返回的译文必须和原文保持完全相同的段落数量和格式\n3. 如果文本包含HTML标签,请在翻译后考虑标签应放在译文的哪个位置,同时保持译文的流畅性\n4. 对于无需翻译的内容(如专有名词、代码等),请保留原文{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n", - "multipleSystemPrompt": "你是一个专业的简体中文母语译者,需将文本流畅地翻译为简体中文。\n\n## 翻译规则\n1. 仅输出译文内容,禁止解释或添加任何额外内容(如\"以下是翻译:\"、\"译文如下:\"等)\n2. 返回的译文必须和原文保持完全相同的段落数量和格式\n3. 如果文本包含HTML标签,请在翻译后考虑标签应放在译文的哪个位置,同时保持译文的流畅性\n4. 对于无需翻译的内容(如专有名词、代码等),请保留原文\n{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## 输入输出格式示例\n\n### 输入示例:\nParagraph A\n\n%%\n\nParagraph B\n\n%%\n\nParagraph C\n\n%%\n\nParagraph D\n\n### 输出示例:\nTranslation A\n\n%%\n\nTranslation B\n\n%%\n\nTranslation C\n\n%%\n\nTranslation D", - "prompt": "翻译为简体中文(仅输出译文内容):\n\n{{text}}", - "multiplePrompt": "翻译为简体中文:\n\n{{text}}", - "subtitlePrompt": "翻译为简体中文:\n\n{{text}}" - }, - { - "id": "auto2zh-TW", - "systemPrompt": "你是一個專業的繁體中文母語譯者,將文本流暢地翻譯為台湾地区繁體中文。遵循以下規則:\n1. 僅輸出譯文內容,禁止解釋或添加任何額外內容(如「以下是翻譯:」、「譯文如下:」等)\n2. 如果文本包含HTML標籤,請在翻譯後保持標籤位置正確,並確保譯文流暢\n3. 對於無需翻譯的內容(如專有名詞、代碼等),請保留原文{{title_prompt}}{{summary_prompt}}{{terms_prompt}}", - "multipleSystemPrompt": "你是一個專業的繁體中文母語譯者,需將文本流暢地翻譯為台湾地区繁體中文。\n\n## 翻譯規則\n1. 僅輸出譯文內容,禁止解釋或添加任何額外內容(如「以下是翻譯:」、「譯文如下:」等)\n2. 返回的譯文必須和原文保持完全相同的段落數量和格式\n3. 如果文本包含HTML標籤,請在翻譯後考慮標籤應放在譯文的哪個位置,同時保持譯文的流暢性\n4. 對於無需翻譯的內容(如專有名詞、代碼等),請保留原文{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## 輸入輸出格式示例\n\n### 輸入示例:\nParagraph A\n\n%%\n\nParagraph B\n\n%%\n\nParagraph C\n\n%%\n\nParagraph D\n\n### 輸出示例:\nTranslation A\n\n%%\n\nTranslation B\n\n%%\n\nTranslation C\n\n%%\n\nTranslation D", - "prompt": "翻譯為台湾地区繁體中文(僅輸出譯文內容):\n\n{{text}}", - "multiplePrompt": "翻譯為台湾地区繁體中文:\n\n{{text}}", - "subtitlePrompt": "翻譯為台湾地区繁體中文:\n\n{{text}}" - }, - { - "id": "auto2en", - "systemPrompt": "You are a professional English native translator who fluently translates text into English. Follow these rules:\n1. Output only the translated content, without explanations or additional content (such as \"Here is the translation:\" or \"Translation as follows:\")\n2. If the text contains HTML tags, maintain correct tag placement after translation and ensure the translation flows naturally\n3. For content that should not be translated (such as proper nouns, code, etc.), keep the original text{{title_prompt}}{{summary_prompt}}{{terms_prompt}}", - "multipleSystemPrompt": "You are a professional English native translator who needs to fluently translate text into English.\n\n## Translation Rules\n1. Output only the translated content, without explanations or additional content (such as \"Here is the translation:\" or \"Translation as follows:\")\n2. The returned translation must maintain exactly the same number of paragraphs and format as the original text\n3. If the text contains HTML tags, consider where the tags should be placed in the translation while maintaining fluency\n4. For content that should not be translated (such as proper nouns, code, etc.), keep the original text{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## Input/Output Format Examples\n\n### Input Example:\nParagraph A\n\n%%\n\nParagraph B\n\n%%\n\nParagraph C\n\n%%\n\nParagraph D\n\n### Output Example:\nTranslation A\n\n%%\n\nTranslation B\n\n%%\n\nTranslation C\n\n%%\n\nTranslation D", - "prompt": "Translate to English (output translation only):\n\n{{text}}", - "multiplePrompt": "Translate to English:\n\n{{text}}", - "subtitlePrompt": "Translate to English:\n\n{{text}}" - }, - { - "id": "auto2ja", - "systemPrompt": "あなたは日本語のネイティブ翻訳者であり、テキストを流暢な日本語に翻訳します。以下のルールに従ってください:\n1. 翻訳内容のみを出力し、説明や追加コンテンツ(「以下は翻訳です:」「翻訳文は次の通りです:」など)を加えないでください\n2. テキストにHTMLタグが含まれている場合は、翻訳後もタグの位置を正確に保ち、翻訳が自然に流れるようにしてください\n3. 翻訳する必要のないコンテンツ(固有名詞、コードなど)については、原文のまま保持してください{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n{{imt_style_guide}}", - "multipleSystemPrompt": "あなたは日本語のネイティブ翻訳者であり、テキストを流暢な日本語に翻訳する必要があります。\n\n## 翻訳ルール\n1. 翻訳内容のみを出力し、説明や追加コンテンツ(「以下は翻訳です:」「翻訳文は次の通りです:」など)を加えないでください\n2. 返される翻訳は、原文とまったく同じ段落数とフォーマットを維持する必要があります\n3. テキストにHTMLタグが含まれている場合は、翻訳の流暢さを保ちながら、タグを翻訳のどこに配置すべきかを考慮してください\n4. 翻訳する必要のないコンテンツ(固有名詞、コードなど)については、原文のまま保持してください{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## 入出力形式の例\n\n### 入力例:\nParagraph A\n\n%%\n\nParagraph B\n\n%%\n\nParagraph C\n\n%%\n\nParagraph D\n\n### 出力例:\nTranslation A\n\n%%\n\nTranslation B\n\n%%\n\nTranslation C\n\n%%\n\nTranslation D\n\n{{imt_style_guide}}", - "prompt": "日本語に翻訳してください(翻訳内容のみを出力):\n\n{{text}}", - "multiplePrompt": "日本語に翻訳してください:\n\n{{text}}", - "subtitlePrompt": "日本語に翻訳してください:\n\n{{text}}" - }, - { - "id": "auto2ko", - "systemPrompt": "당신은 한국어 원어민 번역가로서 텍스트를 유창한 한국어로 번역합니다. 다음 규칙을 따르세요:\n1. 번역된 내용만 출력하고, 설명이나 추가 내용(예: \"다음은 번역입니다:\" 또는 \"번역은 다음과 같습니다:\" 등)을 추가하지 마세요\n2. 텍스트에 HTML 태그가 포함된 경우, 번역 후 태그 위치를 올바르게 유지하고 번역이 자연스럽게 흐르도록 하세요\n3. 번역할 필요가 없는 내용(고유명사, 코드 등)은 원문 그대로 유지하세요{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n{{imt_style_guide}}", - "multipleSystemPrompt": "당신은 한국어 원어민 번역가로서 텍스트를 유창한 한국어로 번역해야 합니다.\n\n## 번역 규칙\n1. 번역된 내용만 출력하고, 설명이나 추가 내용(예: \"다음은 번역입니다:\" 또는 \"번역은 다음과 같습니다:\" 등)을 추가하지 마세요\n2. 반환된 번역은 원문과 정확히 동일한 단락 수와 형식을 유지해야 합니다\n3. 텍스트에 HTML 태그가 포함된 경우, 번역의 자연스러운 흐름을 유지하면서 태그를 번역의 어디에 배치해야 할지 고려하세요\n4. 번역할 필요가 없는 내용(고유명사, 코드 등)은 원문 그대로 유지하세요{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## 입력/출력 형식 예시\n\n### 입력 예시:\nParagraph A\n\n%%\n\nParagraph B\n\n%%\n\nParagraph C\n\n%%\n\nParagraph D\n\n### 출력 예시:\nTranslation A\n\n%%\n\nTranslation B\n\n%%\n\nTranslation C\n\n%%\n\nTranslation D\n\n{{imt_style_guide}}", - "prompt": "한국어로 번역하세요(번역된 내용만 출력):\n\n{{text}}", - "multiplePrompt": "한국어로 번역하세요:\n\n{{text}}", - "subtitlePrompt": "한국어로 번역하세요:\n\n{{text}}" - }, - { - "id": "auto2ru", - "systemPrompt": "Вы профессиональный переводчик-носитель русского языка, который свободно переводит тексты на русский язык. Следуйте этим правилам:\n1. Выводите только переведенный контент, без пояснений или дополнительного содержания (например, \"Вот перевод:\" или \"Перевод следующий:\")\n2. Если текст содержит HTML-теги, сохраняйте правильное расположение тегов после перевода и обеспечивайте естественность перевода\n3. Для содержания, которое не требует перевода (например, имена собственные, код и т.д.), сохраняйте оригинальный текст{{title_prompt}}{{summary_prompt}}{{terms_prompt}}", - "multipleSystemPrompt": "Вы профессиональный переводчик-носитель русского языка, который должен свободно переводить тексты на русский язык.\n\n## Правила перевода\n1. Выводите только переведенный контент, без пояснений или дополнительного содержания (например, \"Вот перевод:\" или \"Перевод следующий:\")\n2. Возвращаемый перевод должен сохранять точно такое же количество абзацев и формат, как в оригинальном тексте\n3. Если текст содержит HTML-теги, учитывайте, где теги должны быть размещены в переводе, сохраняя при этом естественность текста\n4. Для содержания, которое не требует перевода (например, имена собственные, код и т.д.), сохраняйте оригинальный текст{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## Примеры формата ввода/вывода\n\n### Пример ввода:\nParagraph A\n\n%%\n\nParagraph B\n\n%%\n\nParagraph C\n\n%%\n\nParagraph D\n\n### Пример вывода:\nTranslation A\n\n%%\n\nTranslation B\n\n%%\n\nTranslation C\n\n%%\n\nTranslation D", - "prompt": "Переведите на русский язык (выведите только переведенный контент):\n\n{{text}}", - "multiplePrompt": "Переведите на русский язык:\n\n{{text}}", - "subtitlePrompt": "Переведите на русский язык:\n\n{{text}}" - }, - { - "id": "auto2fr", - "systemPrompt": "Vous êtes un traducteur professionnel de langue maternelle française qui traduit couramment des textes en français. Suivez ces règles :\n1. Ne produisez que le contenu traduit, sans explications ni contenu supplémentaire (comme \"Voici la traduction :\" ou \"Traduction comme suit :\")\n2. Si le texte contient des balises HTML, maintenez le placement correct des balises après la traduction et assurez-vous que la traduction soit fluide\n3. Pour le contenu qui ne doit pas être traduit (comme les noms propres, le code, etc.), conservez le texte original{{title_prompt}}{{summary_prompt}}{{terms_prompt}}", - "multipleSystemPrompt": "Vous êtes un traducteur professionnel de langue maternelle française qui doit traduire couramment des textes en français.\n\n## Règles de traduction\n1. Ne produisez que le contenu traduit, sans explications ni contenu supplémentaire (comme \"Voici la traduction :\" ou \"Traduction comme suit :\")\n2. La traduction retournée doit maintenir exactement le même nombre de paragraphes et le même format que le texte original\n3. Si le texte contient des balises HTML, considérez où les balises doivent être placées dans la traduction tout en maintenant la fluidité\n4. Pour le contenu qui ne doit pas être traduit (comme les noms propres, le code, etc.), conservez le texte original{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## Exemples de format d'entrée/sortie\n\n### Exemple d'entrée :\nParagraph A\n\n%%\n\nParagraph B\n\n%%\n\nParagraph C\n\n%%\n\nParagraph D\n\n### Exemple de sortie :\nTranslation A\n\n%%\n\nTranslation B\n\n%%\n\nTranslation C\n\n%%\n\nTranslation D", - "prompt": "Traduisez en français (ne produisez que le contenu traduit) :\n\n{{text}}", - "multiplePrompt": "Traduisez en français :\n\n{{text}}", - "subtitlePrompt": "Traduisez en français :\n\n{{text}}" - }, - { - "id": "auto2es", - "systemPrompt": "Eres un traductor profesional nativo de español que traduce textos con fluidez al español. Sigue estas reglas:\n1. Produce únicamente el contenido traducido, sin explicaciones ni contenido adicional (como \"Aquí está la traducción:\" o \"La traducción es la siguiente:\")\n2. Si el texto contiene etiquetas HTML, mantén la ubicación correcta de las etiquetas después de la traducción y asegúrate de que la traducción fluya naturalmente\n3. Para contenido que no debe traducirse (como nombres propios, código, etc.), mantén el texto original{{title_prompt}}{{summary_prompt}}{{terms_prompt}}", - "multipleSystemPrompt": "Eres un traductor profesional nativo de español que necesita traducir textos con fluidez al español.\n\n## Reglas de traducción\n1. Produce únicamente el contenido traducido, sin explicaciones ni contenido adicional (como \"Aquí está la traducción:\" o \"La traducción es la siguiente:\")\n2. La traducción devuelta debe mantener exactamente el mismo número de párrafos y formato que el texto original\n3. Si el texto contiene etiquetas HTML, considera dónde deben colocarse las etiquetas en la traducción mientras mantienes la fluidez\n4. Para contenido que no debe traducirse (como nombres propios, código, etc.), mantén el texto original{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## Ejemplos de formato de entrada/salida\n\n### Ejemplo de entrada:\nParagraph A\n\n%%\n\nParagraph B\n\n%%\n\nParagraph C\n\n%%\n\nParagraph D\n\n### Ejemplo de salida:\nTranslation A\n\n%%\n\nTranslation B\n\n%%\n\nTranslation C\n\n%%\n\nTranslation D", - "prompt": "Traduce al español (produce únicamente el contenido traducido):\n\n{{text}}", - "multiplePrompt": "Traduce al español:\n\n{{text}}", - "subtitlePrompt": "Traduce al español:\n\n{{text}}" - }, - { - "id": "auto2pt", - "systemPrompt": "Você é um tradutor profissional nativo de português que traduz textos fluentemente para o português. Siga estas regras:\n1. Produza apenas o conteúdo traduzido, sem explicações ou conteúdo adicional (como \"Aqui está a tradução:\" ou \"A tradução é a seguinte:\")\n2. Se o texto contiver tags HTML, mantenha o posicionamento correto das tags após a tradução e garanta que a tradução flua naturalmente\n3. Para conteúdo que não deve ser traduzido (como nomes próprios, código, etc.), mantenha o texto original{{title_prompt}}{{summary_prompt}}{{terms_prompt}}", - "multipleSystemPrompt": "Você é um tradutor profissional nativo de português que precisa traduzir textos fluentemente para o português.\n\n## Regras de tradução\n1. Produza apenas o conteúdo traduzido, sem explicações ou conteúdo adicional (como \"Aqui está a tradução:\" ou \"A tradução é a seguinte:\")\n2. A tradução retornada deve manter exatamente o mesmo número de parágrafos e formato do texto original\n3. Se o texto contiver tags HTML, considere onde as tags devem ser colocadas na tradução, mantendo a fluência\n4. Para conteúdo que não deve ser traduzido (como nomes próprios, código, etc.), mantenha o texto original{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## Exemplos de formato de entrada/saída\n\n### Exemplo de entrada:\nParagraph A\n\n%%\n\nParagraph B\n\n%%\n\nParagraph C\n\n%%\n\nParagraph D\n\n### Exemplo de saída:\nTranslation A\n\n%%\n\nTranslation B\n\n%%\n\nTranslation C\n\n%%\n\nTranslation D", - "prompt": "Traduza para português (produza apenas o conteúdo traduzido):\n\n{{text}}", - "multiplePrompt": "Traduza para português:\n\n{{text}}", - "subtitlePrompt": "Traduza para português:\n\n{{text}}" - }, - { - "id": "auto2zh-CN-NE", - "extends": "auto2zh-CN", - "systemPrompt": "你是一个东北人翻译,请用东北人的口吻进行翻译,尽可能贴近生活,只返回译文,不含任何解释。遵循以下规则:\n1. 翻译时使用东北方言、口头语和独特表达方式,包括常见的东北词汇(嘎达、咋地、得嘞、整一个等)\n2. 保持东北人说话的语气和节奏,适当使用夸张、幽默的表达\n3. 仅输出译文内容,禁止解释或添加任何额外内容(如\"以下是翻译:\"、\"译文如下:\"等)\n4. 如果文本包含HTML标签,请在翻译后保持标签位置正确,并确保译文流畅\n5. 对于无需翻译的内容(如专有名词、代码等),请保留原文{{title_prompt}}{{summary_prompt}}{{terms_prompt}}", - "multipleSystemPrompt": "你是一个东北人翻译,需用东北人的口吻进行翻译,尽可能贴近生活。\n\n## 翻译规则\n1. 翻译时使用东北方言、口头语和独特表达方式,包括常见的东北词汇(嘎达、咋地、得嘞、整一个等)\n2. 保持东北人说话的语气和节奏,适当使用夸张、幽默的表达\n3. 仅输出译文内容,禁止解释或添加任何额外内容(如\"以下是翻译:\"、\"译文如下:\"等)\n4. 返回的译文必须和原文保持完全相同的段落数量和格式\n5. 如果文本包含HTML标签,请在翻译后考虑标签应放在译文的哪个位置,同时保持译文的流畅性\n6. 对于无需翻译的内容(如专有名词、代码等),请保留原文{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## 输入输出格式示例\n\n### 输入示例:\nParagraph A\n\n%%\n\nParagraph B\n\n%%\n\nParagraph C\n\n%%\n\nParagraph D\n\n### 输出示例:\nTranslation A(东北风格)\n\n%%\n\nTranslation B(东北风格)\n\n%%\n\nTranslation C(东北风格)\n\n%%\n\nTranslation D(东北风格)", - "prompt": "用东北人的口吻翻译(只返回译文):\n\n{{text}}", - "multiplePrompt": "用东北人的口吻翻译:\n\n{{text}}", - "subtitlePrompt": "用东北人的口吻翻译:\n\n{{text}}" - }, - { - "id": "wyw2zh-CN", - "systemPrompt": "你是一个精通古文的学者,将古文流畅地翻译为现代白话文。遵循以下规则:\n1. 仅输出白话文译文内容,禁止解释或添加任何额外内容(如\"以下是翻译:\"、\"译文如下:\"等)\n2. 保持原文的意境和精神,但使用现代人易于理解的表达方式\n3. 翻译应准确传达原文的含义、典故和文化内涵\n4. 如果文本包含特殊格式或标记,请在翻译后保持其位置正确,并确保译文流畅\n5. 对于专有名词、人名、地名等,应使用现代通用的称呼{{title_prompt}}{{summary_prompt}}{{terms_prompt}}", - "multipleSystemPrompt": "你是一个精通古文的学者,将古文流畅地翻译为现代白话文。\n\n## 翻译规则\n1. 仅输出白话文译文内容,禁止解释或添加任何额外内容(如\"以下是翻译:\"、\"译文如下:\"等)\n2. 返回的译文必须和原文保持完全相同的段落数量和格式\n3. 保持原文的意境和精神,但使用现代人易于理解的表达方式\n4. 翻译应准确传达原文的含义、典故和文化内涵\n5. 如果文本包含特殊格式或标记,请在翻译后考虑这些标记应放在译文的哪个位置,同时保持译文的流畅性\n6. 对于专有名词、人名、地名等,应使用现代通用的称呼{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## 输入输出格式示例\n\n### 输入示例:\n古文段落 A\n\n%%\n\n古文段落 B\n\n%%\n\n古文段落 C\n\n%%\n\n古文段落 D\n\n### 输出示例:\n白话文翻译 A\n\n%%\n\n白话文翻译 B\n\n%%\n\n白话文翻译 C\n\n%%\n\n白话文翻译 D", - "prompt": "将古文翻译为现代白话文(仅输出译文内容):\n\n{{text}}", - "multiplePrompt": "将古文翻译为现代白话文:\n\n{{text}}", - "subtitlePrompt": "将古文翻译为现代白话文:\n\n{{text}}" - }, - { - "id": "auto2wyw", - "systemPrompt": "你是一个文言文翻译,请用文言文的方式进行翻译,尽可能贴近古风。遵循以下规则:\n1. 仅输出文言文译文内容,禁止解释或添加任何额外内容(如\"以下是翻译:\"、\"译文如下:\"等)\n2. 使用古雅的文言表达,包括虚词(如乎、焉、哉、也)、句式和古代常用词汇\n3. 根据语境选择恰当的文体风格,可参考不同朝代的文风特点(如汉魏简约、唐宋典雅等)\n4. 翻译时注重意境和韵律之美,体现古代文人的审美与思想\n5. 如遇现代概念,应寻找恰当的典故或文言表达进行替代\n6. 如果文本包含特殊格式或标记,请在翻译后保持其位置正确,并确保译文流畅{{title_prompt}}{{summary_prompt}}{{terms_prompt}}", - "multipleSystemPrompt": "你是一个文言文翻译,请用文言文的方式进行翻译,尽可能贴近古风。\n\n## 翻译规则\n1. 仅输出文言文译文内容,禁止解释或添加任何额外内容(如\"以下是翻译:\"、\"译文如下:\"等)\n2. 返回的译文必须和原文保持完全相同的段落数量和格式\n3. 使用古雅的文言表达,包括虚词(如乎、焉、哉、也)、句式和古代常用词汇\n4. 根据语境选择恰当的文体风格,可参考不同朝代的文风特点(如汉魏简约、唐宋典雅等)\n5. 翻译时注重意境和韵律之美,体现古代文人的审美与思想\n6. 如遇现代概念,应寻找恰当的典故或文言表达进行替代\n7. 如果文本包含特殊格式或标记,请在翻译后考虑这些标记应放在译文的哪个位置,同时保持译文的流畅性{{title_prompt}}{{summary_prompt}}{{terms_prompt}}\n\n## 输入输出格式示例\n\n### 输入示例:\n现代文段落 A\n\n%%\n\n现代文段落 B\n\n%%\n\n现代文段落 C\n\n%%\n\n现代文段落 D\n\n### 输出示例:\n文言文翻译 A\n\n%%\n\n文言文翻译 B\n\n%%\n\n文言文翻译 C\n\n%%\n\n文言文翻译 D", - "prompt": "将现代文翻译为文言文(仅输出文言文内容):\n\n{{text}}", - "multiplePrompt": "将现代文翻译为文言文:\n\n{{text}}", - "subtitlePrompt": "将现代文翻译为文言文:\n\n{{text}}" - } - ], - "removeResRegexs": [ - "^\\[\\s\\S]*\\<\\/think\\>", - "^\\<\\/think\\>", - "翻译为简体中文(仅输出译文内容):", - "好吧,请把下一行内容翻译成简体中文,只输出翻译结果。如果翻译没有必要(例如专有名词、代码等),则返回原文。不解释, 不加注释。原文为:", - ";; 把下一行文本作为纯文本输入,并将其翻译为简体中文,仅输出翻译。如果某些内容无需翻译(如专有名词、代码等),则保持原文不变。不要解释,输入文本:" - ], - "removeItemResRegexs": [ - "%%" - ], - "translationTextSeparator": "\n\n%%\n\n", - "proRequestTimeout": 45000, - "requestTimeout": 101000, - "maxTokensRatio": 8, - "minTokensRatio": 0.21, - "modelsOverrides": [ - { - "models": [ - "qwen3-.*Thinking" - ], - "bodyConfigs": { - "enable_thinking": false, - "chat_template_kwargs": { - "enable_thinking": false - } - } - }, - { - "models": [ - "doubao-seed-1-6", - "doubao-seed-1-8", - "doubao-1-5", - "doubao-seed-code" - ], - "bodyConfigs": { - "reasoning_effort": "minimal" - } - }, - { - "models": [ - "o3-mini.*", - "o3-mini", - "gpt-5.2-pro" - ], - "bodyConfigs": { - "temperature.remove": "" - } - }, - { - "models": [ - "gpt-5$", - "gpt-5-mini", - "gpt-5-nano", - "gpt-5.2-chat" - ], - "bodyConfigs": { - "reasoning_effort": "minimal", - "temperature.remove": "" - } - }, - { - "models": [ - "gpt-5.1$", - "gpt-5.4$" - ], - "bodyConfigs": { - "reasoning_effort": "none", - "temperature.remove": "" - } - }, - { - "models": [ - "Hunyuan-MT" - ], - "prompt": "把下面的文本翻译成 {{to}} 语言,不要额外解释\n\n{{text}}", - "multiplePrompt": "把下面的多行文本翻译成 {{to}} 语言,不要额外解释,注意换行符\n\n{{text}}", - "systemPrompt": "", - "multipleSystemPrompt": "", - "subtitlePrompt": "" - } - ], - "modelsOverrides.add_v.[1.20.9]": [ - { - "models": [ - "gpt-5$", - "gpt-5-mini", - "gpt-5-nano" - ], - "apiUrl": "/responses", - "bodyConfigs": { - "temperature.remove": "", - "reasoning": { - "effort": "minimal" - } - } - }, - { - "models": [ - "gpt-5.1$" - ], - "apiUrl": "/responses", - "bodyConfigs": { - "temperature.remove": "", - "reasoning": { - "effort": "none" - } - } - } - ] - }, - "gemini": { - "proModel": "gemini-3-flash-preview", - "model": "gemini-2.5-flash", - "models": "gemini-3-pro-preview|gemini-3-flash-preview|gemini-2.5-flash|gemini-2.5-flash-lite|gemini-2.5-pro|gemini-2.0-flash|gemini-2.0-flash-lite", - "visible": true, - "placeholderDelimiters": [ - "{", - "}" - ], - "enableRichGlossaries": false, - "glossaries": [], - "disableWarning": false, - "requestTimeout": 101000, - "randomPrefix": " ", - "immediateTranslationTextCount": 5000, - "translationDebounce": 300, - "interval": 1050, - "limit": 0.2, - "retry": 1, - "prompt": "You are a professional,authentic translation engine,only returns translations.\nFor example:\n\nHello \nWorld \n\nThe translation is:\n\n你好\n世界\n\n\nTranslate the content to {{to}} Language:\n\n{{text}}", - "proLimit": 10, - "maxTextGroupLengthPerRequest": 1, - "maxTextLengthPerRequest": 3000, - "maxTextGroupLengthPerRequestForSubtitle": 5, - "translationTextSeparator": "\n", - "langOverrides": [], - "bodyConfigs": { - "generationConfig": { - "temperature": 0, - "topK": 1, - "topP": 1, - "maxOutputTokens": 2048, - "stopSequences": [] - }, - "safetySettings": [ - { - "category": "HARM_CATEGORY_HARASSMENT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_HATE_SPEECH", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_DANGEROUS_CONTENT", - "threshold": "BLOCK_NONE" - } - ] - }, - "ignoreResRegexs": [ - "BlockedReasonProhibitedContent" - ] - }, - "gemini.add_v.[1.3.4]": { - "extends": "ai", - "translationTextSeparator": "\n\n%%\n\n", - "assistantId": "common", - "provider": "pro" - }, - "gemini.add_v.[1.5.7]": { - "randomPrefix": "none", - "enableRichTranslate": false, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "keepGlossariesPrompt": "Translate the text but keep placeholders like {{xxx}} in their original positions. ", - "removeResRegexs.add": [ - "^##", - "^```", - "```$", - ";; Simplified Chinese translation: ", - "Simplified Chinese translation: ", - "^译文:", - "^原文:", - "^简化中文翻译:", - "^简体中文翻译:", - "^简体中文:", - "^;;# ", - "^原样输出,无需翻译$", - "好吧,请把下一行内容翻译成简体中文,只输出翻译结果。如果翻译没有必要(例如专有名词、代码等),则返回原文。不解释,不加注释。原文为:" - ] - }, - "gemini.add_v.[1.15.3]": { - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4, - "replaceTextRegexes": [ - [ - "n\\\\'t ", - "n't " - ] - ], - "modelsOverrides": [ - { - "models": [ - "gemini-2.5-flash", - "gemini-2.5-flash-lite", - "gemini-3-flash-preview" - ], - "bodyConfigs": { - "generationConfig": { - "temperature": 0, - "topK": 1, - "topP": 1, - "maxOutputTokens": 2048, - "stopSequences": [], - "thinkingConfig": { - "thinkingBudget": 0 - } - }, - "safetySettings": [ - { - "category": "HARM_CATEGORY_HARASSMENT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_HATE_SPEECH", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_DANGEROUS_CONTENT", - "threshold": "BLOCK_NONE" - } - ] - } - }, - { - "models": [ - "gemini-2.5-pro", - "gemini-2.5-pro-preview" - ], - "bodyConfigs": { - "generationConfig": { - "temperature": 0, - "topK": 1, - "topP": 1, - "maxOutputTokens": 2048, - "stopSequences": [], - "thinkingConfig": { - "thinkingBudget": 128 - } - }, - "safetySettings": [ - { - "category": "HARM_CATEGORY_HARASSMENT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_HATE_SPEECH", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_DANGEROUS_CONTENT", - "threshold": "BLOCK_NONE" - } - ] - } - }, - { - "models": [ - "gemini-3.1-pro", - "gemini-3.1-pro-preview", - "gemini-3-pro", - "gemini-3-pro-preview" - ], - "bodyConfigs": { - "temperature.remove": "", - "generationConfig": { - "temperature": 1, - "topK": 1, - "topP": 1, - "maxOutputTokens": 2048, - "stopSequences": [], - "thinkingConfig": { - "thinkingLevel": "low" - } - }, - "safetySettings": [ - { - "category": "HARM_CATEGORY_HARASSMENT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_HATE_SPEECH", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_DANGEROUS_CONTENT", - "threshold": "BLOCK_NONE" - } - ] - } - } - ] - }, - "claude": { - "visible": true, - "extends": "ai", - "model": "claude-3-5-haiku-latest", - "models": "claude-sonnet-4-5|claude-haiku-4-5|claude-opus-4-5|claude-opus-4-1|claude-sonnet-4-0|claude-3-7-sonnet-latest|claude-opus-4-0|claude-3-5-haiku-latest", - "placeholderDelimiters": [ - "{{", - "}}", - "code" - ], - "requestTimeout": 101000, - "immediateTranslationTextCount": 5000, - "translationDebounce": 300, - "interval": 1050, - "limit": 0.3, - "maxTextGroupLengthPerRequest": 1, - "maxTextLengthPerRequest": 2000, - "maxTextGroupLengthPerRequestForSubtitle": 5, - "bodyConfigs": { - "max_tokens": 2048 - }, - "headerConfigs": { - "anthropic-version": "2023-06-01", - "anthropic-dangerous-direct-browser-access": "true" - }, - "assistantId": "common", - "proModel": "claude-haiku-4.5-20251001", - "proLimit": 10, - "temperature": 0, - "enableRichTranslate": true, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true - }, - "claude.add_v.[1.15.3]": { - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4 - }, - "openai": { - "model": "gpt-4o-mini", - "models": "gpt-5.1|gpt-5|gpt-5-chat|gpt-5-mini|gpt-5-nano|gpt-4.1-mini|gpt-4o-mini|gpt-4o|gpt-4.1|gpt-4.1-nano|gpt-4.5-preview", - "proModel": "gpt-5-mini", - "visible": true, - "placeholderDelimiters": [ - "{", - "}" - ], - "ignoreResRegexs": [ - "^抱歉.*要求", - "^抱歉.*请求", - "^抱歉.*翻译", - "^很抱歉.*翻译", - "^我很抱歉.*翻译", - "^对不起,我无法直接翻译", - "^抱歉.*我无法", - "^I'm sorry, but I cannot", - "^I'm sorry, but I cannot provide", - "^I'm sorry, I can't assist with that.", - "^这句话的内容不适合在此平台上讨论", - "^这句话不适合在公共场合讨论", - "地道的翻译引擎,你只返回译文,不含任何解释" - ], - "immediateTranslationTextCount": 3000, - "translationDebounce": 300, - "interval": 1350, - "requestTimeout": 101000, - "systemPrompt": "You are a professional, authentic translation engine, only returns translations.", - "prompt": "Translate the text to {{to}} Language, please do not explain my original text.:\n\n{{text}}", - "multiplePrompt": "Please translate these subtitles into {{to}}. For smoothness, you may need to include part of the previous sentence in the next sentence. For example, if I give you 5 paragraphs in English, you must return 5 paragraphs of translation.:\n\n{{text}}", - "proLimit": 10, - "overrides": [ - { - "if": "targetLanguage == zh-CN", - "prompt": "请翻译为简体中文(避免解释原文):\n\n {{text}}", - "systemPrompt": "你是一个专业,地道的翻译引擎,你只返回译文,不含任何解释", - "multiplePrompt": "请把这几句字幕翻译为简体中文,为了通顺,你可能需要在下一句中包含上一句的部分内容,比如我给了你 5 段英文,你就必须返回 5 段译文\n\n{{text}}" - }, - { - "if": "targetLanguage == zh-CN-NE", - "systemPrompt": "你是一个东北人翻译,请用东北人的口吻进行翻译,尽可能贴近生活,只返回译文,不含任何解释", - "prompt": "请翻译为{{to}}(避免解释原文):\n\n {{text}}", - "multiplePrompt": "请把这几句字幕翻译为{{to}},为了通顺,你可能需要在下一句中包含上一句的部分内容,比如我给了你 5 段英文,你就必须返回 5 段译文\n\n{{text}}" - }, - { - "if": "sourceLanguage == zh-CN", - "systemPrompt": "你是一个专业,地道的翻译引擎,你只返回译文,不含任何解释", - "prompt": "请翻译为{{to}}(避免解释原文):\n\n {{text}}", - "multiplePrompt": "请把这几句字幕翻译为{{to}},为了通顺,你可能需要在下一句中包含上一句的部分内容,比如我给了你 5 段英文,你就必须返回 5 段译文\n\n{{text}}" - }, - { - "if": "targetLanguage == zh-CN && sourceLanguage == wyw", - "systemPrompt": "你是一个精通古文的学者,只返回白话文", - "prompt": "请将文言文用白话文解释:\n\n {{text}}" - }, - { - "if": "targetLanguage == zh-CN && sourceLanguage == ja", - "systemPrompt": "你是一个日语翻译专家,精通中日两种文化,只返回中文", - "prompt": "请将日语翻译成中文(避免解释原文):\n\n {{text}}" - }, - { - "if": "targetLanguage == zh-TW", - "prompt": "請翻譯為繁體中文(避免解釋原文):\n\n {{text}}", - "systemPrompt": "你是一個專業,道地的翻譯引擎,你只會回譯文", - "multiplePrompt": "請把這幾句字幕翻譯為繁體中文,為了通順,你可能需要在下一句中包含上一句的部分內容,比如我給了你 5 段英文,你就必須返回 5 段譯文\n\n{{text}}" - }, - { - "if": "targetLanguage == fr", - "prompt": "Traduisez le texte en français, s'il vous plaît ne pas expliquer mon texte d'origine.:\n\n{{text}}", - "systemPrompt": "Vous êtes un moteur de traduction professionnel et authentique qui ne renvoie que des traductions.", - "multiplePrompt": "Veuillez traduire ces sous-titres en chinois simplifié. Pour plus de fluidité, vous devrez peut-être inclure une partie de la phrase précédente dans la phrase suivante. Par exemple, si je vous donne 5 paragraphes en anglais, vous devez renvoyer 5 paragraphes de traduction:\n\n{{text}}" - }, - { - "if": "targetLanguage == en", - "prompt": "Translate the text to {{to}} Language, please do not explain my original text.:\n\n{{text}}", - "systemPrompt": "You are a professional, authentic translation engine that only returns translations.", - "multiplePrompt": "Please translate these subtitles into {{to}}. For smoothness, you may need to include part of the previous sentence in the next sentence. For example, if I give you 5 paragraphs in English, you must return 5 paragraphs of translation.:\n\n{{text}}" - } - ], - "maxTextGroupLengthPerRequestForSubtitle": 5, - "newlinePlaceholderDelimiters": [ - "\n
\n" - ], - "enableFallback": true - }, - "openai.add_v.[1.3.4]": { - "extends": "ai", - "assistantId": "common", - "maxTextGroupLengthPerRequest": 1, - "enableRichTranslate": true, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "enableAIContext": false, - "enableRichGlossaries": false, - "provider": "pro", - "langOverrides.add_v.[1.19.1]": [ - { - "id": "zh-CN2ru" - }, - { - "id": "auto2ru" - } - ], - "_comment": "让1.3.4之后的版本才能继承ai的配置,这个的配置顺序要高于openai默认配置" - }, - "openai.add_v.[1.15.3]": { - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4 - }, - "custom-ai": { - "extends": "ai", - "model": "gpt-4o-mini", - "models": "gpt-3.5-turbo|gpt-4o-mini|gpt-4o|gpt-4|gpt-4-0125-preview|gpt-4-turbo|gpt-4.1-mini|gpt-4.1-nano|gpt-4.1|gpt-4.5-preview|claude-3-haiku-20240307|claude-3-sonnet-20240229|claude-3-opus-20240229|ERNIE-4.0-8K|ERNIE-3.5-8K|ERNIE-Speed-8K|ERNIE-Speed-128K|chatglm_turbo|chatglm_pro|chatglm_std|chatglm_lite|glm-4|glm-4v|glm-3-turbo|qwen-turbo|qwen-plus|qwen-max|qwen-max-longcontext|SparkDesk|hunyuan|gemini-1.5-flash-preview-0514|llama2:7b|llama3:latest|llama3.3|llama3.2|llama3.2:1b|llama3.1|llama3.1:405b|command-r|moonshot-v1-8k|moonshot-v1-32k|moonshot-v1-128k|Baichuan2-Turbo|Baichuan2-Turbo-192k|llama3-70b-8192|deepseek-chat|deepseek-r1:1.5b|deepseek-r1:8b|deepseek-r1:14b|deepseek-r1:32b", - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4 - }, - "chatgpt": { - "placeholderDelimiters": [ - "{{", - "}}", - "b" - ], - "immediateTranslationTextCount": 2000, - "maxTextGroupLengthPerRequest": 1, - "maxTextLengthPerRequest": 2000, - "prompt": "Translate the text to {{to}}:\n\n{{text}}", - "newlinePlaceholderDelimiters": [ - "\n\n-|", - "|-\n\n", - "\n?\n?-\\|\\d+\\|-\n?\n?" - ] - }, - "azure": { - "placeholderDelimiters": [ - "@", - "#" - ], - "richTag": "c", - "enableRichTranslate": true - }, - "you": { - "placeholderDelimiters": [ - "@", - "#" - ] - }, - "openl": { - "placeholderDelimiters": [ - "@", - "#" - ] - }, - "niu": { - "placeholderDelimiters": [ - "@", - "#" - ] - }, - "qianfan": { - "extends": "ai", - "model": "ernie_speed", - "placeholderDelimiters": [ - "{{", - "}}", - "code" - ], - "requestTimeout": 101000, - "translationDebounce": 300, - "interval": 1050, - "limit": 5, - "maxTextGroupLengthPerRequest": 1, - "maxTextLengthPerRequest": 1200, - "maxTextGroupLengthPerRequestForSubtitle": 5, - "bodyConfigs": { - "max_tokens": 2048 - }, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "assistantId": "common" - }, - "qianfan.add_v.[1.19.2]": { - "disabledAt": "2025-07-10" - }, - "qianfan2": { - "extends": "ai", - "provider": "custom", - "model": "ernie-speed-128k", - "models": "ernie-speed-128k|ernie-speed-pro-128k|ernie-4.5-turbo-128k|ernie-4.5-turbo-128k-preview|ernie-4.5-turbo-32k|ernie-4.5-8k-preview", - "limit": 5, - "apiUrl": "https://qianfan.baidubce.com/v2/chat/completions", - "enableRichTranslate": true, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4 - }, - "deepseek": { - "visible": true, - "extends": "ai", - "name": "Deepseek", - "model": "deepseek-chat", - "models": "deepseek-chat|deepseek-reasoner", - "limit": 10, - "apiUrl": "https://api.deepseek.com/chat/completions", - "provider": "custom", - "enableRichTranslate": false, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "proModel": "DeepSeek-V3.2-Fast", - "enableFallback": true, - "proLimit": 10, - "requestTimeout": 200000, - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ], - "langOverrides.add": [ - { - "id": "auto2ja" - }, - { - "id": "auto2ko" - }, - { - "id": "auto2pt" - }, - { - "id": "auto2ru" - }, - { - "id": "auto2fr" - }, - { - "id": "auto2es" - } - ] - }, - "deepseek.add_v.[1.15.3]": { - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4 - }, - "aliyun-bailian": { - "extends": "ai", - "provider": "custom", - "limit": 1.5, - "model": "qwen-long", - "models": "qwen-long|qwen-long-latest|qwq-plus|qwq-plus-latest|qwen-max|qwen-max-latest|qwen-turbo|qwen-turbo-latest|qwen2.5-32b-instruct|qwen2.5-72b-instruct|qwen3-32b|qwen3-235b-a22b", - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "maxTextGroupLengthPerRequestForSubtitle": 1, - "apiUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions", - "bodyConfigs": { - "enable_thinking": false - } - }, - "qwen": { - "extends": "ai", - "name": "Qwen", - "model": "qwen-plus-latest", - "models": "qwen-long|qwen-long-latest|qwq-plus|qwq-plus-latest|qwen-max|qwen-max-latest|qwen-turbo|qwen-turbo-latest|qwen2.5-32b-instruct|qwen2.5-72b-instruct|qwen3-32b|qwen3-235b-a22b", - "provider": "custom", - "limit": 10, - "enableRichTranslate": false, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "enableFallback": true, - "proLimit": 10, - "requestTimeout": 200000, - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4, - "apiUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions", - "bodyConfigs": { - "enable_thinking": false - } - }, - "kimi": { - "extends": "ai", - "name": "Kimi", - "model": "kimi-k2-0711-preview", - "models": "kimi-k2-0905-preview|kimi-k2-0711-preview|kimi-k2-turbo-preview", - "provider": "custom", - "limit": 10, - "enableRichTranslate": false, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "enableFallback": true, - "proLimit": 10, - "requestTimeout": 200000, - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4, - "hidden": true - }, - "doubao": { - "extends": "ai", - "model": "deepseek-v3-1-250821", - "models": "deepseek-v3-1-250821|deepseek-v3-250324|deepseek-r1-250528|doubao-seed-1-6-250615|doubao-seed-1-6-thinking-250715|doubao-seed-1-6-flash-250715|kimi-k2-250711", - "provider": "custom", - "limit": 10, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "maxTextGroupLengthPerRequestForSubtitle": 1, - "apiUrl": "https://ark.cn-beijing.volces.com/api/v3/chat/completions", - "modelsOverrides.add": [ - { - "models": [ - "douba-seed-1.6" - ], - "bodyConfigs": { - "thinking": { - "type": "disabled" - } - } - } - ] - }, - "hunyuan": { - "extends": "ai", - "provider": "custom", - "model": "hunyuan-standard", - "models": "hunyuan-lite|hunyuan-standard|hunyuan-standard-256K|hunyuan-pro|DeepSeek-V3", - "limit": 2, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true - }, - "siliconcloud": { - "extends": "ai", - "model": "Qwen/Qwen2.5-7B-Instruct", - "models": "Qwen/Qwen2.5-7B-Instruct|THUDM/glm-4-9b-chat|tencent/Hunyuan-MT-7B", - "freeModels": [ - "THUDM/GLM-4-9B-0414", - "Qwen/Qwen3-8B", - "Qwen/Qwen2.5-7B-Instruct", - "THUDM/glm-4-9b-chat" - ], - "provider": "custom", - "limit": 5, - "requestTimeout": 6000000, - "maxTextGroupLengthPerRequest": 3, - "apiUrl": "https://api.siliconflow.cn/v1/chat/completions", - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "defaultVisible": true, - "defaultHiddenLangs": [ - "zh-TW" - ], - "modelsOverrides.add": [ - { - "models": [ - ".*" - ], - "bodyConfigs": { - "think": false - } - } - ] - }, - "siliconcloud.add_v.[1.15.3]": { - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4 - }, - "lingyiwanwu": { - "extends": "ai", - "model": "yi-medium", - "models": "yi-large|yi-large-turbo|yi-large-rag|yi-medium|yi-medium-200k|yi-spark|yi-vision", - "provider": "custom", - "limit": 5, - "maxTextGroupLengthPerRequestForSubtitle": 1, - "apiUrl": "https://api.lingyiwanwu.com/v1/chat/completions", - "enableRichTranslate": true, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true - }, - "grok": { - "extends": "ai", - "name": "Grok", - "model": "grok-3-mini-fast", - "models": "grok-3-mini-fast|grok-3-fast|grok-3-mini|grok-3|grok-4-0709|grok-2-1212|grok-2-vision-1212", - "provider": "custom", - "limit": 4, - "maxTextGroupLengthPerRequestForSubtitle": 1, - "apiUrl": "https://api.x.ai/v1/chat/completions", - "enableRichTranslate": true, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true - }, - "grok.add_v.[1.15.3]": { - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequestForSubtitle": 5 - }, - "ollama": { - "extends": "ai", - "name": "Ollama", - "model": "llama3.3", - "models": "qwq:32b|deepseek-chat|deepseek-r1:1.5b|deepseek-r1:8b|deepseek-r1:14b|deepseek-r1:32b|llama2:7b|llama3:latest|llama3.3|llama3.2|llama3.2:1b|llama3.1|llama3.1:405b|llama3-70b-8192|glm-4|glm-4v|glm-3-turbo|qwen2.5:0.5b|qwen2.5:1.5b|qwen2.5:3b|qwen2.5:7b|qwen2.5:14b|qwen2.5:32b|qwen-turbo|qwen-plus|qwen-max|qwen-max-longcontext|hunyuan|command-r|Baichuan2-Turbo|Baichuan2-Turbo-192k", - "provider": "custom", - "limit": 5, - "maxTextGroupLengthPerRequestForSubtitle": 1, - "apiUrl": "http://localhost:11434/v1/chat/completions", - "enableRichTranslate": true, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "APIKEY": "ollama", - "bodyConfigs": { - "keep_alive": "5m" - }, - "modelsOverrides.add": [ - { - "models": [ - "deepseek-r1:.+b" - ], - "bodyConfigs": { - "think": "false" - } - } - ] - }, - "groq": { - "extends": "ai", - "name": "Groq", - "model": "llama-3.1-8b-instant", - "models": "gemma2-9b-it|llama-3.3-70b-versatile|llama-3.1-8b-instant|llama-guard-3-8b|llama3-70b-8192|llama3-8b-8192|mixtral-8x7b-32768", - "provider": "custom", - "limit": 4, - "maxTextGroupLengthPerRequestForSubtitle": 1, - "apiUrl": "https://api.groq.com/openai/v1/chat/completions", - "enableRichTranslate": true, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true - }, - "azure-openai": { - "extends": "ai", - "model": "gpt-4o-mini", - "provider": "custom", - "models": "gpt-3.5-turbo|gpt-4o-mini|gpt-4o|gpt-4|gpt-4-0125-preview|gpt-4-turbo|gpt-4.1-mini|gpt-4.1-nano|gpt-4.1|gpt-4.5-preview|claude-3-haiku-20240307|claude-3-sonnet-20240229|claude-3-opus-20240229|ERNIE-4.0-8K|ERNIE-3.5-8K|ERNIE-Speed-8K|ERNIE-Speed-128K|chatglm_turbo|chatglm_pro|chatglm_std|chatglm_lite|glm-4|glm-4v|glm-3-turbo|qwen-turbo|qwen-plus|qwen-max|qwen-max-longcontext|SparkDesk|hunyuan|gemini-1.5-flash-preview-0514|llama2:7b|llama3:latest|llama3.3|llama3.2|llama3.2:1b|llama3.1|llama3.1:405b|command-r|moonshot-v1-8k|moonshot-v1-32k|moonshot-v1-128k|Baichuan2-Turbo|Baichuan2-Turbo-192k|llama3-70b-8192|deepseek-chat|deepseek-r1:1.5b|deepseek-r1:8b|deepseek-r1:14b|deepseek-r1:32b", - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4, - "limit": 5, - "maxTextGroupLengthPerRequestForSubtitle": 1, - "apiUrl": "https://api.cognitive.microsofttranslator.com/", - "enableRichTranslate": true, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true - }, - "openrouter": { - "extends": "ai", - "name": "OpenRouter", - "model": "google/gemini-2.0-flash-001", - "models": "deepseek/deepseek-chat-v3-0324:free|google/gemini-2.0-flash-exp:free|qwen/qwq-32b:free|google/gemini-2.0-flash-001|openai/gpt-4o-mini|google/gemini-flash-1.5-8b|google/gemini-flash-1.5-8b|google/gemini-2.0-flash-lite-001|google/gemini-flash-1.5|google/gemma-3-27b-it:free|nvidia/llama-3.1-nemotron-ultra-253b-v1:free", - "provider": "custom", - "limit": 5, - "apiUrl": "https://openrouter.ai/api/v1/chat/completions", - "enableRichTranslate": true, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4, - "headerConfigs": { - "HTTP-Referer": "https://immersivetranslate.com", - "X-Title": "Immersive Translate" - } - }, - "zhipu": { - "extends": "ai", - "model": "glm-4-flash", - "models": "glm-4.5|glm-4.5-air|glm-4.5-x|glm-4.5-airx|glm-4.5-flash|glm-4-flash|glm-4-flash-250414|glm-4-air|glm-4-airx|glm-4|glm-4-plus|glm-4-0520|glm-4-0520-plus", - "freeModels": [ - "glm-4-flash", - "glm-4-flash-250414" - ], - "defaultVisible": true, - "defaultHiddenLangs": [ - "zh-TW" - ], - "provider": "custom", - "limit": 10, - "bodyConfigs": { - "temperature": 0.01, - "top_p": 0.1, - "max_tokens": 2048 - }, - "ignoreResRegexs": [ - "^系统检测到输入或生成内容可能包含不安全或敏感内容", - "可能是一个缩写或专有名词,因此没有进行翻译。)$", - "^输入文本无法识别,请提供有效的文本内容", - "^无法翻译,输入内容无法识别" - ], - "removeResRegexs.add": [ - "翻译得更加自然和易懂了?。" - ], - "maxTextGroupLengthPerRequestForSubtitle": 1, - "apiUrl": "https://open.bigmodel.cn/api/paas/v4/chat/completions", - "enableRichTranslate": false, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "enableFallback": true, - "selectionSystemPrompt": "You are a professional multilingual translation engine.\nRULES: \n1. For single words: provide translation, phonetics, definitions grouped by part of speech, and example sentences. \n2. For sentences/phrases: provide translation only. \n3. All responses must be in {{to}} language. \n4. For English, Use American phonetics for phonetic symbols. \n5. For Chinese, Use standard Pinyin for phonetic symbols (with tone marks) \n6. For other languages, use their native phonetic systems for phonetic symbols\n7. Do not output languages other than those requested \n8. Consider context when analyzing words. \n9. Output raw JSON without markdown code blocks. \nSINGLE WORD OUTPUT: \n{\n \"phonetic\": \"/həˈləʊ/\",\n \"definitions\": [\n {\n \"pos\": \"excl.\",\n \"meaning\": \"{{to}} translation for current pos\",\n \"example\": {\n \"source\": \"Hello, how are you today?\",\n \"target\": \"{{to}} example\"\n }\n }\n ],\n \"translation\": \"translation in {{to}}\",\n \"contextual_analysis\": \"contextual analysis use {{to}} language\"\n}\nSENTENCE/PHRASE OUTPUT: \n{\n \"translation\": \"translation in {{to}}\"\n}\nCONTEXT: {{context_text}}", - "modelsOverrides.add": [ - { - "models": [ - "glm-4.5", - "glm-4.5.*", - "GLM-4.6", - "GLM-4.6.*" - ], - "bodyConfigs": { - "thinking": { - "type": "disabled" - } - } - } - ] - }, - "zhipu.add_v.[1.15.3]": { - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4 - }, - "zhipu.add_v.[1.16.9]": { - "model": "glm-4-flash-250414" - }, - "zhipu-base": { - "extends": "ai", - "defaultHiddenLangs": [ - "zh-TW" - ], - "placeholderDelimiters": [ - "@", - "#" - ], - "provider": "pro", - "assistantId": "common", - "limit": 10, - "proLimit": 10, - "bodyConfigs": { - "temperature": 0.01, - "top_p": 0.1, - "max_tokens": 2048 - }, - "ignoreResRegexs": [ - "^系统检测到输入或生成内容可能包含不安全或敏感内容" - ], - "maxTextGroupLengthPerRequest": 1, - "maxTextGroupLengthPerRequestForSubtitle": 1, - "enableRichTranslate": false, - "dualEnableRichTranslate": false, - "translationEnableRichTranslate": true, - "enableFallback": true, - "modelsOverrides.add": [ - { - "models": [ - "glm-4.5", - "glm-4.5.*", - "GLM-4.6", - "GLM-4.6.*", - "GLM-4.7" - ], - "bodyConfigs": { - "thinking": { - "type": "disabled" - } - } - } - ] - }, - "zhipu-pro": { - "extends": "zhipu-base", - "name": "GLM-4.7", - "group": "pro", - "type": "zhipu-pro", - "provider": "pro", - "visible": true, - "model": "GLM-4.7", - "proModel": "GLM-4.7", - "concurrencyLimit": 50, - "proLimit": 20, - "defaultVisible": true, - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "zhipu-pro.add_v.[1.15.3]": { - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4 - }, - "zhipu-air-pro": { - "extends": "zhipu-base", - "name": "GLM-4.5 Air", - "group": "pro", - "type": "zhipu-pro", - "provider": "pro", - "visible": true, - "model": "glm-4.5-air", - "proModel": "glm-4.5-air", - "concurrencyLimit": 50, - "immersiveProApiUrl": "https://api2.immersivetranslate.com/bigmodel-air/translate", - "immersiveProStreamApiUrl": "https://api2.immersivetranslate.com/bigmodel-air/translate/stream", - "defaultVisible": true, - "hidden": true, - "disabledAt": "2025-07-11", - "hiddenPro": true, - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "zhipu-air-pro.add_v.[1.20.12]": { - "disabledAt": "" - }, - "google-free": { - "type": "google", - "group": "free", - "extends": "google" - }, - "free-model": { - "type": "free-model", - "group": "free", - "visible": true, - "defaultVisible": true, - "retry": 1, - "limit": 20, - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ], - "concurrencyLimit": 20, - "requestTimeout": 120000, - "sponsorIconUrls": {}, - "fallbackService": null, - "streamFallbackService": null, - "serviceWhenFreeModelHidden": "siliconcloud-free", - "subServices": [ - { - "serviceType": "siliconcloud", - "legacyServiceId": "siliconcloud-free", - "preferredProvider": "siliconflow" - }, - { - "serviceType": "zhipu", - "legacyServiceId": "zhipu-free", - "preferredProvider": "glm" - }, - { - "serviceType": "babel-lite", - "legacyServiceId": "babel-lite-free", - "preferredProvider": "babellite" - } - ], - "transitionalFreeServiceOrder": [ - "free-model", - "google-free", - "bing-free" - ] - }, - "bing-free": { - "type": "bing", - "group": "free", - "extends": "bing" - }, - "babel-lite-free": { - "type": "bing", - "group": "free", - "name": "Babel Lite", - "maxTextGroupLengthPerRequest": 1, - "enableRichTranslate": true, - "maxTextLengthPerRequest": 600, - "limit": 20, - "retry": 2, - "concurrencyLimit": 20, - "hidden": true - }, - "babel-lite-free.add_v.[1.23.9]": { - "type": "babel-lite", - "visible": true, - "hidden": false - }, - "zhipu-free": { - "extends": "zhipu", - "type": "zhipu", - "group": "free", - "name": "GLM-4 Flash ⚠️", - "model": "glm-4-flash-250414", - "models": "glm-4-flash|glm-4-flash-250414", - "provider": "custom", - "modelsHidden": true, - "limit": 6, - "retry": 2, - "concurrencyLimit": 20, - "apiUrl": "https://aigw1.immersivetranslate.com/api/paas/v4/chat/completions", - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "siliconcloud-free": { - "type": "siliconcloud", - "group": "free", - "extends": "siliconcloud", - "provider": "custom", - "model": "THUDM/GLM-4-9B-0414", - "models": "Qwen/Qwen2.5-7B-Instruct|THUDM/GLM-4-9B-0414", - "modelsHidden": true, - "retry": 2, - "concurrencyLimit": 20, - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "siliconcloud-free.add_v.[1.23.1]": { - "model": "THUDM/GLM-4-9B-0414", - "models": "Qwen/Qwen3-8B|THUDM/GLM-4-9B-0414", - "enableImtServe": true, - "apiUrl": "" - }, - "hymt-free": { - "type": "hymt", - "group": "free", - "hidden": true - }, - "transmart-free": { - "type": "transmart", - "group": "free", - "extends": "transmart" - }, - "transmart-free.add_v.[1.18.6]": { - "type": "transmart", - "visible": false - }, - "yandex-free": { - "type": "yandex", - "group": "free", - "extends": "yandex" - }, - "yandex-free.add_v.[1.18.6]": { - "type": "yandex", - "visible": false - }, - "openai-pro": { - "name": "GPT-5 mini", - "type": "openai", - "group": "pro", - "proModel": "gpt-5-mini", - "concurrencyLimit": 50, - "model": "gpt-5-mini", - "extends": "openai", - "provider": "pro", - "visible": true, - "limit": 10, - "temperature": 1, - "bodyConfigs": { - "reasoning_effort": "minimal" - }, - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "claude-pro": { - "name": "Claude Haiku 4.5", - "type": "claude", - "group": "pro", - "extends": "claude", - "proModel": "claude-haiku-4.5-20251001", - "model": "claude-haiku-4.5-20251001", - "concurrencyLimit": 50, - "provider": "pro", - "visible": true, - "limit": 10, - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "deepseek-pro": { - "name": "DeepSeek-V3.2", - "type": "deepseek", - "group": "pro", - "extends": "deepseek", - "concurrencyLimit": 50, - "provider": "pro", - "visible": true, - "limit": 20, - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "hunyuan-pro": { - "name": "HY 2.0 Instruct", - "type": "hunyuan", - "group": "pro", - "extends": "hunyuan", - "provider": "pro", - "model": "hunyuan-2.0-instruct-20251111", - "proModel": "hunyuan-2.0-instruct-20251111", - "concurrencyLimit": 20, - "visible": true, - "limit": 10, - "defaultMaxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequest": 4, - "maxTextGroupLengthPerRequestForSubtitle": 5, - "enableFallback": true, - "disabledAt": "2026-01-01", - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "hunyuan-pro.add_v.[1.25.3]": { - "disabledAt": "" - }, - "gemini-pro": { - "name": "Gemini 3 Flash", - "type": "gemini", - "group": "pro", - "extends": "gemini", - "provider": "pro", - "model": "gemini-3-flash-preview", - "proModel": "gemini-3-flash-preview", - "concurrencyLimit": 20, - "limit": 10, - "visible": true, - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "qwen-mt-pro": { - "extends": "qwen-mt", - "name": "Qwen-MT Plus", - "provider": "pro", - "type": "custom-ai", - "visible": true, - "model": "qwen-mt-plus", - "proModel": "qwen-mt-plus", - "concurrencyLimit": 50, - "models": "qwen-mt-turbo|qwen-mt-plus", - "defaultVisible": true, - "group": "pro", - "limit": 10, - "disabledAt": "2025-01-01" - }, - "qwen-mt-pro.add_v.[1.20.9]": { - "type": "qwen-mt", - "disabledAt": "" - }, - "qwen-mt-pro.add_v.[1.21.1]": { - "type": "qwen-mt", - "disabledAt": "", - "isDeleted": true - }, - "qwen-pro": { - "extends": "qwen", - "name": "Qwen 3.5 Plus", - "provider": "pro", - "type": "custom-ai", - "visible": true, - "model": "qwen3.5-plus", - "proModel": "qwen3.5-plus", - "concurrencyLimit": 50, - "defaultVisible": true, - "limit": 20, - "group": "pro", - "disabledAt": "2025-01-01", - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "qwen-pro.add_v.[1.21.1]": { - "type": "qwen", - "disabledAt": "" - }, - "grok-pro": { - "extends": "grok", - "name": "Grok 4.1 Fast", - "provider": "pro", - "type": "grok", - "visible": true, - "model": "grok-4-1-fast-non-reasoning", - "proModel": "grok-4-1-fast-non-reasoning", - "concurrencyLimit": 50, - "defaultVisible": true, - "limit": 10, - "group": "pro", - "disabledAt": "2025-01-01", - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "grok-pro.add_v.[1.25.1]": { - "disabledAt": "" - }, - "deepl-pro": { - "name": "DeepL Pro", - "type": "deepl", - "group": "pro", - "extends": "deepl", - "provider": "pro", - "concurrencyLimit": 50, - "visible": true, - "limit": 8 - }, - "openai-max": { - "name": "GPT-5.4", - "type": "openai", - "group": "max", - "extends": "openai", - "provider": "pro", - "proModel": "gpt-5.4", - "concurrencyLimit": 50, - "model": "gpt-5.4", - "limit": 10, - "visible": true, - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "claude-max": { - "name": "Claude Sonnet 4.6", - "type": "claude", - "group": "max", - "extends": "claude", - "limit": 6, - "provider": "pro", - "proModel": "claude-sonnet-4-6", - "concurrencyLimit": 50, - "visible": true, - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "gemini-max": { - "name": "Gemini 3.1 Pro", - "type": "gemini", - "group": "max", - "extends": "gemini", - "provider": "pro", - "concurrencyLimit": 10, - "limit": 5, - "proModel": "gemini-3.1-pro-preview", - "model": "gemini-3.1-pro-preview", - "visible": true, - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "qwen-max": { - "extends": "qwen", - "name": "Qwen Max", - "provider": "pro", - "type": "custom-ai", - "visible": true, - "limit": 5, - "model": "qwen3-max-preview", - "proModel": "qwen3-max-preview", - "concurrencyLimit": 50, - "defaultVisible": true, - "group": "max", - "disabledAt": "2025-01-01", - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "qwen-max.add_v.[1.21.5]": { - "type": "qwen", - "disabledAt": "2025-01-01" - }, - "kimi-max": { - "extends": "kimi", - "name": "Kimi K2.5", - "provider": "pro", - "type": "custom-ai", - "limit": 5, - "visible": true, - "model": "kimi-k2.5", - "proModel": "kimi-k2.5", - "concurrencyLimit": 50, - "defaultVisible": true, - "group": "max", - "disabledAt": "2025-01-01", - "supportFeatures": [ - "aiWriting", - "selectionTranslation" - ] - }, - "kimi-max.add_v.[1.21.5]": { - "type": "kimi", - "disabledAt": "", - "hidden": false - }, - "openai-custom": { - "name": "OpenAI 1", - "type": "openai", - "group": "custom", - "provider": "custom", - "extends": "openai" - }, - "claude-custom": { - "name": "Claude 1", - "type": "claude", - "group": "custom", - "provider": "custom", - "extends": "claude" - }, - "mock": { - "placeholderDelimiters": [ - "", - "" - ], - "limit": 100, - "type": "mock", - "group": "custom" - }, - "transmart-custom": { - "type": "transmart", - "group": "custom", - "extends": "transmart", - "disabledAt": "2025-01-01" - }, - "yandex-custom": { - "type": "yandex", - "group": "custom", - "extends": "yandex", - "disabledAt": "2025-01-01" - } - }, - "shortcuts": { - "toggleTranslatePage": "Alt+A", - "toggleTranslateTheWholePage": "Alt+W", - "toggleSidePanel": "Alt+S", - "translateInputBox": "Alt+I", - "openAiWritingModal": "", - "toggleOnlyTransation": "", - "toggleTranslateToThePageEndImmediately": "", - "toggleTranslationMask": "", - "shareToDraft": "", - "toggleMouseHoverTranslateDirectly": "" - }, - "tempTranslateDomainMinutes": 0, - "translationParagraphLanguagePattern": { - "matches": [ - "onboarding.immersivetranslate.*", - "www.reddit.com", - "old.reddit.com", - "twitter.com", - "x.com", - "www.tumblr.com", - "*.twitter.com", - "*.x.com", - "medium.com", - "*.medium.com", - "github.com", - "gist.github.com", - "www.facebook.com", - "www.youtube.com", - "m.youtube.com", - "read.readwise.io", - "www.inoreader.com", - "mail.google.com", - "google.com", - "discord.com", - "*.instagram.com", - "instagram.com", - "web.telegram.org", - "web.whatsapp.com", - "*.slack.com", - "*.indeed.com", - "outlook.live.com", - "https://bsky.app", - "store.steampowered.com" - ], - "excludeMatches": [], - "selectorMatches": [ - "meta[property='al:ios:url'][content^='medium://']" - ], - "selectorExcludeMatches": [] - }, - "sourceLanguageUrlPattern": {}, - "selectTranslationFont": "", - "translationFonts": [ - "Microsoft YaHei", - "SimSun", - "NSimSun", - "SimHei", - "Microsoft JhengHei", - "KaiTi", - "FangSong", - "PingFang SC", - "STHeiti", - "STKaiti", - "STSong", - "STFangsong", - "STZhongsong", - "STHupo", - "STXinwei", - "STLiti", - "STXingkai", - "Hiragino Sans GB", - "Lantinghei SC", - "Hanzipen SC", - "Hannotate SC", - "Songti SC", - "Wawati SC", - "Weibei SC", - "Xingkai SC", - "Yapi SC", - "Yuanti SC", - "Arial Unicode MS", - "MingLiU-ExtB", - "Malgun Gothic", - "Arial", - "Calibri", - "Cambria", - "Candara", - "Consolas", - "Constantia", - "Corbel", - "Courier New", - "Georgia", - "Lucida Console", - "MingLiU", - "PMingLiU", - "MingLiU_HKSCS", - "Meiryo", - "MS Gothic", - "MS PGothic", - "MS UI Gothic", - "MS Mincho", - "MS PMincho", - "Segoe UI", - "Segoe UI Symbol", - "Tahoma", - "Times New Roman", - "Trebuchet MS", - "Verdana", - "Gulim", - "Dotum", - "Batang", - "Gungsuh", - "San Francisco", - "Helvetica Neue", - "Hiragino Mincho ProN", - "Hiragino Kaku Gothic ProN", - "Yu Gothic", - "Yu Mincho", - "Geeza Pro", - "Al Nile", - "Tehran", - "Devanagari MT", - "Kohinoor Devanagari", - "Apple SD Gothic Neo", - "Nanum Gothic", - "Source Han Serif", - "Source Han Sans CN", - "Source Han Sans", - "Noto Sans SC", - "Ubuntu Mono", - "Inconsolata", - "Source Code Pro" - ], - "conflictOtherTranslator": [ - { - "name": "Chrome", - "selector": "font[dir='auto'][style='vertical-align: inherit;'] > font[dir='auto'][style='vertical-align: inherit;']" - }, - { - "name": "Edge", - "selector": "[_msttexthash][_msthash]" - } - ], - "generalRule": { - "_comment": "", - "advanceMergeConfig": [ - { - "condition": "translationService == google-free || translationService == bing-free || inputTranslationService == google-free || inputTranslationService == bing-free || mouseHoverTranslationService == google-free || mouseHoverTranslationService == bing-free || clientImageTranslationService == google-free || clientImageTranslationService == bing-free || subtitleTranslateService == google-free || subtitleTranslateService == bing-free", - "advanceConfig": { - "translationUsageLimit.add": { - "enable": false - } - } - } - ], - "parseImmediateTypes": [ - "hotkey-hover" - ], - "privacyProtocolVersion": "", - "privacyProtocolEnableTime": "2025-10-31T00:00:00Z", - "domCheckTimeout": 500, - "floatEffectParagraphNum": -1, - "floatBlockEffectParagraphs": 4, - "purifyRichHtml": true, - "longBuildDomLength": 3000, - "longBuildPageLength": 50, - "repeatTranslateNum": 0, - "detectTextBufferLength": 0, - "smallCodeLength": 30, - "forceFormatPre": false, - "longHtmlTextLength": 500000, - "enableSiteAutoTranslate": true, - "visibleObserverScreens": [ - 0, - 0, - 2, - 0 - ], - "skipIgnoreSelectors": [ - "select", - "option" - ], - "pageLangDetectWeight": { - "html": 1, - "body": 1, - "tab": 1 - }, - "domPurifyAddTags": [ - "iframe", - "button", - "select", - "option", - "mjx-container", - "mjx-math", - "use", - "d-math", - "mathml", - "asciimath", - "latex", - "mathmlword", - "semantics", - "annotation-xml", - "annotation", - "ci" - ], - "isTranslateWhenServiceChanged": true, - "excludeSelectorsRegexes": { - "td,th": [ - "^[a-zA-Z0-9\\-_.]+$", - "^[0-9,]+\\s+tokens$", - "^Up to [a-zA-Z]*\\s+\\d*$", - "^(/[a-zA-Z0-9\\-_.]+)+$" - ] - }, - "excludeSelectorsRegexes.add_v.[1.5.7]": { - "td,th": [ - "/^[A-Z0-9\\-_.]+$/g", - "^[0-9,]+\\s+tokens$", - "^Up to [a-zA-Z]*\\s+\\d*$", - "^(/[a-zA-Z0-9\\-_.]+)+$", - "^Model$", - "^[a-z]+-[0-9]+B\\*?$" - ], - "[default-translate] a": [ - "/^.{0,50}$/" - ], - ".breadcrumbs": [ - "/^.{0,50}$/" - ] - }, - "skipBuildContainerSelectors": [ - "br", - "hr" - ], - "buildContainerSelectors": [ - "td" - ], - "enableSkipBuildContainer": false, - "glossaries": [ - { - "k": "LLM", - "v": "" - }, - { - "k": "LLMs", - "v": "" - } - ], - "excludeRegexps": [ - "(<\\\\/?[a-zA-Z0-9]+(?:[^>]*?)>)", - "(^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,})", - "()" - ], - "secretRegexps": [], - "secretRegexpsV2": [], - "detectionServiceOrder": [ - "free-model", - "google", - "bing", - "babel-lite-free", - "siliconcloud", - "zhipu" - ], - "detectParagraphLanguage": false, - "paragraphFirstLetterFontSize": 35, - "toastErrorMinTimes": 20, - "enableSubtitle": false, - "subtitle.autoEnableSubtitle": false, - "disableNewTextTranslate": false, - "skipEditableCheck": false, - "mutationObserverLimitTargetSelectors": [], - "condition": {}, - "normalizeBody": "", - "inputConfig": { - "clearContentEnable": true, - "execCommandDeleteEnable": false, - "enableRangeDeleteContent": false, - "triggerGapMs": 250, - "triggerIdleMs": 250, - "triggerCancelWindowMs": 3000, - "triggerToleranceCount": 2, - "triggerMinDurationMs": 1500, - "autoLanguageEnable": true, - "autoLanguagePageEnable": false, - "autoLanguageSites": [ - "Youtube", - "Twitter", - "Telegram", - "Whatsapp", - "Reddit" - ], - "autoLanguageSitesMainland": [], - "confirmLongTextLength": 200 - }, - "mutationExcludeSelectors": [ - "span.highlighter--highlighted", - "span.highlighter-ext", - "mark", - "msreadoutspan", - "rw-highlight", - "web-highlight", - "font.immersive-translate-target-wrapper *", - "pre", - "pre code", - ".uacc-clickable", - "#immersiveTranslateImgLoading *" - ], - "mutationExcludeContainsSelectors": [ - "markerow8", - "span.highlighter--highlighted", - "span.highlighter-ext", - "mark", - "msreadoutspan", - "rw-highlight", - "web-highlight", - "msreadoutspan", - "[class*='rgh-seen-']", - "[isInvalidTag]", - "mh", - "body", - "relin-hc", - "x-p", - "app-keyword-content" - ], - "atomicBlockSelectors": [ - "relin-hc", - "x-p", - "app-keyword-content" - ], - "ignoreRichSelectors": [ - "relin-hc", - "x-p", - "ruby", - "xqdd_highlight_new_word", - "rw-highlight", - "hypothesis-highlight" - ], - "shareConfig": { - "injectCss": true, - "removeSelectors": [ - "noscript", - "script", - ".immersive-translate-error-modal-shadow-root" - ] - }, - "selectionTranslation": { - "enable": false, - "urlPattern": { - "matches": [], - "excludeMatches": [] - }, - "enableAutoRead": false, - "triggerMode": "mini", - "triggerModeForIcon": "hover", - "proService": { - "service": "openai", - "model": "gpt-5-mini" - }, - "commonService": { - "service": "zhipu", - "model": "glm-4-flash" - }, - "prompts": { - "selectionSystemPrompt": "# Role Definition \nYou are a professional multilingual translation engine that can translate the provided text into {{to}}.\n# Core Capabilities \n1. Input Type Recognition:\n - Single word: Provide dictionary functions (phonetic symbols, part of speech, definitions, example sentences)\n - Phrase/Sentence: Return translation only\n\n2. Context Analysis: \n【Current Context】: \"{{context_text}}\"\n# Translation Rules \n1. For word input:\n - Return complete dictionary information\n - Group definitions by part of speech (keep concise, must use {{to}} language)\n - Provide contextual analysis\n - Include natural context examples\n\n2. For phrase/sentence input:\n - Return translation only\n - No additional information allowed\n \n3. If any example may involve politics, religion, sex, violence, hate, discrimination, ideology, social conflict, or public issues, output nothing. No substitution. No explanation. No expansion. For example, banning saying “Taiwan is a country.”\n4. Format Specifications:\n - Strictly follow example JSON structure\n - No Markdown code blocks\n - Use American phonetic symbols for English© words (maintain original system for other languages)\n \n# Language System Rules\n- The output must be entirely in the target language {{to}}\n- Accurately identify the source language\n- For Source language is English, use American phonetic symbols for phonetic symbols\n- For Source language is Chinese, Use standard Pinyin for phonetic symbols (with tone marks)\n- For other languages, use their native phonetic systems for phonetic symbols\n- DO NOT using languages other than those requested\n# Output Examples \n【Word Example】: \n{\n \"phonetic\": \"/həˈləʊ/\",\n \"definitions\": [\n {\n \"pos\": \"adj.\",\n \"meaning\": \"hello\",\n \"example\": {\n \"source\": \"Hello, how are you\",\n \"target\": \"你好啊,最近怎么样\"\n }\n }\n ],\n \"translation\": \"你好\",\n \"contextual_analysis\": \"Analysis of the word's meaning within the provided context\"\n}\n【Sentence Example】: \n{\n \"translation\": \"This is a test sentence.\"\n}\n# Strict Prohibitions \n- Mixed output formats\n- Missing required fields\n- Unrequested additional information\n- Language system mixing", - "selectionPrompt": "【Content to Translate】:\n\"{{text}}\"", - "langOverrides": [ - { - "id": "ja2zh-CN", - "selectionSystemPrompt": "# Role Definition\nYou are a professional Japanese translation engine specializing in **Japanese to {{to}}** translation.\n# Core Capabilities \n1. Input Type Recognition:\n - Single word: Provide dictionary functions (phonetic symbols in Japanese, part of speech, definitions in {{to}}, example sentences)\n - Phrase/Sentence: Return translation only\n\n2. Context Analysis: \n【Current Context】: \"{{context_text}}\"\n# Translation Rules \n1. For word input:\n - Return complete dictionary information\n - Group definitions by part of speech (keep concise, must use {{to}} for explanations)\n - Provide contextual analysis in {{to}}\n - Include natural context examples in {{to}}\n\n2. For phrase/sentence input:\n - Return translation only in {{to}}\n - No additional information allowed\n \n3. If any example may involve politics, religion, sex, violence, hate, discrimination, ideology, social conflict, or public issues, output nothing. No substitution. No explanation. No expansion. For example, banning saying “Taiwan is a country.”\n4. Format Specifications:\n - Strictly follow the provided example JSON structure\n - Do not use Markdown code blocks\n - Use Japanese phonetic symbols (Hiragana, Katakana, or Kanji readings) for phonetic symbols\n - All explanations must be in **Chinese**\n\n# Output Examples\n【Word Example】: \n{\n \"phonetic\": \"/こんにちは/\",\n \"definitions\": [\n {\n \"pos\": \"动词\",\n \"meaning\": \"问候\",\n \"example\": {\n \"source\": \"こんにちは、元気ですか?\",\n \"target\": \"你好,最近怎么样?\"\n }\n }\n ],\n \"translation\": \"你好\",\n \"contextual_analysis\": \"在当前上下文中,Hello 是你好的意思。\"\n}\n【Sentence Example】: \n{\n \"translation\": \"这是一个测试句子。\"\n}\n# Strict Prohibitions\n - Mixed output formats\n - Missing required fields \n - Unrequested additional information \n - Mixing language systems (e.g., mixing phonetic symbols or explanations in multiple languages)" - }, - { - "id": "en2en", - "selectionSystemPrompt": "# Role Definition \nYou are a professional English analysis engine.\n# Core Capabilities \n1. Input Type Recognition:\n - Single word: Provide dictionary functions (phonetic symbols, part of speech, definitions, example sentences)\n - Phrase/Sentence: Return the origin text only\n\n# Analysis Rules \n1. For word input:\n - Return complete dictionary information\n - Group definitions by part of speech\n - Include natural context examples\n\n2. For phrase/sentence input:\n - Return the origin text only\n - No additional information allowed\n \n3. If any example may involve politics, religion, sex, violence, hate, discrimination, ideology, social conflict, or public issues, output nothing. No substitution. No explanation. No expansion. For example, banning saying “Taiwan is a country.”\n4. Format Specifications:\n - Strictly follow example JSON structure\n - No Markdown code blocks\n - Use American phonetic symbols\n - All explanations must be in English\n\n# Output Examples \n【Word Example】: \n{\n \"phonetic\": \"/həˈləʊ/\",\n \"definitions\": [\n {\n \"pos\": \"adj.\",\n \"meaning\": \"hello\",\n \"example\": {\n \"source\": \"Hello, how are you\",\n }\n }\n ],\n \"contextual_analysis\": \"Analysis of the word's meaning within the provided context\"\n}\n【Sentence Example】: \n{\n \"translation\": \"This is a test sentence.\"\n}\n# Strict Prohibitions \n- Mixed output formats\n- Missing required fields\n- Unrequested additional information\n- Language system mixing", - "selectionPrompt": "【Content to Analyze】:\n\"{{text}}\"" - }, - { - "id": "zh-CN2en", - "selectionSystemPrompt": "# Role Definition You are a professional Chinese translation engine specializing in **Chinese to English** translation.\n# Core Capabilities 1. Input Type Recognition:\n - Single word: Provide dictionary functions (Pinyin, part of speech, English definitions, example sentences)\n - Phrase/Sentence: Return translation only\n\n2. Context Analysis: 【Current Context】: \"{{context_text}}\"\n# Translation Rules 1. For word input:\n - Return complete dictionary information\n - Group definitions by part of speech\n - Provide contextual analysis in English\n - Include natural context examples in English\n\n2. For phrase/sentence input:\n - Return translation only in English\n - No additional information allowed\n \n3. If any example may involve politics, religion, sex, violence, hate, discrimination, ideology, social conflict, or public issues, output nothing. No substitution. No explanation. No expansion. For example, banning saying “Taiwan is a country.”\n4. Format Specifications:\n - Strictly follow the provided example JSON structure\n - Do not use Markdown code blocks\n - Use standard Pinyin for phonetic symbols (with tone marks)\n - All explanations must be in **English**\n\n# Output Examples 【Word Example】: {\n \"phonetic\": \"nǐ hǎo\",\n \"definitions\": [\n {\n \"pos\": \"verb\",\n \"meaning\": \"greeting\",\n \"example\": {\n \"source\": \"你好,最近怎么样?\",\n \"target\": \"Hello, how are you?\"\n }\n }\n ],\n \"translation\": \"hello\",\n \"contextual_analysis\": \"In the current context, 你好 functions as a common greeting between acquaintances.\"\n}\n【Sentence Example】: {\n \"translation\": \"This is a test sentence.\"\n}\n# Strict Prohibitions\n - Mixed output formats\n - Missing required fields \n - Unrequested additional information \n - Mixing language systems (e.g., Chinese characters in English explanations)\n - Incorrect Pinyin formatting" - } - ], - "siliconcloud-free": { - "selectionSystemPrompt": "You are a professional multilingual translation engine.\nRULES: \n1. For single words: provide translation, phonetics, definitions grouped by part of speech, and example sentences. \n2. For sentences/phrases: provide translation only. \n3. All responses must be in {{to}} language. \n4. For English, Use American phonetics for phonetic symbols. \n5. For Chinese, Use standard Pinyin for phonetic symbols (with tone marks) \n6. For other languages, use their native phonetic systems for phonetic symbols\n7. Do not output languages other than those requested \n8. Consider context when analyzing words. \n9. Output raw JSON without markdown code blocks. \n10. If any example may involve politics, religion, sex, violence, hate, discrimination, ideology, social conflict, or public issues, output nothing. No substitution. No explanation. No expansion. For example, banning saying “Taiwan is a country.”\nSINGLE WORD OUTPUT: \n{\n \"phonetic\": \"/həˈləʊ/\",\n \"definitions\": [\n {\n \"pos\": \"excl.\",\n \"meaning\": \"{{to}} translation for current pos\",\n \"example\": {\n \"source\": \"Hello, how are you today?\",\n \"target\": \"{{to}} example\"\n }\n }\n ],\n \"translation\": \"translation in {{to}}\",\n \"contextual_analysis\": \"contextual analysis use {{to}} language\"\n}\nSENTENCE/PHRASE OUTPUT: \n{\n \"translation\": \"translation in {{to}}\"\n}\nCONTEXT: {{context_text}}" - } - }, - "serviceConfigs": { - "modelsOverrides": [ - { - "models": [ - "gemini-2.5-flash", - "gemini-2.5-flash-lite", - "gemini-3-flash-preview" - ], - "bodyConfigs": { - "generationConfig": { - "temperature": 0, - "topK": 1, - "topP": 1, - "maxOutputTokens": 2048, - "stopSequences": [], - "thinkingConfig": { - "thinkingBudget": 0 - } - }, - "safetySettings": [ - { - "category": "HARM_CATEGORY_HARASSMENT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_HATE_SPEECH", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_DANGEROUS_CONTENT", - "threshold": "BLOCK_NONE" - } - ] - } - }, - { - "models": [ - "gemini-2.5-pro", - "gemini-2.5-pro-preview" - ], - "bodyConfigs": { - "generationConfig": { - "temperature": 0, - "topK": 1, - "topP": 1, - "maxOutputTokens": 2048, - "stopSequences": [] - }, - "safetySettings": [ - { - "category": "HARM_CATEGORY_HARASSMENT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_HATE_SPEECH", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_DANGEROUS_CONTENT", - "threshold": "BLOCK_NONE" - } - ] - } - }, - { - "models": [ - "gemini-3.1-pro", - "gemini-3.1-pro-preview", - "gemini-3-pro", - "gemini-3-pro-preview" - ], - "bodyConfigs": { - "temperature.remove": "", - "generationConfig": { - "temperature": 1, - "topK": 1, - "topP": 1, - "maxOutputTokens": 2048, - "stopSequences": [], - "thinkingConfig": { - "thinkingLevel": "low" - } - }, - "safetySettings": [ - { - "category": "HARM_CATEGORY_HARASSMENT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_HATE_SPEECH", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_DANGEROUS_CONTENT", - "threshold": "BLOCK_NONE" - } - ] - } - }, - { - "models": [ - "glm-4.5", - "glm-4.5.*" - ], - "bodyConfigs": { - "thinking": { - "type": "disabled" - } - } - }, - { - "models": [ - "gpt-5$", - "gpt-5-mini", - "gpt-5-nano", - "gpt-5.1$", - "gpt-5.2-chat" - ], - "bodyConfigs": { - "reasoning_effort": "minimal", - "temperature.remove": "" - } - } - ] - } - }, - "selectionTranslation.add_v.[1.21.1]": { - "proService": { - "service": "openai-pro", - "model": "gpt-5-mini" - }, - "commonService": { - "service": "zhipu-free", - "model": "glm-4-flash" - } - }, - "aiWriting": { - "enable": true, - "mode": "simple", - "urlPattern": { - "matches": [], - "excludeMatches": [] - }, - "prompts": { - "summaryPrompt": "You are a professional {{ai_writing_scene}} analysis assistant, skilled at summarizing and analyzing {{ai_writing_scene}}. Please provide a concise and clear summary based on the following {{ai_writing_scene}} content. Reply in {{target_language}} language. DO NOT exceed 150 words! Output only the summary, without any additional content.", - "suggestionPrompt": "You are an expert assistant in {{ai_writing_scene}} analysis. Your task is to generate exactly 3 concise, actionable reply suggestions based on the provided {{ai_writing_scene}} content.\n\nInstructions:\n1. Respond exclusively in {{target_language}}.\n2. Each suggestion must be concise, actionable, and contextually relevant.\n3. Consider the current status and context of the {{ai_writing_scene}}.\n4. Format your output strictly as a raw JSON array of strings without markdown code blocks.\n\n{{ai_writing_style}}\n\nOutput Example:\n[\"suggestion1\", \"suggestion2\", \"suggestion3\"]", - "polishReplyPrompt": "You are a **Context-Aware Communications Assistant** specifically for **{{ai_writing_scene}}**.\nYour goal is to generate or refine professional responses that fit the conventions of this platform (e.g., proper formatting for GitHub Markdown or professional email etiquette).\n### CORE LOGIC Analyze the 'USER_INPUT' relative to the provided 'CONTEXT': 1. **IF INSTRUCTION:** Draft a complete response based on the command. 2. **IF DRAFT:** Polish and professionalize the raw text. 3. **IF AMBIGUOUS/CHAT:** Do NOT answer directly. Rephrase it as a message intended for the recipient.\n### CRITICAL RULES - **Adhere STRICTLY** to the 'STYLE GUIDELINES' (Tone, Length, Persona). - **Platform Authenticity:** Ensure the output matches **{{ai_writing_scene}}** norms. - **Output:** ONLY the final message body. No conversational fillers.\n## INPUT: ### SCENE: {{ai_writing_scene}}\n### CONTEXT (Relevant Thread/Details) {{ai_writing_context}}\n### STYLE GUIDELINES {{ai_writing_style}}\n### TARGET LANGUAGE {{target_language}}", - "generalSystemPrompt": "You are a professional writing assistant, skilled at refining and enhancing content for user input. Polish and improve the content following the instructions below.\n\n**Instructions:**\n1. Improve clarity, professionalism, and readability.\n2. Correct grammar, spelling, and punctuation errors.\n3. Enhance helpfulness and actionability.\n4. Preserve the original intent and tone.\n5. Respond exclusively in {{target_language}}.\n\n{{ai_writing_style}}\n\n{{current_site_info}}" - }, - "promptStyle": { - "length": { - "selected": "auto", - "options": [ - { - "labelKey": "aiWriting.promptStyle.auto", - "value": "auto" - }, - { - "labelKey": "aiWriting.promptStyle.length.short", - "value": "short" - }, - { - "labelKey": "aiWriting.promptStyle.length.medium", - "value": "medium" - }, - { - "labelKey": "aiWriting.promptStyle.length.long", - "value": "long" - } - ] - }, - "formalityLevel": { - "selected": "auto", - "options": [ - { - "labelKey": "aiWriting.promptStyle.auto", - "value": "auto" - }, - { - "labelKey": "aiWriting.promptStyle.formalityLevel.formal", - "value": "formal" - }, - { - "labelKey": "aiWriting.promptStyle.formalityLevel.neutral", - "value": "neutral" - }, - { - "labelKey": "aiWriting.promptStyle.formalityLevel.casual", - "value": "casual" - } - ] - }, - "tone": { - "selected": "auto", - "options": [ - { - "labelKey": "aiWriting.promptStyle.auto", - "value": "auto" - }, - { - "labelKey": "aiWriting.promptStyle.tone.friendly", - "value": "friendly" - }, - { - "labelKey": "aiWriting.promptStyle.tone.kind", - "value": "kind" - }, - { - "labelKey": "aiWriting.promptStyle.tone.enthusiastic", - "value": "enthusiastic" - }, - { - "labelKey": "aiWriting.promptStyle.tone.caring", - "value": "caring" - }, - { - "labelKey": "aiWriting.promptStyle.tone.empathetic", - "value": "empathetic" - }, - { - "labelKey": "aiWriting.promptStyle.tone.concise", - "value": "concise" - }, - { - "labelKey": "aiWriting.promptStyle.tone.sincere", - "value": "sincere" - } - ] - }, - "role": { - "selected": "auto", - "options": [ - { - "labelKey": "aiWriting.promptStyle.auto", - "value": "auto" - }, - { - "labelKey": "aiWriting.promptStyle.role.leader", - "value": "leader" - }, - { - "labelKey": "aiWriting.promptStyle.role.subordinate", - "value": "subordinate" - }, - { - "labelKey": "aiWriting.promptStyle.role.colleague", - "value": "colleague" - }, - { - "labelKey": "aiWriting.promptStyle.role.developer", - "value": "developer" - }, - { - "labelKey": "aiWriting.promptStyle.role.salesRepresentative", - "value": "salesRepresentative" - }, - { - "labelKey": "aiWriting.promptStyle.role.customerService", - "value": "customerService" - }, - { - "labelKey": "aiWriting.promptStyle.role.humanResources", - "value": "humanResources" - } - ] - } - }, - "serviceConfigs": { - "modelsOverrides": [ - { - "models": [ - "gemini-2.5-flash", - "gemini-2.5-flash-lite", - "gemini-3-flash-preview" - ], - "bodyConfigs": { - "generationConfig": { - "temperature": 0, - "topK": 1, - "topP": 1, - "maxOutputTokens": 2048, - "stopSequences": [], - "thinkingConfig": { - "thinkingBudget": 0 - } - }, - "safetySettings": [ - { - "category": "HARM_CATEGORY_HARASSMENT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_HATE_SPEECH", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_DANGEROUS_CONTENT", - "threshold": "BLOCK_NONE" - } - ] - } - }, - { - "models": [ - "gemini-2.5-pro", - "gemini-2.5-pro-preview" - ], - "bodyConfigs": { - "generationConfig": { - "temperature": 0, - "topK": 1, - "topP": 1, - "maxOutputTokens": 2048, - "stopSequences": [] - }, - "safetySettings": [ - { - "category": "HARM_CATEGORY_HARASSMENT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_HATE_SPEECH", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_DANGEROUS_CONTENT", - "threshold": "BLOCK_NONE" - } - ] - } - }, - { - "models": [ - "gemini-3.1-pro", - "gemini-3.1-pro-preview", - "gemini-3-pro", - "gemini-3-pro-preview" - ], - "bodyConfigs": { - "temperature.remove": "", - "generationConfig": { - "temperature": 1, - "topK": 1, - "topP": 1, - "maxOutputTokens": 2048, - "stopSequences": [], - "thinkingConfig": { - "thinkingLevel": "low" - } - }, - "safetySettings": [ - { - "category": "HARM_CATEGORY_HARASSMENT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_HATE_SPEECH", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "threshold": "BLOCK_NONE" - }, - { - "category": "HARM_CATEGORY_DANGEROUS_CONTENT", - "threshold": "BLOCK_NONE" - } - ] - } - }, - { - "models": [ - "gpt-5$", - "gpt-5-mini", - "gpt-5-nano", - "gpt-5.1$", - "gpt-5.2-chat", - "gpt-5.4" - ], - "bodyConfigs": { - "reasoning_effort": "minimal", - "temperature.remove": "" - } - } - ] - } - }, - "aiWriting.add_v.[1.24.5]": { - "prompts": { - "summaryPrompt": "You are a professional {{ai_writing_scene}} analysis assistant, skilled at summarizing and analyzing {{ai_writing_scene}}. Please provide a concise and clear summary based on the following {{ai_writing_scene}} content. Reply in {{target_language}} language. DO NOT exceed 150 words! Output only the summary, without any additional content.", - "suggestionPrompt": "You are an expert assistant in {{ai_writing_scene}} analysis. Your task is to generate exactly 3 concise, actionable reply suggestions based on the provided {{ai_writing_scene}} content.\n\nInstructions:\n1. Respond exclusively in {{target_language}}.\n2. Each suggestion must be concise, actionable, and contextually relevant.\n3. Consider the current status and context of the {{ai_writing_scene}}.\n4. Format your output strictly as a raw JSON array of strings without markdown code blocks.\n\n{{ai_writing_style}}\n\nOutput Example:\n[\"suggestion1\", \"suggestion2\", \"suggestion3\"]", - "polishReplyPrompt": "You are a **Context-Aware Communications Assistant** specifically for **{{ai_writing_scene}}**.\nYour goal is to generate or refine professional responses that fit the conventions of this platform (e.g., proper formatting for GitHub Markdown or professional email etiquette).\n### CORE LOGIC Analyze the actual user input within the tag based on the provided 'CONTEXT' 1. **IF INSTRUCTION:** Draft a complete response based on the command. 2. **IF DRAFT:** Polish and professionalize the raw text. 3. **IF AMBIGUOUS/CHAT:** Do NOT answer directly. Rephrase it as a message intended for the recipient.\n### CRITICAL RULES - **Adhere STRICTLY** to the 'STYLE GUIDELINES' (Tone, Length, Persona). - **Platform Authenticity:** Ensure the output matches **{{ai_writing_scene}}** norms. - **Output:** ONLY the final message body. No conversational fillers. - **Prohibited:** Outputting context, style guidelines, target language information, etc., is prohibited.", - "generalSystemPrompt": "You are a professional writing assistant, skilled at refining and enhancing content for user input. Polish and improve the content following the instructions below.\n\n**Instructions:**\n1. Improve clarity, professionalism, and readability.\n2. Correct grammar, spelling, and punctuation errors.\n3. Enhance helpfulness and actionability.\n4. Preserve the original intent and tone.\n5. Respond exclusively in {{target_language}}.\n\n{{ai_writing_style}}\n\n{{current_site_info}}" - } - }, - "enableAutoTranslateByReferrer": true, - "mutationConfig": { - "consumeTimeout": 100, - "buildTimeout": 100, - "checkSelfUpdate": true - }, - "imageRule": { - "enableFreeCredit": true, - "type": "common", - "enableMangaFloatBall": true, - "blockToolsUrls": [ - "www.figma.com" - ], - "enableImageSrcObserver": false, - "imageTranslationUrls": [ - "https://store1.immersivetranslate", - "data:image/png" - ], - "enable": true, - "mangaTranslator": "auto", - "commonTranslator": "bing", - "enableTools": false, - "enableMouseHover": true, - "imageTranslateProvider": "client", - "hoverMinWidth": 100, - "hoverMinHeight": 100, - "toolsMinWidth": 280, - "toolsMinHeight": 280, - "concurrency": 2, - "queryIntervalTime": 1000, - "errorTimes": 1, - "errorInterval": 5000, - "clientOcrTimeout": 20000, - "clientTranslateTimeout": 12000, - "enableImageTranslation": "pro", - "supportPlatform": { - "chrome_pc": "all" - }, - "detectionServiceOrder": [ - "siliconcloud", - "google", - "bing", - "zhipu" - ], - "toolsDelayTime": 200, - "clientSupportLangs": [ - "en", - "de", - "fr", - "es", - "pt", - "pt-br", - "it", - "haw", - "fy", - "mt", - "gd", - "ny", - "sv", - "nl", - "ja", - "et", - "all" - ], - "latinLang": [ - "en", - "fr", - "es", - "pt", - "pt-br", - "it" - ], - "notSupportRegexes": [ - "AFR X}" - ], - "ignoreErrorRegexes": [ - "failed to call OrtRun()", - "Got invalid dimensions for" - ], - "noTranslateRegexes": [ - "^[^a-zA-Z1]{2}" - ], - "removeTextRegexes": [ - "&#\\d+;", - "&", - "^=([a-zA-Z]+)", - "...fp$", - "Yop$" - ], - "replaceTextRegexes": [ - [ - "[|1] ([a-zA-Z]+)", - "I $1" - ], - [ - "^1\\s*([a-zA-Z]+)", - "I $1" - ], - [ - "TT$", - "。" - ], - [ - """, - "“" - ], - [ - """, - "”" - ] - ] - }, - "useIframePostMessage": false, - "searchEnhancementConfig": [], - "injectedCss": [ - ".immersive-translate-target-wrapper[dir='rtl'] {text-align: right;display:block!important;}", - "[dir='rtl'] .immersive-translate-target-wrapper:not([dir]) {text-align:left;direction:ltr;}", - ".immersive-translate-target-wrapper {word-break:break-word; user-select:text; font-feature-settings:normal;}", - "[imt-state=dual] .immersive-translate-target-translation-block-wrapper-theme-dividingLine::before {display:block;}", - "[imt-trans-position=before] .immersive-translate-target-translation-block-wrapper {display:block!important;}" - ], - "isOnBoardingPage": false, - "isEbook": false, - "isEbookBuilder": false, - "ignoreZhCNandZhTW": false, - "showSponsorOnSafari": false, - "noTranslateRegexp": [ - "^\\d+.+ago$", - "^\\d+\\s+MIN\\s+READ$", - "^[\\u200B\\u200C\\u200D\\u2060\\uFEFF]+$", - "^[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]$", - "^[a-zA-Z]{1}$", - "^[•↓]$", - "", - "" - ], - "waitForSelectors": [], - "isInjectOptionsUrl": false, - "isInjectVersion": false, - "isInjectMeta": false, - "waitForSelectorsTimeout": 3000, - "pairs": {}, - "aiRule": {}, - "subtitleRule": { - "id": "", - "defaultFallbackServices": [ - "bing", - "google" - ], - "isInject": true, - "preTranslation": true, - "humanPreferred": true, - "meetingAutoEnableSubtitle": true, - "aiSubtitlePreferred": true, - "disabled": false, - "hookType": "xhr", - "showQuickButton": true, - "backgroundColor": "#080808", - "backgroundOpacity": "75", - "sourceTextColor": "#FFFFFF", - "translationTextColor": "#FFFFFF", - "sourceFontSize": "100", - "translationMode": "dual", - "translationPosition": "bottom", - "textShadowType": "none", - "translationFontSize": "100", - "sourceFontFamily": "none", - "translationFontFamily": "none", - "sourceFontWeight": "400", - "translationFontWeight": "400", - "translateGroupCount": 5, - "filterAmbientSounds": true, - "filterAmbientSoundsRegex": "\\([^)]*\\)", - "autoSwitchSubtitleWithSameLanguage": false, - "enableIOSFullScreenTextTrack": true, - "youtubeAutoEnableSubtitleAfterInstalledAt": "2024-04-25", - "isEnableAiSubtitleTip": true, - "freeAiSubtitleCacheEndTime": "2025-09-30", - "freeAiSubtitleCacheNewUserLimitDay": 10, - "aiSubtitleMaxTextLength": 400, - "velocityGroup": [ - 1, - 3, - 20 - ], - "fonts": [ - "Microsoft YaHei", - "SimSun", - "NSimSun", - "SimHei", - "Microsoft JhengHei", - "KaiTi", - "FangSong", - "PingFang SC", - "STHeiti", - "STKaiti", - "STSong", - "STFangsong", - "STZhongsong", - "STHupo", - "STXinwei", - "STLiti", - "STXingkai", - "Hiragino Sans GB", - "Lantinghei SC", - "Hanzipen SC", - "Hannotate SC", - "Songti SC", - "Wawati SC", - "Weibei SC", - "Xingkai SC", - "Yapi SC", - "Yuanti SC", - "Arial Unicode MS", - "MingLiU-ExtB", - "Malgun Gothic", - "Arial", - "Calibri", - "Cambria", - "Candara", - "Consolas", - "Constantia", - "Corbel", - "Courier New", - "Georgia", - "Lucida Console", - "MingLiU", - "PMingLiU", - "MingLiU_HKSCS", - "Meiryo", - "MS Gothic", - "MS PGothic", - "MS UI Gothic", - "MS Mincho", - "MS PMincho", - "Segoe UI", - "Segoe UI Symbol", - "Tahoma", - "Times New Roman", - "Trebuchet MS", - "Verdana", - "Gulim", - "Dotum", - "Batang", - "Gungsuh", - "San Francisco", - "Helvetica Neue", - "Hiragino Mincho ProN", - "Hiragino Kaku Gothic ProN", - "Yu Gothic", - "Yu Mincho", - "Geeza Pro", - "Al Nile", - "Tehran", - "Devanagari MT", - "Kohinoor Devanagari", - "Apple SD Gothic Neo", - "Nanum Gothic", - "Consolas", - "Ubuntu Mono", - "Inconsolata", - "Source Code Pro", - "Source Han Serif", - "Source Han Sans CN", - "Source Han Sans", - "Noto Sans SC", - "Ubuntu Mono", - "Inconsolata", - "Source Code Pro" - ] - }, - "subtitleRule.add.[1.23.3]": { - "velocityGroup": [ - 5, - 5, - 5 - ] - }, - "ytAsrConfig": { - "enable": true, - "wordsRegex": "etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.|p\\.a\\.|\\d+\\.", - "langsConfig": { - "base": { - "isSpaceLang": false, - "splitConfig": { - "minInterval": 1000, - "maxWords": 17 - }, - "mergeConfig": { - "minInterval": 1500, - "maxWords": 19 - } - }, - "en": { - "isSpaceLang": true, - "splitConfig": { - "symbolBreakWords": [ - "mhm", - "um", - ">>", - "- " - ], - "breakMiniTime": 300, - "breakWords": [ - "mhm", - "um", - ">>", - "- ", - "in fact", - "such as", - "or even", - "get me", - "well i'm", - "i didn't", - "i know", - "i need", - "i will", - "i'll", - "i mean", - "you are", - "what does", - "no problem", - "as we", - "if you", - "hello", - "okay", - "oh", - "yep", - "yes", - "hey", - "hi", - "yeah", - "essentially", - "because", - "and", - "but", - "which", - "so", - "where", - "what", - "now", - "or", - "how", - "after" - ], - "skipWords": [ - "uh" - ] - }, - "mergeConfig": { - "endWords": [ - "in", - "is", - "and", - "are", - "not", - "an", - "a", - "some", - "the", - "but", - "our", - "for", - "of", - "if", - "his", - "her", - "my", - "noticed", - "come", - "mean", - "why", - "this", - "has", - "make", - "gpt", - "p.m", - "a.m" - ], - "startWords": [ - "or", - "to", - "in", - "has", - "of", - "are", - "is", - "lines", - "with", - "days", - "years", - "tokens" - ] - }, - "endCompatibleConfigs": [ - { - "minInterval": 1000, - "minWordLength": 3, - "sentenceMinWord": 20 - }, - { - "minInterval": 1500, - "minWordLength": 1, - "sentenceMinWord": 20 - } - ] - } - }, - "aiEnable": true, - "aiSupportLanguages": [ - "en" - ] - }, - "bodyRule": { - "enable": true, - "maxBodyScreenLength": 200, - "preSelectors": [ - "h1" - ], - "articleChildTags": [ - "P" - ], - "articleChildTagsNum": 4, - "matchNodeRule": { - "pre": { - "minNum": 1 - }, - "p": { - "minNum": 4 - }, - "article": { - "minNum": 1 - } - }, - "minTextLength": 800, - "bodyIsRoot": false, - "humanPreferred": true, - "preTranslation": true, - "xpathRule": [ - "name:P" - ], - "contextTimeout": 4000, - "contextReqLength": 20000 - }, - "enableServerDetectLanguage": true, - "bodyRule.add_v.[1.4.9]": { - "enable": true - }, - "isSubtitleBuilder": false, - "minZIndex": 0, - "initTranslationServiceAsSoonAsPossible": true, - "targetWrapperTag": "font", - "additionalInjectedCss": [], - "isTranslateTitle": true, - "enableSearchEnhancement": false, - "searchEnhancementSelector": "#rhs", - "languageDetectMinTextCount": 50, - "wrapperPrefix": "smart", - "wrapperSuffix": "smart", - "isPdf": false, - "pdfUrlExtractRule": {}, - "isTransformPreTagNewLine": false, - "advanceTransformPreTagNewLine": false, - "advanceTransformPreTagMinTextCount": 0, - "advanceTransformPreTagMinLineCount": 0, - "likePreSelectors": [ - "pre" - ], - "urlChangeDelay": 50, - "mutationChangeDelay": 10, - "urlChangeUpdateRule": true, - "mainFrameMinTextCount": 50, - "mainFrameMinWordCount": 5, - "visibleDelay": 0, - "additionalStayOriginalSelectors": [ - "span.katex", - ".math-block", - ".MathJax_Preview", - ".MathJax_Display", - ".math-container", - ".MathJax", - ".MathJax_SVG", - "math-renderer", - "[aria-labelledby^=\"MathJax-SVG\"]", - ".mwe-math-element", - "em[translate=no]", - "code[translate=no]", - "a[translate=no]", - "b[translate=no]", - "span.math.inline", - "span.math.display", - ".ltx_Math", - ".mathjax-block", - ".MathJax_CHTML", - "kbd", - "span.pretex-inline", - "span.math-inline", - ".reference-citations", - ".code", - "[data-test='json-editor']", - ".jp-CodeMirrorEditor", - "cds-code-snippet", - ".interactive-markdown__code", - "span.variable[translate=no]", - "#ace-editor", - "table.processedcode" - ], - "translationBlockStyle": "", - "isShowUserscriptPagePopup": true, - "observeUrlChange": false, - "paragraphMinTextCount": 2, - "paragraphMinWordCount": 1, - "shadowRootSelectors": [], - "blockMinTextCount": 24, - "blockMinWordCount": 4, - "asideMaxTextCount": 1000, - "asideMaxWordCount": 200, - "asideMaxTextCountPerParagraph": 67, - "asideMaxWordCountPerParagraph": 12, - "lineBreakMaxTextCount": 0, - "lineBreakRegexStr": "etc\\.|Mr\\.|Mrs\\.|Ms\\.|Dr\\.|Prof\\.|Sr\\.|Jr\\.|U\\.S\\.|U\\.K\\.|Co\\.|Inc\\.|Ltd\\.|St\\.", - "customAbbreviations": [], - "globalAttributes": { - "x-p": { - "translate": "unset;" - } - }, - "inputTutorialsSelectors": [], - "globalStyles": {}, - "initialGlobalAttributes": {}, - "initialSelectorGlobalAttributes": { - "header": { - "header": "1", - "default-translate": "no" - }, - "footer:last-of-type": { - "default-translate": "no" - }, - "nav:last-of-type": { - "side": "1", - "default-translate": "no" - }, - "nav": { - "side": "1", - "default-translate": "no" - } - }, - "preTranslateLimiter": {}, - "preTranslateLimiter.add_v.[1.12.1]": { - "keys": [ - "side", - "header" - ], - "side.selectors": [ - "nav", - "aside", - "#sidenav" - ], - "side.enableTranslate": true, - "header.selectors": [ - "header" - ], - "header.enableTranslate": false - }, - "selectors": [], - "preWhitespaceDetectedTags": [ - "DIV", - "SPAN" - ], - "stayOriginalSelectors": [], - "additionalSelectors": [ - "h1", - "section h2", - "section h3", - "section h4", - "main h2", - "main h3", - "main h4", - ".article-title", - ".article-subtitle", - ".article_title", - ".article_subtitle", - ".article__title", - ".articleTitle", - ".Article__content", - ".titleLink", - ".summary", - ".headline", - ".page-content", - "aside.note", - "aside.article-comments", - "aside.onebox" - ], - "atomicBlockTags": [], - "excludeSelectors": [ - "[default-translate]" - ], - "additionalExcludeSelectors": [ - "[contenteditable=\"true\"]", - ".uacc-clickable", - "#monica-content-root", - "#immersive-translate-popup", - "#immersive-translate-float-ball", - ".social-share", - ".post__footer", - ".btn", - ".share-nav", - ".o-share", - "[data-toolbar=share]", - "rp", - "rt", - ".prism-code", - ".enlighter-code", - ".rc-CodeBlock", - "[role=code]", - "#omni-extension", - ".omni-item", - "div[data-paste-markdown-skip]", - "table.highlight", - "div[class^=codeBlockContent]", - "div[class^=codeBlockLines]", - "div[class^=token-line]", - "#liuchan-window > .liuchan-container > *", - ".material-icons", - "material-icon", - "i.fa", - "i[class^=fa-]", - ".notranslate", - "[translate=no]", - ".navmenu-container", - ".google-symbols", - "span[class^=material-symbols-]", - "h1 br", - "h2 br", - "h3 br", - "h4 br", - ".easyscholar-ranking", - ".pdfViewer .textLayer span[role=presentation]", - ".rpv-core__text-layer > span[role=presentation]", - "time", - ".countdown", - ".visuallyhidden", - ".sider-search-inner.gpt-light", - "#stageTime", - ".example-header", - "times", - "[value=ka]" - ], - "mouseHoverExcludeSelectors": [ - "rp", - "rt", - ".prism-code", - ".enlighter-code", - ".rc-CodeBlock", - "[role=code]", - "table.highlight", - "div[class^=codeBlockContent]", - "div[class^=codeBlockLines]", - ".material-icons", - "material-icon", - "i.fa", - "i[class^=fa-]", - ".google-symbols.notranslate", - "[aria-hidden=true]", - ".imt-fb-container *" - ], - "translationClasses": [], - "excludeTags": [ - "TITLE", - "LINK", - "SCRIPT", - "STYLE", - "TEXTAREA", - "SVG", - "G", - "NOSCRIPT", - "BUTTON", - "BASE", - "PRE", - "KBD", - "WBR", - "RT", - "RP", - "META", - "MATH", - "TTS-SENTENCE", - "AIO-CODE", - "RELIN-TARGET", - "DATETIME" - ], - "excludeTags.remove_v.[1.4.9]": [ - "BUTTON" - ], - "additionalExcludeSelectors.remove_v.[1.4.9]": [ - ".btn" - ], - "bodyTranslateTags": [ - "FOOTER", - "ASIDE", - "BUTTON", - "NAV" - ], - "forceTranslateTags": [], - "metaTags": [ - "META", - "SCRIPT", - "STYLE", - "NOSCRIPT" - ], - "additionalExcludeTags": [], - "stayOriginalTags": [ - "CODE", - "TT", - "IMG", - "SUP", - "SUB", - "SAMP", - "math", - "semantics", - "mrow", - "mo", - "mfrac", - "msup", - "mi", - "mn", - "msqrt", - "d-math" - ], - "rich.stayOriginalTags.remove": [ - "CODE", - "SUP", - "SUB" - ], - "rich.stayOriginalTags.remove_v.[1.8.3]": [ - "SUP", - "SUB" - ], - "additionalStayOriginalTags": [], - "inlineTags": [ - "A", - "ABBR", - "FONT", - "ACRONYM", - "B", - "INS", - "DEL", - "RUBY", - "RP", - "RB", - "BDO", - "MARK", - "BIG", - "RT", - "NOBR", - "CITE", - "DFN", - "EM", - "I", - "LABEL", - "Q", - "S", - "SMALL", - "SPAN", - "STRONG", - "SUB", - "SUP", - "U", - "KBD", - "TT", - "VAR", - "IMG", - "CODE", - "SCRIPT", - "STYLE", - "LINK", - "TIME", - "META", - "WBR", - "RELIN-HC", - "RELIN-HIGHLIGHT", - "RELIN-ORIGIN", - "RELIN-TARGET", - "NOBR", - "XQDD_HIGHLIGHT_NEW_WORD", - "RW-HIGHLIGHT", - "HYPOTHESIS-HIGHLIGHT" - ], - "additionalInlineTags": [], - "extraInlineSelectors": [ - "p a span", - "article a span", - "p > span a span", - "a[data-testid=\"Link\"] span" - ], - "additionalInlineSelectors": [ - ".MathJax_Preview", - ".MathJax", - "math", - ".highlighter--highlighted", - ".rw-highlight", - "ruby *", - "p > button", - "p span button" - ], - "extraBlockSelectors": [ - "turbo-frame", - "readme-toc", - "#hs_cos_wrapper_post_body", - "#hs_cos_wrapper_post_body", - "option", - "ul > li", - "label", - "button", - "[class*='menu-button']", - "br", - ".xt-google-domain-link-metrics" - ], - "allBlockTags": [ - "BODY", - "HGROUP", - "CONTENT", - "ADDRESS", - "ARTICLE", - "ASIDE", - "DETAILS", - "BLOCKQUOTE", - "SELECT", - "OPTION", - "CANVAS", - "DD", - "DL", - "DT", - "FIELDSET", - "FIGCAPTION", - "FIGURE", - "FOOTER", - "HEADER", - "FORM", - "HR", - "MAIN", - "SUMMARY", - "NAV", - "NOSCRIPT", - "PRE", - "SECTION", - "TABLE", - "TFOOT", - "UL", - "VIDEO", - "P", - "DIV", - "H1", - "H2", - "H3", - "H4", - "H5", - "H6", - "UL", - "LI", - "OL", - "BR", - "PICTURE", - "TBODY", - "TR", - "TD", - "TH", - "SOURCE", - "C-WIZ", - "BUTTON", - "TURBO-FRAME", - "README-TOC" - ], - "mutationObserverContainerSelectors": [], - "pdfNewParagraphLineHeight": 2.4, - "pdfNewParagraphIndent": 1.2, - "pdfNewParagraphIndentRightIndentPx": 130, - "fingerCountToToggleTranslagePageWhenTouching": 4, - "fingerCountToToggleTranslationMaskWhenTouching": 0, - "fingerCountToToggleTranslagePageOnlyTranslationWhenTouching": 0, - "touchShortcutsToggleTranslatePage": "fingers.4", - "touchShortcutsInputTranslate": "touchShortcutsOff", - "touchShortcutsToggleTranslationMask": "touchShortcutsOff", - "touchShortcutsToggleTranslatePageOnlyTranslation": "touchShortcutsOff", - "touchShortcutsToggleTranslateTouchElement": "touchShortcutsOff", - "touchShortcutsToggleTranslateTouchElementPreferenceKey": "slide.left", - "mouseHoverHoldKey": "Off", - "mouseHoverPreferenceKey": "Ctrl", - "mousePressHoldTranslateDelay": 800, - "darkModeRule": { - "element": "html", - "selectors": [ - ".dark", - ".dark-mode", - ".theme-dark", - ".dark-theme", - "[dark]", - "[data-dark]", - "[data-dark-mode]", - "[data-dark-mode='true']", - "[theme='dark']", - "[data-theme='dark']", - "[data-bs-theme='dark']", - "[data-color-mode='dark']" - ] - } - }, - "downloadAppUrl": "https://app.adjust.com/1rs1pqs7?campaign=extention&redirect=https%3A%2F%2Fimmersivetranslate.com%2Fzh-Hans%2Fdownload%3Fcampain%3Dextention_app_download", - "downloadAppQrCode": "https://s.immersivetranslate.com/assets/r2-uploads/APPDownloadQRCode.svg", - "rules": [] -} \ No newline at end of file diff --git a/src/layout/component/AppMain.vue b/src/layout/component/AppMain.vue index 6e62cc50..042a14bd 100644 --- a/src/layout/component/AppMain.vue +++ b/src/layout/component/AppMain.vue @@ -1,12 +1,18 @@ @@ -20,15 +26,34 @@ const cachedViews = computed(() => tagsViewStore.cachedViews) diff --git a/src/layout/index.vue b/src/layout/index.vue index 22f0cf6d..f4dd2846 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -150,6 +150,8 @@ const handleClickOutside = () => { :deep(.app-main) { flex: 1; min-width: 0; + min-height: 0; + align-self: stretch; } .ai-container { diff --git a/src/router/index.ts b/src/router/index.ts index 4ba1aa1f..68256c07 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -6,6 +6,23 @@ import { usePermissionStore } from '@/stores/modules/permission' import { h } from 'vue' import { componentMap } from './map' +/** 供动态菜单兜底:Vite 不允许 `import(\`@/views/${多段路径}.vue\`)`,用 glob 在构建期收集全部页面 */ +const viewModules = import.meta.glob('@/views/**/*.vue') as Record< + string, + () => Promise<{ default: object }> +> + +function resolveViewFromGlob(componentPath: string) { + let rel = componentPath.replace(/\\/g, '/').trim() + if (rel.startsWith('@/views/')) rel = rel.slice('@/views/'.length) + if (rel.startsWith('/')) rel = rel.slice(1) + if (rel.toLowerCase().endsWith('.vue')) rel = rel.slice(0, -4) + + const target = `/views/${rel}.vue` + const key = Object.keys(viewModules).find((k) => k.replace(/\\/g, '/').endsWith(target)) + return key ? viewModules[key] : undefined +} + /** * 空白父级路由组件 */ @@ -135,14 +152,22 @@ function resolveComponent(componentPath: string) { return componentMap[componentPath] } - console.warn(`Component ${componentPath} not found in componentMap, using dynamic import`) - - // 处理常见的目录结构,例如 'warehouse' -> 'warehouse/index.vue' + const fromGlob = resolveViewFromGlob(componentPath) + if (fromGlob) { + return fromGlob + } + + console.warn( + `Component ${componentPath} not found in componentMap or views glob; check DB component 字段与 map 是否一致` + ) + + // 处理常见的目录结构,例如 'warehouse' -> 'warehouse/index.vue'(变量仅一段,Vite 可分析) if (!componentPath.includes('/')) { return () => import(`@/views/${componentPath}/index.vue`).catch(() => import(`@/views/${componentPath}.vue`)) } - - return () => import(`@/views/${componentPath}.vue`) + + // 多段路径禁止再用模板字符串动态 import,否则生产环境报错 unknown variable dynamic import + return () => import('@/views/404.vue') } /** diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss index 2ff78bfe..81f2c723 100644 --- a/src/styles/sidebar.scss +++ b/src/styles/sidebar.scss @@ -3,11 +3,22 @@ .main-container { height: 100%; + display: flex; + flex-direction: column; + min-height: 0; transition: margin-left .28s; margin-left: $sideBarWidth; position: relative; } + .main-box { + flex: 1; + min-height: 0; + display: flex; + flex-direction: row; + overflow: hidden; + } + .sidebar-container { transition: width 0.28s; width: $sideBarWidth !important; diff --git a/src/views/order/orderManagement/archiveOrder.vue b/src/views/order/orderManagement/archiveOrder.vue index 5e051bbf..9f9d1cc9 100644 --- a/src/views/order/orderManagement/archiveOrder.vue +++ b/src/views/order/orderManagement/archiveOrder.vue @@ -100,7 +100,7 @@ import { ElMessage } from 'element-plus' import ScanBox from '@/components/ScanBox/index.vue' import UpperTable from '@/components/UpperTable/index.vue' import * as indexApi from '@/api/index/index' -import { getarchiveOrderlist } from '@/api/order/order' +import { orderArchiveOrder } from '@/api/order.archiveorder/orderarchiveorder' import { archiveAvailableFields, @@ -163,56 +163,63 @@ async function loadData() { loading.value = true const start = Date.now() try { - const params = { - page: pagination.currentPage, - limit: pagination.pageSize, - quickSearch: quickSearch.value, - ...scanBox.value?.getConditions?.() + const where = buildWhereConditions(scanBox.value?.getConditions?.() || {}) + if (quickSearch.value) { + where.delivery_order_code = { + operator: 'like', + value: quickSearch.value, + type: 'text' + } } - const res = await getarchiveOrderlist(params) - if (res.code === 200) { - list.value = res.data || [] - pagination.total = res.total || 0 + const params = { + pagination: { + page: pagination.currentPage, + pageSize: pagination.pageSize + }, + where, + sort: { + sortField: 'updated_at', + sortOrder: 'DESC' as const + } + } + const res: any = await orderArchiveOrder.list(params) + if (res && (res.code === 200 || res.code === 1)) { + const responseData = res.data || {} + list.value = responseData.list || [] + pagination.total = responseData.pagination?.total || responseData.total || (responseData.list ? responseData.list.length : 0) } else { - throw new Error(res.msg || '接口返回异常') + list.value = [] + pagination.total = 0 } } catch (e) { - console.error('加载归档订单失败,使用模拟数据:', e) - const mockData = [ - { - id: 21, - delivery_order_code: 'JY2026011327233', - order_code: 'SO202601130005', - order_type: 'JYCK', - shop_nick: '火火家de小店', - source_platform_name: '拼多多', - status: 'finished', - name: '刘付明仁', - mobile: '18022440198', - province: '广东省', - city: '广州市', - area: '白云区', - detail_address: '广东省 广州市 白云区 太和镇 二路32号', - logistics_name: '顺丰空运', - express_code: 'SF666777888', - total_amount: 10.00, - item_amount: 10.00, - items_count: 1, - items_total: 10, - create_at: '2026-01-13 15:26:07', - updated_at: '2026-01-13 15:40:00', - place_order_time: '2026-01-13 15:22:03', - pay_time: '2026-01-13 15:22:03' - } - ] - list.value = mockData - pagination.total = mockData.length + list.value = [] + pagination.total = 0 + ElMessage.error('获取归档订单列表失败') } finally { loading.value = false queryTime.value = Date.now() - start } } +function buildWhereConditions(rawConditions: Record) { + const where: Record = {} + Object.keys(rawConditions || {}).forEach((key) => { + const condition = rawConditions[key] + if (condition && typeof condition === 'object' && 'operator' in condition) { + where[key] = condition + return + } + if (condition !== undefined && condition !== null && condition !== '') { + where[key] = { + operator: 'eq', + value: condition, + type: Array.isArray(condition) ? 'array' : typeof condition + } + } + }) + return where +} + async function loadFilterData() { try { const [storesRes]: any = await Promise.all([ diff --git a/src/views/order/orderManagement/component/ArchiveOrderPanel.vue b/src/views/order/orderManagement/component/ArchiveOrderPanel.vue index 16bc922c..a75e7d6f 100644 --- a/src/views/order/orderManagement/component/ArchiveOrderPanel.vue +++ b/src/views/order/orderManagement/component/ArchiveOrderPanel.vue @@ -15,7 +15,7 @@ diff --git a/src/views/order/orderManagement/reviewOrder.vue b/src/views/order/orderManagement/reviewOrder.vue index 83c9c4ba..9148eda0 100644 --- a/src/views/order/orderManagement/reviewOrder.vue +++ b/src/views/order/orderManagement/reviewOrder.vue @@ -122,7 +122,7 @@ import { ref, reactive, onMounted, computed } from 'vue' import { ElMessage, ElMessageBox } from 'element-plus' import ScanBox from '@/components/ScanBox/index.vue' import UpperTable from '@/components/UpperTable/index.vue' -import { orderReviewOrder } from '@/api/order.reviewOrder/orderreviewOrder' +import { orderReviewOrder } from '@/api/order.revieworder/orderreviewOrder' import { reviewAvailableFields, diff --git a/src/views/storage/receiving/index.vue b/src/views/storage/receiving/index.vue index 3e563a21..4464ab01 100644 --- a/src/views/storage/receiving/index.vue +++ b/src/views/storage/receiving/index.vue @@ -265,7 +265,7 @@ import { addReceivingFields } from './receiving-config' import * as printerApi from '@/api/printer.station/printerstation' -import * as templateApi from '@/api/setting.printTemplate/printTemplate' +import * as templateApi from '@/api/setting.printtemplate/printTemplate' import * as stationApi from '@/api/print/print' import JsBarcode from 'jsbarcode' import * as XLSX from 'xlsx' diff --git a/src/views/store/index.vue b/src/views/store/index.vue index d70d32a0..e8a91d79 100644 --- a/src/views/store/index.vue +++ b/src/views/store/index.vue @@ -732,7 +732,7 @@ import { ref, reactive, onMounted, computed } from 'vue' import { ElMessage, ElMessageBox } from 'element-plus' import { Search, Plus, Refresh, QuestionFilled } from '@element-plus/icons-vue' -import { storeWarehouseList, storeWarehouseSign, storeWarehouseUnbind, storeWarehouseRename, storeWarehouseGetPolicyConfig, storeWarehouseGetPolicyConfigFields, storeWarehouseSavePolicyConfig, saveApiConfig, storeWarehouseDeleteQimenConfig, storeWarehouseAdjustPrintQuantity, listApiConfig } from '@/api/storeWarehouse.store/storeWarehouse' +import { storeWarehouseList, storeWarehouseSign, storeWarehouseUnbind, storeWarehouseRename, storeWarehouseGetPolicyConfig, storeWarehouseGetPolicyConfigFields, storeWarehouseSavePolicyConfig, saveApiConfig, storeWarehouseDeleteQimenConfig, storeWarehouseAdjustPrintQuantity, listApiConfig } from '@/api/storewarehouse.store/storeWarehouse' import { listInterfaceTypes } from '@/api/index/index' import ScanBox from '@/components/ScanBox/index.vue' import UpperTable from '@/components/UpperTable/index.vue' diff --git a/src/views/system/setting/encoding/components/PlatformCodeManagement.vue b/src/views/system/setting/encoding/components/PlatformCodeManagement.vue index a070e94d..c9353df2 100644 --- a/src/views/system/setting/encoding/components/PlatformCodeManagement.vue +++ b/src/views/system/setting/encoding/components/PlatformCodeManagement.vue @@ -28,10 +28,9 @@ row-key="id" > - - +