3 releases

0.1.13 Sep 4, 2024
0.1.12 Sep 4, 2024
0.1.8 Sep 3, 2024

#393 in Internationalization (i18n)

Download history 322/week @ 2024-08-31 51/week @ 2024-09-07 9/week @ 2024-09-14 20/week @ 2024-09-21 5/week @ 2024-09-28

105 downloads per month
Used in 2 crates (via i18n_js)

MulanPSL-2.0

47KB
698 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

~4–13MB
~151K SLoC