4 releases

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

#399 in Internationalization (i18n)

Download history 359/week @ 2024-09-02 15/week @ 2024-09-09 9/week @ 2024-09-16 21/week @ 2024-09-23 3/week @ 2024-09-30 4/week @ 2024-10-07 204/week @ 2024-10-14

232 downloads per month
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