mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #17819] [MERGED] fix: i81n.t and correct button layout issue #24560
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/17819
Author: @silentoplayz
Created: 9/27/2025
Status: ✅ Merged
Merged: 9/27/2025
Merged by: @tjbck
Base:
dev← Head:fix-layout-and-i18n📝 Commits (1)
27cd87efix: i81n.t and correct button layout issue📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
src/lib/components/playground/Chat.svelte(+1 -1)📝
src/routes/(app)/workspace/models/create/+page.svelte(+1 -1)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
i18n Regression: A latent bug in
src/routes/(app)/workspace/models/create/+page.sveltewas causing ani18n.t is not a functionerror. This was due to an incorrect call to thei18nSvelte store. The fix corrects the call to use the proper auto-subscription syntax ($i18n.t()).Vertical Button Text: In
src/lib/components/playground/Chat.svelte, the "Assistant"/"User" role button's text was displaying vertically. This was caused by aflex-1class on its container, which has been removed.Changed
src/routes/(app)/workspace/models/create/+page.svelteto use the correct Svelte store auto-subscription syntax for thei18nobject.Removed
flex-1utility class from a containerdivinsrc/lib/components/playground/Chat.svelte.Fixed
i18n.t is not a functionerror on the model creation page by fixing the Svelte store subscription.Before the fix is applied:
After the fix has been applied:
Pro Tip
In VS Code's search panel (with regex mode on), use this pattern:
Explanation
(?<!\$)– negative look-behind: the preceding character must not be a literal$.i18n\.t\(– matches the literal texti18n.t(.This will find every
i18n.t(that is not already prefixed with$. Thankfully, having done so myself only resulted in 1 match from thesrc/lib/components/playground/Chat.sveltefile, which I solve promptly with this PR.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.