[PR #2236] [MERGED] fix: load i18n before showing error page #43985

Closed
opened 2026-04-29 17:58:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: error-page-fix


📝 Commits (1)

  • df167d8 fix: 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

  • 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:

Screenshot 2024-05-13 at 18 01 09


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: ![Screenshot 2024-05-13 at 18 01 09](https://github.com/open-webui/open-webui/assets/58669/b82abefd-8837-4e20-a830-7aa816848cf4) --- ### 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>
GiteaMirror added the pull-request label 2026-04-29 17:58:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#43985