From e26c1485bf851df5921aec4c4c1de31304aef5de Mon Sep 17 00:00:00 2001 From: wuzihao051119 Date: Tue, 20 May 2025 14:49:37 +0800 Subject: [PATCH 1/9] fix(web): persisted store --- .../user-settings-page/app-settings.svelte | 15 ++++----------- web/src/lib/stores/preferences.store.ts | 4 ++-- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/web/src/lib/components/user-settings-page/app-settings.svelte b/web/src/lib/components/user-settings-page/app-settings.svelte index adb37d5d93930..c187c2207167e 100644 --- a/web/src/lib/components/user-settings-page/app-settings.svelte +++ b/web/src/lib/components/user-settings-page/app-settings.svelte @@ -39,7 +39,7 @@ }; const handleToggleLocaleBrowser = () => { - $locale = $locale ? undefined : fallbackLocale.code; + $locale = $locale !== 'default' ? 'default' : fallbackLocale.code; }; const handleLocaleChange = (newLocale: string | undefined) => { @@ -89,13 +89,13 @@

{selectedDate}

- {#if $locale !== undefined} + {#if $locale !== 'default'}
($alwaysLoadOriginalFile = !$alwaysLoadOriginalFile)} />
@@ -121,16 +120,10 @@ title={$t('video_hover_setting')} subtitle={$t('video_hover_setting_description')} bind:checked={$playVideoThumbnailOnHover} - onToggle={() => ($playVideoThumbnailOnHover = !$playVideoThumbnailOnHover)} />
- ($loopVideo = !$loopVideo)} - /> +
diff --git a/web/src/lib/stores/preferences.store.ts b/web/src/lib/stores/preferences.store.ts index e7f38eb6d086f..214c4215c1d8d 100644 --- a/web/src/lib/stores/preferences.store.ts +++ b/web/src/lib/stores/preferences.store.ts @@ -9,9 +9,9 @@ export interface ThemeSetting { } // Locale to use for formatting dates, numbers, etc. -export const locale = persisted('locale', undefined, { +export const locale = persisted('locale', 'default', { serializer: { - parse: (text) => (text == '' ? 'en-US' : text), + parse: (text) => text, stringify: (object) => object ?? '', }, }); From b6de24cfa1b991b5059fe61c8df345c177941cfb Mon Sep 17 00:00:00 2001 From: wuzihao051119 Date: Tue, 3 Jun 2025 02:15:16 +0800 Subject: [PATCH 2/9] fix: translation --- i18n/ar.json | 2 +- i18n/bg.json | 2 +- i18n/ca.json | 2 +- i18n/cs.json | 2 +- i18n/da.json | 2 +- i18n/de.json | 2 +- i18n/el.json | 2 +- i18n/en.json | 2 +- i18n/es.json | 2 +- i18n/et.json | 2 +- i18n/fa.json | 2 +- i18n/fi.json | 2 +- i18n/fr.json | 2 +- i18n/gl.json | 2 +- i18n/he.json | 2 +- i18n/hi.json | 2 +- i18n/hr.json | 2 +- i18n/hu.json | 2 +- i18n/id.json | 2 +- i18n/it.json | 2 +- i18n/ja.json | 2 +- i18n/ko.json | 2 +- i18n/nb_NO.json | 2 +- i18n/nl.json | 2 +- i18n/pl.json | 2 +- i18n/pt.json | 2 +- i18n/pt_BR.json | 2 +- i18n/ro.json | 2 +- i18n/ru.json | 2 +- i18n/sk.json | 2 +- i18n/sl.json | 2 +- i18n/sr_Cyrl.json | 2 +- i18n/sr_Latn.json | 2 +- i18n/sv.json | 2 +- i18n/ta.json | 2 +- i18n/th.json | 2 +- i18n/tr.json | 2 +- i18n/uk.json | 2 +- i18n/vi.json | 2 +- i18n/zh_Hant.json | 2 +- i18n/zh_SIMPLIFIED.json | 3 ++- .../shared-components/theme-button.svelte | 19 +++++++++++++------ web/src/lib/constants.ts | 14 +++++++++++--- 43 files changed, 66 insertions(+), 50 deletions(-) diff --git a/i18n/ar.json b/i18n/ar.json index 5dedbd2ea58aa..fa9f8d5debd28 100644 --- a/i18n/ar.json +++ b/i18n/ar.json @@ -1601,7 +1601,7 @@ "to_parent": "انتقل إلى الوالد", "to_trash": "حذف", "toggle_settings": "الإعدادات", - "toggle_theme": "تبديل المظهر الداكن", + "darkTheme": "تبديل المظهر الداكن", "total": "الإجمالي", "total_usage": "الاستخدام الإجمالي", "trash": "المهملات", diff --git a/i18n/bg.json b/i18n/bg.json index 7f0fca55d6faf..bed41a7da01d9 100644 --- a/i18n/bg.json +++ b/i18n/bg.json @@ -1270,7 +1270,7 @@ "to_parent": "Отиди към родителския елемент", "to_trash": "Кошче", "toggle_settings": "Превключване на настройките", - "toggle_theme": "Превключване на тема", + "darkTheme": "Превключване на тема", "total": "Общо", "total_usage": "Общо използвано", "trash": "Кошче", diff --git a/i18n/ca.json b/i18n/ca.json index cd9cc4e0b494b..1ac8b6f9b4200 100644 --- a/i18n/ca.json +++ b/i18n/ca.json @@ -1777,7 +1777,7 @@ "to_parent": "Anar als pares", "to_trash": "Paperera", "toggle_settings": "Canvia configuració", - "toggle_theme": "Alternar tema", + "darkTheme": "Alternar tema", "total_usage": "Ús total", "trash": "Paperera", "trash_all": "Envia-ho tot a la paperera", diff --git a/i18n/cs.json b/i18n/cs.json index 7bfca25c017a6..f50d70c3ba8d9 100644 --- a/i18n/cs.json +++ b/i18n/cs.json @@ -1812,7 +1812,7 @@ "to_parent": "Přejít k rodiči", "to_trash": "Vyhodit", "toggle_settings": "Přepnout nastavení", - "toggle_theme": "Přepnout tmavý motiv", + "darkTheme": "Přepnout tmavý motiv", "total": "Celkem", "total_usage": "Celkové využití", "trash": "Koš", diff --git a/i18n/da.json b/i18n/da.json index eeec0ce036559..647e9e4fbe84d 100644 --- a/i18n/da.json +++ b/i18n/da.json @@ -1788,7 +1788,7 @@ "to_parent": "Gå op", "to_trash": "Papirkurv", "toggle_settings": "Slå indstillinger til eller fra", - "toggle_theme": "Slå mørkt tema til eller fra", + "darkTheme": "Slå mørkt tema til eller fra", "total_usage": "Samlet forbrug", "trash": "Papirkurv", "trash_all": "Smid alle ud", diff --git a/i18n/de.json b/i18n/de.json index 34cda82c81c33..f586b472bcb74 100644 --- a/i18n/de.json +++ b/i18n/de.json @@ -1798,7 +1798,7 @@ "to_parent": "Gehe zum Übergeordneten", "to_trash": "In den Papierkorb verschieben", "toggle_settings": "Einstellungen umschalten", - "toggle_theme": "Dunkles Theme umschalten", + "darkTheme": "Dunkles Theme umschalten", "total": "Gesamt", "total_usage": "Gesamtnutzung", "trash": "Papierkorb", diff --git a/i18n/el.json b/i18n/el.json index 613be44e3e1c7..15d9947c5756b 100644 --- a/i18n/el.json +++ b/i18n/el.json @@ -1800,7 +1800,7 @@ "to_parent": "Μεταβείτε στο γονικό φάκελο", "to_trash": "Κάδος απορριμμάτων", "toggle_settings": "Εναλλαγή ρυθμίσεων", - "toggle_theme": "Εναλλαγή θέματος", + "darkTheme": "Εναλλαγή θέματος", "total": "Σύνολο", "total_usage": "Συνολική χρήση", "trash": "Κάδος απορριμμάτων", diff --git a/i18n/en.json b/i18n/en.json index 98ca467c51ec7..ca1e25a768c79 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1815,7 +1815,7 @@ "to_parent": "Go to parent", "to_trash": "Trash", "toggle_settings": "Toggle settings", - "toggle_theme": "Toggle dark theme", + "darkTheme": "Toggle dark theme", "total": "Total", "total_usage": "Total usage", "trash": "Trash", diff --git a/i18n/es.json b/i18n/es.json index 13d242f9f84f0..a5f217951cca0 100644 --- a/i18n/es.json +++ b/i18n/es.json @@ -1812,7 +1812,7 @@ "to_parent": "Ir a los padres", "to_trash": "Descartar", "toggle_settings": "Alternar ajustes", - "toggle_theme": "Alternar tema oscuro", + "darkTheme": "Alternar tema oscuro", "total_usage": "Uso total", "trash": "Papelera", "trash_all": "Descartar todo", diff --git a/i18n/et.json b/i18n/et.json index fa621118d1dc8..e6b6f7a6731c0 100644 --- a/i18n/et.json +++ b/i18n/et.json @@ -1817,7 +1817,7 @@ "to_parent": "Tase üles", "to_trash": "Prügikasti", "toggle_settings": "Kuva/peida seaded", - "toggle_theme": "Lülita tume teema", + "darkTheme": "Lülita tume teema", "total": "Kokku", "total_usage": "Kogukasutus", "trash": "Prügikast", diff --git a/i18n/fa.json b/i18n/fa.json index f0b99a81cad79..083a109efe766 100644 --- a/i18n/fa.json +++ b/i18n/fa.json @@ -693,7 +693,7 @@ "to_archive": "بایگانی", "to_favorite": "به علاقه‌مندی‌ها", "toggle_settings": "تغییر تنظیمات", - "toggle_theme": "تغییر تم تاریک", + "darkTheme": "تغییر تم تاریک", "total_usage": "استفاده کلی", "trash": "سطل زباله", "type": "نوع", diff --git a/i18n/fi.json b/i18n/fi.json index 5aaf614342df3..c14f09b6ebe73 100644 --- a/i18n/fi.json +++ b/i18n/fi.json @@ -1779,7 +1779,7 @@ "to_parent": "Siirry vanhempaan", "to_trash": "Roskakoriin", "toggle_settings": "Määritä asetukset", - "toggle_theme": "Aseta tumma teema", + "darkTheme": "Aseta tumma teema", "total": "Yhteensä", "total_usage": "Käyttö yhteensä", "trash": "Roskakori", diff --git a/i18n/fr.json b/i18n/fr.json index 4b5a09c664621..9b9e48c7c51e4 100644 --- a/i18n/fr.json +++ b/i18n/fr.json @@ -1788,7 +1788,7 @@ "to_parent": "Aller au dossier parent", "to_trash": "Corbeille", "toggle_settings": "Inverser les paramètres", - "toggle_theme": "Inverser le thème sombre", + "darkTheme": "Inverser le thème sombre", "total_usage": "Utilisation globale", "trash": "Corbeille", "trash_all": "Tout supprimer", diff --git a/i18n/gl.json b/i18n/gl.json index af2841481d948..b94edcf07ddb1 100644 --- a/i18n/gl.json +++ b/i18n/gl.json @@ -1766,7 +1766,7 @@ "to_parent": "Ir ao pai", "to_trash": "Lixo", "toggle_settings": "Alternar configuración", - "toggle_theme": "Alternar tema escuro", + "darkTheme": "Alternar tema escuro", "total_usage": "Uso total", "trash": "Lixo", "trash_all": "Mover Todo ao Lixo", diff --git a/i18n/he.json b/i18n/he.json index a6fc7fcbfdc0b..7ca8f30fa71a9 100644 --- a/i18n/he.json +++ b/i18n/he.json @@ -1785,7 +1785,7 @@ "to_parent": "לך להורה", "to_trash": "אשפה", "toggle_settings": "החלף מצב הגדרות", - "toggle_theme": "החלף ערכת נושא כהה", + "darkTheme": "החלף ערכת נושא כהה", "total": "סה\"כ", "total_usage": "שימוש כולל", "trash": "אשפה", diff --git a/i18n/hi.json b/i18n/hi.json index 823380c24f93a..8015567244b92 100644 --- a/i18n/hi.json +++ b/i18n/hi.json @@ -1124,7 +1124,7 @@ "to_login": "लॉग इन करें", "to_trash": "कचरा", "toggle_settings": "सेटिंग्स टॉगल करें", - "toggle_theme": "थीम टॉगल करें", + "darkTheme": "थीम टॉगल करें", "total_usage": "कुल उपयोग", "trash": "कचरा", "trash_all": "सब कचरा", diff --git a/i18n/hr.json b/i18n/hr.json index 5a2d259eb2d7c..0156ca692b1af 100644 --- a/i18n/hr.json +++ b/i18n/hr.json @@ -1755,7 +1755,7 @@ "to_parent": "Idi na roditelja", "to_trash": "Smeće", "toggle_settings": "Uključi/isključi postavke", - "toggle_theme": "Promjeni temu", + "darkTheme": "Promjeni temu", "total": "Ukupno", "total_usage": "Ukupna upotreba", "trash": "Smeće", diff --git a/i18n/hu.json b/i18n/hu.json index fb2d895e3d461..8aa0a65170f38 100644 --- a/i18n/hu.json +++ b/i18n/hu.json @@ -1756,7 +1756,7 @@ "to_parent": "Egy szinttel feljebb", "to_trash": "Lomtárba helyezés", "toggle_settings": "Beállítások átállítása", - "toggle_theme": "Sötét téma átváltása", + "darkTheme": "Sötét téma átváltása", "total": "Összesen", "total_usage": "Összesen használatban", "trash": "Lomtár", diff --git a/i18n/id.json b/i18n/id.json index 36dd6a953e251..b908717e5d8a6 100644 --- a/i18n/id.json +++ b/i18n/id.json @@ -1712,7 +1712,7 @@ "to_parent": "Ke induk", "to_trash": "Sampah", "toggle_settings": "Saklar pengaturan", - "toggle_theme": "Beralih tema gelap", + "darkTheme": "Beralih tema gelap", "total": "Jumlah", "total_usage": "Jumlah penggunaan", "trash": "Sampah", diff --git a/i18n/it.json b/i18n/it.json index 8721cefc617dd..e4dad6f04bfa0 100644 --- a/i18n/it.json +++ b/i18n/it.json @@ -1758,7 +1758,7 @@ "to_parent": "Sali di un livello", "to_trash": "Cancella", "toggle_settings": "Attiva/disattiva impostazioni", - "toggle_theme": "Abilita tema scuro", + "darkTheme": "Abilita tema scuro", "total": "Totale", "total_usage": "Utilizzo totale", "trash": "Cestino", diff --git a/i18n/ja.json b/i18n/ja.json index 0bccd9f867047..4fab79366e594 100644 --- a/i18n/ja.json +++ b/i18n/ja.json @@ -1828,7 +1828,7 @@ "to_parent": "上位の階層へ", "to_trash": "ゴミ箱", "toggle_settings": "設定をトグル", - "toggle_theme": "ダークテーマを切り替え", + "darkTheme": "ダークテーマを切り替え", "total": "合計", "total_usage": "総使用量", "trash": "ゴミ箱", diff --git a/i18n/ko.json b/i18n/ko.json index 38a88ecd3c72f..fefeaf35e2100 100644 --- a/i18n/ko.json +++ b/i18n/ko.json @@ -1819,7 +1819,7 @@ "to_parent": "상위 항목으로", "to_trash": "삭제", "toggle_settings": "설정 변경", - "toggle_theme": "다크 모드 사용", + "darkTheme": "다크 모드 사용", "total": "전체", "total_usage": "총 사용량", "trash": "휴지통", diff --git a/i18n/nb_NO.json b/i18n/nb_NO.json index b5dd76ce56875..fc3323b8518f7 100644 --- a/i18n/nb_NO.json +++ b/i18n/nb_NO.json @@ -1812,7 +1812,7 @@ "to_parent": "Gå til overodnet", "to_trash": "Papirkurv", "toggle_settings": "Bytt innstillinger", - "toggle_theme": "Bytt tema", + "darkTheme": "Bytt tema", "total_usage": "Totalt brukt", "trash": "Papirkurv", "trash_all": "Slett alt", diff --git a/i18n/nl.json b/i18n/nl.json index 80aa9ea76be05..db30ac95700cd 100644 --- a/i18n/nl.json +++ b/i18n/nl.json @@ -1778,7 +1778,7 @@ "to_parent": "Ga naar hoofdmap", "to_trash": "Prullenbak", "toggle_settings": "Zichtbaarheid instellingen wisselen", - "toggle_theme": "Donker thema toepassen", + "darkTheme": "Donker thema toepassen", "total": "Totaal", "total_usage": "Totaal gebruik", "trash": "Prullenbak", diff --git a/i18n/pl.json b/i18n/pl.json index 5da38eac60c50..ab4d127bf899e 100644 --- a/i18n/pl.json +++ b/i18n/pl.json @@ -1814,7 +1814,7 @@ "to_parent": "Idź do rodzica", "to_trash": "Kosz", "toggle_settings": "Przełącz ustawienia", - "toggle_theme": "Przełącz ciemny motyw", + "darkTheme": "Przełącz ciemny motyw", "total": "Całkowity", "total_usage": "Całkowite wykorzystanie", "trash": "Kosz", diff --git a/i18n/pt.json b/i18n/pt.json index c22c64ab4b10d..0b351f3bd2a24 100644 --- a/i18n/pt.json +++ b/i18n/pt.json @@ -1811,7 +1811,7 @@ "to_parent": "Subir um nível", "to_trash": "Reciclagem", "toggle_settings": "Alternar configurações", - "toggle_theme": "Ativar modo escuro", + "darkTheme": "Ativar modo escuro", "total_usage": "Total utilizado", "trash": "Reciclagem", "trash_all": "Mover todos para a reciclagem", diff --git a/i18n/pt_BR.json b/i18n/pt_BR.json index 79f6cdbbc83cd..4ada728a8b372 100644 --- a/i18n/pt_BR.json +++ b/i18n/pt_BR.json @@ -1757,7 +1757,7 @@ "to_parent": "Voltar para nível acima", "to_trash": "Mover para a lixeira", "toggle_settings": "Alternar configurações", - "toggle_theme": "Alternar tema escuro", + "darkTheme": "Alternar tema escuro", "total_usage": "Utilização total", "trash": "Lixeira", "trash_all": "Mover todos para o lixo", diff --git a/i18n/ro.json b/i18n/ro.json index 9f1bc03cb2adc..92a7db3771407 100644 --- a/i18n/ro.json +++ b/i18n/ro.json @@ -1598,7 +1598,7 @@ "to_parent": "Du-te la părinte", "to_trash": "Coș de gunoi", "toggle_settings": "Activați setările", - "toggle_theme": "Activați tema întunecată", + "darkTheme": "Activați tema întunecată", "total_usage": "Utilizare totală", "trash": "Coș de gunoi", "trash_all": "Ștergeți Tot", diff --git a/i18n/ru.json b/i18n/ru.json index fd846b088d4bd..881e58db94717 100644 --- a/i18n/ru.json +++ b/i18n/ru.json @@ -1821,7 +1821,7 @@ "to_parent": "Вернуться назад", "to_trash": "Корзина", "toggle_settings": "Переключение настроек", - "toggle_theme": "Переключение темы", + "darkTheme": "Переключение темы", "total": "Всего", "total_usage": "Общее использование", "trash": "Корзина", diff --git a/i18n/sk.json b/i18n/sk.json index 4253b7eeab27a..3a6b97dfc538d 100644 --- a/i18n/sk.json +++ b/i18n/sk.json @@ -1624,7 +1624,7 @@ "to_parent": "Prejsť k nadradenému", "to_trash": "Kôš", "toggle_settings": "Prepnúť nastavenie", - "toggle_theme": "Prepnúť tmavú tému", + "darkTheme": "Prepnúť tmavú tému", "total": "Celkom", "total_usage": "Celkové využitie", "trash": "Kôš", diff --git a/i18n/sl.json b/i18n/sl.json index db1e7aead9db3..64691e2c41f65 100644 --- a/i18n/sl.json +++ b/i18n/sl.json @@ -1818,7 +1818,7 @@ "to_parent": "Pojdi na prvotno", "to_trash": "Smetnjak", "toggle_settings": "Preklopi na nastavitve", - "toggle_theme": "Preklopi na temno temo", + "darkTheme": "Preklopi na temno temo", "total": "Skupno", "total_usage": "Skupna poraba", "trash": "Smetnjak", diff --git a/i18n/sr_Cyrl.json b/i18n/sr_Cyrl.json index 872418b5485bb..714a9b6f7e22d 100644 --- a/i18n/sr_Cyrl.json +++ b/i18n/sr_Cyrl.json @@ -1798,7 +1798,7 @@ "to_parent": "Врати се назад", "to_trash": "Смец́е", "toggle_settings": "Nameсти подешавања", - "toggle_theme": "Nameсти тамну тему", + "darkTheme": "Nameсти тамну тему", "total": "Укупно", "total_usage": "Укупна употреба", "trash": "Отпад", diff --git a/i18n/sr_Latn.json b/i18n/sr_Latn.json index b63002ef79d67..5596b8d8b5ef8 100644 --- a/i18n/sr_Latn.json +++ b/i18n/sr_Latn.json @@ -1767,7 +1767,7 @@ "to_parent": "Vrati se nazad", "to_trash": "Smeće", "toggle_settings": "Namesti podešavanja", - "toggle_theme": "Namesti tamnu temu", + "darkTheme": "Namesti tamnu temu", "total": "Ukupno", "total_usage": "Ukupna upotreba", "trash": "Otpad", diff --git a/i18n/sv.json b/i18n/sv.json index 8aaa76a5ec318..693724efafe89 100644 --- a/i18n/sv.json +++ b/i18n/sv.json @@ -1753,7 +1753,7 @@ "to_parent": "Gå till förälder", "to_trash": "Papperskorg", "toggle_settings": "Växla inställningar", - "toggle_theme": "Växla tema", + "darkTheme": "Växla tema", "total_usage": "Total användning", "trash": "Papperskorg", "trash_all": "Kasta alla", diff --git a/i18n/ta.json b/i18n/ta.json index 679d35ec46c98..28b2b7fc07221 100644 --- a/i18n/ta.json +++ b/i18n/ta.json @@ -1238,7 +1238,7 @@ "to_parent": "பெற்றோரிடம் செல்லுங்கள்", "to_trash": "குப்பை", "toggle_settings": "அமைப்புகளை மாற்றவும்", - "toggle_theme": "இருண்ட கருப்பொருளை மாற்றவும்", + "darkTheme": "இருண்ட கருப்பொருளை மாற்றவும்", "total": "மொத்தம்", "total_usage": "மொத்த பயன்பாடு", "trash": "குப்பை", diff --git a/i18n/th.json b/i18n/th.json index 36b5b97b5c9b8..11bf297241547 100644 --- a/i18n/th.json +++ b/i18n/th.json @@ -1636,7 +1636,7 @@ "to_parent": "ไปยังบนสุด", "to_trash": "ถังขยะ", "toggle_settings": "สลับการตั้งค่า", - "toggle_theme": "สลับธีม", + "darkTheme": "สลับธีม", "total": "ทั้งหมด", "total_usage": "การใช้งานรวม", "trash": "ถังขยะ", diff --git a/i18n/tr.json b/i18n/tr.json index 96032cb9a8626..03c3bc94309f4 100644 --- a/i18n/tr.json +++ b/i18n/tr.json @@ -1735,7 +1735,7 @@ "to_parent": "Üst öğeye git", "to_trash": "Çöpe taşı", "toggle_settings": "Ayarları değiştir", - "toggle_theme": "Tema değiştir", + "darkTheme": "Tema değiştir", "total": "Toplam", "total_usage": "Toplam kullanım", "trash": "Çöp", diff --git a/i18n/uk.json b/i18n/uk.json index 1862e82d8e5e8..acce3eba35c3f 100644 --- a/i18n/uk.json +++ b/i18n/uk.json @@ -1785,7 +1785,7 @@ "to_parent": "Повернутись назад", "to_trash": "Смітник", "toggle_settings": "Перемикання налаштувань", - "toggle_theme": "Перемикання теми", + "darkTheme": "Перемикання теми", "total": "Усього", "total_usage": "Загальне використання", "trash": "Смітник", diff --git a/i18n/vi.json b/i18n/vi.json index d952bc9197fb6..541af61d74035 100644 --- a/i18n/vi.json +++ b/i18n/vi.json @@ -1707,7 +1707,7 @@ "to_parent": "Đến thư mục cha", "to_trash": "Xóa", "toggle_settings": "Chuyển đổi cài đặt", - "toggle_theme": "Chuyển đổi chủ đề tối", + "darkTheme": "Chuyển đổi chủ đề tối", "total_usage": "Tổng dung lượng đã sử dụng", "trash": "Thùng rác", "trash_all": "Xóa hết", diff --git a/i18n/zh_Hant.json b/i18n/zh_Hant.json index cde9717e22c8b..759b5650ed4e1 100644 --- a/i18n/zh_Hant.json +++ b/i18n/zh_Hant.json @@ -1788,7 +1788,7 @@ "to_parent": "到上一級", "to_trash": "垃圾桶", "toggle_settings": "切換設定", - "toggle_theme": "切換深色主題", + "darkTheme": "切換深色主題", "total": "統計", "total_usage": "總用量", "trash": "垃圾桶", diff --git a/i18n/zh_SIMPLIFIED.json b/i18n/zh_SIMPLIFIED.json index 1ba5b98e95107..f1a2bc9f43028 100644 --- a/i18n/zh_SIMPLIFIED.json +++ b/i18n/zh_SIMPLIFIED.json @@ -1,4 +1,5 @@ { + "darkTheme": "中国", "about": "关于", "account": "账户", "account_settings": "账户设置", @@ -1824,7 +1825,7 @@ "to_parent": "返回上一级", "to_trash": "放入回收站", "toggle_settings": "切换设置", - "toggle_theme": "切换深色主题", + "darkTheme": "切换深色主题", "total": "总计", "total_usage": "总用量", "trash": "回收站", diff --git a/web/src/lib/components/shared-components/theme-button.svelte b/web/src/lib/components/shared-components/theme-button.svelte index 7493770340201..17b0b539ee0ba 100644 --- a/web/src/lib/components/shared-components/theme-button.svelte +++ b/web/src/lib/components/shared-components/theme-button.svelte @@ -1,13 +1,20 @@ {#if !themeManager.theme.system} - themeManager.setTheme(theme == 'dark' ? Theme.DARK : Theme.LIGHT)} - /> + {#await langs + .find((item) => item.code === get(lang)) + ?.loader() ?? defaultLang.loader() then { default: translations }} + themeManager.setTheme(theme == 'dark' ? Theme.DARK : Theme.LIGHT)} + /> + {/await} {/if} diff --git a/web/src/lib/constants.ts b/web/src/lib/constants.ts index fdb18b3978190..e9aa2eaad9871 100644 --- a/web/src/lib/constants.ts +++ b/web/src/lib/constants.ts @@ -273,9 +273,17 @@ export const locales = [ { code: 'zu-ZA', name: 'Zulu (South Africa)' }, ]; -export const defaultLang = { name: 'English', code: 'en', loader: () => import('$i18n/en.json') }; +interface Lang { + name: string, + code: string, + loader: () => Promise<{default: {}}>, + rtl?: boolean, + weblateCode?: string, +} + +export const defaultLang: Lang = { name: 'English', code: 'en', loader: () => import('$i18n/en.json') }; -export const langs = [ +export const langs: Lang[] = [ { name: 'Afrikaans', code: 'af', loader: () => import('$i18n/af.json') }, { name: 'Arabic', code: 'ar', loader: () => import('$i18n/ar.json'), rtl: true }, { name: 'Azerbaijani', code: 'az', loader: () => import('$i18n/az.json'), rtl: true }, @@ -359,7 +367,7 @@ export const langs = [ weblateCode: 'zh_SIMPLIFIED', loader: () => import('$i18n/zh_SIMPLIFIED.json'), }, - { name: 'Development (keys only)', code: 'dev', loader: () => Promise.resolve({}) }, + { name: 'Development (keys only)', code: 'dev', loader: () => Promise.resolve({ default: {} }) }, ]; export enum ImmichProduct { From 977ccee2f818c6e2d3bbe73e2fb5a00a5fc2b5f0 Mon Sep 17 00:00:00 2001 From: wuzihao051119 Date: Tue, 3 Jun 2025 02:37:42 +0800 Subject: [PATCH 3/9] fix: test --- web/src/lib/utils/timeline-util.spec.ts | 46 +++++++++++++++++-------- web/src/lib/utils/timeline-util.ts | 4 +-- 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/web/src/lib/utils/timeline-util.spec.ts b/web/src/lib/utils/timeline-util.spec.ts index f842b948e060e..3a596273c542f 100644 --- a/web/src/lib/utils/timeline-util.spec.ts +++ b/web/src/lib/utils/timeline-util.spec.ts @@ -1,3 +1,4 @@ +import { locale } from '$lib/stores/preferences.store'; import { parseUtcDate } from '$lib/utils/date-time'; import { formatGroupTitle } from '$lib/utils/timeline-util'; import { DateTime } from 'luxon'; @@ -16,48 +17,63 @@ describe('formatGroupTitle', () => { it('formats today', () => { const date = parseUtcDate('2024-07-27T01:00:00Z'); - expect(formatGroupTitle(date.setLocale('en'))).toBe('today'); - expect(formatGroupTitle(date.setLocale('es'))).toBe('hoy'); + locale.set('en'); + expect(formatGroupTitle(date)).toBe('today'); + locale.set('es'); + expect(formatGroupTitle(date)).toBe('hoy'); }); it('formats yesterday', () => { const date = parseUtcDate('2024-07-26T23:59:59Z'); - expect(formatGroupTitle(date.setLocale('en'))).toBe('yesterday'); - expect(formatGroupTitle(date.setLocale('fr'))).toBe('hier'); + locale.set('en'); + expect(formatGroupTitle(date)).toBe('yesterday'); + locale.set('fr'); + expect(formatGroupTitle(date)).toBe('hier'); }); it('formats last week', () => { const date = parseUtcDate('2024-07-21T00:00:00Z'); - expect(formatGroupTitle(date.setLocale('en'))).toBe('Sunday'); - expect(formatGroupTitle(date.setLocale('ar-SA'))).toBe('الأحد'); + locale.set('en'); + expect(formatGroupTitle(date)).toBe('Sunday'); + locale.set('ar-SA') + expect(formatGroupTitle(date)).toBe('الأحد'); }); it('formats date 7 days ago', () => { const date = parseUtcDate('2024-07-20T00:00:00Z'); - expect(formatGroupTitle(date.setLocale('en'))).toBe('Sat, Jul 20'); - expect(formatGroupTitle(date.setLocale('de'))).toBe('Sa., 20. Juli'); + locale.set('en'); + expect(formatGroupTitle(date)).toBe('Sat, Jul 20'); + locale.set('de') + expect(formatGroupTitle(date)).toBe('Sa., 20. Juli'); }); it('formats date this year', () => { const date = parseUtcDate('2020-01-01T00:00:00Z'); - expect(formatGroupTitle(date.setLocale('en'))).toBe('Wed, Jan 1, 2020'); - expect(formatGroupTitle(date.setLocale('ja'))).toBe('2020年1月1日(水)'); + locale.set('en'); + expect(formatGroupTitle(date)).toBe('Wed, Jan 1, 2020'); + locale.set('ja') + expect(formatGroupTitle(date)).toBe('2020年1月1日(水)'); }); it('formats future date', () => { const tomorrow = parseUtcDate('2024-07-28T00:00:00Z'); - expect(formatGroupTitle(tomorrow.setLocale('en'))).toBe('Sun, Jul 28'); + locale.set('en') + expect(formatGroupTitle(tomorrow)).toBe('Sun, Jul 28'); const nextMonth = parseUtcDate('2024-08-28T00:00:00Z'); - expect(formatGroupTitle(nextMonth.setLocale('en'))).toBe('Wed, Aug 28'); + locale.set('en'); + expect(formatGroupTitle(nextMonth)).toBe('Wed, Aug 28'); const nextYear = parseUtcDate('2025-01-10T12:00:00Z'); - expect(formatGroupTitle(nextYear.setLocale('en'))).toBe('Fri, Jan 10, 2025'); + locale.set('en'); + expect(formatGroupTitle(nextYear)).toBe('Fri, Jan 10, 2025'); }); it('returns "Invalid DateTime" when date is invalid', () => { const date = DateTime.invalid('test'); - expect(formatGroupTitle(date.setLocale('en'))).toBe('Invalid DateTime'); - expect(formatGroupTitle(date.setLocale('es'))).toBe('Invalid DateTime'); + locale.set('en'); + expect(formatGroupTitle(date)).toBe('Invalid DateTime'); + locale.set('es'); + expect(formatGroupTitle(date)).toBe('Invalid DateTime'); }); }); diff --git a/web/src/lib/utils/timeline-util.ts b/web/src/lib/utils/timeline-util.ts index d8252271a2242..7538e0e02c159 100644 --- a/web/src/lib/utils/timeline-util.ts +++ b/web/src/lib/utils/timeline-util.ts @@ -62,12 +62,12 @@ export function formatGroupTitle(_date: DateTime): string { // Today if (today.hasSame(date, 'day')) { - return date.toRelativeCalendar(); + return date.toRelativeCalendar({ locale: get(locale) }); } // Yesterday if (today.minus({ days: 1 }).hasSame(date, 'day')) { - return date.toRelativeCalendar(); + return date.toRelativeCalendar({ locale: get(locale) }); } // Last week From 972bf8b6b01dec79c4f6765495596cc3b8feddcb Mon Sep 17 00:00:00 2001 From: wuzihao051119 Date: Tue, 3 Jun 2025 03:26:09 +0800 Subject: [PATCH 4/9] fix: test --- i18n/ar.json | 2 +- i18n/bg.json | 2 +- i18n/ca.json | 2 +- i18n/cs.json | 2 +- i18n/da.json | 2 +- i18n/de.json | 2 +- i18n/el.json | 2 +- i18n/en.json | 2 +- i18n/es.json | 2 +- i18n/et.json | 2 +- i18n/fa.json | 2 +- i18n/fi.json | 2 +- i18n/fr.json | 2 +- i18n/gl.json | 2 +- i18n/he.json | 2 +- i18n/hi.json | 2 +- i18n/hr.json | 2 +- i18n/hu.json | 2 +- i18n/id.json | 2 +- i18n/it.json | 2 +- i18n/ja.json | 2 +- i18n/ko.json | 2 +- i18n/nb_NO.json | 2 +- i18n/nl.json | 2 +- i18n/pl.json | 2 +- i18n/pt.json | 2 +- i18n/pt_BR.json | 2 +- i18n/ro.json | 2 +- i18n/ru.json | 2 +- i18n/sk.json | 2 +- i18n/sl.json | 2 +- i18n/sr_Cyrl.json | 2 +- i18n/sr_Latn.json | 2 +- i18n/sv.json | 2 +- i18n/ta.json | 2 +- i18n/th.json | 2 +- i18n/tr.json | 2 +- i18n/uk.json | 2 +- i18n/vi.json | 2 +- i18n/zh_Hant.json | 2 +- i18n/zh_SIMPLIFIED.json | 3 +-- .../components/user-settings-page/app-settings.svelte | 2 +- web/src/lib/constants.ts | 10 +++++----- web/src/lib/utils/timeline-util.spec.ts | 8 ++++---- 44 files changed, 51 insertions(+), 52 deletions(-) diff --git a/i18n/ar.json b/i18n/ar.json index fa9f8d5debd28..8fe9aed1184c9 100644 --- a/i18n/ar.json +++ b/i18n/ar.json @@ -637,6 +637,7 @@ "daily_title_text_date": "E ، MMM DD", "daily_title_text_date_year": "E ، MMM DD ، yyyy", "dark": "معتم", + "darkTheme": "تبديل المظهر الداكن", "date_after": "التارخ بعد", "date_and_time": "التاريخ و الوقت", "date_before": "التاريخ قبل", @@ -1601,7 +1602,6 @@ "to_parent": "انتقل إلى الوالد", "to_trash": "حذف", "toggle_settings": "الإعدادات", - "darkTheme": "تبديل المظهر الداكن", "total": "الإجمالي", "total_usage": "الاستخدام الإجمالي", "trash": "المهملات", diff --git a/i18n/bg.json b/i18n/bg.json index bed41a7da01d9..228ac99952ad9 100644 --- a/i18n/bg.json +++ b/i18n/bg.json @@ -513,6 +513,7 @@ "custom_locale": "Персонализиран локал", "custom_locale_description": "Форматиране на дати и числа в зависимост от езика и региона", "dark": "Тъмен", + "darkTheme": "Превключване на тема", "date_after": "Дата след", "date_and_time": "Дата и час", "date_before": "Дата преди", @@ -1270,7 +1271,6 @@ "to_parent": "Отиди към родителския елемент", "to_trash": "Кошче", "toggle_settings": "Превключване на настройките", - "darkTheme": "Превключване на тема", "total": "Общо", "total_usage": "Общо използвано", "trash": "Кошче", diff --git a/i18n/ca.json b/i18n/ca.json index 1ac8b6f9b4200..32571f1823772 100644 --- a/i18n/ca.json +++ b/i18n/ca.json @@ -703,6 +703,7 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Fosc", + "darkTheme": "Alternar tema", "date_after": "Data posterior a", "date_and_time": "Data i hora", "date_before": "Data anterior a", @@ -1777,7 +1778,6 @@ "to_parent": "Anar als pares", "to_trash": "Paperera", "toggle_settings": "Canvia configuració", - "darkTheme": "Alternar tema", "total_usage": "Ús total", "trash": "Paperera", "trash_all": "Envia-ho tot a la paperera", diff --git a/i18n/cs.json b/i18n/cs.json index f50d70c3ba8d9..c184222344792 100644 --- a/i18n/cs.json +++ b/i18n/cs.json @@ -712,6 +712,7 @@ "daily_title_text_date": "EEEE, d. MMMM", "daily_title_text_date_year": "EEEE, d. MMMM y", "dark": "Tmavý", + "darkTheme": "Přepnout tmavý motiv", "date_after": "Datum po", "date_and_time": "Datum a čas", "date_before": "Datum před", @@ -1812,7 +1813,6 @@ "to_parent": "Přejít k rodiči", "to_trash": "Vyhodit", "toggle_settings": "Přepnout nastavení", - "darkTheme": "Přepnout tmavý motiv", "total": "Celkem", "total_usage": "Celkové využití", "trash": "Koš", diff --git a/i18n/da.json b/i18n/da.json index 647e9e4fbe84d..1f1c74955c3d5 100644 --- a/i18n/da.json +++ b/i18n/da.json @@ -705,6 +705,7 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Mørk", + "darkTheme": "Slå mørkt tema til eller fra", "date_after": "Dato efter", "date_and_time": "Dato og klokkeslæt", "date_before": "Dato før", @@ -1788,7 +1789,6 @@ "to_parent": "Gå op", "to_trash": "Papirkurv", "toggle_settings": "Slå indstillinger til eller fra", - "darkTheme": "Slå mørkt tema til eller fra", "total_usage": "Samlet forbrug", "trash": "Papirkurv", "trash_all": "Smid alle ud", diff --git a/i18n/de.json b/i18n/de.json index f586b472bcb74..7f050b4e2742b 100644 --- a/i18n/de.json +++ b/i18n/de.json @@ -710,6 +710,7 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Dunkel", + "darkTheme": "Dunkles Theme umschalten", "date_after": "Datum nach", "date_and_time": "Datum und Zeit", "date_before": "Datum vor", @@ -1798,7 +1799,6 @@ "to_parent": "Gehe zum Übergeordneten", "to_trash": "In den Papierkorb verschieben", "toggle_settings": "Einstellungen umschalten", - "darkTheme": "Dunkles Theme umschalten", "total": "Gesamt", "total_usage": "Gesamtnutzung", "trash": "Papierkorb", diff --git a/i18n/el.json b/i18n/el.json index 15d9947c5756b..d48c8142bd7cb 100644 --- a/i18n/el.json +++ b/i18n/el.json @@ -714,6 +714,7 @@ "daily_title_text_date": "Ε, MMM dd", "daily_title_text_date_year": "Ε, MMM dd, yyyy", "dark": "Σκούρο", + "darkTheme": "Εναλλαγή θέματος", "date_after": "Ημερομηνία μετά", "date_and_time": "Ημερομηνία και ώρα", "date_before": "Ημερομηνία πριν", @@ -1800,7 +1801,6 @@ "to_parent": "Μεταβείτε στο γονικό φάκελο", "to_trash": "Κάδος απορριμμάτων", "toggle_settings": "Εναλλαγή ρυθμίσεων", - "darkTheme": "Εναλλαγή θέματος", "total": "Σύνολο", "total_usage": "Συνολική χρήση", "trash": "Κάδος απορριμμάτων", diff --git a/i18n/en.json b/i18n/en.json index ca1e25a768c79..c2c0d2945021c 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -694,6 +694,7 @@ "daily_title_text_date": "E, MMM dd", "daily_title_text_date_year": "E, MMM dd, yyyy", "dark": "Dark", + "darkTheme": "Toggle dark theme", "date_after": "Date after", "date_and_time": "Date and Time", "date_before": "Date before", @@ -1815,7 +1816,6 @@ "to_parent": "Go to parent", "to_trash": "Trash", "toggle_settings": "Toggle settings", - "darkTheme": "Toggle dark theme", "total": "Total", "total_usage": "Total usage", "trash": "Trash", diff --git a/i18n/es.json b/i18n/es.json index a5f217951cca0..093e4c64bfe69 100644 --- a/i18n/es.json +++ b/i18n/es.json @@ -712,6 +712,7 @@ "daily_title_text_date": "E dd, MMM", "daily_title_text_date_year": "E dd de MMM, yyyy", "dark": "Oscuro", + "darkTheme": "Alternar tema oscuro", "date_after": "Fecha posterior", "date_and_time": "Fecha y Hora", "date_before": "Fecha anterior", @@ -1812,7 +1813,6 @@ "to_parent": "Ir a los padres", "to_trash": "Descartar", "toggle_settings": "Alternar ajustes", - "darkTheme": "Alternar tema oscuro", "total_usage": "Uso total", "trash": "Papelera", "trash_all": "Descartar todo", diff --git a/i18n/et.json b/i18n/et.json index e6b6f7a6731c0..63354e6dfaad5 100644 --- a/i18n/et.json +++ b/i18n/et.json @@ -712,6 +712,7 @@ "daily_title_text_date": "d. MMMM", "daily_title_text_date_year": "d. MMMM yyyy", "dark": "Tume", + "darkTheme": "Lülita tume teema", "date_after": "Kuupäev pärast", "date_and_time": "Kuupäev ja kellaaeg", "date_before": "Kuupäev enne", @@ -1817,7 +1818,6 @@ "to_parent": "Tase üles", "to_trash": "Prügikasti", "toggle_settings": "Kuva/peida seaded", - "darkTheme": "Lülita tume teema", "total": "Kokku", "total_usage": "Kogukasutus", "trash": "Prügikast", diff --git a/i18n/fa.json b/i18n/fa.json index 083a109efe766..f6d5bbd8086bb 100644 --- a/i18n/fa.json +++ b/i18n/fa.json @@ -375,6 +375,7 @@ "created": "ایجاد شد", "current_device": "دستگاه فعلی", "dark": "تاریک", + "darkTheme": "تغییر تم تاریک", "date_after": "تاریخ پس از", "date_and_time": "تاریخ و زمان", "date_before": "تاریخ قبل از", @@ -693,7 +694,6 @@ "to_archive": "بایگانی", "to_favorite": "به علاقه‌مندی‌ها", "toggle_settings": "تغییر تنظیمات", - "darkTheme": "تغییر تم تاریک", "total_usage": "استفاده کلی", "trash": "سطل زباله", "type": "نوع", diff --git a/i18n/fi.json b/i18n/fi.json index c14f09b6ebe73..a0ccf3055f9e9 100644 --- a/i18n/fi.json +++ b/i18n/fi.json @@ -701,6 +701,7 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Tumma", + "darkTheme": "Aseta tumma teema", "date_after": "Päivämäärän jälkeen", "date_and_time": "Päivämäärä ja aika", "date_before": "Päivä ennen", @@ -1779,7 +1780,6 @@ "to_parent": "Siirry vanhempaan", "to_trash": "Roskakoriin", "toggle_settings": "Määritä asetukset", - "darkTheme": "Aseta tumma teema", "total": "Yhteensä", "total_usage": "Käyttö yhteensä", "trash": "Roskakori", diff --git a/i18n/fr.json b/i18n/fr.json index 9b9e48c7c51e4..6794a9252db4b 100644 --- a/i18n/fr.json +++ b/i18n/fr.json @@ -707,6 +707,7 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Sombre", + "darkTheme": "Inverser le thème sombre", "date_after": "Date après", "date_and_time": "Date et heure", "date_before": "Date avant", @@ -1788,7 +1789,6 @@ "to_parent": "Aller au dossier parent", "to_trash": "Corbeille", "toggle_settings": "Inverser les paramètres", - "darkTheme": "Inverser le thème sombre", "total_usage": "Utilisation globale", "trash": "Corbeille", "trash_all": "Tout supprimer", diff --git a/i18n/gl.json b/i18n/gl.json index b94edcf07ddb1..daba0cba99284 100644 --- a/i18n/gl.json +++ b/i18n/gl.json @@ -699,6 +699,7 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Escuro", + "darkTheme": "Alternar tema escuro", "date_after": "Data posterior a", "date_and_time": "Data e Hora", "date_before": "Data anterior a", @@ -1766,7 +1767,6 @@ "to_parent": "Ir ao pai", "to_trash": "Lixo", "toggle_settings": "Alternar configuración", - "darkTheme": "Alternar tema escuro", "total_usage": "Uso total", "trash": "Lixo", "trash_all": "Mover Todo ao Lixo", diff --git a/i18n/he.json b/i18n/he.json index 7ca8f30fa71a9..1d500b9412ffb 100644 --- a/i18n/he.json +++ b/i18n/he.json @@ -703,6 +703,7 @@ "custom_locale": "אזור שפה מותאם אישית", "custom_locale_description": "עצב תאריכים ומספרים על סמך השפה והאזור", "dark": "כהה", + "darkTheme": "החלף ערכת נושא כהה", "date_after": "תאריך אחרי", "date_and_time": "תאריך ושעה", "date_before": "תאריך לפני", @@ -1785,7 +1786,6 @@ "to_parent": "לך להורה", "to_trash": "אשפה", "toggle_settings": "החלף מצב הגדרות", - "darkTheme": "החלף ערכת נושא כהה", "total": "סה\"כ", "total_usage": "שימוש כולל", "trash": "אשפה", diff --git a/i18n/hi.json b/i18n/hi.json index 8015567244b92..581095f9e61a0 100644 --- a/i18n/hi.json +++ b/i18n/hi.json @@ -450,6 +450,7 @@ "custom_locale": "कस्टम लोकेल", "custom_locale_description": "भाषा और क्षेत्र के आधार पर दिनांक और संख्याएँ प्रारूपित करें", "dark": "डार्क", + "darkTheme": "थीम टॉगल करें", "date_after": "इसके बाद की तारीख", "date_and_time": "तिथि और समय", "date_before": "पहले की तारीख", @@ -1124,7 +1125,6 @@ "to_login": "लॉग इन करें", "to_trash": "कचरा", "toggle_settings": "सेटिंग्स टॉगल करें", - "darkTheme": "थीम टॉगल करें", "total_usage": "कुल उपयोग", "trash": "कचरा", "trash_all": "सब कचरा", diff --git a/i18n/hr.json b/i18n/hr.json index 0156ca692b1af..d6a009df1f45f 100644 --- a/i18n/hr.json +++ b/i18n/hr.json @@ -698,6 +698,7 @@ "custom_locale": "Prilagođena Lokalizacija", "custom_locale_description": "Formatiranje datuma i brojeva na temelju jezika i regije", "dark": "Tamno", + "darkTheme": "Promjeni temu", "date_after": "Datum nakon", "date_and_time": "Datum i Vrijeme", "date_before": "Datum prije", @@ -1755,7 +1756,6 @@ "to_parent": "Idi na roditelja", "to_trash": "Smeće", "toggle_settings": "Uključi/isključi postavke", - "darkTheme": "Promjeni temu", "total": "Ukupno", "total_usage": "Ukupna upotreba", "trash": "Smeće", diff --git a/i18n/hu.json b/i18n/hu.json index 8aa0a65170f38..f317b4c4a2467 100644 --- a/i18n/hu.json +++ b/i18n/hu.json @@ -699,6 +699,7 @@ "daily_title_text_date": "MMM dd (E)", "daily_title_text_date_year": "yyyy MMM dd (E)", "dark": "Sötét", + "darkTheme": "Sötét téma átváltása", "date_after": "Dátumtól", "date_and_time": "Dátum és Idő", "date_before": "Dátumig", @@ -1756,7 +1757,6 @@ "to_parent": "Egy szinttel feljebb", "to_trash": "Lomtárba helyezés", "toggle_settings": "Beállítások átállítása", - "darkTheme": "Sötét téma átváltása", "total": "Összesen", "total_usage": "Összesen használatban", "trash": "Lomtár", diff --git a/i18n/id.json b/i18n/id.json index b908717e5d8a6..ae41aedd2e1a9 100644 --- a/i18n/id.json +++ b/i18n/id.json @@ -690,6 +690,7 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM yyyy", "dark": "Gelap", + "darkTheme": "Beralih tema gelap", "date_after": "Tanggal setelah", "date_and_time": "Tanggal dan Waktu", "date_before": "Tanggal sebelum", @@ -1712,7 +1713,6 @@ "to_parent": "Ke induk", "to_trash": "Sampah", "toggle_settings": "Saklar pengaturan", - "darkTheme": "Beralih tema gelap", "total": "Jumlah", "total_usage": "Jumlah penggunaan", "trash": "Sampah", diff --git a/i18n/it.json b/i18n/it.json index e4dad6f04bfa0..b933f9ed7064e 100644 --- a/i18n/it.json +++ b/i18n/it.json @@ -699,6 +699,7 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Scuro", + "darkTheme": "Abilita tema scuro", "date_after": "Data dopo", "date_and_time": "Data e ora", "date_before": "Data prima", @@ -1758,7 +1759,6 @@ "to_parent": "Sali di un livello", "to_trash": "Cancella", "toggle_settings": "Attiva/disattiva impostazioni", - "darkTheme": "Abilita tema scuro", "total": "Totale", "total_usage": "Utilizzo totale", "trash": "Cestino", diff --git a/i18n/ja.json b/i18n/ja.json index 4fab79366e594..b9311cf933f17 100644 --- a/i18n/ja.json +++ b/i18n/ja.json @@ -715,6 +715,7 @@ "daily_title_text_date": "MM DD, EE", "daily_title_text_date_year": "yyyy MM DD, EE", "dark": "ダークモード", + "darkTheme": "ダークテーマを切り替え", "date_after": "この日以降", "date_and_time": "日付と時間", "date_before": "この日以前", @@ -1828,7 +1829,6 @@ "to_parent": "上位の階層へ", "to_trash": "ゴミ箱", "toggle_settings": "設定をトグル", - "darkTheme": "ダークテーマを切り替え", "total": "合計", "total_usage": "総使用量", "trash": "ゴミ箱", diff --git a/i18n/ko.json b/i18n/ko.json index fefeaf35e2100..5b7054a48b084 100644 --- a/i18n/ko.json +++ b/i18n/ko.json @@ -713,6 +713,7 @@ "daily_title_text_date": "M월 d일 EEEE", "daily_title_text_date_year": "yyyy년 M월 d일 EEEE", "dark": "다크", + "darkTheme": "다크 모드 사용", "date_after": "다음 날짜 이후", "date_and_time": "날짜 및 시간", "date_before": "다음 날짜 전", @@ -1819,7 +1820,6 @@ "to_parent": "상위 항목으로", "to_trash": "삭제", "toggle_settings": "설정 변경", - "darkTheme": "다크 모드 사용", "total": "전체", "total_usage": "총 사용량", "trash": "휴지통", diff --git a/i18n/nb_NO.json b/i18n/nb_NO.json index fc3323b8518f7..9c73b6af0de92 100644 --- a/i18n/nb_NO.json +++ b/i18n/nb_NO.json @@ -711,6 +711,7 @@ "daily_title_text_date": "E MMM. dd", "daily_title_text_date_year": "E MMM. dddd, yyyy", "dark": "Mørk", + "darkTheme": "Bytt tema", "date_after": "Dato etter", "date_and_time": "Dato og tid", "date_before": "Dato før", @@ -1812,7 +1813,6 @@ "to_parent": "Gå til overodnet", "to_trash": "Papirkurv", "toggle_settings": "Bytt innstillinger", - "darkTheme": "Bytt tema", "total_usage": "Totalt brukt", "trash": "Papirkurv", "trash_all": "Slett alt", diff --git a/i18n/nl.json b/i18n/nl.json index db30ac95700cd..1ba7134ad1c47 100644 --- a/i18n/nl.json +++ b/i18n/nl.json @@ -700,6 +700,7 @@ "daily_title_text_date": "E dd MMM", "daily_title_text_date_year": "E dd MMM yyyy", "dark": "Donker", + "darkTheme": "Donker thema toepassen", "date_after": "Datum na", "date_and_time": "Datum en tijd", "date_before": "Datum voor", @@ -1778,7 +1779,6 @@ "to_parent": "Ga naar hoofdmap", "to_trash": "Prullenbak", "toggle_settings": "Zichtbaarheid instellingen wisselen", - "darkTheme": "Donker thema toepassen", "total": "Totaal", "total_usage": "Totaal gebruik", "trash": "Prullenbak", diff --git a/i18n/pl.json b/i18n/pl.json index ab4d127bf899e..bb29ea65bc3a0 100644 --- a/i18n/pl.json +++ b/i18n/pl.json @@ -712,6 +712,7 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Ciemny", + "darkTheme": "Przełącz ciemny motyw", "date_after": "Data po", "date_and_time": "Data i godzina", "date_before": "Data przed", @@ -1814,7 +1815,6 @@ "to_parent": "Idź do rodzica", "to_trash": "Kosz", "toggle_settings": "Przełącz ustawienia", - "darkTheme": "Przełącz ciemny motyw", "total": "Całkowity", "total_usage": "Całkowite wykorzystanie", "trash": "Kosz", diff --git a/i18n/pt.json b/i18n/pt.json index 0b351f3bd2a24..c18d2e0957d62 100644 --- a/i18n/pt.json +++ b/i18n/pt.json @@ -711,6 +711,7 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Escuro", + "darkTheme": "Ativar modo escuro", "date_after": "Data após", "date_and_time": "Data e Hora", "date_before": "Data antes", @@ -1811,7 +1812,6 @@ "to_parent": "Subir um nível", "to_trash": "Reciclagem", "toggle_settings": "Alternar configurações", - "darkTheme": "Ativar modo escuro", "total_usage": "Total utilizado", "trash": "Reciclagem", "trash_all": "Mover todos para a reciclagem", diff --git a/i18n/pt_BR.json b/i18n/pt_BR.json index 4ada728a8b372..5a45c6171f8e2 100644 --- a/i18n/pt_BR.json +++ b/i18n/pt_BR.json @@ -695,6 +695,7 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Escuro", + "darkTheme": "Alternar tema escuro", "date_after": "Data após", "date_and_time": "Data e Hora", "date_before": "Data antes", @@ -1757,7 +1758,6 @@ "to_parent": "Voltar para nível acima", "to_trash": "Mover para a lixeira", "toggle_settings": "Alternar configurações", - "darkTheme": "Alternar tema escuro", "total_usage": "Utilização total", "trash": "Lixeira", "trash_all": "Mover todos para o lixo", diff --git a/i18n/ro.json b/i18n/ro.json index 92a7db3771407..d2ba794270e7b 100644 --- a/i18n/ro.json +++ b/i18n/ro.json @@ -651,6 +651,7 @@ "custom_locale": "Setare Regională Personalizată", "custom_locale_description": "Formatați datele și numerele în funcție de limbă și regiune", "dark": "Întunecat", + "darkTheme": "Activați tema întunecată", "date_after": "După data", "date_and_time": "Dată și oră", "date_before": "Anterior datei", @@ -1598,7 +1599,6 @@ "to_parent": "Du-te la părinte", "to_trash": "Coș de gunoi", "toggle_settings": "Activați setările", - "darkTheme": "Activați tema întunecată", "total_usage": "Utilizare totală", "trash": "Coș de gunoi", "trash_all": "Ștergeți Tot", diff --git a/i18n/ru.json b/i18n/ru.json index 881e58db94717..bcdecfd22a0a1 100644 --- a/i18n/ru.json +++ b/i18n/ru.json @@ -711,6 +711,7 @@ "custom_locale": "Пользовательский регион", "custom_locale_description": "Форматирование дат и чисел в зависимости от языка и региона", "dark": "Тёмный", + "darkTheme": "Переключение темы", "date_after": "Дата после", "date_and_time": "Дата и Время", "date_before": "Дата до", @@ -1821,7 +1822,6 @@ "to_parent": "Вернуться назад", "to_trash": "Корзина", "toggle_settings": "Переключение настроек", - "darkTheme": "Переключение темы", "total": "Всего", "total_usage": "Общее использование", "trash": "Корзина", diff --git a/i18n/sk.json b/i18n/sk.json index 3a6b97dfc538d..52855b9df3b78 100644 --- a/i18n/sk.json +++ b/i18n/sk.json @@ -651,6 +651,7 @@ "daily_title_text_date": "EEEE, d. MMMM", "daily_title_text_date_year": "EEEE, d. MMMM y", "dark": "Tmavý", + "darkTheme": "Prepnúť tmavú tému", "date_after": "Dátum po", "date_and_time": "Dátum a Čas", "date_before": "Dátum pred", @@ -1624,7 +1625,6 @@ "to_parent": "Prejsť k nadradenému", "to_trash": "Kôš", "toggle_settings": "Prepnúť nastavenie", - "darkTheme": "Prepnúť tmavú tému", "total": "Celkom", "total_usage": "Celkové využitie", "trash": "Kôš", diff --git a/i18n/sl.json b/i18n/sl.json index 64691e2c41f65..5932a7be0dc01 100644 --- a/i18n/sl.json +++ b/i18n/sl.json @@ -712,6 +712,7 @@ "custom_locale": "Jezik po meri", "custom_locale_description": "Oblikujte datume in številke glede na jezik in regijo", "dark": "Temno", + "darkTheme": "Preklopi na temno temo", "date_after": "Datum po", "date_and_time": "Datum in ura", "date_before": "Datum pred", @@ -1818,7 +1819,6 @@ "to_parent": "Pojdi na prvotno", "to_trash": "Smetnjak", "toggle_settings": "Preklopi na nastavitve", - "darkTheme": "Preklopi na temno temo", "total": "Skupno", "total_usage": "Skupna poraba", "trash": "Smetnjak", diff --git a/i18n/sr_Cyrl.json b/i18n/sr_Cyrl.json index 714a9b6f7e22d..c3397fbcdcd74 100644 --- a/i18n/sr_Cyrl.json +++ b/i18n/sr_Cyrl.json @@ -707,6 +707,7 @@ "daily_title_text_date": "Е дд МММ", "daily_title_text_date_year": "Е дд МММ yyyy", "dark": "Тамно", + "darkTheme": "Nameсти тамну тему", "date_after": "Датум после", "date_and_time": "Датум и Време", "date_before": "Датум пре", @@ -1798,7 +1799,6 @@ "to_parent": "Врати се назад", "to_trash": "Смец́е", "toggle_settings": "Nameсти подешавања", - "darkTheme": "Nameсти тамну тему", "total": "Укупно", "total_usage": "Укупна употреба", "trash": "Отпад", diff --git a/i18n/sr_Latn.json b/i18n/sr_Latn.json index 5596b8d8b5ef8..c227c9d6a40eb 100644 --- a/i18n/sr_Latn.json +++ b/i18n/sr_Latn.json @@ -697,6 +697,7 @@ "daily_title_text_date": "E dd MMM", "daily_title_text_date_year": "E dd MMM yyyy", "dark": "Tamno", + "darkTheme": "Namesti tamnu temu", "date_after": "Datum posle", "date_and_time": "Datum i Vreme", "date_before": "Datum pre", @@ -1767,7 +1768,6 @@ "to_parent": "Vrati se nazad", "to_trash": "Smeće", "toggle_settings": "Namesti podešavanja", - "darkTheme": "Namesti tamnu temu", "total": "Ukupno", "total_usage": "Ukupna upotreba", "trash": "Otpad", diff --git a/i18n/sv.json b/i18n/sv.json index 693724efafe89..50b44136efe48 100644 --- a/i18n/sv.json +++ b/i18n/sv.json @@ -698,6 +698,7 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Mörk", + "darkTheme": "Växla tema", "date_after": "Datum efter", "date_and_time": "Datum och Tid", "date_before": "Datum före", @@ -1753,7 +1754,6 @@ "to_parent": "Gå till förälder", "to_trash": "Papperskorg", "toggle_settings": "Växla inställningar", - "darkTheme": "Växla tema", "total_usage": "Total användning", "trash": "Papperskorg", "trash_all": "Kasta alla", diff --git a/i18n/ta.json b/i18n/ta.json index 28b2b7fc07221..2140f68705ffa 100644 --- a/i18n/ta.json +++ b/i18n/ta.json @@ -502,6 +502,7 @@ "custom_locale": "தனிப்பயன் இடம்", "custom_locale_description": "மொழி மற்றும் பிராந்தியத்தின் அடிப்படையில் வடிவமைப்பு தேதிகள் மற்றும் எண்கள்", "dark": "இருண்ட", + "darkTheme": "இருண்ட கருப்பொருளை மாற்றவும்", "date_after": "தேதி", "date_and_time": "தேதி மற்றும் நேரம்", "date_before": "முன் தேதி", @@ -1238,7 +1239,6 @@ "to_parent": "பெற்றோரிடம் செல்லுங்கள்", "to_trash": "குப்பை", "toggle_settings": "அமைப்புகளை மாற்றவும்", - "darkTheme": "இருண்ட கருப்பொருளை மாற்றவும்", "total": "மொத்தம்", "total_usage": "மொத்த பயன்பாடு", "trash": "குப்பை", diff --git a/i18n/th.json b/i18n/th.json index 11bf297241547..bbae21fb507c1 100644 --- a/i18n/th.json +++ b/i18n/th.json @@ -657,6 +657,7 @@ "daily_title_text_date": "E dd MMM", "daily_title_text_date_year": "E dd MMM yyyy", "dark": "มืด", + "darkTheme": "สลับธีม", "date_after": "วันที่หลังจาก", "date_and_time": "วันและเวลา", "date_before": "วันที่ก่อน", @@ -1636,7 +1637,6 @@ "to_parent": "ไปยังบนสุด", "to_trash": "ถังขยะ", "toggle_settings": "สลับการตั้งค่า", - "darkTheme": "สลับธีม", "total": "ทั้งหมด", "total_usage": "การใช้งานรวม", "trash": "ถังขยะ", diff --git a/i18n/tr.json b/i18n/tr.json index 03c3bc94309f4..56f32e3c85097 100644 --- a/i18n/tr.json +++ b/i18n/tr.json @@ -689,6 +689,7 @@ "daily_title_text_date": "dd MMM E", "daily_title_text_date_year": "dd MMM yyyy E", "dark": "Koyu", + "darkTheme": "Tema değiştir", "date_after": "Sonraki tarih", "date_and_time": "Tarih ve Zaman", "date_before": "Önceki tarih", @@ -1735,7 +1736,6 @@ "to_parent": "Üst öğeye git", "to_trash": "Çöpe taşı", "toggle_settings": "Ayarları değiştir", - "darkTheme": "Tema değiştir", "total": "Toplam", "total_usage": "Toplam kullanım", "trash": "Çöp", diff --git a/i18n/uk.json b/i18n/uk.json index acce3eba35c3f..32e34d83b335f 100644 --- a/i18n/uk.json +++ b/i18n/uk.json @@ -703,6 +703,7 @@ "custom_locale": "Користувацький регіон", "custom_locale_description": "Форматувати дати та числа з урахуванням мови та регіону", "dark": "Темний", + "darkTheme": "Перемикання теми", "date_after": "Дата після", "date_and_time": "Дата і час", "date_before": "Дата до", @@ -1785,7 +1786,6 @@ "to_parent": "Повернутись назад", "to_trash": "Смітник", "toggle_settings": "Перемикання налаштувань", - "darkTheme": "Перемикання теми", "total": "Усього", "total_usage": "Загальне використання", "trash": "Смітник", diff --git a/i18n/vi.json b/i18n/vi.json index 541af61d74035..ecebf643d6a0b 100644 --- a/i18n/vi.json +++ b/i18n/vi.json @@ -682,6 +682,7 @@ "custom_locale": "Ngôn ngữ và khu vực tùy chỉnh", "custom_locale_description": "Định dạng ngày và số dựa trên ngôn ngữ và khu vực", "dark": "Tối", + "darkTheme": "Chuyển đổi chủ đề tối", "date_after": "Ngày sau", "date_and_time": "Ngày và giờ", "date_before": "Ngày trước", @@ -1707,7 +1708,6 @@ "to_parent": "Đến thư mục cha", "to_trash": "Xóa", "toggle_settings": "Chuyển đổi cài đặt", - "darkTheme": "Chuyển đổi chủ đề tối", "total_usage": "Tổng dung lượng đã sử dụng", "trash": "Thùng rác", "trash_all": "Xóa hết", diff --git a/i18n/zh_Hant.json b/i18n/zh_Hant.json index 759b5650ed4e1..66861b832ee9e 100644 --- a/i18n/zh_Hant.json +++ b/i18n/zh_Hant.json @@ -702,6 +702,7 @@ "custom_locale": "自訂區域", "custom_locale_description": "依語言和區域設定日期和數字格式", "dark": "深色", + "darkTheme": "切換深色主題", "date_after": "日期之後", "date_and_time": "日期與時間", "date_before": "日期之前", @@ -1788,7 +1789,6 @@ "to_parent": "到上一級", "to_trash": "垃圾桶", "toggle_settings": "切換設定", - "darkTheme": "切換深色主題", "total": "統計", "total_usage": "總用量", "trash": "垃圾桶", diff --git a/i18n/zh_SIMPLIFIED.json b/i18n/zh_SIMPLIFIED.json index f1a2bc9f43028..5cfb5a9c74bef 100644 --- a/i18n/zh_SIMPLIFIED.json +++ b/i18n/zh_SIMPLIFIED.json @@ -1,5 +1,4 @@ { - "darkTheme": "中国", "about": "关于", "account": "账户", "account_settings": "账户设置", @@ -714,6 +713,7 @@ "custom_locale": "自定义地区", "custom_locale_description": "日期和数字显示格式跟随语言和地区", "dark": "深色", + "darkTheme": "切换深色主题", "date_after": "开始日期", "date_and_time": "日期与时间", "date_before": "结束日期", @@ -1825,7 +1825,6 @@ "to_parent": "返回上一级", "to_trash": "放入回收站", "toggle_settings": "切换设置", - "darkTheme": "切换深色主题", "total": "总计", "total_usage": "总用量", "trash": "回收站", diff --git a/web/src/lib/components/user-settings-page/app-settings.svelte b/web/src/lib/components/user-settings-page/app-settings.svelte index c187c2207167e..d248038a24021 100644 --- a/web/src/lib/components/user-settings-page/app-settings.svelte +++ b/web/src/lib/components/user-settings-page/app-settings.svelte @@ -39,7 +39,7 @@ }; const handleToggleLocaleBrowser = () => { - $locale = $locale !== 'default' ? 'default' : fallbackLocale.code; + $locale = $locale === 'default' ? fallbackLocale.code : 'default'; }; const handleLocaleChange = (newLocale: string | undefined) => { diff --git a/web/src/lib/constants.ts b/web/src/lib/constants.ts index e9aa2eaad9871..ae53b4e7f3fae 100644 --- a/web/src/lib/constants.ts +++ b/web/src/lib/constants.ts @@ -274,11 +274,11 @@ export const locales = [ ]; interface Lang { - name: string, - code: string, - loader: () => Promise<{default: {}}>, - rtl?: boolean, - weblateCode?: string, + name: string; + code: string; + loader: () => Promise<{ default: object }>; + rtl?: boolean; + weblateCode?: string; } export const defaultLang: Lang = { name: 'English', code: 'en', loader: () => import('$i18n/en.json') }; diff --git a/web/src/lib/utils/timeline-util.spec.ts b/web/src/lib/utils/timeline-util.spec.ts index 3a596273c542f..c77aefc0b4958 100644 --- a/web/src/lib/utils/timeline-util.spec.ts +++ b/web/src/lib/utils/timeline-util.spec.ts @@ -35,7 +35,7 @@ describe('formatGroupTitle', () => { const date = parseUtcDate('2024-07-21T00:00:00Z'); locale.set('en'); expect(formatGroupTitle(date)).toBe('Sunday'); - locale.set('ar-SA') + locale.set('ar-SA'); expect(formatGroupTitle(date)).toBe('الأحد'); }); @@ -43,7 +43,7 @@ describe('formatGroupTitle', () => { const date = parseUtcDate('2024-07-20T00:00:00Z'); locale.set('en'); expect(formatGroupTitle(date)).toBe('Sat, Jul 20'); - locale.set('de') + locale.set('de'); expect(formatGroupTitle(date)).toBe('Sa., 20. Juli'); }); @@ -51,13 +51,13 @@ describe('formatGroupTitle', () => { const date = parseUtcDate('2020-01-01T00:00:00Z'); locale.set('en'); expect(formatGroupTitle(date)).toBe('Wed, Jan 1, 2020'); - locale.set('ja') + locale.set('ja'); expect(formatGroupTitle(date)).toBe('2020年1月1日(水)'); }); it('formats future date', () => { const tomorrow = parseUtcDate('2024-07-28T00:00:00Z'); - locale.set('en') + locale.set('en'); expect(formatGroupTitle(tomorrow)).toBe('Sun, Jul 28'); const nextMonth = parseUtcDate('2024-08-28T00:00:00Z'); From 36c3cfa04351495e321194091b34635659f60c02 Mon Sep 17 00:00:00 2001 From: wuzihao051119 Date: Tue, 3 Jun 2025 11:01:35 +0800 Subject: [PATCH 5/9] revert i18n changes --- i18n/ar.json | 2 +- i18n/bg.json | 2 +- i18n/ca.json | 2 +- i18n/cs.json | 2 +- i18n/da.json | 2 +- i18n/de.json | 2 +- i18n/el.json | 2 +- i18n/es.json | 2 +- i18n/et.json | 2 +- i18n/fa.json | 2 +- i18n/fi.json | 2 +- i18n/fr.json | 2 +- i18n/gl.json | 2 +- i18n/he.json | 2 +- i18n/hi.json | 2 +- i18n/hr.json | 2 +- i18n/hu.json | 2 +- i18n/id.json | 2 +- i18n/it.json | 2 +- i18n/ja.json | 2 +- i18n/ko.json | 2 +- i18n/nb_NO.json | 2 +- i18n/nl.json | 2 +- i18n/pl.json | 2 +- i18n/pt.json | 2 +- i18n/pt_BR.json | 2 +- i18n/ro.json | 2 +- i18n/ru.json | 2 +- i18n/sk.json | 2 +- i18n/sl.json | 2 +- i18n/sr_Cyrl.json | 2 +- i18n/sr_Latn.json | 2 +- i18n/sv.json | 2 +- i18n/ta.json | 2 +- i18n/th.json | 2 +- i18n/tr.json | 2 +- i18n/uk.json | 2 +- i18n/vi.json | 2 +- i18n/zh_Hant.json | 2 +- i18n/zh_SIMPLIFIED.json | 2 +- 40 files changed, 40 insertions(+), 40 deletions(-) diff --git a/i18n/ar.json b/i18n/ar.json index 8fe9aed1184c9..5dedbd2ea58aa 100644 --- a/i18n/ar.json +++ b/i18n/ar.json @@ -637,7 +637,6 @@ "daily_title_text_date": "E ، MMM DD", "daily_title_text_date_year": "E ، MMM DD ، yyyy", "dark": "معتم", - "darkTheme": "تبديل المظهر الداكن", "date_after": "التارخ بعد", "date_and_time": "التاريخ و الوقت", "date_before": "التاريخ قبل", @@ -1602,6 +1601,7 @@ "to_parent": "انتقل إلى الوالد", "to_trash": "حذف", "toggle_settings": "الإعدادات", + "toggle_theme": "تبديل المظهر الداكن", "total": "الإجمالي", "total_usage": "الاستخدام الإجمالي", "trash": "المهملات", diff --git a/i18n/bg.json b/i18n/bg.json index 228ac99952ad9..7f0fca55d6faf 100644 --- a/i18n/bg.json +++ b/i18n/bg.json @@ -513,7 +513,6 @@ "custom_locale": "Персонализиран локал", "custom_locale_description": "Форматиране на дати и числа в зависимост от езика и региона", "dark": "Тъмен", - "darkTheme": "Превключване на тема", "date_after": "Дата след", "date_and_time": "Дата и час", "date_before": "Дата преди", @@ -1271,6 +1270,7 @@ "to_parent": "Отиди към родителския елемент", "to_trash": "Кошче", "toggle_settings": "Превключване на настройките", + "toggle_theme": "Превключване на тема", "total": "Общо", "total_usage": "Общо използвано", "trash": "Кошче", diff --git a/i18n/ca.json b/i18n/ca.json index 32571f1823772..cd9cc4e0b494b 100644 --- a/i18n/ca.json +++ b/i18n/ca.json @@ -703,7 +703,6 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Fosc", - "darkTheme": "Alternar tema", "date_after": "Data posterior a", "date_and_time": "Data i hora", "date_before": "Data anterior a", @@ -1778,6 +1777,7 @@ "to_parent": "Anar als pares", "to_trash": "Paperera", "toggle_settings": "Canvia configuració", + "toggle_theme": "Alternar tema", "total_usage": "Ús total", "trash": "Paperera", "trash_all": "Envia-ho tot a la paperera", diff --git a/i18n/cs.json b/i18n/cs.json index c184222344792..7bfca25c017a6 100644 --- a/i18n/cs.json +++ b/i18n/cs.json @@ -712,7 +712,6 @@ "daily_title_text_date": "EEEE, d. MMMM", "daily_title_text_date_year": "EEEE, d. MMMM y", "dark": "Tmavý", - "darkTheme": "Přepnout tmavý motiv", "date_after": "Datum po", "date_and_time": "Datum a čas", "date_before": "Datum před", @@ -1813,6 +1812,7 @@ "to_parent": "Přejít k rodiči", "to_trash": "Vyhodit", "toggle_settings": "Přepnout nastavení", + "toggle_theme": "Přepnout tmavý motiv", "total": "Celkem", "total_usage": "Celkové využití", "trash": "Koš", diff --git a/i18n/da.json b/i18n/da.json index 1f1c74955c3d5..eeec0ce036559 100644 --- a/i18n/da.json +++ b/i18n/da.json @@ -705,7 +705,6 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Mørk", - "darkTheme": "Slå mørkt tema til eller fra", "date_after": "Dato efter", "date_and_time": "Dato og klokkeslæt", "date_before": "Dato før", @@ -1789,6 +1788,7 @@ "to_parent": "Gå op", "to_trash": "Papirkurv", "toggle_settings": "Slå indstillinger til eller fra", + "toggle_theme": "Slå mørkt tema til eller fra", "total_usage": "Samlet forbrug", "trash": "Papirkurv", "trash_all": "Smid alle ud", diff --git a/i18n/de.json b/i18n/de.json index 7f050b4e2742b..34cda82c81c33 100644 --- a/i18n/de.json +++ b/i18n/de.json @@ -710,7 +710,6 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Dunkel", - "darkTheme": "Dunkles Theme umschalten", "date_after": "Datum nach", "date_and_time": "Datum und Zeit", "date_before": "Datum vor", @@ -1799,6 +1798,7 @@ "to_parent": "Gehe zum Übergeordneten", "to_trash": "In den Papierkorb verschieben", "toggle_settings": "Einstellungen umschalten", + "toggle_theme": "Dunkles Theme umschalten", "total": "Gesamt", "total_usage": "Gesamtnutzung", "trash": "Papierkorb", diff --git a/i18n/el.json b/i18n/el.json index d48c8142bd7cb..613be44e3e1c7 100644 --- a/i18n/el.json +++ b/i18n/el.json @@ -714,7 +714,6 @@ "daily_title_text_date": "Ε, MMM dd", "daily_title_text_date_year": "Ε, MMM dd, yyyy", "dark": "Σκούρο", - "darkTheme": "Εναλλαγή θέματος", "date_after": "Ημερομηνία μετά", "date_and_time": "Ημερομηνία και ώρα", "date_before": "Ημερομηνία πριν", @@ -1801,6 +1800,7 @@ "to_parent": "Μεταβείτε στο γονικό φάκελο", "to_trash": "Κάδος απορριμμάτων", "toggle_settings": "Εναλλαγή ρυθμίσεων", + "toggle_theme": "Εναλλαγή θέματος", "total": "Σύνολο", "total_usage": "Συνολική χρήση", "trash": "Κάδος απορριμμάτων", diff --git a/i18n/es.json b/i18n/es.json index 093e4c64bfe69..13d242f9f84f0 100644 --- a/i18n/es.json +++ b/i18n/es.json @@ -712,7 +712,6 @@ "daily_title_text_date": "E dd, MMM", "daily_title_text_date_year": "E dd de MMM, yyyy", "dark": "Oscuro", - "darkTheme": "Alternar tema oscuro", "date_after": "Fecha posterior", "date_and_time": "Fecha y Hora", "date_before": "Fecha anterior", @@ -1813,6 +1812,7 @@ "to_parent": "Ir a los padres", "to_trash": "Descartar", "toggle_settings": "Alternar ajustes", + "toggle_theme": "Alternar tema oscuro", "total_usage": "Uso total", "trash": "Papelera", "trash_all": "Descartar todo", diff --git a/i18n/et.json b/i18n/et.json index 63354e6dfaad5..fa621118d1dc8 100644 --- a/i18n/et.json +++ b/i18n/et.json @@ -712,7 +712,6 @@ "daily_title_text_date": "d. MMMM", "daily_title_text_date_year": "d. MMMM yyyy", "dark": "Tume", - "darkTheme": "Lülita tume teema", "date_after": "Kuupäev pärast", "date_and_time": "Kuupäev ja kellaaeg", "date_before": "Kuupäev enne", @@ -1818,6 +1817,7 @@ "to_parent": "Tase üles", "to_trash": "Prügikasti", "toggle_settings": "Kuva/peida seaded", + "toggle_theme": "Lülita tume teema", "total": "Kokku", "total_usage": "Kogukasutus", "trash": "Prügikast", diff --git a/i18n/fa.json b/i18n/fa.json index f6d5bbd8086bb..f0b99a81cad79 100644 --- a/i18n/fa.json +++ b/i18n/fa.json @@ -375,7 +375,6 @@ "created": "ایجاد شد", "current_device": "دستگاه فعلی", "dark": "تاریک", - "darkTheme": "تغییر تم تاریک", "date_after": "تاریخ پس از", "date_and_time": "تاریخ و زمان", "date_before": "تاریخ قبل از", @@ -694,6 +693,7 @@ "to_archive": "بایگانی", "to_favorite": "به علاقه‌مندی‌ها", "toggle_settings": "تغییر تنظیمات", + "toggle_theme": "تغییر تم تاریک", "total_usage": "استفاده کلی", "trash": "سطل زباله", "type": "نوع", diff --git a/i18n/fi.json b/i18n/fi.json index a0ccf3055f9e9..5aaf614342df3 100644 --- a/i18n/fi.json +++ b/i18n/fi.json @@ -701,7 +701,6 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Tumma", - "darkTheme": "Aseta tumma teema", "date_after": "Päivämäärän jälkeen", "date_and_time": "Päivämäärä ja aika", "date_before": "Päivä ennen", @@ -1780,6 +1779,7 @@ "to_parent": "Siirry vanhempaan", "to_trash": "Roskakoriin", "toggle_settings": "Määritä asetukset", + "toggle_theme": "Aseta tumma teema", "total": "Yhteensä", "total_usage": "Käyttö yhteensä", "trash": "Roskakori", diff --git a/i18n/fr.json b/i18n/fr.json index 6794a9252db4b..4b5a09c664621 100644 --- a/i18n/fr.json +++ b/i18n/fr.json @@ -707,7 +707,6 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Sombre", - "darkTheme": "Inverser le thème sombre", "date_after": "Date après", "date_and_time": "Date et heure", "date_before": "Date avant", @@ -1789,6 +1788,7 @@ "to_parent": "Aller au dossier parent", "to_trash": "Corbeille", "toggle_settings": "Inverser les paramètres", + "toggle_theme": "Inverser le thème sombre", "total_usage": "Utilisation globale", "trash": "Corbeille", "trash_all": "Tout supprimer", diff --git a/i18n/gl.json b/i18n/gl.json index daba0cba99284..af2841481d948 100644 --- a/i18n/gl.json +++ b/i18n/gl.json @@ -699,7 +699,6 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Escuro", - "darkTheme": "Alternar tema escuro", "date_after": "Data posterior a", "date_and_time": "Data e Hora", "date_before": "Data anterior a", @@ -1767,6 +1766,7 @@ "to_parent": "Ir ao pai", "to_trash": "Lixo", "toggle_settings": "Alternar configuración", + "toggle_theme": "Alternar tema escuro", "total_usage": "Uso total", "trash": "Lixo", "trash_all": "Mover Todo ao Lixo", diff --git a/i18n/he.json b/i18n/he.json index 1d500b9412ffb..a6fc7fcbfdc0b 100644 --- a/i18n/he.json +++ b/i18n/he.json @@ -703,7 +703,6 @@ "custom_locale": "אזור שפה מותאם אישית", "custom_locale_description": "עצב תאריכים ומספרים על סמך השפה והאזור", "dark": "כהה", - "darkTheme": "החלף ערכת נושא כהה", "date_after": "תאריך אחרי", "date_and_time": "תאריך ושעה", "date_before": "תאריך לפני", @@ -1786,6 +1785,7 @@ "to_parent": "לך להורה", "to_trash": "אשפה", "toggle_settings": "החלף מצב הגדרות", + "toggle_theme": "החלף ערכת נושא כהה", "total": "סה\"כ", "total_usage": "שימוש כולל", "trash": "אשפה", diff --git a/i18n/hi.json b/i18n/hi.json index 581095f9e61a0..823380c24f93a 100644 --- a/i18n/hi.json +++ b/i18n/hi.json @@ -450,7 +450,6 @@ "custom_locale": "कस्टम लोकेल", "custom_locale_description": "भाषा और क्षेत्र के आधार पर दिनांक और संख्याएँ प्रारूपित करें", "dark": "डार्क", - "darkTheme": "थीम टॉगल करें", "date_after": "इसके बाद की तारीख", "date_and_time": "तिथि और समय", "date_before": "पहले की तारीख", @@ -1125,6 +1124,7 @@ "to_login": "लॉग इन करें", "to_trash": "कचरा", "toggle_settings": "सेटिंग्स टॉगल करें", + "toggle_theme": "थीम टॉगल करें", "total_usage": "कुल उपयोग", "trash": "कचरा", "trash_all": "सब कचरा", diff --git a/i18n/hr.json b/i18n/hr.json index d6a009df1f45f..5a2d259eb2d7c 100644 --- a/i18n/hr.json +++ b/i18n/hr.json @@ -698,7 +698,6 @@ "custom_locale": "Prilagođena Lokalizacija", "custom_locale_description": "Formatiranje datuma i brojeva na temelju jezika i regije", "dark": "Tamno", - "darkTheme": "Promjeni temu", "date_after": "Datum nakon", "date_and_time": "Datum i Vrijeme", "date_before": "Datum prije", @@ -1756,6 +1755,7 @@ "to_parent": "Idi na roditelja", "to_trash": "Smeće", "toggle_settings": "Uključi/isključi postavke", + "toggle_theme": "Promjeni temu", "total": "Ukupno", "total_usage": "Ukupna upotreba", "trash": "Smeće", diff --git a/i18n/hu.json b/i18n/hu.json index f317b4c4a2467..fb2d895e3d461 100644 --- a/i18n/hu.json +++ b/i18n/hu.json @@ -699,7 +699,6 @@ "daily_title_text_date": "MMM dd (E)", "daily_title_text_date_year": "yyyy MMM dd (E)", "dark": "Sötét", - "darkTheme": "Sötét téma átváltása", "date_after": "Dátumtól", "date_and_time": "Dátum és Idő", "date_before": "Dátumig", @@ -1757,6 +1756,7 @@ "to_parent": "Egy szinttel feljebb", "to_trash": "Lomtárba helyezés", "toggle_settings": "Beállítások átállítása", + "toggle_theme": "Sötét téma átváltása", "total": "Összesen", "total_usage": "Összesen használatban", "trash": "Lomtár", diff --git a/i18n/id.json b/i18n/id.json index ae41aedd2e1a9..36dd6a953e251 100644 --- a/i18n/id.json +++ b/i18n/id.json @@ -690,7 +690,6 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM yyyy", "dark": "Gelap", - "darkTheme": "Beralih tema gelap", "date_after": "Tanggal setelah", "date_and_time": "Tanggal dan Waktu", "date_before": "Tanggal sebelum", @@ -1713,6 +1712,7 @@ "to_parent": "Ke induk", "to_trash": "Sampah", "toggle_settings": "Saklar pengaturan", + "toggle_theme": "Beralih tema gelap", "total": "Jumlah", "total_usage": "Jumlah penggunaan", "trash": "Sampah", diff --git a/i18n/it.json b/i18n/it.json index b933f9ed7064e..8721cefc617dd 100644 --- a/i18n/it.json +++ b/i18n/it.json @@ -699,7 +699,6 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Scuro", - "darkTheme": "Abilita tema scuro", "date_after": "Data dopo", "date_and_time": "Data e ora", "date_before": "Data prima", @@ -1759,6 +1758,7 @@ "to_parent": "Sali di un livello", "to_trash": "Cancella", "toggle_settings": "Attiva/disattiva impostazioni", + "toggle_theme": "Abilita tema scuro", "total": "Totale", "total_usage": "Utilizzo totale", "trash": "Cestino", diff --git a/i18n/ja.json b/i18n/ja.json index b9311cf933f17..0bccd9f867047 100644 --- a/i18n/ja.json +++ b/i18n/ja.json @@ -715,7 +715,6 @@ "daily_title_text_date": "MM DD, EE", "daily_title_text_date_year": "yyyy MM DD, EE", "dark": "ダークモード", - "darkTheme": "ダークテーマを切り替え", "date_after": "この日以降", "date_and_time": "日付と時間", "date_before": "この日以前", @@ -1829,6 +1828,7 @@ "to_parent": "上位の階層へ", "to_trash": "ゴミ箱", "toggle_settings": "設定をトグル", + "toggle_theme": "ダークテーマを切り替え", "total": "合計", "total_usage": "総使用量", "trash": "ゴミ箱", diff --git a/i18n/ko.json b/i18n/ko.json index 5b7054a48b084..38a88ecd3c72f 100644 --- a/i18n/ko.json +++ b/i18n/ko.json @@ -713,7 +713,6 @@ "daily_title_text_date": "M월 d일 EEEE", "daily_title_text_date_year": "yyyy년 M월 d일 EEEE", "dark": "다크", - "darkTheme": "다크 모드 사용", "date_after": "다음 날짜 이후", "date_and_time": "날짜 및 시간", "date_before": "다음 날짜 전", @@ -1820,6 +1819,7 @@ "to_parent": "상위 항목으로", "to_trash": "삭제", "toggle_settings": "설정 변경", + "toggle_theme": "다크 모드 사용", "total": "전체", "total_usage": "총 사용량", "trash": "휴지통", diff --git a/i18n/nb_NO.json b/i18n/nb_NO.json index 9c73b6af0de92..b5dd76ce56875 100644 --- a/i18n/nb_NO.json +++ b/i18n/nb_NO.json @@ -711,7 +711,6 @@ "daily_title_text_date": "E MMM. dd", "daily_title_text_date_year": "E MMM. dddd, yyyy", "dark": "Mørk", - "darkTheme": "Bytt tema", "date_after": "Dato etter", "date_and_time": "Dato og tid", "date_before": "Dato før", @@ -1813,6 +1812,7 @@ "to_parent": "Gå til overodnet", "to_trash": "Papirkurv", "toggle_settings": "Bytt innstillinger", + "toggle_theme": "Bytt tema", "total_usage": "Totalt brukt", "trash": "Papirkurv", "trash_all": "Slett alt", diff --git a/i18n/nl.json b/i18n/nl.json index 1ba7134ad1c47..80aa9ea76be05 100644 --- a/i18n/nl.json +++ b/i18n/nl.json @@ -700,7 +700,6 @@ "daily_title_text_date": "E dd MMM", "daily_title_text_date_year": "E dd MMM yyyy", "dark": "Donker", - "darkTheme": "Donker thema toepassen", "date_after": "Datum na", "date_and_time": "Datum en tijd", "date_before": "Datum voor", @@ -1779,6 +1778,7 @@ "to_parent": "Ga naar hoofdmap", "to_trash": "Prullenbak", "toggle_settings": "Zichtbaarheid instellingen wisselen", + "toggle_theme": "Donker thema toepassen", "total": "Totaal", "total_usage": "Totaal gebruik", "trash": "Prullenbak", diff --git a/i18n/pl.json b/i18n/pl.json index bb29ea65bc3a0..5da38eac60c50 100644 --- a/i18n/pl.json +++ b/i18n/pl.json @@ -712,7 +712,6 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Ciemny", - "darkTheme": "Przełącz ciemny motyw", "date_after": "Data po", "date_and_time": "Data i godzina", "date_before": "Data przed", @@ -1815,6 +1814,7 @@ "to_parent": "Idź do rodzica", "to_trash": "Kosz", "toggle_settings": "Przełącz ustawienia", + "toggle_theme": "Przełącz ciemny motyw", "total": "Całkowity", "total_usage": "Całkowite wykorzystanie", "trash": "Kosz", diff --git a/i18n/pt.json b/i18n/pt.json index c18d2e0957d62..c22c64ab4b10d 100644 --- a/i18n/pt.json +++ b/i18n/pt.json @@ -711,7 +711,6 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Escuro", - "darkTheme": "Ativar modo escuro", "date_after": "Data após", "date_and_time": "Data e Hora", "date_before": "Data antes", @@ -1812,6 +1811,7 @@ "to_parent": "Subir um nível", "to_trash": "Reciclagem", "toggle_settings": "Alternar configurações", + "toggle_theme": "Ativar modo escuro", "total_usage": "Total utilizado", "trash": "Reciclagem", "trash_all": "Mover todos para a reciclagem", diff --git a/i18n/pt_BR.json b/i18n/pt_BR.json index 5a45c6171f8e2..79f6cdbbc83cd 100644 --- a/i18n/pt_BR.json +++ b/i18n/pt_BR.json @@ -695,7 +695,6 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Escuro", - "darkTheme": "Alternar tema escuro", "date_after": "Data após", "date_and_time": "Data e Hora", "date_before": "Data antes", @@ -1758,6 +1757,7 @@ "to_parent": "Voltar para nível acima", "to_trash": "Mover para a lixeira", "toggle_settings": "Alternar configurações", + "toggle_theme": "Alternar tema escuro", "total_usage": "Utilização total", "trash": "Lixeira", "trash_all": "Mover todos para o lixo", diff --git a/i18n/ro.json b/i18n/ro.json index d2ba794270e7b..9f1bc03cb2adc 100644 --- a/i18n/ro.json +++ b/i18n/ro.json @@ -651,7 +651,6 @@ "custom_locale": "Setare Regională Personalizată", "custom_locale_description": "Formatați datele și numerele în funcție de limbă și regiune", "dark": "Întunecat", - "darkTheme": "Activați tema întunecată", "date_after": "După data", "date_and_time": "Dată și oră", "date_before": "Anterior datei", @@ -1599,6 +1598,7 @@ "to_parent": "Du-te la părinte", "to_trash": "Coș de gunoi", "toggle_settings": "Activați setările", + "toggle_theme": "Activați tema întunecată", "total_usage": "Utilizare totală", "trash": "Coș de gunoi", "trash_all": "Ștergeți Tot", diff --git a/i18n/ru.json b/i18n/ru.json index bcdecfd22a0a1..fd846b088d4bd 100644 --- a/i18n/ru.json +++ b/i18n/ru.json @@ -711,7 +711,6 @@ "custom_locale": "Пользовательский регион", "custom_locale_description": "Форматирование дат и чисел в зависимости от языка и региона", "dark": "Тёмный", - "darkTheme": "Переключение темы", "date_after": "Дата после", "date_and_time": "Дата и Время", "date_before": "Дата до", @@ -1822,6 +1821,7 @@ "to_parent": "Вернуться назад", "to_trash": "Корзина", "toggle_settings": "Переключение настроек", + "toggle_theme": "Переключение темы", "total": "Всего", "total_usage": "Общее использование", "trash": "Корзина", diff --git a/i18n/sk.json b/i18n/sk.json index 52855b9df3b78..4253b7eeab27a 100644 --- a/i18n/sk.json +++ b/i18n/sk.json @@ -651,7 +651,6 @@ "daily_title_text_date": "EEEE, d. MMMM", "daily_title_text_date_year": "EEEE, d. MMMM y", "dark": "Tmavý", - "darkTheme": "Prepnúť tmavú tému", "date_after": "Dátum po", "date_and_time": "Dátum a Čas", "date_before": "Dátum pred", @@ -1625,6 +1624,7 @@ "to_parent": "Prejsť k nadradenému", "to_trash": "Kôš", "toggle_settings": "Prepnúť nastavenie", + "toggle_theme": "Prepnúť tmavú tému", "total": "Celkom", "total_usage": "Celkové využitie", "trash": "Kôš", diff --git a/i18n/sl.json b/i18n/sl.json index 5932a7be0dc01..db1e7aead9db3 100644 --- a/i18n/sl.json +++ b/i18n/sl.json @@ -712,7 +712,6 @@ "custom_locale": "Jezik po meri", "custom_locale_description": "Oblikujte datume in številke glede na jezik in regijo", "dark": "Temno", - "darkTheme": "Preklopi na temno temo", "date_after": "Datum po", "date_and_time": "Datum in ura", "date_before": "Datum pred", @@ -1819,6 +1818,7 @@ "to_parent": "Pojdi na prvotno", "to_trash": "Smetnjak", "toggle_settings": "Preklopi na nastavitve", + "toggle_theme": "Preklopi na temno temo", "total": "Skupno", "total_usage": "Skupna poraba", "trash": "Smetnjak", diff --git a/i18n/sr_Cyrl.json b/i18n/sr_Cyrl.json index c3397fbcdcd74..872418b5485bb 100644 --- a/i18n/sr_Cyrl.json +++ b/i18n/sr_Cyrl.json @@ -707,7 +707,6 @@ "daily_title_text_date": "Е дд МММ", "daily_title_text_date_year": "Е дд МММ yyyy", "dark": "Тамно", - "darkTheme": "Nameсти тамну тему", "date_after": "Датум после", "date_and_time": "Датум и Време", "date_before": "Датум пре", @@ -1799,6 +1798,7 @@ "to_parent": "Врати се назад", "to_trash": "Смец́е", "toggle_settings": "Nameсти подешавања", + "toggle_theme": "Nameсти тамну тему", "total": "Укупно", "total_usage": "Укупна употреба", "trash": "Отпад", diff --git a/i18n/sr_Latn.json b/i18n/sr_Latn.json index c227c9d6a40eb..b63002ef79d67 100644 --- a/i18n/sr_Latn.json +++ b/i18n/sr_Latn.json @@ -697,7 +697,6 @@ "daily_title_text_date": "E dd MMM", "daily_title_text_date_year": "E dd MMM yyyy", "dark": "Tamno", - "darkTheme": "Namesti tamnu temu", "date_after": "Datum posle", "date_and_time": "Datum i Vreme", "date_before": "Datum pre", @@ -1768,6 +1767,7 @@ "to_parent": "Vrati se nazad", "to_trash": "Smeće", "toggle_settings": "Namesti podešavanja", + "toggle_theme": "Namesti tamnu temu", "total": "Ukupno", "total_usage": "Ukupna upotreba", "trash": "Otpad", diff --git a/i18n/sv.json b/i18n/sv.json index 50b44136efe48..8aaa76a5ec318 100644 --- a/i18n/sv.json +++ b/i18n/sv.json @@ -698,7 +698,6 @@ "daily_title_text_date": "E, dd MMM", "daily_title_text_date_year": "E, dd MMM, yyyy", "dark": "Mörk", - "darkTheme": "Växla tema", "date_after": "Datum efter", "date_and_time": "Datum och Tid", "date_before": "Datum före", @@ -1754,6 +1753,7 @@ "to_parent": "Gå till förälder", "to_trash": "Papperskorg", "toggle_settings": "Växla inställningar", + "toggle_theme": "Växla tema", "total_usage": "Total användning", "trash": "Papperskorg", "trash_all": "Kasta alla", diff --git a/i18n/ta.json b/i18n/ta.json index 2140f68705ffa..679d35ec46c98 100644 --- a/i18n/ta.json +++ b/i18n/ta.json @@ -502,7 +502,6 @@ "custom_locale": "தனிப்பயன் இடம்", "custom_locale_description": "மொழி மற்றும் பிராந்தியத்தின் அடிப்படையில் வடிவமைப்பு தேதிகள் மற்றும் எண்கள்", "dark": "இருண்ட", - "darkTheme": "இருண்ட கருப்பொருளை மாற்றவும்", "date_after": "தேதி", "date_and_time": "தேதி மற்றும் நேரம்", "date_before": "முன் தேதி", @@ -1239,6 +1238,7 @@ "to_parent": "பெற்றோரிடம் செல்லுங்கள்", "to_trash": "குப்பை", "toggle_settings": "அமைப்புகளை மாற்றவும்", + "toggle_theme": "இருண்ட கருப்பொருளை மாற்றவும்", "total": "மொத்தம்", "total_usage": "மொத்த பயன்பாடு", "trash": "குப்பை", diff --git a/i18n/th.json b/i18n/th.json index bbae21fb507c1..36b5b97b5c9b8 100644 --- a/i18n/th.json +++ b/i18n/th.json @@ -657,7 +657,6 @@ "daily_title_text_date": "E dd MMM", "daily_title_text_date_year": "E dd MMM yyyy", "dark": "มืด", - "darkTheme": "สลับธีม", "date_after": "วันที่หลังจาก", "date_and_time": "วันและเวลา", "date_before": "วันที่ก่อน", @@ -1637,6 +1636,7 @@ "to_parent": "ไปยังบนสุด", "to_trash": "ถังขยะ", "toggle_settings": "สลับการตั้งค่า", + "toggle_theme": "สลับธีม", "total": "ทั้งหมด", "total_usage": "การใช้งานรวม", "trash": "ถังขยะ", diff --git a/i18n/tr.json b/i18n/tr.json index 56f32e3c85097..96032cb9a8626 100644 --- a/i18n/tr.json +++ b/i18n/tr.json @@ -689,7 +689,6 @@ "daily_title_text_date": "dd MMM E", "daily_title_text_date_year": "dd MMM yyyy E", "dark": "Koyu", - "darkTheme": "Tema değiştir", "date_after": "Sonraki tarih", "date_and_time": "Tarih ve Zaman", "date_before": "Önceki tarih", @@ -1736,6 +1735,7 @@ "to_parent": "Üst öğeye git", "to_trash": "Çöpe taşı", "toggle_settings": "Ayarları değiştir", + "toggle_theme": "Tema değiştir", "total": "Toplam", "total_usage": "Toplam kullanım", "trash": "Çöp", diff --git a/i18n/uk.json b/i18n/uk.json index 32e34d83b335f..1862e82d8e5e8 100644 --- a/i18n/uk.json +++ b/i18n/uk.json @@ -703,7 +703,6 @@ "custom_locale": "Користувацький регіон", "custom_locale_description": "Форматувати дати та числа з урахуванням мови та регіону", "dark": "Темний", - "darkTheme": "Перемикання теми", "date_after": "Дата після", "date_and_time": "Дата і час", "date_before": "Дата до", @@ -1786,6 +1785,7 @@ "to_parent": "Повернутись назад", "to_trash": "Смітник", "toggle_settings": "Перемикання налаштувань", + "toggle_theme": "Перемикання теми", "total": "Усього", "total_usage": "Загальне використання", "trash": "Смітник", diff --git a/i18n/vi.json b/i18n/vi.json index ecebf643d6a0b..d952bc9197fb6 100644 --- a/i18n/vi.json +++ b/i18n/vi.json @@ -682,7 +682,6 @@ "custom_locale": "Ngôn ngữ và khu vực tùy chỉnh", "custom_locale_description": "Định dạng ngày và số dựa trên ngôn ngữ và khu vực", "dark": "Tối", - "darkTheme": "Chuyển đổi chủ đề tối", "date_after": "Ngày sau", "date_and_time": "Ngày và giờ", "date_before": "Ngày trước", @@ -1708,6 +1707,7 @@ "to_parent": "Đến thư mục cha", "to_trash": "Xóa", "toggle_settings": "Chuyển đổi cài đặt", + "toggle_theme": "Chuyển đổi chủ đề tối", "total_usage": "Tổng dung lượng đã sử dụng", "trash": "Thùng rác", "trash_all": "Xóa hết", diff --git a/i18n/zh_Hant.json b/i18n/zh_Hant.json index 66861b832ee9e..cde9717e22c8b 100644 --- a/i18n/zh_Hant.json +++ b/i18n/zh_Hant.json @@ -702,7 +702,6 @@ "custom_locale": "自訂區域", "custom_locale_description": "依語言和區域設定日期和數字格式", "dark": "深色", - "darkTheme": "切換深色主題", "date_after": "日期之後", "date_and_time": "日期與時間", "date_before": "日期之前", @@ -1789,6 +1788,7 @@ "to_parent": "到上一級", "to_trash": "垃圾桶", "toggle_settings": "切換設定", + "toggle_theme": "切換深色主題", "total": "統計", "total_usage": "總用量", "trash": "垃圾桶", diff --git a/i18n/zh_SIMPLIFIED.json b/i18n/zh_SIMPLIFIED.json index 5cfb5a9c74bef..1ba5b98e95107 100644 --- a/i18n/zh_SIMPLIFIED.json +++ b/i18n/zh_SIMPLIFIED.json @@ -713,7 +713,6 @@ "custom_locale": "自定义地区", "custom_locale_description": "日期和数字显示格式跟随语言和地区", "dark": "深色", - "darkTheme": "切换深色主题", "date_after": "开始日期", "date_and_time": "日期与时间", "date_before": "结束日期", @@ -1825,6 +1824,7 @@ "to_parent": "返回上一级", "to_trash": "放入回收站", "toggle_settings": "切换设置", + "toggle_theme": "切换深色主题", "total": "总计", "total_usage": "总用量", "trash": "回收站", From f01dabb4f4cd3cf7d6c8a2e44cff43a7e36f3bb9 Mon Sep 17 00:00:00 2001 From: wuzihao051119 Date: Tue, 3 Jun 2025 23:40:26 +0800 Subject: [PATCH 6/9] fix blank locale --- web/src/lib/stores/preferences.store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib/stores/preferences.store.ts b/web/src/lib/stores/preferences.store.ts index 214c4215c1d8d..f0689e5d6e6fe 100644 --- a/web/src/lib/stores/preferences.store.ts +++ b/web/src/lib/stores/preferences.store.ts @@ -11,7 +11,7 @@ export interface ThemeSetting { // Locale to use for formatting dates, numbers, etc. export const locale = persisted('locale', 'default', { serializer: { - parse: (text) => text, + parse: (text) => text || 'default', stringify: (object) => object ?? '', }, }); From a2695713ee8020327e2440ced81119124c2fe020 Mon Sep 17 00:00:00 2001 From: wuzihao051119 Date: Wed, 4 Jun 2025 00:31:25 +0800 Subject: [PATCH 7/9] trigger ci From ec98db7c271ee4df0430500df4e4c21101840a80 Mon Sep 17 00:00:00 2001 From: wuzihao051119 Date: Wed, 4 Jun 2025 00:50:55 +0800 Subject: [PATCH 8/9] trigger ci From 53342da7826fef88f1d106146288959df22d587c Mon Sep 17 00:00:00 2001 From: wuzihao051119 Date: Wed, 4 Jun 2025 01:20:53 +0800 Subject: [PATCH 9/9] trigger ci