XAMPPRocky / fluent-templates

Easily add Fluent to your Rust project.
Apache License 2.0
136 stars 28 forks source link

Add `fallback` methods to `StaticLoader` and `ArcLoader` #71

Closed mondeja closed 3 months ago

mondeja commented 3 months ago

Currently, there is no way to get the fallback language previously defined at the initialization of the first-party loaders. This is especially awkard for the StaticLoader because is built from a macro that doesn't allows to set the fallback language from the output of another macro nor a dynamic string.

XAMPPRocky commented 3 months ago

Thank you for your PR! Would you be able to make this a a method instead? I think I would rather not expose it as a field.

mondeja commented 3 months ago

Sure, it's done!

XAMPPRocky commented 3 months ago

Thank you for your PR!