# Adding New Language for Website

This guide explains how to add support for a new language to the Kueue website.

## Steps

### 1. Configure Hugo

Add the new language to `site/hugo.toml`:

```toml
[languages.LANG_CODE]
  title = "Kueue"
  languageName = "Language Name"
  weight = 3
  contentDir = "content/LANG_CODE"
  [languages.LANG_CODE.params]
    language_code = "LANG_CODE"
```

- Replace `LANG_CODE` with the language code (e.g., `fr`, `de`, `ja`).
- Use standard codes from [RFC 5646](https://tools.ietf.org/html/rfc5646).

### 2. Create Translation File

Add translations to `site/i18n/LANG_CODE.yaml`:

- Keep technical terms like "Kueue" untranslated.
- Maintain consistent terminology.

### 3. Translate the Homepage

Update `site/content/LANG_CODE/_index.html`:

```html
+++
title = "Kueue"
description = "Translated description of Kueue"
+++

{{< blocks/cover title="Welcome to Kueue" >}}
<a href="/LANG_CODE/docs/">Read Documentation</a>
<p>Kubernetes-native job queueing</p>
{{< /blocks/cover >}}
```

### 4. Sync Documentation

Copy English docs to the new language directory:

```bash
cp -r site/content/en/* site/content/LANG_CODE/
```

### 5. Test

Start the dev server and verify:

```bash
make site-server
```

Visit `http://localhost:1313/LANG_CODE/` to check translations.
