Support of context
See original GitHub issueComing from this discussion and from my experience with gettext
Is your feature request related to a problem? Please describe. Some times a same message can be translated differently depending on context, so catalog should contains as many as entries as needed
Describe the solution you’d like A way to handle hierarchical structure of message id or abstraction around context option / attribute
Describe alternatives you’ve considered
I tried id
with prefixed message but it could lead to translation error.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Defining social support in context: a necessary step ... - PubMed
In this article concept analysis is used to evaluate definitions of social support to ascertain their utility for research. The authors argue that...
Read more >What Is Contextual Support, and Why Is It Critical to Live Chat?
Contextual support means meeting customers where they are with relevant answers — and modern live chat software isn't complete without it.
Read more >The Importance of Context in Customer Service | CustomerThink
In our contact center, context is a major point of emphasis. Here are some of the ways we gain context on a regular...
Read more >What is Contextual Help, and how it can lead to happier users
Contextual help makes your software easier to use and is the least demanding way to offer user support. What's known as context switching...
Read more >Defining Social Support in Context: A Necessary Step in ...
In this article concept analysis is used to evaluate definitions of social support to ascertain their utility for research. The authors argue that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @JSteunou, unfortunatelly, context isn’t supported at the moment. @FredyC also come across msgctx while improving po file support, but we agreed we won’t include it at the moment.
Possible workaround is either to use message ID
context.id
with default message or add context to default message ((context) message
). In upcoming release, there’s gonna be support for message descriptions, so you can communicate with translator what kind of message is it.I believe we could support message context even without breaking the app completely. We could join message descriptor into single ID during compile if app uses context. For that we need to figure out how to transform IDs in production code, similar to #139.
I’ll leave it open for now, but considering possible workarounds, it has a little priority. I’m open to suggestions!
@FredyC Ops, I missed that. Here it is: https://lingui.js.org/ref/macro.html#description