[PR #20512] feat: allow multi language setting for translations #80522

Open
opened 2026-05-13 14:38:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/20512
Author: @alvarellos
Created: 1/9/2026
Status: 🔄 Open

Base: devHead: feature/Multi-language-settings


📝 Commits (5)

  • a4a8c33 feat(translations): allow multi language setting for translations, applied to banners
  • 62898cb rename file hook.client
  • af2c7c2 fix conflict 11-2-2026
  • a6a6af7 update with upstream dev 3-3-2026
  • 5277b61 solve issues with the update with v0.8.8

📊 Changes

13 files changed (+761 additions, -106 deletions)

View changed files

📝 backend/open_webui/config.py (+6 -0)
📝 backend/open_webui/main.py (+3 -0)
📝 backend/open_webui/routers/tasks.py (+8 -1)
src/hooks.client.ts (+32 -0)
📝 src/lib/components/admin/Settings/Interface.svelte (+89 -1)
📝 src/lib/components/admin/Settings/Interface/Banners.svelte (+286 -98)
src/lib/components/admin/Settings/LangPicker.svelte (+135 -0)
📝 src/lib/components/chat/Chat.svelte (+31 -0)
📝 src/lib/components/common/Banner.svelte (+3 -1)
📝 src/lib/i18n/index.ts (+163 -5)
📝 src/lib/stores/index.ts (+1 -0)
📝 src/routes/(app)/+layout.svelte (+2 -0)
📝 src/routes/+layout.svelte (+2 -0)

📄 Description

Pull Request Checklist

Discussion opened

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: The user can see the translation of the Model Name and the Suggested Prompts. The admin can introduce such changes.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests to validate the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

  • Support multi translation which adapts to user language settings.

Added

  • Add in the global configuration de languages needed for the translations.
  • Edit and Update translation for Banners (all languages selected in the configuration)

Changed

  • Should be compatible with the old implementation. But appreciate when is more tested

Deprecated

  • Nothing should be deprecated as this should be an added feature.

Removed

  • Nothing has been removed.

Fixed

  • No bug fixing included

Security

  • No vulnerability were found.

Breaking Changes

  • Normally not breaking changes. But it would be interested to see behabiour with old type of Name and Meta in the model table (name and meta)

Additional Information

Screenshots or Videos

Add the desired languages needed for the translations.

translation selector

Applied to Banners to check functionality.

banners

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.

### I confirm:

I have personally tested ALL changes in this PR
We have included automation testing with cypress and End to End testing.
I have added Visual evidence where applicable (screenshots or videos showing the feature/fix working) - if applicable to your specific PR


🔄 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/20512 **Author:** [@alvarellos](https://github.com/alvarellos) **Created:** 1/9/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `feature/Multi-language-settings` --- ### 📝 Commits (5) - [`a4a8c33`](https://github.com/open-webui/open-webui/commit/a4a8c333a1b5872779991007671980e2348a106b) feat(translations): allow multi language setting for translations, applied to banners - [`62898cb`](https://github.com/open-webui/open-webui/commit/62898cb1266630310c3aa846ca49f574af500232) rename file hook.client - [`af2c7c2`](https://github.com/open-webui/open-webui/commit/af2c7c2491db7e94cf065d0b1f1c83b6c83379b0) fix conflict 11-2-2026 - [`a6a6af7`](https://github.com/open-webui/open-webui/commit/a6a6af7ed3be5c71a64aac4511ad02efe5439a07) update with upstream dev 3-3-2026 - [`5277b61`](https://github.com/open-webui/open-webui/commit/5277b619cee2eaa496c0dea9e15b7b1d24ce94fe) solve issues with the update with v0.8.8 ### 📊 Changes **13 files changed** (+761 additions, -106 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+6 -0) 📝 `backend/open_webui/main.py` (+3 -0) 📝 `backend/open_webui/routers/tasks.py` (+8 -1) ➕ `src/hooks.client.ts` (+32 -0) 📝 `src/lib/components/admin/Settings/Interface.svelte` (+89 -1) 📝 `src/lib/components/admin/Settings/Interface/Banners.svelte` (+286 -98) ➕ `src/lib/components/admin/Settings/LangPicker.svelte` (+135 -0) 📝 `src/lib/components/chat/Chat.svelte` (+31 -0) 📝 `src/lib/components/common/Banner.svelte` (+3 -1) 📝 `src/lib/i18n/index.ts` (+163 -5) 📝 `src/lib/stores/index.ts` (+1 -0) 📝 `src/routes/(app)/+layout.svelte` (+2 -0) 📝 `src/routes/+layout.svelte` (+2 -0) </details> ### 📄 Description # Pull Request Checklist ### [Discussion opened](https://github.com/open-webui/open-webui/discussions/15839) **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** The user can see the translation of the Model Name and the Suggested Prompts. The admin can introduce such changes. - [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. - [x] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Have you written and run sufficient tests to validate the changes? - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [x] **Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description - Support multi translation which adapts to user language settings. ### Added - Add in the global configuration de languages needed for the translations. - Edit and Update translation for Banners **(all languages selected in the configuration)** ### Changed - Should be compatible with the old implementation. But appreciate when is more tested ### Deprecated - Nothing should be deprecated as this should be an added feature. ### Removed - Nothing has been removed. ### Fixed - No bug fixing included ### Security - No vulnerability were found. ### Breaking Changes - Normally not breaking changes. But it would be interested to see behabiour with old type of Name and Meta in the model table (name and meta) --- ### Additional Information - https://github.com/open-webui/open-webui/discussions/15839 ### Screenshots or Videos ### Add the desired languages needed for the translations. <img width="1899" height="638" alt="translation selector" src="https://github.com/user-attachments/assets/c0ff1660-15e6-4e7c-9596-cc34efbc82f5" /> ### Applied to Banners to check functionality. <img width="979" height="113" alt="banners" src="https://github.com/user-attachments/assets/7df13d4b-4c69-4074-b9d6-8df22dadeae4" /> ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. **### I confirm:** ✅ I have personally tested ALL changes in this PR ✅ We have included automation testing with cypress and End to End testing. ✅ I have added Visual evidence where applicable (screenshots or videos showing the feature/fix working) - if applicable to your specific PR --- <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-05-13 14:38:40 -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#80522