mirror of
https://github.com/Smile-QWQ/SubTracker.git
synced 2026-06-01 14:39:20 +08:00
## 中文 - 接入 shared locale-core、i18n 导出与 /api/v1/app/locale,让 lite 支持中英文切换与请求级语言透传。 - 为 App 壳子、登录页、设置页和离散消息接入本地化文案,并恢复 lite 的品牌与 Worker 提示语境。 - 同步通知模板、Apprise/Bark/NotifyX、Telegram MarkdownV2 与通知渠道设置面,保留 Worker 下仅支持 Resend、Webhook/Gotify 禁用忽略 SSL 的边界。 ## English - Add shared locale-core exports, i18n helpers, and /api/v1/app/locale so lite can switch locales and send request-scoped locale headers. - Localize the app shell, login page, settings page, and discrete messages while restoring lite branding and Worker-specific wording. - Sync notification templates, Apprise/Bark/NotifyX, Telegram MarkdownV2, and notification settings surfaces while keeping the Worker-only Resend and ignore-SSL restrictions.
17 lines
514 B
TypeScript
17 lines
514 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import path from 'node:path'
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@subtracker/shared/locale-core': path.resolve(__dirname, '../../packages/shared/src/locale-core.ts'),
|
|
'@subtracker/shared/i18n': path.resolve(__dirname, '../../packages/shared/src/i18n.ts'),
|
|
'@subtracker/shared': path.resolve(__dirname, '../../packages/shared/src/index.ts')
|
|
}
|
|
},
|
|
test: {
|
|
include: ['tests/**/*.test.ts'],
|
|
environment: 'node'
|
|
}
|
|
})
|