Internationalization #2897
Valdes-Tresanco-MS
announced 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.create And 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
-
Is there a way to do internationalization?
I certainly can't find a way to wrap
react-i18next
orreact-intl
Any example can help.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions