diff --git a/.vscode/settings.json b/.vscode/settings.json index 2cc323d..6fa6bd4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,19 +1,68 @@ { - "sqltools.connections": [ - { - "mysqlOptions": { - "authProtocol": "default", - "enableSsl": "Disabled" - }, - "previewLimit": 50, - "server": "localhost", - "port": 3306, - "driver": "MySQL", - "name": "local", - "database": "b3log_symphony", - "username": "root", - "password": "123456" - } + "sqltools.connections": [ + { + "mysqlOptions": { + "authProtocol": "default", + "enableSsl": "Disabled" + }, + "previewLimit": 50, + "server": "localhost", + "port": 3306, + "driver": "MySQL", + "name": "local", + "database": "b3log_symphony", + "username": "root", + "password": "123456" + } + ], + "commentTranslate.targetLanguage": "zh-CN", + "i18n-ally.localesPaths": ["../../../git-program/paper-ai/app/i18n"], + + "i18n-ally.keystyle": "nested", + + "i18n-ally.namespace": true, + + "i18n-ally.enabledParsers": ["json", "js"], + + "i18n-ally.sortKeys": true, + + "i18n-ally.sourceLanguage": "zh-CN", + + "i18n-ally.displayLanguage": "en", + "i18n-ally.editor.preferEditor": true, + + "i18n-ally.extract.keygenStyle": "camelCase", + "i18n-ally.enabledFrameworks": ["i18next"], + // Parser options for extracting HTML, see https://github.com/lokalise/i18n-ally/blob/master/src/extraction/parsers/options.ts + "i18n-ally.extract.parsers.html": { + "attributes": [ + "text", + "title", + "alt", + "placeholder", + "label", + "aria-label", + "button" ], - "commentTranslate.targetLanguage": "zh-CN" -} \ No newline at end of file + "ignoredTags": ["script", "style"], + "vBind": true, + "inlineText": true + }, + + // Enables hard-coded strings detection automatically whenever opening supported a file + "i18n-ally.extract.autoDetect": true, + + // Make sure that particular refactoring templates would be picked up be the bulk extraction depending on the context + "i18n-ally.refactor.templates": [ + { + // affect scope (optional) + // see https://github.com/lokalise/i18n-ally/blob/master/src/core/types.ts#L156-L156 + "source": "html-attribute", + "templates": ["i18n.t('{key}'{args})", "custom.t('{key}'{args})"], + // accept globs, resolved to project root (optional) + "include": ["app/**/*.{vue,ts,js,tsx}", "index.html"], + "exclude": ["src/config/**"] + } + // ... + ] +} diff --git a/app/i18n/en.json b/app/i18n/en.json new file mode 100644 index 0000000..e69de29 diff --git a/app/i18n/zh-CN.json b/app/i18n/zh-CN.json new file mode 100644 index 0000000..e69de29 diff --git a/components/BuyVipButton.tsx b/components/BuyVipButton.tsx index 2427788..42394b3 100644 --- a/components/BuyVipButton.tsx +++ b/components/BuyVipButton.tsx @@ -4,7 +4,7 @@ import { sendGAEvent } from "@next/third-parties/google"; // BuyVipButton 组件 function BuyVipButton() { // 这是购买VIP的目标URL - const targetUrl = "https://store.paperai.life/checkout"; + const targetUrl = "https://store.paperai.life"; return (