Skip to content

Commit 03c06db

Browse files
committed
feat: Add full i18n support for website
- Hero, ToolTabs, HowItWorks components now use translations - All UI text translated to EN, ZH, KO, JA - Removed unused Features.astro component - Translation keys for setup, workflow, benefits sections - Docs pages maintain backward compatibility
1 parent cc3eb77 commit 03c06db

8 files changed

Lines changed: 229 additions & 542 deletions

File tree

docs/src/components/Features.astro

Lines changed: 0 additions & 274 deletions
This file was deleted.

docs/src/components/Hero.astro

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
---
2-
// Hero section
2+
import { getLangFromUrl, useTranslations } from '../i18n/utils';
3+
4+
const lang = getLangFromUrl(Astro.url);
5+
const t = useTranslations(lang);
36
---
47

58
<section class="hero">
69
<div class="container">
7-
<div class="hero-badge">AI Development Workflow</div>
10+
<div class="hero-badge">{t('hero.badge')}</div>
811
<h1 class="hero-title">ralphy-spec</h1>
9-
<p class="hero-subtitle">Spec-driven development with iterative AI execution.<br/>OpenSpec + Ralph Loop in one command.</p>
12+
<p class="hero-subtitle" set:html={t('hero.subtitle')}></p>
1013

1114
<div class="hero-actions">
12-
<a href="#setup" class="btn btn-primary">Get Started</a>
15+
<a href="#setup" class="btn btn-primary">{t('hero.cta')}</a>
1316
<a href="https://github.com/wenqingyu/ralphy-openspec" target="_blank" rel="noopener" class="btn btn-secondary">
14-
View Source
17+
{t('hero.viewSource')}
1518
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5">
1619
<path d="M2.5 9.5L9.5 2.5M9.5 2.5H4M9.5 2.5V8"/>
1720
</svg>

0 commit comments

Comments
 (0)