diff --git a/quartz/components/ReaderMode.tsx b/quartz/components/ReaderMode.tsx index dac4053d9..4b3165e6e 100644 --- a/quartz/components/ReaderMode.tsx +++ b/quartz/components/ReaderMode.tsx @@ -2,25 +2,31 @@ import readerModeScript from "./scripts/readermode.inline" import styles from "./styles/readermode.scss" import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" +import { i18n } from "../i18n" import { classNames } from "../util/lang" -const ReaderMode: QuartzComponent = ({ displayClass }: QuartzComponentProps) => { +const ReaderMode: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => { return ( ) diff --git a/quartz/components/styles/readermode.scss b/quartz/components/styles/readermode.scss index 7d5de7703..79332c3b6 100644 --- a/quartz/components/styles/readermode.scss +++ b/quartz/components/styles/readermode.scss @@ -15,6 +15,7 @@ width: 20px; height: 20px; top: calc(50% - 10px); + fill: var(--darkgray); stroke: var(--darkgray); transition: opacity 0.1s ease; } diff --git a/quartz/i18n/locales/ar-SA.ts b/quartz/i18n/locales/ar-SA.ts index 8463e2ff5..a1979def9 100644 --- a/quartz/i18n/locales/ar-SA.ts +++ b/quartz/i18n/locales/ar-SA.ts @@ -32,6 +32,9 @@ export default { explorer: { title: "المستعرض", }, + readerMode: { + title: "وضع القارئ", + }, footer: { createdWith: "أُنشئ باستخدام", }, diff --git a/quartz/i18n/locales/ca-ES.ts b/quartz/i18n/locales/ca-ES.ts index aadbd4157..1483d9c57 100644 --- a/quartz/i18n/locales/ca-ES.ts +++ b/quartz/i18n/locales/ca-ES.ts @@ -29,6 +29,9 @@ export default { lightMode: "Mode clar", darkMode: "Mode fosc", }, + readerMode: { + title: "Mode lector", + }, explorer: { title: "Explorador", }, diff --git a/quartz/i18n/locales/cs-CZ.ts b/quartz/i18n/locales/cs-CZ.ts index bf089d137..87f19964f 100644 --- a/quartz/i18n/locales/cs-CZ.ts +++ b/quartz/i18n/locales/cs-CZ.ts @@ -29,6 +29,9 @@ export default { lightMode: "Světlý režim", darkMode: "Tmavý režim", }, + readerMode: { + title: "Režim čtečky", + }, explorer: { title: "Procházet", }, diff --git a/quartz/i18n/locales/de-DE.ts b/quartz/i18n/locales/de-DE.ts index 023d4be33..85a7353a8 100644 --- a/quartz/i18n/locales/de-DE.ts +++ b/quartz/i18n/locales/de-DE.ts @@ -26,8 +26,11 @@ export default { noBacklinksFound: "Keine Backlinks gefunden", }, themeToggle: { - lightMode: "Light Mode", - darkMode: "Dark Mode", + lightMode: "Heller Modus", + darkMode: "Dunkler Modus", + }, + readerMode: { + title: "Lesemodus", }, explorer: { title: "Explorer", diff --git a/quartz/i18n/locales/definition.ts b/quartz/i18n/locales/definition.ts index 25a8cd7f2..ee1649abc 100644 --- a/quartz/i18n/locales/definition.ts +++ b/quartz/i18n/locales/definition.ts @@ -31,6 +31,9 @@ export interface Translation { lightMode: string darkMode: string } + readerMode: { + title: string + } explorer: { title: string } diff --git a/quartz/i18n/locales/en-GB.ts b/quartz/i18n/locales/en-GB.ts index 5388b032c..80e52bf3c 100644 --- a/quartz/i18n/locales/en-GB.ts +++ b/quartz/i18n/locales/en-GB.ts @@ -29,6 +29,9 @@ export default { lightMode: "Light mode", darkMode: "Dark mode", }, + readerMode: { + title: "Reader mode", + }, explorer: { title: "Explorer", }, diff --git a/quartz/i18n/locales/en-US.ts b/quartz/i18n/locales/en-US.ts index 22cf31e01..e1111e9ab 100644 --- a/quartz/i18n/locales/en-US.ts +++ b/quartz/i18n/locales/en-US.ts @@ -29,6 +29,9 @@ export default { lightMode: "Light mode", darkMode: "Dark mode", }, + readerMode: { + title: "Reader mode", + }, explorer: { title: "Explorer", }, diff --git a/quartz/i18n/locales/es-ES.ts b/quartz/i18n/locales/es-ES.ts index c4a57aa12..b7e425e81 100644 --- a/quartz/i18n/locales/es-ES.ts +++ b/quartz/i18n/locales/es-ES.ts @@ -29,6 +29,9 @@ export default { lightMode: "Modo claro", darkMode: "Modo oscuro", }, + readerMode: { + title: "Modo lector", + }, explorer: { title: "Explorador", }, diff --git a/quartz/i18n/locales/fa-IR.ts b/quartz/i18n/locales/fa-IR.ts index 5bfef5aee..0300174f3 100644 --- a/quartz/i18n/locales/fa-IR.ts +++ b/quartz/i18n/locales/fa-IR.ts @@ -29,6 +29,9 @@ export default { lightMode: "حالت روشن", darkMode: "حالت تاریک", }, + readerMode: { + title: "حالت خواندن", + }, explorer: { title: "مطالب", }, diff --git a/quartz/i18n/locales/fi-FI.ts b/quartz/i18n/locales/fi-FI.ts index f173afae4..19e102a31 100644 --- a/quartz/i18n/locales/fi-FI.ts +++ b/quartz/i18n/locales/fi-FI.ts @@ -29,6 +29,9 @@ export default { lightMode: "Vaalea tila", darkMode: "Tumma tila", }, + readerMode: { + title: "Lukijatila", + }, explorer: { title: "Selain", }, diff --git a/quartz/i18n/locales/fr-FR.ts b/quartz/i18n/locales/fr-FR.ts index ef43fa876..f6df309a6 100644 --- a/quartz/i18n/locales/fr-FR.ts +++ b/quartz/i18n/locales/fr-FR.ts @@ -29,6 +29,9 @@ export default { lightMode: "Mode clair", darkMode: "Mode sombre", }, + readerMode: { + title: "Mode lecture", + }, explorer: { title: "Explorateur", }, diff --git a/quartz/i18n/locales/hu-HU.ts b/quartz/i18n/locales/hu-HU.ts index 066b7770e..2a4f07727 100644 --- a/quartz/i18n/locales/hu-HU.ts +++ b/quartz/i18n/locales/hu-HU.ts @@ -29,6 +29,9 @@ export default { lightMode: "Világos mód", darkMode: "Sötét mód", }, + readerMode: { + title: "Olvasó mód", + }, explorer: { title: "Fájlböngésző", }, diff --git a/quartz/i18n/locales/it-IT.ts b/quartz/i18n/locales/it-IT.ts index c8c597352..be25bb640 100644 --- a/quartz/i18n/locales/it-IT.ts +++ b/quartz/i18n/locales/it-IT.ts @@ -29,6 +29,9 @@ export default { lightMode: "Tema chiaro", darkMode: "Tema scuro", }, + readerMode: { + title: "Modalità lettura", + }, explorer: { title: "Esplora", }, diff --git a/quartz/i18n/locales/ja-JP.ts b/quartz/i18n/locales/ja-JP.ts index 9581b5ed3..3c30124d7 100644 --- a/quartz/i18n/locales/ja-JP.ts +++ b/quartz/i18n/locales/ja-JP.ts @@ -29,6 +29,9 @@ export default { lightMode: "ライトモード", darkMode: "ダークモード", }, + readerMode: { + title: "リーダーモード", + }, explorer: { title: "エクスプローラー", }, diff --git a/quartz/i18n/locales/ko-KR.ts b/quartz/i18n/locales/ko-KR.ts index 9be08d98f..1bca096b2 100644 --- a/quartz/i18n/locales/ko-KR.ts +++ b/quartz/i18n/locales/ko-KR.ts @@ -29,6 +29,9 @@ export default { lightMode: "라이트 모드", darkMode: "다크 모드", }, + readerMode: { + title: "리더 모드", + }, explorer: { title: "탐색기", }, diff --git a/quartz/i18n/locales/lt-LT.ts b/quartz/i18n/locales/lt-LT.ts index d48e593c9..690960c35 100644 --- a/quartz/i18n/locales/lt-LT.ts +++ b/quartz/i18n/locales/lt-LT.ts @@ -29,6 +29,9 @@ export default { lightMode: "Šviesus Režimas", darkMode: "Tamsus Režimas", }, + readerMode: { + title: "Modalità lettore", + }, explorer: { title: "Naršyklė", }, diff --git a/quartz/i18n/locales/nb-NO.ts b/quartz/i18n/locales/nb-NO.ts index 5823b19b1..0e415221e 100644 --- a/quartz/i18n/locales/nb-NO.ts +++ b/quartz/i18n/locales/nb-NO.ts @@ -29,6 +29,9 @@ export default { lightMode: "Lys modus", darkMode: "Mørk modus", }, + readerMode: { + title: "Læsemodus", + }, explorer: { title: "Utforsker", }, diff --git a/quartz/i18n/locales/nl-NL.ts b/quartz/i18n/locales/nl-NL.ts index ccbafa7b3..8ab3b0722 100644 --- a/quartz/i18n/locales/nl-NL.ts +++ b/quartz/i18n/locales/nl-NL.ts @@ -29,6 +29,9 @@ export default { lightMode: "Lichte modus", darkMode: "Donkere modus", }, + readerMode: { + title: "Leesmodus", + }, explorer: { title: "Verkenner", }, diff --git a/quartz/i18n/locales/pl-PL.ts b/quartz/i18n/locales/pl-PL.ts index 7fa0cd47a..11033e30f 100644 --- a/quartz/i18n/locales/pl-PL.ts +++ b/quartz/i18n/locales/pl-PL.ts @@ -29,6 +29,9 @@ export default { lightMode: "Trzyb jasny", darkMode: "Tryb ciemny", }, + readerMode: { + title: "Tryb czytania", + }, explorer: { title: "Przeglądaj", }, diff --git a/quartz/i18n/locales/pt-BR.ts b/quartz/i18n/locales/pt-BR.ts index c7b6bfb60..e431d8ed5 100644 --- a/quartz/i18n/locales/pt-BR.ts +++ b/quartz/i18n/locales/pt-BR.ts @@ -29,6 +29,9 @@ export default { lightMode: "Tema claro", darkMode: "Tema escuro", }, + readerMode: { + title: "Modo leitor", + }, explorer: { title: "Explorador", }, diff --git a/quartz/i18n/locales/ro-RO.ts b/quartz/i18n/locales/ro-RO.ts index 2de1c8cd9..007d90169 100644 --- a/quartz/i18n/locales/ro-RO.ts +++ b/quartz/i18n/locales/ro-RO.ts @@ -29,6 +29,9 @@ export default { lightMode: "Modul luminos", darkMode: "Modul întunecat", }, + readerMode: { + title: "Modul de citire", + }, explorer: { title: "Explorator", }, diff --git a/quartz/i18n/locales/ru-RU.ts b/quartz/i18n/locales/ru-RU.ts index 18e081734..5534d140c 100644 --- a/quartz/i18n/locales/ru-RU.ts +++ b/quartz/i18n/locales/ru-RU.ts @@ -29,6 +29,9 @@ export default { lightMode: "Светлый режим", darkMode: "Тёмный режим", }, + readerMode: { + title: "Режим чтения", + }, explorer: { title: "Проводник", }, diff --git a/quartz/i18n/locales/th-TH.ts b/quartz/i18n/locales/th-TH.ts index 4ea84868c..073013196 100644 --- a/quartz/i18n/locales/th-TH.ts +++ b/quartz/i18n/locales/th-TH.ts @@ -29,6 +29,9 @@ export default { lightMode: "โหมดสว่าง", darkMode: "โหมดมืด", }, + readerMode: { + title: "โหมดอ่าน", + }, explorer: { title: "รายการหน้า", }, diff --git a/quartz/i18n/locales/tr-TR.ts b/quartz/i18n/locales/tr-TR.ts index a3805d1a9..9c2d6d4ad 100644 --- a/quartz/i18n/locales/tr-TR.ts +++ b/quartz/i18n/locales/tr-TR.ts @@ -29,6 +29,9 @@ export default { lightMode: "Açık mod", darkMode: "Koyu mod", }, + readerMode: { + title: "Okuma modu", + }, explorer: { title: "Gezgin", }, diff --git a/quartz/i18n/locales/uk-UA.ts b/quartz/i18n/locales/uk-UA.ts index 469de4f80..ac2a24850 100644 --- a/quartz/i18n/locales/uk-UA.ts +++ b/quartz/i18n/locales/uk-UA.ts @@ -29,6 +29,9 @@ export default { lightMode: "Світлий режим", darkMode: "Темний режим", }, + readerMode: { + title: "Режим читання", + }, explorer: { title: "Провідник", }, diff --git a/quartz/i18n/locales/vi-VN.ts b/quartz/i18n/locales/vi-VN.ts index 39a8fbcc1..26a58a50e 100644 --- a/quartz/i18n/locales/vi-VN.ts +++ b/quartz/i18n/locales/vi-VN.ts @@ -29,6 +29,9 @@ export default { lightMode: "Sáng", darkMode: "Tối", }, + readerMode: { + title: "Chế độ đọc", + }, explorer: { title: "Trong bài này", }, diff --git a/quartz/i18n/locales/zh-CN.ts b/quartz/i18n/locales/zh-CN.ts index b710db539..09951bbb3 100644 --- a/quartz/i18n/locales/zh-CN.ts +++ b/quartz/i18n/locales/zh-CN.ts @@ -29,6 +29,9 @@ export default { lightMode: "亮色模式", darkMode: "暗色模式", }, + readerMode: { + title: "阅读模式", + }, explorer: { title: "探索", }, diff --git a/quartz/i18n/locales/zh-TW.ts b/quartz/i18n/locales/zh-TW.ts index f0db0bf0c..4e784c06d 100644 --- a/quartz/i18n/locales/zh-TW.ts +++ b/quartz/i18n/locales/zh-TW.ts @@ -29,6 +29,9 @@ export default { lightMode: "亮色模式", darkMode: "暗色模式", }, + readerMode: { + title: "閱讀模式", + }, explorer: { title: "探索", },