paypal / react-engine

a composite render engine for universal (isomorphic) express apps to render both plain react views and react-router views
Apache License 2.0
1.45k stars 130 forks source link

Server side localization #197

Open zer0Id0l opened 6 years ago

zer0Id0l commented 6 years ago

Any suggestion for server side localization? Currently I am simply loading the content for each request and passing it down to view as props. Any better suggestion?

samsel commented 6 years ago

@zer0Id0l what are the downsides to your current approach? we've been loading content in middleware after locales are resolved and following the same pattern. btw, are you using react-intl?