Skip to content

Commit 1860874

Browse files
i18n: add missing i18n keys of ScheduleDropdown (open-webui#23726)
1 parent 5dae600 commit 1860874

62 files changed

Lines changed: 749 additions & 77 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/lib/components/automations/ScheduleDropdown.svelte

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<script lang="ts">
2+
import type i18nType from '$lib/i18n';
23
import { getContext } from 'svelte';
34
45
import Dropdown from '$lib/components/common/Dropdown.svelte';
56
6-
const i18n = getContext('i18n');
7+
const i18n: typeof i18nType = getContext('i18n');
78
89
export let frequency = 'DAILY';
910
export let interval = 1;
@@ -23,23 +24,23 @@
2324
2425
let showDropdown = false;
2526
26-
const FREQUENCIES = [
27-
{ key: 'ONCE', label: 'Once' },
28-
{ key: 'HOURLY', label: 'Hourly' },
29-
{ key: 'DAILY', label: 'Daily' },
30-
{ key: 'WEEKLY', label: 'Weekly' },
31-
{ key: 'MONTHLY', label: 'Monthly' },
32-
{ key: 'CUSTOM', label: 'Custom' }
27+
$: FREQUENCIES = [
28+
{ key: 'ONCE', label: $i18n.t('Once') },
29+
{ key: 'HOURLY', label: $i18n.t('Hourly') },
30+
{ key: 'DAILY', label: $i18n.t('Daily') },
31+
{ key: 'WEEKLY', label: $i18n.t('Weekly') },
32+
{ key: 'MONTHLY', label: $i18n.t('Monthly') },
33+
{ key: 'CUSTOM', label: $i18n.t('Custom') }
3334
];
3435
35-
const DAYS = [
36-
{ key: 'MO', label: 'Mo' },
37-
{ key: 'TU', label: 'Tu' },
38-
{ key: 'WE', label: 'We' },
39-
{ key: 'TH', label: 'Th' },
40-
{ key: 'FR', label: 'Fr' },
41-
{ key: 'SA', label: 'Sa' },
42-
{ key: 'SU', label: 'Su' }
36+
$: DAYS = [
37+
{ key: 'MO', label: $i18n.t('Mo', { context: 'day_of_week' }) },
38+
{ key: 'TU', label: $i18n.t('Tu', { context: 'day_of_week' }) },
39+
{ key: 'WE', label: $i18n.t('We', { context: 'day_of_week' }) },
40+
{ key: 'TH', label: $i18n.t('Th', { context: 'day_of_week' }) },
41+
{ key: 'FR', label: $i18n.t('Fr', { context: 'day_of_week' }) },
42+
{ key: 'SA', label: $i18n.t('Sa', { context: 'day_of_week' }) },
43+
{ key: 'SU', label: $i18n.t('Su', { context: 'day_of_week' }) }
4344
];
4445
4546
let lastVisualFrequency = 'DAILY';

src/lib/i18n/locales/ar-BH/translation.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@
484484
"Custom Gender": "",
485485
"Custom Parameter Name": "",
486486
"Custom Parameter Value": "",
487+
"Daily": "",
487488
"Daily Messages": "",
488489
"Danger Zone": "",
489490
"Dark": "مظلم",
@@ -974,6 +975,7 @@
974975
"Forward": "",
975976
"Forwards system user OAuth access token to authenticate": "",
976977
"Forwards system user session credentials to authenticate": "",
978+
"Fr_day_of_week": "",
977979
"Full Context Mode": "",
978980
"Function": "",
979981
"Function Calling": "",
@@ -1048,6 +1050,7 @@
10481050
"History": "",
10491051
"Home": "",
10501052
"Host": "",
1053+
"Hourly": "",
10511054
"Hourly Messages": "",
10521055
"How can I help you today?": "كيف استطيع مساعدتك اليوم؟",
10531056
"How would you rate this response?": "",
@@ -1270,10 +1273,10 @@
12701273
"Mistral OCR": "",
12711274
"Mistral OCR API Key required.": "",
12721275
"MistralAI": "",
1276+
"Mo_day_of_week": "",
12731277
"Model": "",
12741278
"Model '{{modelName}}' has been successfully downloaded.": "تم تحميل النموذج '{{modelName}}' بنجاح",
12751279
"Model '{{modelTag}}' is already in queue for downloading.": "النموذج '{{modelTag}}' موجود بالفعل في قائمة الانتظار للتحميل",
1276-
"Model {{modelId}} not found": "لم يتم العثور على النموذج {{modelId}}.",
12771280
"Model {{modelName}} deleted successfully": "",
12781281
"Model {{modelName}} is not vision capable": "نموذج {{modelName}} غير قادر على الرؤية",
12791282
"Model {{name}} is now {{status}}": "نموذج {{name}} هو الآن {{status}}",
@@ -1314,6 +1317,7 @@
13141317
"Models Sharing": "",
13151318
"Mojeek": "",
13161319
"Mojeek Search API Key": "",
1320+
"Monthly": "",
13171321
"More": "المزيد",
13181322
"More Concise": "",
13191323
"More options": "",
@@ -1434,6 +1438,7 @@
14341438
"Ollama Cloud API Key": "",
14351439
"Ollama Version": "Ollama الاصدار",
14361440
"On": "تشغيل",
1441+
"Once": "",
14371442
"OneDrive": "",
14381443
"Only active when \"Paste Large Text as File\" setting is toggled on.": "",
14391444
"Only active when the chat input is in focus and an LLM is generating a response.": "",
@@ -1683,6 +1688,7 @@
16831688
"Running": "",
16841689
"Running...": "جارٍ التنفيذ...",
16851690
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
1691+
"Sa_day_of_week": "",
16861692
"Save": "حفظ",
16871693
"Save & Create": "حفظ وإنشاء",
16881694
"Save & Update": "حفظ وتحديث",
@@ -1899,6 +1905,7 @@
18991905
"STT Model": "",
19001906
"STT Settings": "STT اعدادات",
19011907
"Stylized PDF Export": "",
1908+
"Su_day_of_week": "",
19021909
"Submit question": "",
19031910
"Submit suggestion": "",
19041911
"Subtitle": "",
@@ -1944,6 +1951,7 @@
19441951
"Text Splitter": "",
19451952
"Text-to-Speech": "",
19461953
"Text-to-Speech Engine": "محرك تحويل النص إلى كلام",
1954+
"Th_day_of_week": "",
19471955
"Thanks for your feedback!": "شكرا لملاحظاتك!",
19481956
"The Application Account DN you bind with for search": "",
19491957
"The base to search for users": "",
@@ -2057,6 +2065,7 @@
20572065
"TTS Model": "",
20582066
"TTS Settings": "TTS اعدادات",
20592067
"TTS Voice": "",
2068+
"Tu_day_of_week": "",
20602069
"Type": "نوع",
20612070
"Type here...": "",
20622071
"Type Hugging Face Resolve (Download) URL": "اكتب عنوان URL لحل مشكلة الوجه (تنزيل).",
@@ -2159,6 +2168,7 @@
21592168
"Warning: Enabling this will allow users to run scheduled prompts automatically.": "",
21602169
"Warning: Enabling this will allow users to upload arbitrary code on the server.": "",
21612170
"Warning: Jupyter execution enables arbitrary code execution, posing severe security risks—proceed with extreme caution.": "",
2171+
"We_day_of_week": "",
21622172
"Web": "Web",
21632173
"Web API": "",
21642174
"Web Loader Engine": "",
@@ -2175,6 +2185,7 @@
21752185
"WebUI will make requests to \"{{url}}\"": "",
21762186
"WebUI will make requests to \"{{url}}/api/chat\"": "",
21772187
"WebUI will make requests to \"{{url}}/chat/completions\"": "",
2188+
"Weekly": "",
21782189
"What are you trying to achieve?": "",
21792190
"What are you working on?": "",
21802191
"What is NOT shared:": "",

src/lib/i18n/locales/ar/translation.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@
484484
"Custom Gender": "",
485485
"Custom Parameter Name": "",
486486
"Custom Parameter Value": "",
487+
"Daily": "",
487488
"Daily Messages": "",
488489
"Danger Zone": "منطقة الخطر",
489490
"Dark": "داكن",
@@ -974,6 +975,7 @@
974975
"Forward": "",
975976
"Forwards system user OAuth access token to authenticate": "",
976977
"Forwards system user session credentials to authenticate": "",
978+
"Fr_day_of_week": "",
977979
"Full Context Mode": "وضع السياق الكامل",
978980
"Function": "وظيفة",
979981
"Function Calling": "استدعاء الوظائف",
@@ -1048,6 +1050,7 @@
10481050
"History": "",
10491051
"Home": "الصفحة الرئيسية",
10501052
"Host": "المضيف",
1053+
"Hourly": "",
10511054
"Hourly Messages": "",
10521055
"How can I help you today?": "كيف استطيع مساعدتك اليوم؟",
10531056
"How would you rate this response?": "كيف تقيّم هذا الرد؟",
@@ -1270,10 +1273,10 @@
12701273
"Mistral OCR": "",
12711274
"Mistral OCR API Key required.": "",
12721275
"MistralAI": "",
1276+
"Mo_day_of_week": "",
12731277
"Model": "النموذج",
12741278
"Model '{{modelName}}' has been successfully downloaded.": "تم تحميل النموذج '{{modelName}}' بنجاح",
12751279
"Model '{{modelTag}}' is already in queue for downloading.": "النموذج '{{modelTag}}' موجود بالفعل في قائمة الانتظار للتحميل",
1276-
"Model {{modelId}} not found": "لم يتم العثور على النموذج {{modelId}}.",
12771280
"Model {{modelName}} deleted successfully": "",
12781281
"Model {{modelName}} is not vision capable": "نموذج {{modelName}} غير قادر على الرؤية",
12791282
"Model {{name}} is now {{status}}": "نموذج {{name}} هو الآن {{status}}",
@@ -1314,6 +1317,7 @@
13141317
"Models Sharing": "",
13151318
"Mojeek": "",
13161319
"Mojeek Search API Key": "مفتاح API لـ Mojeek Search",
1320+
"Monthly": "",
13171321
"More": "المزيد",
13181322
"More Concise": "",
13191323
"More options": "",
@@ -1434,6 +1438,7 @@
14341438
"Ollama Cloud API Key": "",
14351439
"Ollama Version": "Ollama الاصدار",
14361440
"On": "تشغيل",
1441+
"Once": "",
14371442
"OneDrive": "OneDrive",
14381443
"Only active when \"Paste Large Text as File\" setting is toggled on.": "",
14391444
"Only active when the chat input is in focus and an LLM is generating a response.": "",
@@ -1683,6 +1688,7 @@
16831688
"Running": "جارٍ التنفيذ",
16841689
"Running...": "جارٍ التنفيذ...",
16851690
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
1691+
"Sa_day_of_week": "",
16861692
"Save": "حفظ",
16871693
"Save & Create": "حفظ وإنشاء",
16881694
"Save & Update": "حفظ وتحديث",
@@ -1899,6 +1905,7 @@
18991905
"STT Model": "نموذج تحويل الصوت إلى نص (STT)",
19001906
"STT Settings": "STT اعدادات",
19011907
"Stylized PDF Export": "",
1908+
"Su_day_of_week": "",
19021909
"Submit question": "",
19031910
"Submit suggestion": "",
19041911
"Subtitle": "",
@@ -1944,6 +1951,7 @@
19441951
"Text Splitter": "تقسيم النص",
19451952
"Text-to-Speech": "",
19461953
"Text-to-Speech Engine": "محرك تحويل النص إلى كلام",
1954+
"Th_day_of_week": "",
19471955
"Thanks for your feedback!": "شكرا لملاحظاتك!",
19481956
"The Application Account DN you bind with for search": "DN لحساب التطبيق الذي تستخدمه للبحث",
19491957
"The base to search for users": "الأساس الذي يُستخدم للبحث عن المستخدمين",
@@ -2057,6 +2065,7 @@
20572065
"TTS Model": "نموذج تحويل النص إلى كلام (TTS)",
20582066
"TTS Settings": "TTS اعدادات",
20592067
"TTS Voice": "صوت TTS",
2068+
"Tu_day_of_week": "",
20602069
"Type": "نوع",
20612070
"Type here...": "",
20622071
"Type Hugging Face Resolve (Download) URL": "اكتب عنوان URL لحل مشكلة الوجه (تنزيل).",
@@ -2159,6 +2168,7 @@
21592168
"Warning: Enabling this will allow users to run scheduled prompts automatically.": "",
21602169
"Warning: Enabling this will allow users to upload arbitrary code on the server.": "تحذير: تفعيل هذا الخيار سيسمح للمستخدمين برفع كود عشوائي على الخادم.",
21612170
"Warning: Jupyter execution enables arbitrary code execution, posing severe security risks—proceed with extreme caution.": "تحذير: تنفيذ كود Jupyter يتيح تنفيذ كود عشوائي مما يشكل مخاطر أمنية جسيمة—تابع بحذر شديد.",
2171+
"We_day_of_week": "",
21622172
"Web": "Web",
21632173
"Web API": "واجهة برمجة التطبيقات (API)",
21642174
"Web Loader Engine": "",
@@ -2175,6 +2185,7 @@
21752185
"WebUI will make requests to \"{{url}}\"": "",
21762186
"WebUI will make requests to \"{{url}}/api/chat\"": "ستقوم WebUI بإرسال الطلبات إلى \"{{url}}/api/chat\"",
21772187
"WebUI will make requests to \"{{url}}/chat/completions\"": "ستقوم WebUI بإرسال الطلبات إلى \"{{url}}/chat/completions\"",
2188+
"Weekly": "",
21782189
"What are you trying to achieve?": "ما الذي تحاول تحقيقه؟",
21792190
"What are you working on?": "على ماذا تعمل؟",
21802191
"What is NOT shared:": "",

src/lib/i18n/locales/az-AZ/translation.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@
480480
"Custom Gender": "Fərdi cins",
481481
"Custom Parameter Name": "Fərdi parametr adı",
482482
"Custom Parameter Value": "Fərdi parametr dəyəri",
483+
"Daily": "",
483484
"Daily Messages": "Gündəlik mesajlar",
484485
"Danger Zone": "Təhlükəli zona",
485486
"Dark": "Tünd",
@@ -970,6 +971,7 @@
970971
"Forward": "",
971972
"Forwards system user OAuth access token to authenticate": "Autentifikasiya üçün sistem istifadəçisinin OAuth giriş tokenini yönləndirir",
972973
"Forwards system user session credentials to authenticate": "Autentifikasiya üçün sistem istifadəçisinin sessiya məlumatlarını yönləndirir",
974+
"Fr_day_of_week": "",
973975
"Full Context Mode": "Tam kontekst rejimi",
974976
"Function": "Funksiya",
975977
"Function Calling": "Funksiya çağırışı",
@@ -1044,6 +1046,7 @@
10441046
"History": "Tarixçə",
10451047
"Home": "Ana səhifə",
10461048
"Host": "Host",
1049+
"Hourly": "",
10471050
"Hourly Messages": "Saatlıq mesajlar",
10481051
"How can I help you today?": "Bu gün sizə necə kömək edə bilərəm?",
10491052
"How would you rate this response?": "Bu cavabı necə qiymətləndirərdiniz?",
@@ -1266,10 +1269,10 @@
12661269
"Mistral OCR": "Mistral OCR",
12671270
"Mistral OCR API Key required.": "Mistral OCR API açarı tələb olunur.",
12681271
"MistralAI": "MistralAI",
1272+
"Mo_day_of_week": "",
12691273
"Model": "Model",
12701274
"Model '{{modelName}}' has been successfully downloaded.": "'{{modelName}}' modeli uğurla yükləndi.",
12711275
"Model '{{modelTag}}' is already in queue for downloading.": "'{{modelTag}}' modeli artıq yükləmə növbəsindədir.",
1272-
"Model {{modelId}} not found": "{{modelId}} modeli tapılmadı",
12731276
"Model {{modelName}} deleted successfully": "",
12741277
"Model {{modelName}} is not vision capable": "{{modelName}} modeli görüntünü tanıma (vision) qabiliyyətinə malik deyil",
12751278
"Model {{name}} is now {{status}}": "{{name}} modeli indi {{status}} statusundadır",
@@ -1310,6 +1313,7 @@
13101313
"Models Sharing": "Modellərin paylaşılması",
13111314
"Mojeek": "Mojeek",
13121315
"Mojeek Search API Key": "Mojeek Axtarış API Açarı",
1316+
"Monthly": "",
13131317
"More": "Daha çox",
13141318
"More Concise": "Daha yığcam",
13151319
"More options": "Daha çox seçim",
@@ -1430,6 +1434,7 @@
14301434
"Ollama Cloud API Key": "Ollama Cloud API Açarı",
14311435
"Ollama Version": "Ollama Versiyası",
14321436
"On": "Açıq",
1437+
"Once": "",
14331438
"OneDrive": "OneDrive",
14341439
"Only active when \"Paste Large Text as File\" setting is toggled on.": "Yalnız \"Böyük mətni fayl kimi yapışdır\" ayarı aktiv olduqda işləyir.",
14351440
"Only active when the chat input is in focus and an LLM is generating a response.": "Yalnız çat girişi fokusda olduqda və LLM cavab yaratdıqda aktiv olur.",
@@ -1675,6 +1680,7 @@
16751680
"Running": "İcra edilir",
16761681
"Running...": "İcra edilir...",
16771682
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "Emalı sürətləndirmək üçün yerləşdirmə (embedding) tapşırıqlarını eyni vaxtda icra edir. Əgər sorğu limiti problemi yaranarsa, bunu söndürün.",
1683+
"Sa_day_of_week": "",
16781684
"Save": "Yadda saxla",
16791685
"Save & Create": "Saxla və Yarat",
16801686
"Save & Update": "Saxla və Yenilə",
@@ -1891,6 +1897,7 @@
18911897
"STT Model": "STT (Səsdən mətnə) Modeli",
18921898
"STT Settings": "STT Ayarları",
18931899
"Stylized PDF Export": "Stil verilmiş PDF ixracı",
1900+
"Su_day_of_week": "",
18941901
"Submit question": "Sualı göndər",
18951902
"Submit suggestion": "Təklifi göndər",
18961903
"Subtitle": "Altyazı",
@@ -1936,6 +1943,7 @@
19361943
"Text Splitter": "Mətn bölücü",
19371944
"Text-to-Speech": "Mətndən səsə (TTS)",
19381945
"Text-to-Speech Engine": "Mətndən səsə mühərriki",
1946+
"Th_day_of_week": "",
19391947
"Thanks for your feedback!": "Rəyiniz üçün təşəkkürlər!",
19401948
"The Application Account DN you bind with for search": "Axtarış üçün bağladığınız Tətbiq Hesabı DN (Application Account DN)",
19411949
"The base to search for users": "İstifadəçilərin axtarışı üçün baza",
@@ -2049,6 +2057,7 @@
20492057
"TTS Model": "TTS Modeli",
20502058
"TTS Settings": "TTS Ayarları",
20512059
"TTS Voice": "TTS Səsi",
2060+
"Tu_day_of_week": "",
20522061
"Type": "Növ",
20532062
"Type here...": "Bura yazın...",
20542063
"Type Hugging Face Resolve (Download) URL": "Hugging Face Resolve (Yükləmə) URL-ni yazın",
@@ -2151,6 +2160,7 @@
21512160
"Warning: Enabling this will allow users to run scheduled prompts automatically.": "",
21522161
"Warning: Enabling this will allow users to upload arbitrary code on the server.": "Xəbərdarlıq: Bunun aktiv edilməsi istifadəçilərə serverə ixtiyari kod yükləməyə icazə verəcək.",
21532162
"Warning: Jupyter execution enables arbitrary code execution, posing severe security risks—proceed with extreme caution.": "Xəbərdarlıq: Jupyter icrası ixtiyari kodun işlədilməsinə imkan verir və ciddi təhlükəsizlik riskləri yaradır — son dərəcə ehtiyatlı olun.",
2163+
"We_day_of_week": "",
21542164
"Web": "Veb",
21552165
"Web API": "Veb API",
21562166
"Web Loader Engine": "Veb yükləyici mühərrik",
@@ -2167,6 +2177,7 @@
21672177
"WebUI will make requests to \"{{url}}\"": "WebUI \"{{url}}\" ünvanına sorğular göndərəcək",
21682178
"WebUI will make requests to \"{{url}}/api/chat\"": "WebUI \"{{url}}/api/chat\" ünvanına sorğular göndərəcək",
21692179
"WebUI will make requests to \"{{url}}/chat/completions\"": "WebUI \"{{url}}/chat/completions\" ünvanına sorğular göndərəcək",
2180+
"Weekly": "",
21702181
"What are you trying to achieve?": "Nəyə nail olmaq istəyirsiniz?",
21712182
"What are you working on?": "Nəyin üzərində işləyirsiniz?",
21722183
"What is NOT shared:": "Nələr paylaşılmır:",

0 commit comments

Comments
 (0)