feat(www): locale specific urls (#12508)

This commit is contained in:
Adam
2026-02-06 11:30:40 -06:00
committed by GitHub
parent 8069197329
commit 24cd84cda5
33 changed files with 279 additions and 134 deletions

View File

@@ -6,6 +6,7 @@ import { UserMenu } from "./user-menu"
import { withActor } from "~/context/auth.withActor"
import { User } from "@opencode-ai/console-core/user.js"
import { Actor } from "@opencode-ai/console-core/actor.js"
import { useLanguage } from "~/context/language"
const getUserEmail = query(async (workspaceID: string) => {
"use server"
@@ -18,12 +19,13 @@ const getUserEmail = query(async (workspaceID: string) => {
export default function WorkspaceLayout(props: RouteSectionProps) {
const params = useParams()
const language = useLanguage()
const userEmail = createAsync(() => getUserEmail(params.id!))
return (
<main data-page="workspace">
<header data-component="workspace-header">
<div data-slot="header-brand">
<A href="/" data-component="site-title">
<A href={language.route("/")} data-component="site-title">
<IconWorkspaceLogo />
</A>
<WorkspacePicker />