Translate from the meta function? #188
-
Hi there, What do you recommend to use translation key in the meta? For example, we could want to index an english and a french version of a page on Google with right meta. i.e. Based on the URL, we can know if we want to load the english or the french version, or the fallbackLanguage if nothing appears on the URL. Some solutions I thought:
Do you have any better idea? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You should send the translated messages, that's why the package gives you getFixedT to use inside loader. The |
Beta Was this translation helpful? Give feedback.
You should send the translated messages, that's why the package gives you getFixedT to use inside loader.
The
t
function can't be sent from the loader to meta because MetaFunction run's client-side too so the data it receives will need to be serialized and functions can't be serialized.