i18n Internationalization
Hikari's internationalization system supports multiple language switching with full RTL (Right-to-Left) support.
Supported Languages
| Language | Code | Direction |
|---|---|---|
| English | en-US | LTR |
| Simplified Chinese | zh-CHS | LTR |
| Traditional Chinese | zh-CHT | LTR |
| French | fr-FR | LTR |
| Russian | ru-RU | LTR |
| Spanish | es-ES | LTR |
| Arabic | ar-SA | RTL |
| Japanese | ja-JP | LTR |
| Korean | ko-KR | LTR |
Basic Usage
(live preview unavailable)
Language Switching
(live preview unavailable)
RTL Support
For RTL languages like Arabic, the I18nProvider automatically sets dir="rtl":
rust
1
2
3
4
5
6
7
8
9
10
11
use ;
Layout components automatically adapt to RTL direction.
API
| Property | Description | Type | Default | |
|---|---|---|---|---|
| language | Current language | Language | English | |
| toml_content | Translation content | &str | - | |
| direction | Layout direction (ThemeProvider) | "ltr" \ | "rtl" | "ltr" |