telar 0.2.1

A modular Rust UI framework with its own template language, reactive signals and a self-contained renderer.
1
2
3
4
5
6
7
8
9
10
use super::*;

#[test]
fn switching_to_an_rtl_locale_flips_the_direction_and_back() {
    follow_locale_direction();
    i18n_core::set_locale("ar");
    assert_eq!(ui_core::current_direction(), Direction::Rtl);
    i18n_core::set_locale("es");
    assert_eq!(ui_core::current_direction(), Direction::Ltr);
}