Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different fluent localization files for different rust modules inside one localization domain #74

Open
rostamn739 opened this issue Nov 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@rostamn739
Copy link

I have a crate that contains several modules for which I want to embed the localization resources

Suppose my crate is structured as:
-- lib.rs
-- mod1
---- file1.rs

I expect the i18n-embed system to search for localization files in

-- i18n/my-crate/mod1/file.ftl

But all it does ever consider is a single file {domain.ftl} (e.g. my-crate.ftl) which is used for all the tranlsation strings across my crate

Is there a way to avoid clumping of every single localized string into a single Fluent file?

@kellpossible
Copy link
Owner

kellpossible commented Nov 29, 2021

Hi, sorry for the slow reply! At the moment I don't think this behaviour is supported. I'm curious are you using any localization management tools, and if so do they also support having a split by module like this? If there is some established tooling support for this layout I could be convinced to implement the feature myself, otherwise I would also be open to a PR for implementing this.

@kellpossible kellpossible added the enhancement New feature or request label May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants