diff --git a/README.md b/README.md index 236cbfe81..0f858ac10 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ Raspberry Pi 5 · Any x86 system + · + VPS

@@ -58,6 +60,7 @@ Just like the cloud, but one that you own and control. - [Instructions to install umbrelOS on a Raspberry Pi 4 and Pi 5](https://umbrel.com/umbrelos#install) - [Instructions to install umbrelOS on any x86 system](https://github.com/getumbrel/umbrel/wiki/Install-umbrelOS-on-x86-systems) +- [Instructions on installing umbrelOS on a VPS](https://github.com/getumbrel/umbrel/wiki/Install-umbrelOS-on-a-VPS) ## Umbrel App Store diff --git a/packages/ui/src/hooks/use-language.ts b/packages/ui/src/hooks/use-language.ts index bb758e5f9..e4815bad0 100644 --- a/packages/ui/src/hooks/use-language.ts +++ b/packages/ui/src/hooks/use-language.ts @@ -8,9 +8,12 @@ export function useLanguage() { window.location.reload() } - const code = i18next.language - - // Default to English + // Retrieve the language code from localStorage if available + const storedCode = localStorage.getItem('i18nextLng') as SupportedLanguageCode | null + + // Default to English if the code is not supported + const code = storedCode || i18next.language + if (!arrayIncludes(supportedLanguageCodes, code)) { return ['en', setCode] as const }