Using i18n with .json translation files in server code #3986
Unanswered
antonykamp
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
-
Hey guys,
I have the following issue 😄 I hope you can help and we have a friendly discussion.
I want to use i18n with i18next in my blitzjs-app with translations in
.json
files in mypublic/
folder.Because blitzjs works client- and server-side, I may have to initialize two instances of i18next. The client one uses "react-i18next" and the plugin "i18next-http-backend".
But how can server one access the translation files? Can I access the public folder somehow from the server side?
I would appreciate any help and any comment 👼 I'm happy to answer your questions regarding my issue or anything else 🥳
I wish you a great day!
Antony 😊
Beta Was this translation helpful? Give feedback.
All reactions