Internationalization #2897
Unanswered
Valdes-Tresanco-MS
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Would something like this work? class Trans(rx.Component):
"""I18n component."""
# The React library to wrap.
library = 'react-i18next'
# The React component tag.
tag = "Trans"
trans = Trans.createAnd then use the function like def index():
return trans("hello")I'm not an expert on this, but from my glance at the docs, the Trans React component seems to do this. https://react.i18next.com/latest/trans-component |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to do internationalization?
I certainly can't find a way to wrap
react-i18nextorreact-intlAny example can help.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions