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
@@ -1,16 +1,18 @@
import "../../brand/index.css"
import "./index.css"
import { Title, Meta, Link } from "@solidjs/meta"
import { Title, Meta } from "@solidjs/meta"
import { Header } from "~/component/header"
import { config } from "~/config"
import { Footer } from "~/component/footer"
import { Legal } from "~/component/legal"
import { LocaleLinks } from "~/component/locale-links"
import { useLanguage } from "~/context/language"
export default function PrivacyPolicy() {
const language = useLanguage()
return (
<main data-page="legal">
<Title>OpenCode | Privacy Policy</Title>
<Link rel="canonical" href={`${config.baseUrl}/legal/privacy-policy`} />
<LocaleLinks path="/legal/privacy-policy" />
<Meta name="description" content="OpenCode privacy policy" />
<div data-component="container">
<Header />
@@ -33,9 +35,9 @@ export default function PrivacyPolicy() {
<p>
Remember that your use of OpenCode is at all times subject to our Terms of Use,{" "}
<a href="/legal/terms-of-service">https://opencode.ai/legal/terms-of-service</a>, which incorporates
this Privacy Policy. Any terms we use in this Policy without defining them have the definitions given to
them in the Terms of Use.
<a href={language.route("/legal/terms-of-service")}>https://opencode.ai/legal/terms-of-service</a>,
which incorporates this Privacy Policy. Any terms we use in this Policy without defining them have the
definitions given to them in the Terms of Use.
</p>
<p>You may print a copy of this Privacy Policy by clicking the print button in your browser.</p>
@@ -1,16 +1,18 @@
import "../../brand/index.css"
import "./index.css"
import { Title, Meta, Link } from "@solidjs/meta"
import { Title, Meta } from "@solidjs/meta"
import { Header } from "~/component/header"
import { config } from "~/config"
import { Footer } from "~/component/footer"
import { Legal } from "~/component/legal"
import { LocaleLinks } from "~/component/locale-links"
import { useLanguage } from "~/context/language"
export default function TermsOfService() {
const language = useLanguage()
return (
<main data-page="legal">
<Title>OpenCode | Terms of Service</Title>
<Link rel="canonical" href={`${config.baseUrl}/legal/terms-of-service`} />
<LocaleLinks path="/legal/terms-of-service" />
<Meta name="description" content="OpenCode terms of service" />
<div data-component="container">
<Header />
@@ -36,7 +38,7 @@ export default function TermsOfService() {
<strong>ANOMALY INNOVATIONS, INC.</strong> ("OpenCode," "we" and "us"). Your use of the Services in any
way means that you agree to all of these Terms, and these Terms will remain in effect while you use the
Services. These Terms include the provisions in this document as well as those in the Privacy Policy{" "}
<a href="/legal/privacy-policy">https://opencode.ai/legal/privacy-policy</a>.{" "}
<a href={language.route("/legal/privacy-policy")}>https://opencode.ai/legal/privacy-policy</a>.{" "}
<strong>
Your use of or participation in certain Services may also be subject to additional policies, rules
and/or conditions ("Additional Terms"), which are incorporated herein by reference, and you understand
@@ -259,9 +261,10 @@ export default function TermsOfService() {
<h3>Paid Services</h3>
<p>
Certain of our Services, including Zen, may be subject to payments now or in the future (the "Paid
Services"). Please see our Paid Services page <a href="/zen">https://opencode.ai/zen</a> for a
description of the current Paid Services. Please note that any payment terms presented to you in the
process of using or signing up for a Paid Service are deemed part of these Terms.
Services"). Please see our Paid Services page{" "}
<a href={language.route("/zen")}>https://opencode.ai/zen</a> for a description of the current Paid
Services. Please note that any payment terms presented to you in the process of using or signing up for
a Paid Service are deemed part of these Terms.
</p>
<h3>Billing</h3>
@@ -315,9 +318,9 @@ export default function TermsOfService() {
<h2 id="what-if-i-want-to-stop">What if I want to stop using the Services?</h2>
<p>
You're free to do that at any time; please refer to our Privacy Policy{" "}
<a href="/legal/privacy-policy">https://opencode.ai/legal/privacy-policy</a>, as well as the licenses
above, to understand how we treat information you provide to us after you have stopped using our
Services.
<a href={language.route("/legal/privacy-policy")}>https://opencode.ai/legal/privacy-policy</a>, as well
as the licenses above, to understand how we treat information you provide to us after you have stopped
using our Services.
</p>
<p>