Expand description
Internationalization support for the code editor.
This module provides translation support for UI text in the search dialog.
§Using Translations
The translations are available in YAML files in the locales directory,
loaded through the rust-i18n crate. Application code does not call
rust-i18n’s t! macro directly — it is not part of this crate’s public
API. Instead, look up translated strings through Translations:
use iced_code_editor::{Language, Translations};
let translations = Translations::new(Language::English);
assert_eq!(translations.search_placeholder(), "Search...");Structs§
- Translations
- Provides translated text strings for UI elements.
Enums§
- Language
- Supported languages for the code editor UI.