From 17b9a8150451c4065b027ef73ccada3a29aa4426 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 20 Jun 2025 20:32:23 +0400 Subject: [PATCH] chore: format --- backend/open_webui/internal/db.py | 4 ++- src/lib/apis/index.ts | 2 +- .../components/chat/ChatPlaceholder.svelte | 8 ++++-- src/lib/i18n/locales/ar-BH/translation.json | 1 + src/lib/i18n/locales/ar/translation.json | 1 + src/lib/i18n/locales/bg-BG/translation.json | 1 + src/lib/i18n/locales/bn-BD/translation.json | 1 + src/lib/i18n/locales/bo-TB/translation.json | 1 + src/lib/i18n/locales/ca-ES/translation.json | 3 ++- src/lib/i18n/locales/ceb-PH/translation.json | 1 + src/lib/i18n/locales/cs-CZ/translation.json | 1 + src/lib/i18n/locales/da-DK/translation.json | 1 + src/lib/i18n/locales/de-DE/translation.json | 1 + src/lib/i18n/locales/dg-DG/translation.json | 1 + src/lib/i18n/locales/el-GR/translation.json | 1 + src/lib/i18n/locales/en-GB/translation.json | 1 + src/lib/i18n/locales/en-US/translation.json | 1 + src/lib/i18n/locales/es-ES/translation.json | 1 + src/lib/i18n/locales/et-EE/translation.json | 1 + src/lib/i18n/locales/eu-ES/translation.json | 1 + src/lib/i18n/locales/fa-IR/translation.json | 1 + src/lib/i18n/locales/fi-FI/translation.json | 1 + src/lib/i18n/locales/fr-CA/translation.json | 1 + src/lib/i18n/locales/fr-FR/translation.json | 1 + src/lib/i18n/locales/gl-ES/translation.json | 1 + src/lib/i18n/locales/he-IL/translation.json | 1 + src/lib/i18n/locales/hi-IN/translation.json | 1 + src/lib/i18n/locales/hr-HR/translation.json | 1 + src/lib/i18n/locales/hu-HU/translation.json | 1 + src/lib/i18n/locales/id-ID/translation.json | 1 + src/lib/i18n/locales/ie-GA/translation.json | 1 + src/lib/i18n/locales/it-IT/translation.json | 1 + src/lib/i18n/locales/ja-JP/translation.json | 1 + src/lib/i18n/locales/ka-GE/translation.json | 1 + src/lib/i18n/locales/ko-KR/translation.json | 1 + src/lib/i18n/locales/languages.json | 2 +- src/lib/i18n/locales/lt-LT/translation.json | 1 + src/lib/i18n/locales/ms-MY/translation.json | 1 + src/lib/i18n/locales/nb-NO/translation.json | 1 + src/lib/i18n/locales/nl-NL/translation.json | 25 ++++++++++--------- src/lib/i18n/locales/pa-IN/translation.json | 1 + src/lib/i18n/locales/pl-PL/translation.json | 1 + src/lib/i18n/locales/pt-BR/translation.json | 1 + src/lib/i18n/locales/pt-PT/translation.json | 1 + src/lib/i18n/locales/ro-RO/translation.json | 1 + src/lib/i18n/locales/ru-RU/translation.json | 1 + src/lib/i18n/locales/sk-SK/translation.json | 1 + src/lib/i18n/locales/sr-RS/translation.json | 1 + src/lib/i18n/locales/sv-SE/translation.json | 1 + src/lib/i18n/locales/th-TH/translation.json | 1 + src/lib/i18n/locales/tk-TM/translation.json | 1 + src/lib/i18n/locales/tr-TR/translation.json | 1 + src/lib/i18n/locales/ug-CN/translation.json | 5 ++-- src/lib/i18n/locales/uk-UA/translation.json | 1 + src/lib/i18n/locales/ur-PK/translation.json | 1 + .../i18n/locales/uz-Cyrl-UZ/translation.json | 1 + .../i18n/locales/uz-Latn-Uz/translation.json | 1 + src/lib/i18n/locales/vi-VN/translation.json | 1 + src/lib/i18n/locales/zh-CN/translation.json | 1 + src/lib/i18n/locales/zh-TW/translation.json | 1 + src/lib/utils/index.ts | 14 +++++------ 61 files changed, 89 insertions(+), 27 deletions(-) diff --git a/backend/open_webui/internal/db.py b/backend/open_webui/internal/db.py index 1f02ba5b4..f024354a6 100644 --- a/backend/open_webui/internal/db.py +++ b/backend/open_webui/internal/db.py @@ -62,7 +62,9 @@ def handle_peewee_migration(DATABASE_URL): except Exception as e: log.error(f"Failed to initialize the database connection: {e}") - log.warning("Hint: If your database password contains special characters, you may need to URL-encode it.") + log.warning( + "Hint: If your database password contains special characters, you may need to URL-encode it." + ) raise finally: # Properly closing the database connection diff --git a/src/lib/apis/index.ts b/src/lib/apis/index.ts index 66572f20c..d10db74f8 100644 --- a/src/lib/apis/index.ts +++ b/src/lib/apis/index.ts @@ -1593,7 +1593,7 @@ export interface ModelMeta { profile_image_url?: string; } -export interface ModelParams { } +export interface ModelParams {} export type GlobalModelConfig = ModelConfig[]; diff --git a/src/lib/components/chat/ChatPlaceholder.svelte b/src/lib/components/chat/ChatPlaceholder.svelte index 709c2bbef..717c9eb13 100644 --- a/src/lib/components/chat/ChatPlaceholder.svelte +++ b/src/lib/components/chat/ChatPlaceholder.svelte @@ -46,7 +46,9 @@ > ') + sanitizeResponseContent( + models[selectedModelIdx]?.info?.meta?.description ?? '' + ).replaceAll('\n', '
') )} placement="right" > @@ -96,7 +98,9 @@ class="mt-0.5 text-base font-normal text-gray-500 dark:text-gray-400 line-clamp-3 markdown" > {@html marked.parse( - sanitizeResponseContent(models[selectedModelIdx]?.info?.meta?.description).replaceAll('\n', '
') + sanitizeResponseContent( + models[selectedModelIdx]?.info?.meta?.description + ).replaceAll('\n', '
') )} {#if models[selectedModelIdx]?.info?.meta?.user} diff --git a/src/lib/i18n/locales/ar-BH/translation.json b/src/lib/i18n/locales/ar-BH/translation.json index c4327a4a2..cf4c5acbc 100644 --- a/src/lib/i18n/locales/ar-BH/translation.json +++ b/src/lib/i18n/locales/ar-BH/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "أغلق", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/ar/translation.json b/src/lib/i18n/locales/ar/translation.json index c96ba8f12..9f918e5b6 100644 --- a/src/lib/i18n/locales/ar/translation.json +++ b/src/lib/i18n/locales/ar/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "استنساخ المحادثة", "Clone of {{TITLE}}": "استنساخ لـ {{TITLE}}", "Close": "إغلاق", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "تنفيذ الشيفرة", diff --git a/src/lib/i18n/locales/bg-BG/translation.json b/src/lib/i18n/locales/bg-BG/translation.json index 830103c71..9bd56d084 100644 --- a/src/lib/i18n/locales/bg-BG/translation.json +++ b/src/lib/i18n/locales/bg-BG/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Клониране на чат", "Clone of {{TITLE}}": "Клонинг на {{TITLE}}", "Close": "Затвори", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Изпълнение на код", diff --git a/src/lib/i18n/locales/bn-BD/translation.json b/src/lib/i18n/locales/bn-BD/translation.json index be7b1de4c..80502f363 100644 --- a/src/lib/i18n/locales/bn-BD/translation.json +++ b/src/lib/i18n/locales/bn-BD/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "বন্ধ", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/bo-TB/translation.json b/src/lib/i18n/locales/bo-TB/translation.json index b1f655038..7322661aa 100644 --- a/src/lib/i18n/locales/bo-TB/translation.json +++ b/src/lib/i18n/locales/bo-TB/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "ཁ་བརྡ་འདྲ་བཟོ།", "Clone of {{TITLE}}": "{{TITLE}} ཡི་འདྲ་བཟོ།", "Close": "ཁ་རྒྱག་པ།", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "ཀོཌ་ལག་བསྟར།", diff --git a/src/lib/i18n/locales/ca-ES/translation.json b/src/lib/i18n/locales/ca-ES/translation.json index 9b79c7ec3..446d3c491 100644 --- a/src/lib/i18n/locales/ca-ES/translation.json +++ b/src/lib/i18n/locales/ca-ES/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Clonar el xat", "Clone of {{TITLE}}": "Clon de {{TITLE}}", "Close": "Tancar", + "Close Configure Connection Modal": "", "Close modal": "Tancar el modal", "Close settings modal": "Tancar el modal de configuració", "Code execution": "Execució de codi", @@ -1232,7 +1233,7 @@ "This action cannot be undone. Do you wish to continue?": "Aquesta acció no es pot desfer. Vols continuar?", "This channel was created on {{createdAt}}. This is the very beginning of the {{channelName}} channel.": "Aquest canal es va crear el dia {{createdAt}}. Aquest és el començament del canal {{channelName}}.", "This chat won't appear in history and your messages will not be saved.": "Aquest xat no apareixerà a l'historial i els teus missatges no es desaran.", - "This chat won't appear in history and your messages will not be saved.": "Aquest xat no apareixerà a l'historial i els teus missatges no es desaran.", + "This chat won’t appear in history and your messages will not be saved.": "", "This ensures that your valuable conversations are securely saved to your backend database. Thank you!": "Això assegura que les teves converses valuoses queden desades de manera segura a la teva base de dades. Gràcies!", "This is an experimental feature, it may not function as expected and is subject to change at any time.": "Aquesta és una funció experimental, és possible que no funcioni com s'espera i està subjecta a canvis en qualsevol moment.", "This model is not publicly available. Please select another model.": "Aquest model no està disponible públicament. Seleccioneu-ne un altre.", diff --git a/src/lib/i18n/locales/ceb-PH/translation.json b/src/lib/i18n/locales/ceb-PH/translation.json index 1adf81368..56d6eb809 100644 --- a/src/lib/i18n/locales/ceb-PH/translation.json +++ b/src/lib/i18n/locales/ceb-PH/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Suod nga", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/cs-CZ/translation.json b/src/lib/i18n/locales/cs-CZ/translation.json index 92a67b607..f58401729 100644 --- a/src/lib/i18n/locales/cs-CZ/translation.json +++ b/src/lib/i18n/locales/cs-CZ/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Zavřít", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Provádění kódu", diff --git a/src/lib/i18n/locales/da-DK/translation.json b/src/lib/i18n/locales/da-DK/translation.json index 3856d4052..665c64d60 100644 --- a/src/lib/i18n/locales/da-DK/translation.json +++ b/src/lib/i18n/locales/da-DK/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Klon chat", "Clone of {{TITLE}}": "Klon af {{TITLE}}", "Close": "Luk", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "Luk dialogboks med indstillinger", "Code execution": "Kode kørsel", diff --git a/src/lib/i18n/locales/de-DE/translation.json b/src/lib/i18n/locales/de-DE/translation.json index c5caf1411..7273713ac 100644 --- a/src/lib/i18n/locales/de-DE/translation.json +++ b/src/lib/i18n/locales/de-DE/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Konversation klonen", "Clone of {{TITLE}}": "Klon von {{TITLE}}", "Close": "Schließen", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Codeausführung", diff --git a/src/lib/i18n/locales/dg-DG/translation.json b/src/lib/i18n/locales/dg-DG/translation.json index 6f9a3e420..ff7671399 100644 --- a/src/lib/i18n/locales/dg-DG/translation.json +++ b/src/lib/i18n/locales/dg-DG/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Close", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/el-GR/translation.json b/src/lib/i18n/locales/el-GR/translation.json index 5950569ac..5716e903a 100644 --- a/src/lib/i18n/locales/el-GR/translation.json +++ b/src/lib/i18n/locales/el-GR/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Κλείσιμο", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Εκτέλεση κώδικα", diff --git a/src/lib/i18n/locales/en-GB/translation.json b/src/lib/i18n/locales/en-GB/translation.json index cb9e58600..6ce4e5b54 100644 --- a/src/lib/i18n/locales/en-GB/translation.json +++ b/src/lib/i18n/locales/en-GB/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index aa815444f..2a1ad3db7 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/es-ES/translation.json b/src/lib/i18n/locales/es-ES/translation.json index 37381fb79..66e7c5e08 100644 --- a/src/lib/i18n/locales/es-ES/translation.json +++ b/src/lib/i18n/locales/es-ES/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Clonar Chat", "Clone of {{TITLE}}": "Clon de {{TITLE}}", "Close": "Cerrar", + "Close Configure Connection Modal": "", "Close modal": "Cerrar modal", "Close settings modal": "Cerrar modal configuraciones", "Code execution": "Ejecución de Código", diff --git a/src/lib/i18n/locales/et-EE/translation.json b/src/lib/i18n/locales/et-EE/translation.json index 48eb85dc9..1cd781ccf 100644 --- a/src/lib/i18n/locales/et-EE/translation.json +++ b/src/lib/i18n/locales/et-EE/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Klooni vestlus", "Clone of {{TITLE}}": "{{TITLE}} koopia", "Close": "Sulge", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Koodi täitmine", diff --git a/src/lib/i18n/locales/eu-ES/translation.json b/src/lib/i18n/locales/eu-ES/translation.json index 17b2b876a..753c9c89b 100644 --- a/src/lib/i18n/locales/eu-ES/translation.json +++ b/src/lib/i18n/locales/eu-ES/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Itxi", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Kodearen exekuzioa", diff --git a/src/lib/i18n/locales/fa-IR/translation.json b/src/lib/i18n/locales/fa-IR/translation.json index 74f1d3b81..5538a06e6 100644 --- a/src/lib/i18n/locales/fa-IR/translation.json +++ b/src/lib/i18n/locales/fa-IR/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "کلون گفتگو", "Clone of {{TITLE}}": "کلون {{TITLE}}", "Close": "بسته", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "اجرای کد", diff --git a/src/lib/i18n/locales/fi-FI/translation.json b/src/lib/i18n/locales/fi-FI/translation.json index f2b284d00..2fc945d95 100644 --- a/src/lib/i18n/locales/fi-FI/translation.json +++ b/src/lib/i18n/locales/fi-FI/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Kloonaa keskustelu", "Clone of {{TITLE}}": "{{TITLE}} klooni", "Close": "Sulje", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "Sulje asetus modaali", "Code execution": "Koodin suoritus", diff --git a/src/lib/i18n/locales/fr-CA/translation.json b/src/lib/i18n/locales/fr-CA/translation.json index 632a10501..bc1720f82 100644 --- a/src/lib/i18n/locales/fr-CA/translation.json +++ b/src/lib/i18n/locales/fr-CA/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Fermer", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/fr-FR/translation.json b/src/lib/i18n/locales/fr-FR/translation.json index c75ad5248..da7c54553 100644 --- a/src/lib/i18n/locales/fr-FR/translation.json +++ b/src/lib/i18n/locales/fr-FR/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Dupliquer le Chat", "Clone of {{TITLE}}": "Dupliquat de {{TITLE}}", "Close": "Fermer", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Exécution de code", diff --git a/src/lib/i18n/locales/gl-ES/translation.json b/src/lib/i18n/locales/gl-ES/translation.json index c9e45c21a..fc1d9535f 100644 --- a/src/lib/i18n/locales/gl-ES/translation.json +++ b/src/lib/i18n/locales/gl-ES/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Clonar chat", "Clone of {{TITLE}}": "Clon de {{TITLE}}", "Close": "Pechar", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Execución de código", diff --git a/src/lib/i18n/locales/he-IL/translation.json b/src/lib/i18n/locales/he-IL/translation.json index 49bba49eb..c7be90d93 100644 --- a/src/lib/i18n/locales/he-IL/translation.json +++ b/src/lib/i18n/locales/he-IL/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "סגור", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "הרצת קוד", diff --git a/src/lib/i18n/locales/hi-IN/translation.json b/src/lib/i18n/locales/hi-IN/translation.json index e94566818..aac80d8f6 100644 --- a/src/lib/i18n/locales/hi-IN/translation.json +++ b/src/lib/i18n/locales/hi-IN/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "बंद करना", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/hr-HR/translation.json b/src/lib/i18n/locales/hr-HR/translation.json index ac0f2e6d5..37ef481e1 100644 --- a/src/lib/i18n/locales/hr-HR/translation.json +++ b/src/lib/i18n/locales/hr-HR/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Zatvori", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/hu-HU/translation.json b/src/lib/i18n/locales/hu-HU/translation.json index 96f91e9ab..b9a1bf436 100644 --- a/src/lib/i18n/locales/hu-HU/translation.json +++ b/src/lib/i18n/locales/hu-HU/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Beszélgetés klónozása", "Clone of {{TITLE}}": "{{TITLE}} klónja", "Close": "Bezárás", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Kód végrehajtás", diff --git a/src/lib/i18n/locales/id-ID/translation.json b/src/lib/i18n/locales/id-ID/translation.json index 3ba867ad4..5f679b7b3 100644 --- a/src/lib/i18n/locales/id-ID/translation.json +++ b/src/lib/i18n/locales/id-ID/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Tutup", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/ie-GA/translation.json b/src/lib/i18n/locales/ie-GA/translation.json index cd0b1b98b..296fbd2f9 100644 --- a/src/lib/i18n/locales/ie-GA/translation.json +++ b/src/lib/i18n/locales/ie-GA/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Comhrá Clón", "Clone of {{TITLE}}": "Clón de {{TITLE}}", "Close": "Dún", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Cód a fhorghníomhú", diff --git a/src/lib/i18n/locales/it-IT/translation.json b/src/lib/i18n/locales/it-IT/translation.json index 734df5f0d..a145baa72 100644 --- a/src/lib/i18n/locales/it-IT/translation.json +++ b/src/lib/i18n/locales/it-IT/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "CLona Chat", "Clone of {{TITLE}}": "Clone di {{TITLE}}", "Close": "Chiudi", + "Close Configure Connection Modal": "", "Close modal": "Chiudi modale", "Close settings modal": "", "Code execution": "Esecuzione codice", diff --git a/src/lib/i18n/locales/ja-JP/translation.json b/src/lib/i18n/locales/ja-JP/translation.json index c82d4133c..d99c8017d 100644 --- a/src/lib/i18n/locales/ja-JP/translation.json +++ b/src/lib/i18n/locales/ja-JP/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "チャットをクローン", "Clone of {{TITLE}}": "{{TITLE}}のクローン", "Close": "閉じる", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "コードの実行", diff --git a/src/lib/i18n/locales/ka-GE/translation.json b/src/lib/i18n/locales/ka-GE/translation.json index 3f9a9c032..e659d8997 100644 --- a/src/lib/i18n/locales/ka-GE/translation.json +++ b/src/lib/i18n/locales/ka-GE/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "დახურვა", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/ko-KR/translation.json b/src/lib/i18n/locales/ko-KR/translation.json index e53fc7f6d..8fb3a867a 100644 --- a/src/lib/i18n/locales/ko-KR/translation.json +++ b/src/lib/i18n/locales/ko-KR/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "채팅 복제", "Clone of {{TITLE}}": "{{TITLE}}의 복제본", "Close": "닫기", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "코드 실행", diff --git a/src/lib/i18n/locales/languages.json b/src/lib/i18n/locales/languages.json index c42de4331..dfffa415c 100644 --- a/src/lib/i18n/locales/languages.json +++ b/src/lib/i18n/locales/languages.json @@ -198,7 +198,7 @@ { "code": "ug-CN", "title": "Uyghur (ئۇيغۇرچە)" - }, + }, { "code": "uz-Cyrl-UZ", "title": "Uzbek (Cyrillic)" diff --git a/src/lib/i18n/locales/lt-LT/translation.json b/src/lib/i18n/locales/lt-LT/translation.json index 89870fef3..65f736282 100644 --- a/src/lib/i18n/locales/lt-LT/translation.json +++ b/src/lib/i18n/locales/lt-LT/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Uždaryti", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/ms-MY/translation.json b/src/lib/i18n/locales/ms-MY/translation.json index b7645e083..07ffc2bcb 100644 --- a/src/lib/i18n/locales/ms-MY/translation.json +++ b/src/lib/i18n/locales/ms-MY/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Tutup", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/nb-NO/translation.json b/src/lib/i18n/locales/nb-NO/translation.json index 855c11b20..ea7735d74 100644 --- a/src/lib/i18n/locales/nb-NO/translation.json +++ b/src/lib/i18n/locales/nb-NO/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Klone chat", "Clone of {{TITLE}}": "Klone av {{TITLE}}", "Close": "Lukk", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Kodekjøring", diff --git a/src/lib/i18n/locales/nl-NL/translation.json b/src/lib/i18n/locales/nl-NL/translation.json index ce151a1ec..11f6bd85b 100644 --- a/src/lib/i18n/locales/nl-NL/translation.json +++ b/src/lib/i18n/locales/nl-NL/translation.json @@ -37,7 +37,7 @@ "Add content here": "Voeg hier content toe", "Add Custom Parameter": "", "Add custom prompt": "Voeg een aangepaste prompt toe", - "Add Files": "Voeg bestanden toe", + "Add Files": "Voeg bestanden toe", "Add Group": "Voeg groep toe", "Add Memory": "Voeg geheugen toe", "Add Model": "Voeg model toe", @@ -193,7 +193,7 @@ "Clear memory": "Geheugen wissen", "Clear Memory": "Geheugen wissen", "click here": "klik hier", - "Click here for filter guides.": "Klik hier voor filterhulp.", + "Click here for filter guides.": "Klik hier voor filterhulp.", "Click here for help.": "Klik hier voor hulp.", "Click here to": "Klik hier om", "Click here to download user import template file.": "Klik hier om het sjabloonbestand voor gebruikersimport te downloaden.", @@ -210,6 +210,7 @@ "Clone Chat": "Kloon chat", "Clone of {{TITLE}}": "Kloon van {{TITLE}}", "Close": "Sluiten", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Code uitvoeren", @@ -265,7 +266,7 @@ "Copy last code block": "Kopieer laatste codeblok", "Copy last response": "Kopieer laatste antwoord", "Copy Link": "Kopieer link", - "Copy to clipboard": "Kopieer naar klembord", + "Copy to clipboard": "Kopieer naar klembord", "Copying to clipboard was successful!": "Kopiëren naar klembord was succesvol!", "CORS must be properly configured by the provider to allow requests from Open WebUI.": "CORS moet goed geconfigureerd zijn bij de provider om verzoeken van Open WebUI toe te staan", "Create": "Aanmaken", @@ -335,7 +336,7 @@ "Description": "Beschrijving", "Detect Artifacts Automatically": "", "Dictate": "", - "Didn't fully follow instructions": "Heeft niet alle instructies gevolgd", + "Didn't fully follow instructions": "Heeft niet alle instructies gevolgd", "Direct": "Direct", "Direct Connections": "Directe verbindingen", "Direct Connections allow users to connect to their own OpenAI compatible API endpoints.": "Directe verbindingen stellen gebruikers in staat om met hun eigen OpenAI compatibele API-endpoints te verbinden.", @@ -605,7 +606,7 @@ "File removed successfully.": "Bestand succesvol verwijderd.", "File size should not exceed {{maxSize}} MB.": "Bestandsgrootte mag niet groter zijn dan {{maxSize}} MB.", "File Upload": "", - "File uploaded successfully": "Bestand succesvol geüpload", + "File uploaded successfully": "Bestand succesvol geüpload", "Files": "Bestanden", "Filter is now globally disabled": "Filter is nu globaal uitgeschakeld", "Filter is now globally enabled": "Filter is nu globaal ingeschakeld", @@ -987,7 +988,7 @@ "Please select a model.": "Selecteer een model", "Please select a reason": "Voer een reden in", "Port": "Poort", - "Positive attitude": "Positieve houding", + "Positive attitude": "Positieve houding", "Prefix ID": "Voorvoegsel-ID", "Prefix ID is used to avoid conflicts with other connections by adding a prefix to the model IDs - leave empty to disable": "Voorvoegsel-ID wordt gebruikt om conflicten met andere verbindingen te vermijden door een voorvoegsel aan het model-ID toe te voegen - laat leeg om uit te schakelen", "Prevent file creation": "", @@ -1230,24 +1231,24 @@ "Theme": "Thema", "Thinking...": "Aan het denken...", "This action cannot be undone. Do you wish to continue?": "Deze actie kan niet ongedaan worden gemaakt. Wilt u doorgaan?", - "This channel was created on {{createdAt}}. This is the very beginning of the {{channelName}} channel.": "Dit kanaal is aangemaakt op {{createdAt}}. Dit is het begin van het kanaal {{channelName}}.", + "This channel was created on {{createdAt}}. This is the very beginning of the {{channelName}} channel.": "Dit kanaal is aangemaakt op {{createdAt}}. Dit is het begin van het kanaal {{channelName}}.", "This chat won't appear in history and your messages will not be saved.": "", "This chat won’t appear in history and your messages will not be saved.": "", "This ensures that your valuable conversations are securely saved to your backend database. Thank you!": "Dit zorgt ervoor dat je waardevolle gesprekken veilig worden opgeslagen in je backend database. Dank je wel!", - "This is an experimental feature, it may not function as expected and is subject to change at any time.": "Dit is een experimentele functie, het werkt mogelijk niet zoals verwacht en kan op elk moment worden gewijzigd.", + "This is an experimental feature, it may not function as expected and is subject to change at any time.": "Dit is een experimentele functie, het werkt mogelijk niet zoals verwacht en kan op elk moment worden gewijzigd.", "This model is not publicly available. Please select another model.": "", "This option controls how long the model will stay loaded into memory following the request (default: 5m)": "", "This option controls how many tokens are preserved when refreshing the context. For example, if set to 2, the last 2 tokens of the conversation context will be retained. Preserving context can help maintain the continuity of a conversation, but it may reduce the ability to respond to new topics.": "Deze optie bepaalt hoeveel tokens bewaard blijven bij het verversen van de context. Als deze bijvoorbeeld op 2 staat, worden de laatste 2 tekens van de context van het gesprek bewaard. Het behouden van de context kan helpen om de continuïteit van een gesprek te behouden, maar het kan de mogelijkheid om te reageren op nieuwe onderwerpen verminderen.", "This option enables or disables the use of the reasoning feature in Ollama, which allows the model to think before generating a response. When enabled, the model can take a moment to process the conversation context and generate a more thoughtful response.": "", - "This option sets the maximum number of tokens the model can generate in its response. Increasing this limit allows the model to provide longer answers, but it may also increase the likelihood of unhelpful or irrelevant content being generated.": "Deze optie stelt het maximum aantal tokens in dat het model kan genereren in zijn antwoord. Door deze limiet te verhogen, kan het model langere antwoorden geven, maar het kan ook de kans vergroten dat er onbehulpzame of irrelevante inhoud wordt gegenereerd.", + "This option sets the maximum number of tokens the model can generate in its response. Increasing this limit allows the model to provide longer answers, but it may also increase the likelihood of unhelpful or irrelevant content being generated.": "Deze optie stelt het maximum aantal tokens in dat het model kan genereren in zijn antwoord. Door deze limiet te verhogen, kan het model langere antwoorden geven, maar het kan ook de kans vergroten dat er onbehulpzame of irrelevante inhoud wordt gegenereerd.", "This option will delete all existing files in the collection and replace them with newly uploaded files.": "Deze optie verwijdert alle bestaande bestanden in de collectie en vervangt ze door nieuw geüploade bestanden.", - "This response was generated by \"{{model}}\"": "Dit antwoord is gegenereerd door \"{{model}}\"", + "This response was generated by \"{{model}}\"": "Dit antwoord is gegenereerd door \"{{model}}\"", "This will delete": "Dit zal verwijderen", "This will delete {{NAME}} and all its contents.": "Dit zal {{NAME}} verwijderen en al zijn inhoud.", "This will delete all models including custom models": "Dit zal alle modellen, ook aangepaste modellen, verwijderen", - "This will delete all models including custom models and cannot be undone.": "Dit zal alle modellen, ook aangepaste modellen, verwijderen en kan niet ongedaan worden gemaakt", + "This will delete all models including custom models and cannot be undone.": "Dit zal alle modellen, ook aangepaste modellen, verwijderen en kan niet ongedaan worden gemaakt", "This will reset the knowledge base and sync all files. Do you wish to continue?": "Dit zal de kennisdatabase resetten en alle bestanden synchroniseren. Wilt u doorgaan?", - "Thorough explanation": "Grondige uitleg", + "Thorough explanation": "Grondige uitleg", "Thought for {{DURATION}}": "Dacht {{DURATION}}", "Thought for {{DURATION}} seconds": "Dacht {{DURATION}} seconden", "Tika": "Tika", diff --git a/src/lib/i18n/locales/pa-IN/translation.json b/src/lib/i18n/locales/pa-IN/translation.json index 33cf22274..30dc35552 100644 --- a/src/lib/i18n/locales/pa-IN/translation.json +++ b/src/lib/i18n/locales/pa-IN/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "ਬੰਦ ਕਰੋ", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/pl-PL/translation.json b/src/lib/i18n/locales/pl-PL/translation.json index 147820f5a..465cc7c8f 100644 --- a/src/lib/i18n/locales/pl-PL/translation.json +++ b/src/lib/i18n/locales/pl-PL/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Sklonuj czat", "Clone of {{TITLE}}": "Klon {{TITLE}}", "Close": "Zamknij", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Wykonanie kodu", diff --git a/src/lib/i18n/locales/pt-BR/translation.json b/src/lib/i18n/locales/pt-BR/translation.json index 78c6d3c63..eac17e4be 100644 --- a/src/lib/i18n/locales/pt-BR/translation.json +++ b/src/lib/i18n/locales/pt-BR/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Fechar", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Execução de código", diff --git a/src/lib/i18n/locales/pt-PT/translation.json b/src/lib/i18n/locales/pt-PT/translation.json index 5f26fe6bf..4246cbc59 100644 --- a/src/lib/i18n/locales/pt-PT/translation.json +++ b/src/lib/i18n/locales/pt-PT/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Fechar", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/ro-RO/translation.json b/src/lib/i18n/locales/ro-RO/translation.json index 3d26ee865..da0b34775 100644 --- a/src/lib/i18n/locales/ro-RO/translation.json +++ b/src/lib/i18n/locales/ro-RO/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Clonează chat", "Clone of {{TITLE}}": "", "Close": "Închide", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Executarea codului", diff --git a/src/lib/i18n/locales/ru-RU/translation.json b/src/lib/i18n/locales/ru-RU/translation.json index 0a9d9f170..434cb16f4 100644 --- a/src/lib/i18n/locales/ru-RU/translation.json +++ b/src/lib/i18n/locales/ru-RU/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Клонировать чат", "Clone of {{TITLE}}": "Клон {{TITLE}}", "Close": "Закрыть", + "Close Configure Connection Modal": "", "Close modal": "Закрыть окно", "Close settings modal": "Закрыть окно настроек", "Code execution": "Исполнение кода", diff --git a/src/lib/i18n/locales/sk-SK/translation.json b/src/lib/i18n/locales/sk-SK/translation.json index f9c2c47d4..1f5aaf720 100644 --- a/src/lib/i18n/locales/sk-SK/translation.json +++ b/src/lib/i18n/locales/sk-SK/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Zavrieť", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Vykonávanie kódu", diff --git a/src/lib/i18n/locales/sr-RS/translation.json b/src/lib/i18n/locales/sr-RS/translation.json index 048936247..11769d4b2 100644 --- a/src/lib/i18n/locales/sr-RS/translation.json +++ b/src/lib/i18n/locales/sr-RS/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Клонирај ћаскање", "Clone of {{TITLE}}": "", "Close": "Затвори", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Извршавање кода", diff --git a/src/lib/i18n/locales/sv-SE/translation.json b/src/lib/i18n/locales/sv-SE/translation.json index 337b40cac..c0993938a 100644 --- a/src/lib/i18n/locales/sv-SE/translation.json +++ b/src/lib/i18n/locales/sv-SE/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Klona chatt", "Clone of {{TITLE}}": "Klon av {{TITLE}}", "Close": "Stäng", + "Close Configure Connection Modal": "", "Close modal": "Stäng modal", "Close settings modal": "Stäng inställningsmodal", "Code execution": "Kodkörning", diff --git a/src/lib/i18n/locales/th-TH/translation.json b/src/lib/i18n/locales/th-TH/translation.json index 7417f2623..7334c0b8b 100644 --- a/src/lib/i18n/locales/th-TH/translation.json +++ b/src/lib/i18n/locales/th-TH/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "ปิด", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/tk-TM/translation.json b/src/lib/i18n/locales/tk-TM/translation.json index f96a13773..af91232d0 100644 --- a/src/lib/i18n/locales/tk-TM/translation.json +++ b/src/lib/i18n/locales/tk-TM/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "Ýap", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "", diff --git a/src/lib/i18n/locales/tr-TR/translation.json b/src/lib/i18n/locales/tr-TR/translation.json index cc66aa58e..28a32dfd0 100644 --- a/src/lib/i18n/locales/tr-TR/translation.json +++ b/src/lib/i18n/locales/tr-TR/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Sohbeti Klonla", "Clone of {{TITLE}}": "{{TITLE}}'ın kopyası", "Close": "Kapat", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Kod yürütme", diff --git a/src/lib/i18n/locales/ug-CN/translation.json b/src/lib/i18n/locales/ug-CN/translation.json index 77cf3e3c4..a2c8809b2 100644 --- a/src/lib/i18n/locales/ug-CN/translation.json +++ b/src/lib/i18n/locales/ug-CN/translation.json @@ -120,7 +120,7 @@ "Attach file from knowledge": "بىلىمدىن ھۆججەت ئۇلاڭ", "Attention to detail": "تەپسىلاتقا دىققەت", "Attribute for Mail": "ئېلىخەت خاسلىقى", - "Attribute for Username": "ئىشلەتكۈچى ئىسمى  خاسلىقى", + "Attribute for Username": "ئىشلەتكۈچى ئىسمى\u00a0 خاسلىقى", "Audio": "ئاۋاز", "August": "ئاۋغۇست", "Auth": "تەستىقلاش", @@ -210,6 +210,7 @@ "Clone Chat": "سۆھبەتنى كۆچۈرۈش", "Clone of {{TITLE}}": "{{TITLE}} نىڭ كۆچۈرمىسى", "Close": "يېپىش", + "Close Configure Connection Modal": "", "Close modal": "مودالنى يېپىش", "Close settings modal": "تەڭشەك مودالىنى يېپىش", "Code execution": "كود ئىجرا قىلىش", @@ -1126,7 +1127,7 @@ "Set embedding model (e.g. {{model}})": "سىڭدۈرۈش مودېلى تەڭشەش (مەسىلەن: {{model}})", "Set Image Size": "رەسىم چوڭلۇقى تەڭشەش", "Set reranking model (e.g. {{model}})": "قايتا تەرتىپلەش مودېلى تەڭشەش (مەسىلەن: {{model}})", - "Set Sampler": "ئەۋرىشكىلىگۈچ تەڭشەش ", + "Set Sampler": "ئەۋرىشكىلىگۈچ تەڭشەش\u00a0", "Set Scheduler": "ۋاقىتلاشتۇرغۇچ تەڭشەش", "Set Steps": "قەدەم سانىنى تەڭشەش", "Set the number of layers, which will be off-loaded to GPU. Increasing this value can significantly improve performance for models that are optimized for GPU acceleration but may also consume more power and GPU resources.": "GPU غا يۈكلەيدىغان قەۋەت سانىنى تەڭشەش. قىممەتنى چوڭايتسىڭىز، GPU تىزلىتىشقا ماس مودېللارنىڭ ئۈنۈمى ئاشىدۇ، بىراق كۆپ قۇۋۋەت ۋە GPU بايلىقى ئىشلىتىلىدۇ.", diff --git a/src/lib/i18n/locales/uk-UA/translation.json b/src/lib/i18n/locales/uk-UA/translation.json index e8eade7ae..30f54fa03 100644 --- a/src/lib/i18n/locales/uk-UA/translation.json +++ b/src/lib/i18n/locales/uk-UA/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Клонувати чат", "Clone of {{TITLE}}": "Клон {{TITLE}}", "Close": "Закрити", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Виконання коду", diff --git a/src/lib/i18n/locales/ur-PK/translation.json b/src/lib/i18n/locales/ur-PK/translation.json index dec40eaef..c3644f485 100644 --- a/src/lib/i18n/locales/ur-PK/translation.json +++ b/src/lib/i18n/locales/ur-PK/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "", "Clone of {{TITLE}}": "", "Close": "بند کریں", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "کوڈ کا نفاذ", diff --git a/src/lib/i18n/locales/uz-Cyrl-UZ/translation.json b/src/lib/i18n/locales/uz-Cyrl-UZ/translation.json index 881db247e..a14b24172 100644 --- a/src/lib/i18n/locales/uz-Cyrl-UZ/translation.json +++ b/src/lib/i18n/locales/uz-Cyrl-UZ/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Чатни клонлаш", "Clone of {{TITLE}}": "{{TITLE}} клони", "Close": "Ёпиш", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Коднинг бажарилиши", diff --git a/src/lib/i18n/locales/uz-Latn-Uz/translation.json b/src/lib/i18n/locales/uz-Latn-Uz/translation.json index 0f43a3670..26c64add6 100644 --- a/src/lib/i18n/locales/uz-Latn-Uz/translation.json +++ b/src/lib/i18n/locales/uz-Latn-Uz/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Chatni klonlash", "Clone of {{TITLE}}": "{{TITLE}} kloni", "Close": "Yopish", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Kodning bajarilishi", diff --git a/src/lib/i18n/locales/vi-VN/translation.json b/src/lib/i18n/locales/vi-VN/translation.json index 70962ea5b..8ed9f8246 100644 --- a/src/lib/i18n/locales/vi-VN/translation.json +++ b/src/lib/i18n/locales/vi-VN/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "Nhân bản Chat", "Clone of {{TITLE}}": "Bản sao của {{TITLE}}", "Close": "Đóng", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "Thực thi mã", diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json index 03a1b25a5..fc3327006 100644 --- a/src/lib/i18n/locales/zh-CN/translation.json +++ b/src/lib/i18n/locales/zh-CN/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "克隆对话", "Clone of {{TITLE}}": "{{TITLE}} 的副本", "Close": "关闭", + "Close Configure Connection Modal": "", "Close modal": "关闭弹窗", "Close settings modal": "关闭设置弹窗", "Code execution": "代码执行", diff --git a/src/lib/i18n/locales/zh-TW/translation.json b/src/lib/i18n/locales/zh-TW/translation.json index 3f757f366..a0bec2810 100644 --- a/src/lib/i18n/locales/zh-TW/translation.json +++ b/src/lib/i18n/locales/zh-TW/translation.json @@ -210,6 +210,7 @@ "Clone Chat": "複製對話", "Clone of {{TITLE}}": "{{TITLE}} 的副本", "Close": "關閉", + "Close Configure Connection Modal": "", "Close modal": "", "Close settings modal": "", "Code execution": "程式碼執行", diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index a3d02f55c..d954f0bb2 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -361,9 +361,9 @@ export const generateInitialsImage = (name) => { const initials = sanitizedName.length > 0 ? sanitizedName[0] + - (sanitizedName.split(' ').length > 1 - ? sanitizedName[sanitizedName.lastIndexOf(' ') + 1] - : '') + (sanitizedName.split(' ').length > 1 + ? sanitizedName[sanitizedName.lastIndexOf(' ') + 1] + : '') : ''; ctx.fillText(initials.toUpperCase(), canvas.width / 2, canvas.height / 2); @@ -514,10 +514,10 @@ export const compareVersion = (latest, current) => { return current === '0.0.0' ? false : current.localeCompare(latest, undefined, { - numeric: true, - sensitivity: 'case', - caseFirst: 'upper' - }) < 0; + numeric: true, + sensitivity: 'case', + caseFirst: 'upper' + }) < 0; }; export const extractCurlyBraceWords = (text) => {