Closed fosskers closed 3 years ago
The setting could perhaps be set after this line: https://github.com/kellpossible/cargo-i18n/blob/master/i18n-embed/src/fluent.rs#L329
Although it's unclear to me at the moment how that setting should be communicated to load_languages
, which is a trait method. The signature can't naively be changed, since GettextLanguageLoader
also implements this trait, and wouldn't care about this Bidirectionality setting.
Oh, a method directly on FluentLanguageLoader
might do it. I will experiment with this.
Implemented now in i18n-embed
version 0.9.4
This is a feature request that stems from discoveries in the following issues:
I see that a
FluentLanguageLoader
has an innerLanguageConfig
, a struct private to that module:The
FluentBundle
is what, by default, wraps injected arguments in the supposed-to-be-invisible directionality characters described in #44 . If one has direct control over the bundle, this wrapping can be disabled via:Could a config option be offered, perhaps a field in
i18n.toml
, to set this to false?