Skip to content

feat: persist share chat language preference#6982

Merged
c121914yu merged 4 commits into
labring:mainfrom
YYH211:codex/language-switch-persistence
May 26, 2026
Merged

feat: persist share chat language preference#6982
c121914yu merged 4 commits into
labring:mainfrom
YYH211:codex/language-switch-persistence

Conversation

@YYH211
Copy link
Copy Markdown
Collaborator

@YYH211 YYH211 commented May 25, 2026

What

  • Add an isolated share-chat language preference key so public share pages do not overwrite the main app language cookie.
  • Add language switch entries for share chat and chat sidebar user menus.
  • Preload alternate i18n resources for client-side language switching with reload fallback.

Why

Public share-chat visitors should be able to switch language without polluting the logged-in portal language preference.

Validation

  • pnpm install --frozen-lockfile
  • pnpm --filter @fastgpt/app typecheck
  • git diff --cached --check
  • git diff --check HEAD
  • pre-commit lint-staged eslint/prettier

@YYH211 YYH211 marked this pull request as ready for review May 25, 2026 10:59
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 25, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 13.9% 1135 / 8161
🔵 Statements 13.89% 1190 / 8564
🔵 Functions 12.52% 246 / 1964
🔵 Branches 11.82% 531 / 4489
File CoverageNo changed files found.
Generated in workflow #439 for commit 156d4c0 by the Vitest Coverage Report Action

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 25, 2026

Admin Preview Image Ready!

ghcr.io/labring/fastgpt-pr:admin_156d4c063e227f396b888d0468c6ca8d594e2408

🕒 Time: 2026-05-26 18:19:23 (UTC+8)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 25, 2026

Build Successful - Preview code-sandbox Image for this PR:

ghcr.io/labring/fastgpt-pr:code-sandbox_156d4c063e227f396b888d0468c6ca8d594e2408

🕒 Time: 2026-05-26 18:15:33 (UTC+8)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 25, 2026

Build Successful - Preview fastgpt Image for this PR:

ghcr.io/labring/fastgpt-pr:fastgpt_156d4c063e227f396b888d0468c6ca8d594e2408

🕒 Time: 2026-05-26 18:15:50 (UTC+8)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 25, 2026

Build Successful - Preview mcp_server Image for this PR:

ghcr.io/labring/fastgpt-pr:mcp_server_156d4c063e227f396b888d0468c6ca8d594e2408

🕒 Time: 2026-05-26 18:16:28 (UTC+8)

@c121914yu c121914yu force-pushed the codex/language-switch-persistence branch from b98d3a0 to 36203c3 Compare May 26, 2026 05:10
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

Docs Preview Deployed!

🔗 👀 Click here to visit preview

ghcr.io/labring/fastgpt-docs-pr:156d4c063e227f396b888d0468c6ca8d594e2408

🕒 Time: 2026-05-26 18:08:24 (UTC+8)

@c121914yu c121914yu force-pushed the codex/language-switch-persistence branch from 0649e1b to 156d4c0 Compare May 26, 2026 10:07
@c121914yu c121914yu force-pushed the codex/language-switch-persistence branch from 156d4c0 to 26f45a3 Compare May 26, 2026 10:48
@c121914yu c121914yu merged commit f373f43 into labring:main May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants