feat(i18n): add i18n for remaining pages and fix content disorder

fix unable to automatically download AI-generated content
add github action to enter the corresponding key into the generation environment
This commit is contained in:
Dawn
2025-11-29 07:06:40 +08:00
parent d582052da4
commit b7ec9b21d4
16 changed files with 621 additions and 276 deletions

View File

@@ -183,6 +183,26 @@ jobs:
}
EOF
- name: Prepare production config
shell: bash
env:
YOUDAO_APP_KEY: ${{ secrets.YOUDAO_APP_KEY }}
YOUDAO_APP_SECRET: ${{ secrets.YOUDAO_APP_SECRET }}
TENCENT_API_KEY: ${{ secrets.TENCENT_API_KEY }}
TENCENT_SECRET_ID: ${{ secrets.TENCENT_SECRET_ID }}
TENCENT_MAP_KEY: ${{ secrets.TENCENT_MAP_KEY }}
run: |
mkdir -p src-tauri/configuration
cat > src-tauri/configuration/production.yaml <<'EOF'
youdao:
app_key: "${YOUDAO_APP_KEY}"
app_secret: "${YOUDAO_APP_SECRET}"
tencent:
api_key: "${TENCENT_API_KEY}"
secret_id: "${TENCENT_SECRET_ID}"
map_key: "${TENCENT_MAP_KEY}"
EOF
# 安装 Rust
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly