Scoped context
#2201
Replies: 1 comment
-
TL;DR; Explanation:
This will allow you to still use a global Unfortunately this couldn't be incorporated to a library because the variety of the way how the backend might be configured, what framework you use, what runtime you use etc so big so Lingui simply couldn't cover every possible case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Description
When using lingui purely server side (no React), globally setting the language can easily lead to race issues. Example:
Proposed Solution
Introduce the possibility to scope a language. For example:
Alternatives Considered
Add a
locale
option to the translation functions such ast
,msg
, etc.Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions