7 releases
0.1.1 | Jan 20, 2025 |
---|---|
0.1.0 | Jan 18, 2024 |
0.0.5 | Mar 12, 2023 |
#57 in Internationalization (i18n)
95 downloads per month
245KB
6.5K
SLoC
rspolib
Port to Rust of the Python library polib.
Install
cargo add rspolib
Usage
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
Python bindings
Usage
import polib
import rspolib
rspo = rspolib.pofile(f"{tests_dir}/django-complete.po")
pypo = polib.pofile(f"{tests_dir}/django-complete.po")
Dependencies
~2.5MB
~41K SLoC