#511·vitesse

Language preferences are not preserved

Author: Dup4Created Oct 30, 2023Updated May 15, 2024

Describe the bug

https://github.com/antfu/vitesse/assets/38343778/ec6c2832-eb59-4f59-b915-399c19b48788

As you can see in the video, I switched the colour theme to bright colours, as well as switching the language

And then refreshed the page

After that, the colour theme is still bright, but the language is back to English

So, I think we should make the language preference persistent in the browser as well

Reproduction

https://vitesse.netlify.app/

System Info

bash
System:
    OS: macOS 14.0
    CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
    Memory: 681.03 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
    Yarn: 1.22.18 - /usr/local/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v16.16.0/bin/npm
    pnpm: 8.6.12 - ~/.nvm/versions/node/v16.16.0/bin/pnpm
  Browsers:
    Chrome: 118.0.5993.117
    Safari: 17.0

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Source: antfu-collective/vitesse