Skip to content

Repository files navigation

egui-i18n

An internationalization (i18n) library for egui, providing runtime language switching, dynamic parameter interpolation, and a language fallback chain — without any modifications to egui's source code.

Supports two independent translation backends selectable via Cargo features:

Feature Backend File format
classic (default) Key-value pairs .egl / .properties
fluent Mozilla Fluent .ftl

Installation

[dependencies]
# Classic key-value backend (default)
egui-i18n = "0.2"

# Fluent backend
egui-i18n = { version = "0.2", features = ["fluent"] }

The two features are mutually exclusive. Enabling fluent disables classic.


Examples

Two fully runnable example applications are included:

Example Command
Classic backend cargo run -p egui-i18n-example-classic
Fluent backend cargo run -p egui-i18n-example-fluent

Both examples demonstrate runtime language switching via on-screen buttons and dynamic argument interpolation.


Documentation

Full API reference, translation file format details, CLI tool usage, and integration guides are in i18n/README.md.


Project layout

egui-i18n/
├── i18n/          # Library crate (egui-i18n)
├── cli/           # CLI tool (egui-i18n-cli)
└── examples/
    ├── classic/   # Example using the classic key-value backend
    └── fluent/    # Example using the Fluent backend

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

16 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages