projectfluent / fluent-rs

Rust implementation of Project Fluent
https://projectfluent.org
Apache License 2.0
1.08k stars 97 forks source link

ResourceManager needs to implement BundleGenerator #281

Open gregtatum opened 1 year ago

gregtatum commented 1 year ago

https://github.com/projectfluent/fluent-rs/blob/9e62af6f18f5efed4ad8faaca2c6c0ceb14d5bde/fluent-resmgr/src/resource_manager.rs#L107-L135

gregtatum commented 1 year ago

If the idea is that the user should implement these, then it needs to be documented as such.

gregtatum commented 1 year ago

An example of this API appears to be faked in:

https://github.com/projectfluent/fluent-rs/blob/9e62af6f18f5efed4ad8faaca2c6c0ceb14d5bde/fluent-fallback/tests/localization_test.rs#L129-L142