kellpossible / kellpossible/cargo-i18n
Different fluent localization files for different rust modules inside one localization domain
- Dominant language
- Rust
- Stars
- 146
- Forks
- 41
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 1
Description
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names lib.rs, mod1/file1.rs, and the expected i18n/my-crate/mod1/file.ftl path; start by tracing how localization resources are selected for the single domain.ftl file. Determine whether module-specific Fluent files are supported, and make the expected lookup behavior clear and verifiable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- localization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100