Skip to content

Add support for embedding cross-language/region translations #418

@mondeja

Description

@mondeja

In simpleicons.org, we're introducing translation messages in icon modals that include language-country identifiers as arguments for translations in simple-icons/simple-icons-website-rs#455

The fluent message is like:

copy-alias-loc = Copy { $icon } ({ $lang }) localized name ({ $alias })

where $lang can be any combination of {ISO 639 language code}-{ISO 3166 region code}.

Currently, we're translating this as Copiar nombre traducido de Ameba en ja-JP (アメブロ), where ja-JP is not very readable. It would be better to display Copiar nombre traducido de Ameba en japonés de Japón (アメブロ).

We can't add new translation messages for each possible combination of language / region codes because these languages can be whatever language from aliases in Simple Icons, which are added freely in a separate package as part of the data provided by Simple Icons. If we want to display readable languages/regions it becomes unmaintaible.

So it would be great to provide cross-language/region translations for each language included in translations, either from leptos-fluent directly or another separate package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions