Target branch: Pull requests should target the dev branch.
Description: Briefly describe the changes in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Description
This PR fixes the initial backend connectivity check to not leave the user looking at the splash screen if there's a network error, and that if there is a network error, some i18n strings are loaded, so the resulting error page doesn't look like:
Changelog Entry
Fixed
Ensured localization is loaded before attempting to show the initial error page.
Additional Information
Noticed this while developing stuff and didn't have the backend up and running.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/2236
**Author:** [@akx](https://github.com/akx)
**Created:** 5/13/2024
**Status:** ✅ Merged
**Merged:** 5/13/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `error-page-fix`
---
### 📝 Commits (1)
- [`df167d8`](https://github.com/open-webui/open-webui/commit/df167d87855f8b5e7bddc32ef3c3cd489027c7e1) fix: load i18n for /error page
### 📊 Changes
**2 files changed** (+11 additions, -9 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/i18n/index.ts` (+1 -1)
📝 `src/routes/+layout.svelte` (+10 -8)
</details>
### 📄 Description
## Pull Request Checklist
- [x] **Target branch:** Pull requests should target the `dev` branch.
- [x] **Description:** Briefly describe the changes in this pull request.
- [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
---
## Description
This PR fixes the initial backend connectivity check to not leave the user looking at the splash screen if there's a network error, and that if there is a network error, some i18n strings are loaded, so the resulting error page doesn't look like:

---
### Changelog Entry
### Fixed
- Ensured localization is loaded before attempting to show the initial error page.
### Additional Information
- Noticed this while developing stuff and didn't have the backend up and running.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/2236
Author: @akx
Created: 5/13/2024
Status: ✅ Merged
Merged: 5/13/2024
Merged by: @tjbck
Base:
dev← Head:error-page-fix📝 Commits (1)
df167d8fix: load i18n for /error page📊 Changes
2 files changed (+11 additions, -9 deletions)
View changed files
📝
src/lib/i18n/index.ts(+1 -1)📝
src/routes/+layout.svelte(+10 -8)📄 Description
Pull Request Checklist
devbranch.Description
This PR fixes the initial backend connectivity check to not leave the user looking at the splash screen if there's a network error, and that if there is a network error, some i18n strings are loaded, so the resulting error page doesn't look like:
Changelog Entry
Fixed
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.