diff --git a/examples/with-react-intl/server.js b/examples/with-react-intl/server.js index 30199df9..84441798 100644 --- a/examples/with-react-intl/server.js +++ b/examples/with-react-intl/server.js @@ -42,7 +42,7 @@ const getMessages = (locale) => { app.prepare().then(() => { createServer((req, res) => { const accept = accepts(req) - const locale = accept.language(dev ? ['en'] : languages) + const locale = accept.language(languages) || 'en' req.locale = locale req.localeDataScript = getLocaleDataScript(locale) req.messages = dev ? {} : getMessages(locale)