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

Support i18next keys that do not match the source file #13069

Open
artbokov opened this issue Nov 19, 2024 · 4 comments
Open

Support i18next keys that do not match the source file #13069

artbokov opened this issue Nov 19, 2024 · 4 comments
Labels
enhancement Adding or requesting a new feature. undecided These features might not be implemented. Can be prioritized by sponsorship.

Comments

@artbokov
Copy link

Describe the problem

Currently there is no possibility to define units that do not match the source file while using monolingual localization framework. This feature could be used to support word cases which are different for every language inside glossary.

For example:

// ru.json
{
    "word-nominative":    "слово",
    "word-genitive":      "слова",
    "word-dative":        "слову",
    "word-accusative":    "слово",
    "word-instrumental":  "словом",
    "word-prepositional": "слове",
}

// en.json
{
    "word": "word",
}

Describe the solution you would like

Enhance multistrings not only with plurals, but also with cases: "word_one#nominative": "слово".

Describe alternatives you have considered

Allow manually configure component not to drop units that don't match the source file.

Screenshots

No response

Additional context

No response

@nijel
Copy link
Member

nijel commented Nov 19, 2024

How these units should be displayed if there is no matching key with the source string? Is there some specification available for this?

@nijel nijel added enhancement Adding or requesting a new feature. undecided These features might not be implemented. Can be prioritized by sponsorship. labels Nov 19, 2024
Copy link

This issue has been put aside. It is currently unclear if it will ever be implemented as it seems to cover too narrow of a use case or doesn't seem to fit into Weblate.

Please try to clarify the use case or consider proposing something more generic to make it useful to more users.

@Anna-Art
Copy link

Anna-Art commented Nov 20, 2024

I didn't find the specifications, but there are a lot of languages that use grammatical cases. I tnink, it's not a narrow case, and many developers will face this problem using glossary in weblate.

@nijel
Copy link
Member

nijel commented Dec 11, 2024

I meant specification how this is handled on the localization framework side and how fallbacks are handled there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding or requesting a new feature. undecided These features might not be implemented. Can be prioritized by sponsorship.
Projects
Development

No branches or pull requests

3 participants