justinas / gettext

Gettext for Rust. Kind of.
MIT License
56 stars 8 forks source link

Add ability to merge catalogs #17

Open rmccue opened 1 year ago

rmccue commented 1 year ago

I'm replacing an existing gettext implementation which supports splitting strings across multiple mo files, and merging multiple catalogs together.

To support this, I've added Catalog::merge which accepts another Catalog, and which extends the strings with those of the other catalog.