Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed May 18, 2024
1 parent 1b67004 commit 1e6ddb2
Show file tree
Hide file tree
Showing 35 changed files with 112 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/chat/Messages/ProfileImage.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
import { settings } from '$lib/stores';
import { WEBUI_BASE_URL } from '$lib/constants';
export let src = '/user.png';
</script>

<div class={$settings?.chatDirection === 'LTR' ? "mr-3" : "ml-3"}>
<div class={$settings?.chatDirection === 'LTR' ? 'mr-3' : 'ml-3'}>
<img
crossorigin="anonymous"
src={src.startsWith(WEBUI_BASE_URL) ||
Expand Down
6 changes: 5 additions & 1 deletion src/lib/components/chat/Messages/ResponseMessage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,11 @@
<CitationsModal bind:show={showCitationModal} citation={selectedCitation} />

{#key message.id}
<div class=" flex w-full message-{message.id}" id="message-{message.id}" dir="{$settings.chatDirection}">
<div
class=" flex w-full message-{message.id}"
id="message-{message.id}"
dir={$settings.chatDirection}
>
<ProfileImage
src={modelfiles[message.model]?.imageUrl ??
($i18n.language === 'dg-DG' ? `/doge.png` : `${WEBUI_BASE_URL}/static/favicon.png`)}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/chat/Settings/Interface.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
const toggleChangeChatDirection = async () => {
chatDirection = chatDirection === 'LTR' ? 'RTL' : 'LTR';
saveSettings({chatDirection});
saveSettings({ chatDirection });
};
const updateInterfaceHandler = async () => {
Expand Down Expand Up @@ -271,7 +271,7 @@
on:click={toggleChangeChatDirection}
type="button"
>
{#if chatDirection === 'LTR'}
{#if chatDirection === 'LTR'}
<span class="ml-2 self-center">{$i18n.t('LTR')}</span>
{:else}
<span class="ml-2 self-center">{$i18n.t('RTL')}</span>
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/ar-BH/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "تغير الباسورد",
"Chat": "المحادثة",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "تاريخ المحادثة",
"Chat History is off for this browser.": "سجل الدردشة معطل لهذا المتصفح",
"Chats": "المحادثات",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "فاتح",
"Listening...": "جاري الاستماع",
"LLMs can make mistakes. Verify important information.": "يمكن أن تصدر بعض الأخطاء. لذلك يجب التحقق من المعلومات المهمة",
"LTR": "",
"Made by OpenWebUI Community": "OpenWebUI تم إنشاؤه بواسطة مجتمع ",
"Make sure to enclose them with": "تأكد من إرفاقها",
"Manage LiteLLM Models": "LiteLLM إدارة نماذج ",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "منصب",
"Rosé Pine": "Rosé Pine",
"Rosé Pine Dawn": "Rosé Pine Dawn",
"RTL": "",
"Save": "حفظ",
"Save & Create": "حفظ وإنشاء",
"Save & Update": "حفظ وتحديث",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/bg-BG/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "Промяна на Парола",
"Chat": "Чат",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "Чат История",
"Chat History is off for this browser.": "Чат История е изключен за този браузър.",
"Chats": "Чатове",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "Светъл",
"Listening...": "Слушам...",
"LLMs can make mistakes. Verify important information.": "LLMs могат да правят грешки. Проверете важните данни.",
"LTR": "",
"Made by OpenWebUI Community": "Направено от OpenWebUI общността",
"Make sure to enclose them with": "Уверете се, че са заключени с",
"Manage LiteLLM Models": "Управление на LiteLLM Моделите",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "Роля",
"Rosé Pine": "Rosé Pine",
"Rosé Pine Dawn": "Rosé Pine Dawn",
"RTL": "",
"Save": "Запис",
"Save & Create": "Запис & Създаване",
"Save & Update": "Запис & Актуализиране",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/bn-BD/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "পাসওয়ার্ড পরিবর্তন করুন",
"Chat": "চ্যাট",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "চ্যাট হিস্টোরি",
"Chat History is off for this browser.": "এই ব্রাউজারের জন্য চ্যাট হিস্টোরি বন্ধ আছে",
"Chats": "চ্যাটসমূহ",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "লাইট",
"Listening...": "শুনছে...",
"LLMs can make mistakes. Verify important information.": "LLM ভুল করতে পারে। গুরুত্বপূর্ণ তথ্য যাচাই করে নিন।",
"LTR": "",
"Made by OpenWebUI Community": "OpenWebUI কমিউনিটিকর্তৃক নির্মিত",
"Make sure to enclose them with": "এটা দিয়ে বন্ধনী দিতে ভুলবেন না",
"Manage LiteLLM Models": "LiteLLM মডেল ব্যবস্থাপনা করুন",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "পদবি",
"Rosé Pine": "রোজ পাইন",
"Rosé Pine Dawn": "ভোরের রোজ পাইন",
"RTL": "",
"Save": "সংরক্ষণ",
"Save & Create": "সংরক্ষণ এবং তৈরি করুন",
"Save & Update": "সংরক্ষণ এবং আপডেট করুন",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/ca-ES/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "Canvia la Contrasenya",
"Chat": "Xat",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "Històric del Xat",
"Chat History is off for this browser.": "L'historial de xat està desactivat per a aquest navegador.",
"Chats": "Xats",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "Clar",
"Listening...": "Escoltant...",
"LLMs can make mistakes. Verify important information.": "Els LLMs poden cometre errors. Verifica la informació important.",
"LTR": "",
"Made by OpenWebUI Community": "Creat per la Comunitat OpenWebUI",
"Make sure to enclose them with": "Assegura't d'envoltar-los amb",
"Manage LiteLLM Models": "Gestiona Models LiteLLM",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "Rol",
"Rosé Pine": "Rosé Pine",
"Rosé Pine Dawn": "Albada Rosé Pine",
"RTL": "",
"Save": "Guarda",
"Save & Create": "Guarda i Crea",
"Save & Update": "Guarda i Actualitza",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/de-DE/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "Passwort ändern",
"Chat": "Chat",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "Chat Verlauf",
"Chat History is off for this browser.": "Chat Verlauf ist für diesen Browser ausgeschaltet.",
"Chats": "Chats",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "Hell",
"Listening...": "Hören...",
"LLMs can make mistakes. Verify important information.": "LLMs können Fehler machen. Überprüfe wichtige Informationen.",
"LTR": "",
"Made by OpenWebUI Community": "Von der OpenWebUI-Community",
"Make sure to enclose them with": "Formatiere deine Variablen mit:",
"Manage LiteLLM Models": "LiteLLM-Modelle verwalten",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "Rolle",
"Rosé Pine": "Rosé Pine",
"Rosé Pine Dawn": "Rosé Pine Dawn",
"RTL": "",
"Save": "Speichern",
"Save & Create": "Speichern und erstellen",
"Save & Update": "Speichern und aktualisieren",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/dg-DG/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "Change Password",
"Chat": "Chat",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "Chat History",
"Chat History is off for this browser.": "Chat History off for this browser. Such sadness.",
"Chats": "Chats",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "Light",
"Listening...": "Listening...",
"LLMs can make mistakes. Verify important information.": "LLMs can make borks. Verify important info.",
"LTR": "",
"Made by OpenWebUI Community": "Made by OpenWebUI Community",
"Make sure to enclose them with": "Make sure to enclose them with",
"Manage LiteLLM Models": "Manage LiteLLM Models",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "Role",
"Rosé Pine": "Rosé Pine",
"Rosé Pine Dawn": "Rosé Pine Dawn",
"RTL": "",
"Save": "Save much wow",
"Save & Create": "Save & Create much create",
"Save & Update": "Save & Update much update",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/en-GB/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "",
"Chat": "",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "",
"Chat History is off for this browser.": "",
"Chats": "",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "",
"Listening...": "",
"LLMs can make mistakes. Verify important information.": "",
"LTR": "",
"Made by OpenWebUI Community": "",
"Make sure to enclose them with": "",
"Manage LiteLLM Models": "",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "",
"Rosé Pine": "",
"Rosé Pine Dawn": "",
"RTL": "",
"Save": "",
"Save & Create": "",
"Save & Update": "",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/es-ES/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "Cambia la Contraseña",
"Chat": "Chat",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "Historial del Chat",
"Chat History is off for this browser.": "El Historial del Chat está apagado para este navegador.",
"Chats": "Chats",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "Claro",
"Listening...": "Escuchando...",
"LLMs can make mistakes. Verify important information.": "Los LLM pueden cometer errores. Verifica la información importante.",
"LTR": "",
"Made by OpenWebUI Community": "Hecho por la comunidad de OpenWebUI",
"Make sure to enclose them with": "Asegúrese de adjuntarlos con",
"Manage LiteLLM Models": "Administrar Modelos LiteLLM",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "Rol",
"Rosé Pine": "Rosé Pine",
"Rosé Pine Dawn": "Rosé Pine Dawn",
"RTL": "",
"Save": "Guardar",
"Save & Create": "Guardar y Crear",
"Save & Update": "Guardar y Actualizar",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/fa-IR/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "تغییر رمز عبور",
"Chat": "گپ",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "تاریخچه\u200cی گفتگو",
"Chat History is off for this browser.": "سابقه گپ برای این مرورگر خاموش است.",
"Chats": "گپ\u200cها",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "روشن",
"Listening...": "در حال گوش دادن...",
"LLMs can make mistakes. Verify important information.": "مدل\u200cهای زبانی بزرگ می\u200cتوانند اشتباه کنند. اطلاعات مهم را راستی\u200cآزمایی کنید.",
"LTR": "",
"Made by OpenWebUI Community": "ساخته شده توسط OpenWebUI Community",
"Make sure to enclose them with": "مطمئن شوید که آنها را با این محصور کنید:",
"Manage LiteLLM Models": "Manage LiteLLM Models",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "نقش",
"Rosé Pine": "Rosé Pine",
"Rosé Pine Dawn": "Rosé Pine Dawn",
"RTL": "",
"Save": "ذخیره",
"Save & Create": "ذخیره و ایجاد",
"Save & Update": "ذخیره و به\u200cروزرسانی",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/fi-FI/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "Vaihda salasana",
"Chat": "Keskustelu",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "Keskusteluhistoria",
"Chat History is off for this browser.": "Keskusteluhistoria on pois päältä tällä selaimella.",
"Chats": "Keskustelut",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "Vaalea",
"Listening...": "Kuunnellaan...",
"LLMs can make mistakes. Verify important information.": "Kielimallit voivat tehdä virheitä. Varmista tärkeät tiedot.",
"LTR": "",
"Made by OpenWebUI Community": "Tehnyt OpenWebUI-yhteisö",
"Make sure to enclose them with": "Varmista, että suljet ne",
"Manage LiteLLM Models": "Hallitse LiteLLM-malleja",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "Rooli",
"Rosé Pine": "Rosee-mänty",
"Rosé Pine Dawn": "Aamuinen Rosee-mänty",
"RTL": "",
"Save": "Tallenna",
"Save & Create": "Tallenna ja luo",
"Save & Update": "Tallenna ja päivitä",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/fr-CA/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "Changer le mot de passe",
"Chat": "Discussion",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "Historique des discussions",
"Chat History is off for this browser.": "L'historique des discussions est désactivé pour ce navigateur.",
"Chats": "Discussions",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "Lumière",
"Listening...": "Écoute...",
"LLMs can make mistakes. Verify important information.": "Les LLMs peuvent faire des erreurs. Vérifiez les informations importantes.",
"LTR": "",
"Made by OpenWebUI Community": "Réalisé par la communauté OpenWebUI",
"Make sure to enclose them with": "Assurez-vous de les entourer avec",
"Manage LiteLLM Models": "Gérer les modèles LiteLLM",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "Rôle",
"Rosé Pine": "Pin Rosé",
"Rosé Pine Dawn": "Aube Pin Rosé",
"RTL": "",
"Save": "Enregistrer",
"Save & Create": "Enregistrer & Créer",
"Save & Update": "Enregistrer & Mettre à jour",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/fr-FR/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "Changer le mot de passe",
"Chat": "Chat",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "Historique du chat",
"Chat History is off for this browser.": "L'historique du chat est désactivé pour ce navigateur.",
"Chats": "Chats",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "Clair",
"Listening...": "Écoute...",
"LLMs can make mistakes. Verify important information.": "Les LLMs peuvent faire des erreurs. Vérifiez les informations importantes.",
"LTR": "",
"Made by OpenWebUI Community": "Réalisé par la communauté OpenWebUI",
"Make sure to enclose them with": "Assurez-vous de les entourer avec",
"Manage LiteLLM Models": "Gérer les modèles LiteLLM",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "Rôle",
"Rosé Pine": "Pin Rosé",
"Rosé Pine Dawn": "Aube Pin Rosé",
"RTL": "",
"Save": "Enregistrer",
"Save & Create": "Enregistrer & Créer",
"Save & Update": "Enregistrer & Mettre à jour",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/he-IL/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "שנה סיסמה",
"Chat": "צ'אט",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "היסטוריית צ'אט",
"Chat History is off for this browser.": "היסטוריית הצ'אט כבויה לדפדפן זה.",
"Chats": "צ'אטים",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "בהיר",
"Listening...": "מאזין...",
"LLMs can make mistakes. Verify important information.": "מודלים בשפה טבעית יכולים לטעות. אמת מידע חשוב.",
"LTR": "",
"Made by OpenWebUI Community": "נוצר על ידי קהילת OpenWebUI",
"Make sure to enclose them with": "ודא להקיף אותם עם",
"Manage LiteLLM Models": "נהל מודלים של LiteLLM",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "תפקיד",
"Rosé Pine": "Rosé Pine",
"Rosé Pine Dawn": "Rosé Pine Dawn",
"RTL": "",
"Save": "שמור",
"Save & Create": "שמור וצור",
"Save & Update": "שמור ועדכן",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/locales/hi-IN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Change Password": "पासवर्ड बदलें",
"Chat": "चैट करें",
"Chat Bubble UI": "",
"Chat direction": "",
"Chat History": "चैट का इतिहास",
"Chat History is off for this browser.": "इस ब्राउज़र के लिए चैट इतिहास बंद है।",
"Chats": "सभी चैट",
Expand Down Expand Up @@ -246,6 +247,7 @@
"Light": "",
"Listening...": "सुन रहा हूँ...",
"LLMs can make mistakes. Verify important information.": "एलएलएम गलतियाँ कर सकते हैं। महत्वपूर्ण जानकारी सत्यापित करें.",
"LTR": "",
"Made by OpenWebUI Community": "OpenWebUI समुदाय द्वारा निर्मित",
"Make sure to enclose them with": "उन्हें संलग्न करना सुनिश्चित करें",
"Manage LiteLLM Models": "LiteLLM मॉडल प्रबंधित करें",
Expand Down Expand Up @@ -361,6 +363,7 @@
"Role": "भूमिका",
"Rosé Pine": "",
"Rosé Pine Dawn": "",
"RTL": "",
"Save": "सहेजें",
"Save & Create": "सहेजें और बनाएं",
"Save & Update": "सहेजें और अपडेट करें",
Expand Down

0 comments on commit 1e6ddb2

Please sign in to comment.