4 releases

0.1.14 Oct 15, 2024
0.1.13 Sep 4, 2024
0.1.12 Sep 4, 2024
0.1.8 Sep 3, 2024

#363 in Internationalization (i18n)


Used in 2 crates (via i18n_js)

MulanPSL-2.0

43KB
638 lines

change

use std::path::PathBuf;

use aok::{Result, OK};
use static_init::constructor;

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

// #[tokio::test]
// async fn test() -> Result<()> {
//   info!("{}", 123456);
//   OK
// }

#[test]
fn test() -> Result<()> {
  let root: PathBuf = "/Users/z/i18n/md".into();
  let yml_fp = root.join(".i18n").join("data").join("public").join("dev");

  let scan = change::Scan::new(root.join("public"))?;
  let change = scan.change(&yml_fp)?;
  change.save()?;
  OK
}

About

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

关于

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

Dependencies

~5–13MB
~151K SLoC