mirror of
https://github.com/storytold/egui.git
synced 2026-11-29 17:54:17 +01:00
`Context::set_language` sets the UI language (a BCP 47 tag, in `Options::language`), which goes on the root of the AccessKit tree. Content in another language says so with `UiBuilder::language`, which sets it on that `Ui`'s node and in `Ui::language`, or with `Response::accessible_language` for a single widget. Text runs follow the galley's bidi levels: a row is split into one run per stretch of one level, with its real direction and its logical text. Character positions of a right-to-left run count from its right edge, as AccessKit expects.