Documentation

tran_trait

use aok::{OK, Void};
use tracing::info;
use tran_trait::TxtLi;

#[static_init::constructor(0)]
extern "C" fn _loginit() {
  loginit::init();
}

#[test]
fn test_restore() -> Void {
  let mut txt_li = TxtLi::new();
  txt_li.push_tran("1");
  txt_li.push_no_tran("2");
  txt_li.push_tran("3");
  txt_li.push_no_tran("4");
  info!("{}", txt_li.restore << txt_li.li);
  OK
}

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。