Singleton for I18nContext.current<I18nTranslations>().t() #615
Unanswered
sulthonuladib
asked this question in
Q&A
Replies: 0 comments
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.
-
Is there any way to create singleton for current context, for example:
then we can use it everywhere like
it's kinda redundant when inject the service everywhere or add the decorator on every controller.
currently i make my own resolver that will fetch current user language on DB, and can be replaced from Header just in case for public endpoints.
Beta Was this translation helpful? Give feedback.
All reactions