-
Notifications
You must be signed in to change notification settings - Fork 227
Translations not available on the server when server-side rendering React #1464
Comments
I think this is actually expected. Since en is the only lang being sync load when using babel plugin. To opt out of this behaviour, you can
|
🤔 My understanding was that while it is true that |
@TheMallen is right. I re-run the test again with your component vs Sorry I miss spoke before. |
Fixed here with a small tweak to the universal provider code. I think this will work with the universal provider. Why it wasn't working before was because the locale wasn't consistent. That's a separate issue though so I'll close this for now. |
@kvendrik I think you can still use the universal provider and just pass in
|
Overview
Not all translations are available when the server-side render happens causing the UI to first render in english and then update on the client.
Consuming repo
Signage
Example here: https://github.com/Shopify/signage/compare/master...feature/i18n-no-server-access-repro. There's some clutter around it but not much is being rendered, have a look at
App.tsx
.Checklist
The text was updated successfully, but these errors were encountered: