# Preserving Language Preferences on a Hugo Website

**URL:** <https://discourse.gohugo.io/t/preserving-language-preferences-on-a-hugo-website/45013>\
**Category:** tips & tricks\
**Tags:** i18n\
**Created:** [June 26, 2023, 7:06pm UTC](https://discourse.gohugo.io/t/preserving-language-preferences-on-a-hugo-website/45013 "2023-06-26T19:06:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![papasmurf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/papasmurf/32/19522_2.png) [@papasmurf](https://discourse.gohugo.io/u/papasmurf)\
**Post date:** [June 26, 2023, 7:06pm UTC](https://discourse.gohugo.io/t/preserving-language-preferences-on-a-hugo-website/45013/1 "2023-06-26T19:06:25Z")

</div>

I have been looking for a way to save the language choice of the visitors of my website, so that it automatically will use that selection again when the visitor returns.  
I didn’t find an easy solution, apart from people saying that this has to be implemented by the theme authors. I tried to find a theme where this is implemented, but didn’t find one. So I decided to give it a try myself. Successfully.  
Indeed, it is dependent on the theme implementation, but I hope my solution will still help others to adapt the theme they are using.

See: [Maintaining Language Preferences on a Hugo Website - papasmurf.nl](https://papasmurf.nl/en/blog/hugo_language/)
