Skip to content

Use a single language Fluent translation file for multiple sub-crates #138

@junglie85

Description

@junglie85

Currently, if I have multiple crates in a project that I want to translate, I need to have a .ftl file for each crate:

i18n
 |-en
    |-crate_a.ftl
    |-crate_b.ftl

What I'd like is:

i18n
 |-en.ftl

But would settle for:

i18n
 |-en
    |-all_crates.ftl

The main reason for this is that I want to use the same text across multiple sub-crates, but currently I need to specify this in multiple translation files, one for each crate. If I've misunderstood and this is already possible, how do I go about it?

If it's not currently possible, there is an option for gettext to combine multiple crate's pot, po and mo's into a single location with:

extract_to_parent = true
collate_extracted_subcrates = true

Can a similar approach be used for Fluent?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions