# Internationalisation (i18n)

Demonstration of OntoWave's multilingual support: language detection, FR/EN toggle, fallback.

## Configuration

```json
{
    "i18n": {
        "default": "fr",
        "supported": ["fr", "en"]
    },
    "roots": [
        { "base": "fr", "root": "demos/02-config" },
        { "base": "en", "root": "demos/02-config" }
    ]
}
```

## Supported Languages

This page is available in **two languages**:

- 🇫🇷 **Français** — URL: `#fr/i18n`
- 🇬🇧 **English** (this page) — URL: `#en/i18n`

## Automatic Detection

OntoWave detects the browser's preferred language (`navigator.language`) and redirects to the corresponding version if it is supported.

## Manual Toggle

Language switching is done via links in the generated user interface. Each link changes the language prefix in the hash URL.

## Fallback

If a file in one language does not exist, OntoWave tries to load the default language version.

## Known Limitations

- Automatic detection is based only on `navigator.language` (not on cookies or localStorage)
- There is no server-side content negotiation (routing is entirely client-side)
