-
Notifications
You must be signed in to change notification settings - Fork 248
Rendering react-intl strings to static html #879
Comments
Pretty sure it's due to your react-intl configuration and default locale used. I don't see how Phenomic can be responsible this kind of issue (but I may miss something). |
I think we need to rename this issue 😄 |
Ok thank you. I did. I will take a look around |
Obviously yes. That's why I recommended you to use distinct page for each languages. Eg: / is the same as /en/ (you can use a link canonical or something for seo) and /fr/ is french homepage. |
*Yes for HTML. But for JS you can adjust like you want. That said, I won't play with that as sharing an url that can change the content is not a good idea to me. |
The problem is in https://github.com/MoOx/phenomic/blob/master/docs/content/docs/usage/intl.md#create-intl-reducer If I replace it with some data
Then my generated html have translated content. So :
My question is how can I generate some pages with Should I use two Do you recommend other options ? I don't see how to handle this using one webpack config. |
On putaindecode.io, we initilize locale by first looking in the url. You should keep a simple solution like that. |
Thank you. I succeed to generate right translations for my |
Be my guest! |
PR opened |
The generated html has untranslated keys instead generated ones.
<span>footer.subscribe_newsletter</span>
So if javascript is disabled, there is no text on my website.
It's very problematic for the seo.
The text was updated successfully, but these errors were encountered: