[PR #15840] [CLOSED] feat: Support general translations (includes translation for title and prompt in workspace and Banners) #47004

Closed
opened 2026-04-29 22:02:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/15840
Author: @alvarellos
Created: 7/18/2025
Status: Closed

Base: devHead: feature/Support-multi-language-title-and-prompt-in-workspace


📝 Commits (10+)

  • 80af49d Support translations for title and prompt in workspace
  • 876db8e merge version v0.6.25
  • 058de98 fature/support-multi-language- add header to identify selected language and send to backend for translation
  • a280f65 add the configuration for selecting the languages codes son they can be used for translations
  • cb86c01 Merge branch 'main' into feature/Support-multi-language-title-and-prompt-in-workspace
  • fa33c94 use the configuration languages for all Title Models, Suggested Prompts and Banners. So this is now ready for translations globally
  • 6dddd5d fix sync in between text area and modal
  • 3990330 translation also for info name of the model api endpoint
  • c5a0711 updated to version 0.6.36 hopefully for the last time that I need to do this
  • c23ea22 return files which were erased by conda environment

📊 Changes

18 files changed (+1151 additions, -136 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)
📝 backend/open_webui/utils/models.py (+34 -1)
src/hooks.client.ts (+33 -0)
📝 src/lib/apis/models/index.ts (+29 -1)
📝 src/lib/components/admin/Settings/Interface.svelte (+74 -0)
📝 src/lib/components/admin/Settings/Interface/Banners.svelte (+286 -98)
src/lib/components/admin/Settings/LangPicker.svelte (+135 -0)
📝 src/lib/components/admin/Settings/Models.svelte (+41 -1)
📝 src/lib/components/chat/Suggestions.svelte (+34 -6)
📝 src/lib/components/common/Banner.svelte (+3 -1)
📝 src/lib/components/workspace/Models.svelte (+6 -3)
📝 src/lib/components/workspace/Models/ModelEditor.svelte (+291 -19)
📝 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 translations for title and prompt suggestions in workspace

Added

  • Add in the global configuration de languages needed for the translations.
  • Edit and Update translation for the Model Name (all languages selected in the configuration)
  • Edit and Update translation for the Suggested Prompt (all languages selected in the configuration)
  • 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

Edit the Model title languages and Suggested Prompts in Model Workspace.

admin

Edit pop up form with the selected languages in the configuration section.

edit

Banners can also be translated.

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.


🔄 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/15840 **Author:** [@alvarellos](https://github.com/alvarellos) **Created:** 7/18/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feature/Support-multi-language-title-and-prompt-in-workspace` --- ### 📝 Commits (10+) - [`80af49d`](https://github.com/open-webui/open-webui/commit/80af49d8d51403c5927b12e945f802286421ae1f) Support translations for title and prompt in workspace - [`876db8e`](https://github.com/open-webui/open-webui/commit/876db8ec7fa7b4513e9e25e443212a26036e5920) merge version v0.6.25 - [`058de98`](https://github.com/open-webui/open-webui/commit/058de98975c46f5abc155af7df6af0fa2161b1db) fature/support-multi-language- add header to identify selected language and send to backend for translation - [`a280f65`](https://github.com/open-webui/open-webui/commit/a280f6524971332a223553e2405a137d63412c85) add the configuration for selecting the languages codes son they can be used for translations - [`cb86c01`](https://github.com/open-webui/open-webui/commit/cb86c01fb9770a62a221b10a1a1701b5166c62d9) Merge branch 'main' into feature/Support-multi-language-title-and-prompt-in-workspace - [`fa33c94`](https://github.com/open-webui/open-webui/commit/fa33c94944c0d99e854d1a443aa26f3b4d5980e0) use the configuration languages for all Title Models, Suggested Prompts and Banners. So this is now ready for translations globally - [`6dddd5d`](https://github.com/open-webui/open-webui/commit/6dddd5d529833fb795052e9da714583a1138fcc5) fix sync in between text area and modal - [`3990330`](https://github.com/open-webui/open-webui/commit/3990330e88b4449743af6178e7f556a1b05d35a9) translation also for info name of the model api endpoint - [`c5a0711`](https://github.com/open-webui/open-webui/commit/c5a071150969f2153a76a9c11a7be5f54713fa4a) updated to version 0.6.36 hopefully for the last time that I need to do this - [`c23ea22`](https://github.com/open-webui/open-webui/commit/c23ea22904afd23484c5eac655b18e7344a4c376) return files which were erased by conda environment ### 📊 Changes **18 files changed** (+1151 additions, -136 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) 📝 `backend/open_webui/utils/models.py` (+34 -1) ➕ `src/hooks.client.ts` (+33 -0) 📝 `src/lib/apis/models/index.ts` (+29 -1) 📝 `src/lib/components/admin/Settings/Interface.svelte` (+74 -0) 📝 `src/lib/components/admin/Settings/Interface/Banners.svelte` (+286 -98) ➕ `src/lib/components/admin/Settings/LangPicker.svelte` (+135 -0) 📝 `src/lib/components/admin/Settings/Models.svelte` (+41 -1) 📝 `src/lib/components/chat/Suggestions.svelte` (+34 -6) 📝 `src/lib/components/common/Banner.svelte` (+3 -1) 📝 `src/lib/components/workspace/Models.svelte` (+6 -3) 📝 `src/lib/components/workspace/Models/ModelEditor.svelte` (+291 -19) 📝 `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 translations for title and prompt suggestions in workspace ### Added - Add in the global configuration de languages needed for the translations. - Edit and Update translation for the Model Name **(all languages selected in the configuration)** - Edit and Update translation for the Suggested Prompt **(all languages selected in the configuration)** - 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" /> ### Edit the Model title languages and Suggested Prompts in Model Workspace. <img width="1273" height="761" alt="admin" src="https://github.com/user-attachments/assets/78b79102-2a1f-4073-9eaa-7a87dc770085" /> ### Edit pop up form with the selected languages in the configuration section. <img width="599" height="543" alt="edit" src="https://github.com/user-attachments/assets/e2cad5b4-66f4-4233-ad61-06cda4d49f0a" /> ### Banners can also be translated. <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. --- <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 22:02:57 -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#47004