Crates.io | rspolib |
lib.rs | rspolib |
version | 0.1.0 |
source | src |
created_at | 2023-03-04 22:56:40.120344 |
updated_at | 2024-01-18 05:47:36.571024 |
description | PO and MO files manipulation library. |
homepage | |
repository | https://github.com/mondeja/rspolib |
max_upload_size | |
id | 800900 |
size | 246,907 |
Port to Rust of the Python library polib.
cargo add rspolib
use rspolib::{pofile, prelude::*};
let po = pofile("./tests-data/flags.po").unwrap();
for entry in &po.entries {
println!("{}", entry.msgid);
}
po.save("./file.po");
See the documentation at docs.rs/rspolib