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

#521 in Internationalization (i18n)

Download history 5/week @ 2024-09-28 3/week @ 2024-10-05 181/week @ 2024-10-12 24/week @ 2024-10-19 6/week @ 2024-10-26 13/week @ 2024-11-02 3/week @ 2024-11-16 1/week @ 2024-11-23 15/week @ 2024-12-07 1/week @ 2024-12-14

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

MulanPSL-2.0

46KB
637 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

~6–14MB
~171K SLoC