My website is is built in french and english.
I want to display my website by default in the user's browser language.
While it's quite easy to add and populate variations for nodes in the backoffice, I can't seem to find how to get variations for any specific node, within my code. I would then redirect the user to the appropriate variation.
Variations for user
Hi all,
My website is is built in french and english. I want to display my website by default in the user's browser language.
While it's quite easy to add and populate variations for nodes in the backoffice, I can't seem to find how to get variations for any specific node, within my code. I would then redirect the user to the appropriate variation.
What's the appropriate way to set this up?
thanks and cheers,
Found a similar thread here: https://our.umbraco.com/forum/umbraco-8/95909-umbraco-v8-multilanguage.
The following code works for this purpose:
is working on a reply...