Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
Worked on i18n support
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Mar 5, 2017
1 parent 9050703 commit 48296cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/createUniversalMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ function renderFull({ request, response, nonce, Root, apolloClient, reduxStore,
console.log("Server: Rendering app with data...")

var currentLocale = `${language}-${region}`
var messages = {}

// FIXME: so kann das ja njicht gehen... hier braucht man das echte Objekt.
var messages = import("../app/messages/" + currentLocale + ".json")

var WrappedRoot = (
<StaticRouter location={request.url} context={routingContext}>
Expand Down

0 comments on commit 48296cc

Please sign in to comment.