mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 18:14:16 -05:00
[PR #17384] [CLOSED] UPD: Centralization of dayjs #11209
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/17384
Author: @rgaricano
Created: 9/12/2025
Status: ❌ Closed
Base:
dev← Head:dev-Fix_dayjs📝 Commits (5)
d830371Global Dayjs Store61857ebUpdate dayjs.js - Include Global Locale66fa32fUpdate Collapsible.svelte - For Centralized dayjsea56aa5Update Notes.svelte - For Centralize dayjse6f10aaUpdate NoteEditor.svelte - For Centralize dayjs📊 Changes
5 files changed (+47 additions, -48 deletions)
View changed files
📝
src/lib/components/common/Collapsible.svelte(+1 -18)📝
src/lib/components/notes/NoteEditor.svelte(+1 -15)📝
src/lib/components/notes/Notes.svelte(+1 -15)📝
src/lib/dayjs.js(+13 -0)➕
src/lib/stores/dayjs.js(+31 -0)📄 Description
UPD: Centralization of dayjs
Centralization of dayjs localization for easier and more consistent across components.
Solve https://github.com/open-webui/open-webui/issues/17357
Added:
Global dayjs store at $lib/stores/dayjs.js
Modified:
NOTE:
In future use of dayjs in components use
import dayjs from '$lib/stores/dayjs';instead ofimport dayjs from '$lib/dayjs';+ individual loadLocaleContributor 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.