You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of defining translations in jsons, we'd like to define them in the tsx directly and then load the relevant page, based on the selected language.
These pages have so much (multiline) text, with complex formatting, we decided to simply create separate files and bypass the json files.
In other words /hello loads pages/hello.tsx /de/hello should load pages/de/hello.tsx, but currently loads pages/hello.tsx
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
Instead of defining translations in jsons, we'd like to define them in the tsx directly and then load the relevant page, based on the selected language.
These pages have so much (multiline) text, with complex formatting, we decided to simply create separate files and bypass the json files.
In other words
/hello
loadspages/hello.tsx
/de/hello
should loadpages/de/hello.tsx
, but currently loadspages/hello.tsx
Any ideas?
Thanks,
Miran
Beta Was this translation helpful? Give feedback.
All reactions