# web-global **Repository Path**: chen_quan_jie/web-global ## Basic Information - **Project Name**: web-global - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-20 - **Last Updated**: 2026-03-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # web-ffy 1. tinyi18n.config.json ```jsonc { "$schema": "https://www.tinyi18n.com/schema.json", "url": "https://v1.tinyi18n.com", "secret": "", // 密钥 "clean": true, "entries": [ { "flat": true, "dir": "apps/admin/src/locales", "namespaces": ["shared"] }, { "flat": true, "dir": "apps/console/src/locales", "namespaces": ["console", "shared"] }, { "flat": true, "dir": "apps/website/src/locales", "namespaces": ["website", "shared"] }, { "flat": true, "dir": "apps/sso/src/locales", "namespaces": ["sso", "shared"] } ] } ``` ```bash # 生成翻译文件 pnpm create tinyi18n@latest ``` > `pnpm config set ignore-workspace-root-check true` 2. 添加组件 ```bash npx shadcn-vue@latest add # npx shadcn-vue@latest add button ``` 3. vue-sonner 使用 ```ts import { toast } from 'vue-sonner' toast.success('成功') ``` ```ts // const { // loading: paymentLoading, // createPaymentMethod, // onSuccess, // } = usePayment({ // create: addFinancePaymentMethodApi, // capture: postFinanceCaptureSetupTokenApi, // methods: getFinancePaymentMethodsListApi, // }) // onSuccess(() => { // refreshPaymentMethods() // }) ```