diff --git a/src/lib/components/chat/Settings/Interface.svelte b/src/lib/components/chat/Settings/Interface.svelte index 87a8d7ec5..aa072bb72 100644 --- a/src/lib/components/chat/Settings/Interface.svelte +++ b/src/lib/components/chat/Settings/Interface.svelte @@ -22,6 +22,7 @@ // Interface let promptSuggestions = []; let showUsername = false; + let chatDirection: 'LTR' | 'RTL' = 'LTR'; const toggleSplitLargeChunks = async () => { splitLargeChunks = !splitLargeChunks; @@ -70,6 +71,11 @@ } }; + const toggleChangeChatDirection = async () => { + chatDirection = chatDirection === 'LTR' ? 'RTL' : 'LTR'; + saveSettings({chatDirection}); + }; + const updateInterfaceHandler = async () => { if ($user.role === 'admin') { promptSuggestions = await setDefaultPromptSuggestions(localStorage.token, promptSuggestions); @@ -107,6 +113,7 @@ showUsername = settings.showUsername ?? false; fullScreenMode = settings.fullScreenMode ?? false; splitLargeChunks = settings.splitLargeChunks ?? false; + chatDirection = settings.chatDirection ?? 'LTR'; }); @@ -228,6 +235,24 @@ +
+
+
{$i18n.t('Chat direction')}
+ + +
+
+