Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

tray/webext: icons or list, About that says something, and a theme you can choose (#346)

nyblnet38917049d5d4
diff --git a/scripts/pack-webext.mjs b/scripts/pack-webext.mjs
index e4c9cc53..b9d52d48 100644
--- a/scripts/pack-webext.mjs
+++ b/scripts/pack-webext.mjs
@@ -219,7 +219,11 @@ if (manifest) {
if (desc.startsWith('__MSG_')) fail('manifest.description does not resolve — check _locales')
const named = new Set()
- const claim = (p) => { if (p) named.add(p.replace(/^\//, '')) }
+ // A manifest path may legitimately carry a fragment or query — `options_page`
+ // is `src/home.html#settings`, because Chrome's "Options" entry means
+ // "configure this extension" and the page routes on the hash. Only the file
+ // part is a file, so only the file part is checked for existence.
+ const claim = (p) => { if (p) named.add(p.replace(/^\//, '').replace(/[#?].*$/, '')) }
claim(manifest.background?.service_worker)
claim(manifest.options_page)
claim(manifest.action?.default_popup)
diff --git a/tray/webext/_locales/ar/messages.json b/tray/webext/_locales/ar/messages.json
index 11d9b8b9..d4c620a0 100644
--- a/tray/webext/_locales/ar/messages.json
+++ b/tray/webext/_locales/ar/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "الخياران الآخران يعملان أيضًا، لكن Chrome يسأل من جديد — عند كل إعادة تشغيل بالنسبة للأول، وبعد انتظار بالنسبة للأخير."
+ },
+ "viewLayout": {
+ "message": "طريقة عرض المستندات"
+ },
+ "viewIcons": {
+ "message": "أيقونات"
+ },
+ "viewList": {
+ "message": "قائمة"
+ },
+ "close": {
+ "message": "إغلاق"
+ },
+ "setLangTitle": {
+ "message": "اللغة"
+ },
+ "setLangSub": {
+ "message": "اللغة التي يتحدث بها هذا الامتداد. يتبع المتصفح عادةً."
+ },
+ "langAutomatic": {
+ "message": "تلقائي — اتّبع المتصفح"
+ },
+ "setLangNote": {
+ "message": "اسم الامتداد نفسه ووصفه يأتيان من المتصفح ولا يتغيران."
+ },
+ "aboutPromo": {
+ "message": "جديد على Bento؟ ستجد القوالب والمعرض ودليل التحرير بالذكاء الاصطناعي على $1 — أو ضع نجمة على $2."
+ },
+ "setThemeTitle": {
+ "message": "المظهر"
+ },
+ "setThemeSub": {
+ "message": "إعداد المتصفح هو الافتراضي، وليس إلزاميًا."
+ },
+ "themeAuto": {
+ "message": "حسب المتصفح"
+ },
+ "themeLight": {
+ "message": "فاتح"
+ },
+ "themeDark": {
+ "message": "داكن"
+ },
+ "checking": {
+ "message": "جارٍ التحقق…"
+ },
+ "surveyTitle": {
+ "message": "اعثر على موضع مستنداتك"
+ },
+ "surveySub": {
+ "message": "يعرف المتصفح أي مستندات Bento فتحتها، ويمكنه تحديد المجلدات التي تحتويها."
+ },
+ "surveyDeclined": {
+ "message": "لا بأس — يمكنك إضافة المجلدات يدويًا."
+ },
+ "surveyAllCovered": {
+ "message": "كل المستندات الـ$1 التي رآها هذا المتصفح موجودة بالفعل في مجلد أضفته."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> مستندًا خارج كل المجلدات التي أضفتها، و$2 مشمولة بالفعل."
+ },
+ "surveyCovers": {
+ "message": "يشمل $1"
+ },
+ "surveyAdd": {
+ "message": "أضف هذا المجلد…"
+ },
+ "surveyAdded": {
+ "message": "تمت إضافة $1 — المستندات بداخله جاهزة"
+ },
+ "surveyAddedElsewhere": {
+ "message": "تمت إضافة $1، لكن المستندات ليست فيه — افتح واحدًا من Finder مرة واحدة."
+ },
+ "surveyOnlySeen": {
+ "message": "لا يمكن العثور بهذه الطريقة إلا على المستندات التي فُتحت في هذا المتصفح."
}
}
diff --git a/tray/webext/_locales/bn/messages.json b/tray/webext/_locales/bn/messages.json
index 7e1a2d17..3be6e306 100644
--- a/tray/webext/_locales/bn/messages.json
+++ b/tray/webext/_locales/bn/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "বাকি দুটোও কাজ করে, তবে Chrome আবার জিজ্ঞাসা করে — প্রথমটির ক্ষেত্রে প্রতিবার পুনরায় চালুতে, আর শেষেরটির ক্ষেত্রে কিছুক্ষণ অপেক্ষার পর।"
+ },
+ "viewLayout": {
+ "message": "নথি কীভাবে দেখানো হবে"
+ },
+ "viewIcons": {
+ "message": "আইকন"
+ },
+ "viewList": {
+ "message": "তালিকা"
+ },
+ "close": {
+ "message": "বন্ধ করুন"
+ },
+ "setLangTitle": {
+ "message": "ভাষা"
+ },
+ "setLangSub": {
+ "message": "এই এক্সটেনশন কোন ভাষায় কথা বলে। সাধারণত এটি ব্রাউজারকে অনুসরণ করে।"
+ },
+ "langAutomatic": {
+ "message": "স্বয়ংক্রিয় — ব্রাউজার অনুসরণ করুন"
+ },
+ "setLangNote": {
+ "message": "এক্সটেনশনের নিজের নাম ও বিবরণ ব্রাউজার থেকে আসে এবং বদলায় না।"
+ },
+ "aboutPromo": {
+ "message": "Bento-তে নতুন? টেমপ্লেট, গ্যালারি আর AI সম্পাদনার নির্দেশিকা পাবেন $1-এ — কিংবা $2-এ একটি স্টার দিন।"
+ },
+ "setThemeTitle": {
+ "message": "চেহারা"
+ },
+ "setThemeSub": {
+ "message": "ব্রাউজারের সেটিং হলো ডিফল্ট, বাধ্যতামূলক নয়।"
+ },
+ "themeAuto": {
+ "message": "ব্রাউজার অনুসারে"
+ },
+ "themeLight": {
+ "message": "উজ্জ্বল"
+ },
+ "themeDark": {
+ "message": "গাঢ়"
+ },
+ "checking": {
+ "message": "পরীক্ষা করা হচ্ছে…"
+ },
+ "surveyTitle": {
+ "message": "আপনার নথি কোথায় আছে খুঁজুন"
+ },
+ "surveySub": {
+ "message": "ব্রাউজার জানে আপনি কোন Bento নথি খুলেছেন। সেগুলো কোন ফোল্ডারে আছে তা বলতে পারে।"
+ },
+ "surveyDeclined": {
+ "message": "কোনো অসুবিধা নেই — আপনি নিজেই ফোল্ডার যোগ করতে পারেন।"
+ },
+ "surveyAllCovered": {
+ "message": "এই ব্রাউজারের দেখা $1টি নথিই ইতিমধ্যে আপনার যোগ করা ফোল্ডারে আছে।"
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b>টি নথি আপনার যোগ করা কোনো ফোল্ডারেই নেই। $2টি ইতিমধ্যে অন্তর্ভুক্ত।"
+ },
+ "surveyCovers": {
+ "message": "$1টি অন্তর্ভুক্ত"
+ },
+ "surveyAdd": {
+ "message": "এই ফোল্ডারটি যোগ করুন…"
+ },
+ "surveyAdded": {
+ "message": "$1 যোগ হয়েছে — এর ভেতরের নথি প্রস্তুত"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 যোগ হয়েছে, তবে নথিগুলো এতে নেই — Finder থেকে একবার একটি খুলুন।"
+ },
+ "surveyOnlySeen": {
+ "message": "এভাবে কেবল এই ব্রাউজারে খোলা নথিই পাওয়া যায়।"
}
}
diff --git a/tray/webext/_locales/da/messages.json b/tray/webext/_locales/da/messages.json
index 97129386..a7618ea5 100644
--- a/tray/webext/_locales/da/messages.json
+++ b/tray/webext/_locales/da/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "De to andre virker også, men Chrome spørger igen — ved hver genstart for den første, og efter en ventetid for den sidste."
+ },
+ "viewLayout": {
+ "message": "Hvordan dokumenter vises"
+ },
+ "viewIcons": {
+ "message": "Ikoner"
+ },
+ "viewList": {
+ "message": "Liste"
+ },
+ "close": {
+ "message": "Luk"
+ },
+ "setLangTitle": {
+ "message": "Sprog"
+ },
+ "setLangSub": {
+ "message": "Hvilket sprog denne udvidelse taler. Normalt følger den browseren."
+ },
+ "langAutomatic": {
+ "message": "Automatisk — følg browseren"
+ },
+ "setLangNote": {
+ "message": "Udvidelsens eget navn og beskrivelse kommer fra browseren og ændrer sig ikke."
+ },
+ "aboutPromo": {
+ "message": "Ny med Bento? Find skabeloner, galleriet og AI-redigeringsguiden på $1 — eller giv den en stjerne på $2."
+ },
+ "setThemeTitle": {
+ "message": "Udseende"
+ },
+ "setThemeSub": {
+ "message": "Browserens indstilling er standarden, ikke et krav."
+ },
+ "themeAuto": {
+ "message": "Følg browseren"
+ },
+ "themeLight": {
+ "message": "Lys"
+ },
+ "themeDark": {
+ "message": "Mørk"
+ },
+ "checking": {
+ "message": "Tjekker…"
+ },
+ "surveyTitle": {
+ "message": "Find hvor dine dokumenter er"
+ },
+ "surveySub": {
+ "message": "Browseren ved, hvilke Bento-dokumenter du har åbnet. Den kan sige, hvilke mapper de ligger i."
+ },
+ "surveyDeclined": {
+ "message": "Helt i orden — du kan tilføje mapper i hånden."
+ },
+ "surveyAllCovered": {
+ "message": "Alle $1 dokumenter, som denne browser har set, ligger allerede i en tilføjet mappe."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> dokumenter ligger uden for alle tilføjede mapper. $2 er allerede dækket."
+ },
+ "surveyCovers": {
+ "message": "dækker $1"
+ },
+ "surveyAdd": {
+ "message": "Tilføj denne mappe…"
+ },
+ "surveyAdded": {
+ "message": "$1 tilføjet — dokumenterne i den er klar"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 tilføjet, men dokumenterne ligger ikke der — åbn ét fra Finder én gang."
+ },
+ "surveyOnlySeen": {
+ "message": "Kun dokumenter, der er åbnet i denne browser, kan findes sådan."
}
}
diff --git a/tray/webext/_locales/de/messages.json b/tray/webext/_locales/de/messages.json
index 723f070c..606818b6 100644
--- a/tray/webext/_locales/de/messages.json
+++ b/tray/webext/_locales/de/messages.json
@@ -442,5 +442,80 @@
"accessUnknownNote": {
"message": "Dieser Browser meldet es nicht. Wird beim Speichern weiterhin gefragt, prüfen Sie es unter chrome://extensions.",
"description": "REVIEW: explains a browser permission — a mistranslation costs the user their setup."
+ },
+ "viewLayout": {
+ "message": "Wie Dokumente angezeigt werden"
+ },
+ "viewIcons": {
+ "message": "Symbole"
+ },
+ "viewList": {
+ "message": "Liste"
+ },
+ "close": {
+ "message": "Schließen"
+ },
+ "setLangTitle": {
+ "message": "Sprache"
+ },
+ "setLangSub": {
+ "message": "In welcher Sprache diese Erweiterung spricht. Normalerweise folgt sie dem Browser."
+ },
+ "langAutomatic": {
+ "message": "Automatisch — dem Browser folgen"
+ },
+ "setLangNote": {
+ "message": "Name und Beschreibung der Erweiterung selbst stammen vom Browser und ändern sich nicht."
+ },
+ "aboutPromo": {
+ "message": "Neu bei Bento? Vorlagen, die Galerie und den KI-Bearbeitungsleitfaden gibt es auf $1 — oder gib dem Projekt einen Stern auf $2."
+ },
+ "setThemeTitle": {
+ "message": "Erscheinungsbild"
+ },
+ "setThemeSub": {
+ "message": "Die Einstellung des Browsers ist die Vorgabe, keine Pflicht."
+ },
+ "themeAuto": {
+ "message": "Wie der Browser"
+ },
+ "themeLight": {
+ "message": "Hell"
+ },
+ "themeDark": {
+ "message": "Dunkel"
+ },
+ "checking": {
+ "message": "Wird geprüft…"
+ },
+ "surveyTitle": {
+ "message": "Finden, wo Ihre Dokumente liegen"
+ },
+ "surveySub": {
+ "message": "Der Browser weiß, welche Bento-Dokumente Sie geöffnet haben. Er kann sagen, in welchen Ordnern sie liegen."
+ },
+ "surveyDeclined": {
+ "message": "Kein Problem — Sie können Ordner von Hand hinzufügen."
+ },
+ "surveyAllCovered": {
+ "message": "Alle $1 Dokumente, die dieser Browser gesehen hat, liegen bereits in einem hinzugefügten Ordner."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> Dokumente liegen außerhalb aller hinzugefügten Ordner. $2 sind bereits abgedeckt."
+ },
+ "surveyCovers": {
+ "message": "enthält $1"
+ },
+ "surveyAdd": {
+ "message": "Diesen Ordner hinzufügen…"
+ },
+ "surveyAdded": {
+ "message": "$1 hinzugefügt — die Dokumente darin sind bereit"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 hinzugefügt, aber die Dokumente liegen nicht darin — öffnen Sie eines einmal im Finder."
+ },
+ "surveyOnlySeen": {
+ "message": "So lassen sich nur Dokumente finden, die in diesem Browser geöffnet wurden."
}
}
diff --git a/tray/webext/_locales/en/messages.json b/tray/webext/_locales/en/messages.json
index 386b36e4..42be9d0d 100644
--- a/tray/webext/_locales/en/messages.json
+++ b/tray/webext/_locales/en/messages.json
@@ -452,5 +452,95 @@
"primeNote": {
"message": "The other two work too, but Chrome asks again — every restart for the first, and after a wait for the last.",
"description": "Explains the two unlabelled pills by consequence rather than by name."
+ },
+ "viewLayout": {
+ "message": "How documents are shown",
+ "description": "Tooltip on the icons/list segmented control as a whole."
+ },
+ "viewIcons": {
+ "message": "Icons",
+ "description": "Tooltip on the icon-grid button. REVIEW: the noun a file browser uses for thumbnail view."
+ },
+ "viewList": {
+ "message": "List",
+ "description": "Tooltip on the list button. REVIEW: the noun a file browser uses for list/detail view."
+ },
+ "close": {
+ "message": "Close",
+ "description": "Tooltip on the About dialog close button."
+ },
+ "setLangTitle": {
+ "message": "Language",
+ "description": "Settings section heading for the language picker."
+ },
+ "setLangSub": {
+ "message": "Which language this extension speaks. It normally follows the browser.",
+ "description": "Sub-line under the Language heading. REVIEW: \"the browser\" means Chrome/Edge itself."
+ },
+ "langAutomatic": {
+ "message": "Automatic — follow the browser",
+ "description": "First entry in the language picker — follow the browser rather than choosing."
+ },
+ "setLangNote": {
+ "message": "The extension's own name and description come from the browser and do not change.",
+ "description": "REVIEW: explains that the extension NAME on the chrome://extensions card is set by the browser and a choice here cannot change it."
+ },
+ "aboutPromo": {
+ "message": "New to Bento? Find templates, the gallery and the AI editing guide at $1 — or star it on $2.",
+ "description": "About dialog: invitation back to the project. $1 is a link to bento.page, $2 a link to GitHub. REVIEW: keep both placeholders — they are rendered as links."
+ },
+ "setThemeTitle": {
+ "message": "Appearance",
+ "description": "Settings section heading for light/dark."
+ },
+ "setThemeSub": {
+ "message": "The browser's setting is the default, not a requirement.",
+ "description": "Settings section blurb under Appearance."
+ },
+ "themeAuto": {
+ "message": "Match the browser",
+ "description": "Theme option: follow the browser/OS setting. REVIEW: the wording browsers use for \"system\" in this language."
+ },
+ "themeLight": {
+ "message": "Light",
+ "description": "Theme option: light."
+ },
+ "themeDark": {
+ "message": "Dark",
+ "description": "Theme option: dark."
+ },
+ "checking": {
+ "message": "Checking…",
+ "description": "Shown in the About version row while a manual update check is running."
+ },
+ "surveyTitle": {
+ "message": "Find where your documents are"
+ },
+ "surveySub": {
+ "message": "The browser knows which Bento documents you have opened. It can say which folders they are in."
+ },
+ "surveyDeclined": {
+ "message": "No problem — you can add folders by hand."
+ },
+ "surveyAllCovered": {
+ "message": "All $1 documents this browser has seen are already in a folder you added."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> documents are outside every folder you added. $2 are already covered."
+ },
+ "surveyCovers": {
+ "message": "covers $1"
+ },
+ "surveyAdd": {
+ "message": "Add this folder…"
+ },
+ "surveyAdded": {
+ "message": "Added $1 — the documents in it are ready"
+ },
+ "surveyAddedElsewhere": {
+ "message": "Added $1, but the documents are not in it — open one from Finder once."
+ },
+ "surveyOnlySeen": {
+ "message": "Only documents opened in this browser can be found this way."
}
}
diff --git a/tray/webext/_locales/es/messages.json b/tray/webext/_locales/es/messages.json
index 44dd41e4..01f3e0da 100644
--- a/tray/webext/_locales/es/messages.json
+++ b/tray/webext/_locales/es/messages.json
@@ -442,5 +442,80 @@
},
"primeNote": {
"message": "Las otras dos también funcionan, pero Chrome vuelve a preguntar — la primera en cada reinicio, la última tras una espera."
+ },
+ "viewLayout": {
+ "message": "Cómo se muestran los documentos"
+ },
+ "viewIcons": {
+ "message": "Iconos"
+ },
+ "viewList": {
+ "message": "Lista"
+ },
+ "close": {
+ "message": "Cerrar"
+ },
+ "setLangTitle": {
+ "message": "Idioma"
+ },
+ "setLangSub": {
+ "message": "En qué idioma habla esta extensión. Normalmente sigue al navegador."
+ },
+ "langAutomatic": {
+ "message": "Automático: seguir el navegador"
+ },
+ "setLangNote": {
+ "message": "El nombre y la descripción de la propia extensión vienen del navegador y no cambian."
+ },
+ "aboutPromo": {
+ "message": "¿Nuevo en Bento? Encuentra plantillas, la galería y la guía de edición con IA en $1, o dale una estrella en $2."
+ },
+ "setThemeTitle": {
+ "message": "Apariencia"
+ },
+ "setThemeSub": {
+ "message": "La configuración del navegador es el valor predeterminado, no una obligación."
+ },
+ "themeAuto": {
+ "message": "Igual que el navegador"
+ },
+ "themeLight": {
+ "message": "Claro"
+ },
+ "themeDark": {
+ "message": "Oscuro"
+ },
+ "checking": {
+ "message": "Comprobando…"
+ },
+ "surveyTitle": {
+ "message": "Encuentra dónde están tus documentos"
+ },
+ "surveySub": {
+ "message": "El navegador sabe qué documentos de Bento has abierto. Puede decir en qué carpetas están."
+ },
+ "surveyDeclined": {
+ "message": "Sin problema: puedes añadir carpetas a mano."
+ },
+ "surveyAllCovered": {
+ "message": "Los $1 documentos que este navegador ha visto ya están en una carpeta añadida."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> documentos están fuera de todas las carpetas añadidas. $2 ya están cubiertos."
+ },
+ "surveyCovers": {
+ "message": "cubre $1"
+ },
+ "surveyAdd": {
+ "message": "Añadir esta carpeta…"
+ },
+ "surveyAdded": {
+ "message": "$1 añadida: los documentos ya están listos"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 añadida, pero los documentos no están ahí: abre uno desde Finder una vez."
+ },
+ "surveyOnlySeen": {
+ "message": "Así solo se encuentran los documentos abiertos en este navegador."
}
}
diff --git a/tray/webext/_locales/fa/messages.json b/tray/webext/_locales/fa/messages.json
index c433afc0..2d7888c2 100644
--- a/tray/webext/_locales/fa/messages.json
+++ b/tray/webext/_locales/fa/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "دو گزینهٔ دیگر هم کار می‌کنند، اما Chrome دوباره می‌پرسد — برای اولی در هر راه‌اندازی دوباره، و برای آخری پس از مدتی انتظار."
+ },
+ "viewLayout": {
+ "message": "شیوهٔ نمایش سندها"
+ },
+ "viewIcons": {
+ "message": "آیکون‌ها"
+ },
+ "viewList": {
+ "message": "فهرست"
+ },
+ "close": {
+ "message": "بستن"
+ },
+ "setLangTitle": {
+ "message": "زبان"
+ },
+ "setLangSub": {
+ "message": "زبانی که این افزونه با آن سخن می‌گوید. معمولاً از مرورگر پیروی می‌کند."
+ },
+ "langAutomatic": {
+ "message": "خودکار — پیروی از مرورگر"
+ },
+ "setLangNote": {
+ "message": "نام و توضیح خودِ افزونه از مرورگر می‌آید و تغییر نمی‌کند."
+ },
+ "aboutPromo": {
+ "message": "تازه با Bento آشنا شده‌اید؟ الگوها، نگارخانه و راهنمای ویرایش با هوش مصنوعی در $1 هستند — یا در $2 ستاره بدهید."
+ },
+ "setThemeTitle": {
+ "message": "ظاهر"
+ },
+ "setThemeSub": {
+ "message": "تنظیم مرورگر پیش‌فرض است، نه الزام."
+ },
+ "themeAuto": {
+ "message": "مطابق مرورگر"
+ },
+ "themeLight": {
+ "message": "روشن"
+ },
+ "themeDark": {
+ "message": "تیره"
+ },
+ "checking": {
+ "message": "در حال بررسی…"
+ },
+ "surveyTitle": {
+ "message": "پیدا کنید سندهایتان کجا هستند"
+ },
+ "surveySub": {
+ "message": "مرورگر می‌داند چه سندهای Bento‌ای باز کرده‌اید و می‌تواند بگوید در کدام پوشه‌ها هستند."
+ },
+ "surveyDeclined": {
+ "message": "اشکالی ندارد — می‌توانید پوشه‌ها را دستی اضافه کنید."
+ },
+ "surveyAllCovered": {
+ "message": "هر $1 سندی که این مرورگر دیده، از پیش در پوشه‌ای است که افزوده‌اید."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> سند بیرون از همهٔ پوشه‌هایی است که افزوده‌اید. $2 سند از پیش پوشش داده شده‌اند."
+ },
+ "surveyCovers": {
+ "message": "شامل $1"
+ },
+ "surveyAdd": {
+ "message": "این پوشه را اضافه کن…"
+ },
+ "surveyAdded": {
+ "message": "$1 افزوده شد — سندهای درون آن آماده‌اند"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 افزوده شد، اما سندها در آن نیستند — یک بار یکی را از Finder باز کنید."
+ },
+ "surveyOnlySeen": {
+ "message": "با این روش تنها سندهایی پیدا می‌شوند که در این مرورگر باز شده‌اند."
}
}
diff --git a/tray/webext/_locales/fi/messages.json b/tray/webext/_locales/fi/messages.json
index 5d3209e6..967549ed 100644
--- a/tray/webext/_locales/fi/messages.json
+++ b/tray/webext/_locales/fi/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "Kaksi muutakin toimivat, mutta Chrome kysyy uudelleen — ensimmäisessä joka käynnistyksellä ja viimeisessä odotusajan jälkeen."
+ },
+ "viewLayout": {
+ "message": "Miten asiakirjat näytetään"
+ },
+ "viewIcons": {
+ "message": "Kuvakkeet"
+ },
+ "viewList": {
+ "message": "Luettelo"
+ },
+ "close": {
+ "message": "Sulje"
+ },
+ "setLangTitle": {
+ "message": "Kieli"
+ },
+ "setLangSub": {
+ "message": "Millä kielellä tämä laajennus puhuu. Yleensä se seuraa selainta."
+ },
+ "langAutomatic": {
+ "message": "Automaattinen — seuraa selainta"
+ },
+ "setLangNote": {
+ "message": "Laajennuksen oma nimi ja kuvaus tulevat selaimesta eivätkä muutu."
+ },
+ "aboutPromo": {
+ "message": "Bento uutta sinulle? Mallit, galleria ja tekoälymuokkausopas löytyvät osoitteesta $1 — tai anna tähti palvelussa $2."
+ },
+ "setThemeTitle": {
+ "message": "Ulkoasu"
+ },
+ "setThemeSub": {
+ "message": "Selaimen asetus on oletus, ei vaatimus."
+ },
+ "themeAuto": {
+ "message": "Seuraa selainta"
+ },
+ "themeLight": {
+ "message": "Vaalea"
+ },
+ "themeDark": {
+ "message": "Tumma"
+ },
+ "checking": {
+ "message": "Tarkistetaan…"
+ },
+ "surveyTitle": {
+ "message": "Etsi missä asiakirjasi ovat"
+ },
+ "surveySub": {
+ "message": "Selain tietää, mitkä Bento-asiakirjat olet avannut. Se voi kertoa, missä kansioissa ne ovat."
+ },
+ "surveyDeclined": {
+ "message": "Ei se mitään — voit lisätä kansiot käsin."
+ },
+ "surveyAllCovered": {
+ "message": "Kaikki $1 asiakirjaa, jotka tämä selain on nähnyt, ovat jo lisätyssä kansiossa."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> asiakirjaa on kaikkien lisättyjen kansioiden ulkopuolella. $2 on jo katettu."
+ },
+ "surveyCovers": {
+ "message": "kattaa $1"
+ },
+ "surveyAdd": {
+ "message": "Lisää tämä kansio…"
+ },
+ "surveyAdded": {
+ "message": "$1 lisätty — sen asiakirjat ovat valmiina"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 lisätty, mutta asiakirjat eivät ole siellä — avaa yksi Finderissa kerran."
+ },
+ "surveyOnlySeen": {
+ "message": "Näin löytyvät vain tässä selaimessa avatut asiakirjat."
}
}
diff --git a/tray/webext/_locales/fil/messages.json b/tray/webext/_locales/fil/messages.json
index 218217b5..a07cfb2c 100644
--- a/tray/webext/_locales/fil/messages.json
+++ b/tray/webext/_locales/fil/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "Gumagana rin ang dalawa pa, pero magtatanong muli ang Chrome — sa bawat restart para sa una, at pagkatapos ng paghihintay para sa huli."
+ },
+ "viewLayout": {
+ "message": "Kung paano ipinapakita ang mga dokumento"
+ },
+ "viewIcons": {
+ "message": "Mga icon"
+ },
+ "viewList": {
+ "message": "Listahan"
+ },
+ "close": {
+ "message": "Isara"
+ },
+ "setLangTitle": {
+ "message": "Wika"
+ },
+ "setLangSub": {
+ "message": "Kung anong wika ang ginagamit ng extension na ito. Karaniwang sumusunod ito sa browser."
+ },
+ "langAutomatic": {
+ "message": "Awtomatiko — sundan ang browser"
+ },
+ "setLangNote": {
+ "message": "Ang pangalan at paglalarawan mismo ng extension ay galing sa browser at hindi nagbabago."
+ },
+ "aboutPromo": {
+ "message": "Bago sa Bento? Makikita ang mga template, ang gallery at ang gabay sa pag-edit gamit ang AI sa $1 — o bigyan ito ng star sa $2."
+ },
+ "setThemeTitle": {
+ "message": "Anyo"
+ },
+ "setThemeSub": {
+ "message": "Ang setting ng browser ang default, hindi kinakailangan."
+ },
+ "themeAuto": {
+ "message": "Sundin ang browser"
+ },
+ "themeLight": {
+ "message": "Maliwanag"
+ },
+ "themeDark": {
+ "message": "Madilim"
+ },
+ "checking": {
+ "message": "Sinusuri…"
+ },
+ "surveyTitle": {
+ "message": "Hanapin kung nasaan ang mga dokumento mo"
+ },
+ "surveySub": {
+ "message": "Alam ng browser kung anong mga dokumentong Bento ang binuksan mo. Masasabi nito kung anong mga folder ang kinalalagyan."
+ },
+ "surveyDeclined": {
+ "message": "Walang problema — puwede mong idagdag nang manu-mano ang mga folder."
+ },
+ "surveyAllCovered": {
+ "message": "Lahat ng $1 dokumentong nakita ng browser na ito ay nasa folder nang naidagdag mo."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> dokumento ang wala sa alinmang folder na idinagdag mo. $2 ang saklaw na."
+ },
+ "surveyCovers": {
+ "message": "saklaw ang $1"
+ },
+ "surveyAdd": {
+ "message": "Idagdag ang folder na ito…"
+ },
+ "surveyAdded": {
+ "message": "Naidagdag ang $1 — handa na ang mga dokumento rito"
+ },
+ "surveyAddedElsewhere": {
+ "message": "Naidagdag ang $1, pero wala roon ang mga dokumento — magbukas ng isa mula sa Finder."
+ },
+ "surveyOnlySeen": {
+ "message": "Ang mga dokumentong binuksan sa browser na ito lang ang makikita sa paraang ito."
}
}
diff --git a/tray/webext/_locales/fr/messages.json b/tray/webext/_locales/fr/messages.json
index 2e0840b0..17db140b 100644
--- a/tray/webext/_locales/fr/messages.json
+++ b/tray/webext/_locales/fr/messages.json
@@ -442,5 +442,80 @@
},
"primeNote": {
"message": "Les deux autres fonctionnent aussi, mais Chrome redemandera — à chaque redémarrage pour la première, après une attente pour la dernière."
+ },
+ "viewLayout": {
+ "message": "Affichage des documents"
+ },
+ "viewIcons": {
+ "message": "Icônes"
+ },
+ "viewList": {
+ "message": "Liste"
+ },
+ "close": {
+ "message": "Fermer"
+ },
+ "setLangTitle": {
+ "message": "Langue"
+ },
+ "setLangSub": {
+ "message": "La langue dans laquelle cette extension s'exprime. Elle suit normalement le navigateur."
+ },
+ "langAutomatic": {
+ "message": "Automatique — suivre le navigateur"
+ },
+ "setLangNote": {
+ "message": "Le nom et la description de l'extension elle-même viennent du navigateur et ne changent pas."
+ },
+ "aboutPromo": {
+ "message": "Nouveau sur Bento ? Retrouvez les modèles, la galerie et le guide d’édition par IA sur $1 — ou mettez une étoile sur $2."
+ },
+ "setThemeTitle": {
+ "message": "Apparence"
+ },
+ "setThemeSub": {
+ "message": "Le réglage du navigateur est la valeur par défaut, pas une obligation."
+ },
+ "themeAuto": {
+ "message": "Comme le navigateur"
+ },
+ "themeLight": {
+ "message": "Clair"
+ },
+ "themeDark": {
+ "message": "Sombre"
+ },
+ "checking": {
+ "message": "Vérification…"
+ },
+ "surveyTitle": {
+ "message": "Trouver où sont vos documents"
+ },
+ "surveySub": {
+ "message": "Le navigateur sait quels documents Bento vous avez ouverts. Il peut dire dans quels dossiers ils se trouvent."
+ },
+ "surveyDeclined": {
+ "message": "Pas de souci — vous pouvez ajouter des dossiers à la main."
+ },
+ "surveyAllCovered": {
+ "message": "Les $1 documents que ce navigateur a vus sont déjà dans un dossier ajouté."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> documents sont hors de tous les dossiers ajoutés. $2 sont déjà couverts."
+ },
+ "surveyCovers": {
+ "message": "couvre $1"
+ },
+ "surveyAdd": {
+ "message": "Ajouter ce dossier…"
+ },
+ "surveyAdded": {
+ "message": "$1 ajouté — les documents qu’il contient sont prêts"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 ajouté, mais les documents n’y sont pas — ouvrez-en un depuis le Finder."
+ },
+ "surveyOnlySeen": {
+ "message": "Seuls les documents ouverts dans ce navigateur peuvent être trouvés ainsi."
}
}
diff --git a/tray/webext/_locales/he/messages.json b/tray/webext/_locales/he/messages.json
index f12dbe56..2258555e 100644
--- a/tray/webext/_locales/he/messages.json
+++ b/tray/webext/_locales/he/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "גם השתיים האחרות עובדות, אך Chrome ישאל שוב — בכל הפעלה מחדש עבור הראשונה, ולאחר המתנה עבור האחרונה."
+ },
+ "viewLayout": {
+ "message": "איך המסמכים מוצגים"
+ },
+ "viewIcons": {
+ "message": "סמלים"
+ },
+ "viewList": {
+ "message": "רשימה"
+ },
+ "close": {
+ "message": "סגירה"
+ },
+ "setLangTitle": {
+ "message": "שפה"
+ },
+ "setLangSub": {
+ "message": "באיזו שפה ההרחבה הזאת מדברת. בדרך כלל היא עוקבת אחרי הדפדפן."
+ },
+ "langAutomatic": {
+ "message": "אוטומטי — לעקוב אחרי הדפדפן"
+ },
+ "setLangNote": {
+ "message": "השם והתיאור של ההרחבה עצמה מגיעים מהדפדפן ואינם משתנים."
+ },
+ "aboutPromo": {
+ "message": "חדשים ב־Bento? תבניות, הגלריה ומדריך העריכה עם AI נמצאים ב־$1 — או תנו כוכב ב־$2."
+ },
+ "setThemeTitle": {
+ "message": "מראה"
+ },
+ "setThemeSub": {
+ "message": "ההגדרה של הדפדפן היא ברירת המחדל, לא חובה."
+ },
+ "themeAuto": {
+ "message": "לפי הדפדפן"
+ },
+ "themeLight": {
+ "message": "בהיר"
+ },
+ "themeDark": {
+ "message": "כהה"
+ },
+ "checking": {
+ "message": "בודק…"
+ },
+ "surveyTitle": {
+ "message": "מצאו איפה המסמכים שלכם"
+ },
+ "surveySub": {
+ "message": "הדפדפן יודע אילו מסמכי Bento פתחתם, והוא יכול לומר באילו תיקיות הם נמצאים."
+ },
+ "surveyDeclined": {
+ "message": "אין בעיה — אפשר להוסיף תיקיות ידנית."
+ },
+ "surveyAllCovered": {
+ "message": "כל $1 המסמכים שהדפדפן הזה ראה כבר נמצאים בתיקייה שהוספתם."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> מסמכים נמצאים מחוץ לכל התיקיות שהוספתם. $2 כבר מכוסים."
+ },
+ "surveyCovers": {
+ "message": "מכילה $1"
+ },
+ "surveyAdd": {
+ "message": "הוספת התיקייה הזאת…"
+ },
+ "surveyAdded": {
+ "message": "$1 נוספה — המסמכים בתוכה מוכנים"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 נוספה, אבל המסמכים אינם בה — פתחו אחד מ־Finder פעם אחת."
+ },
+ "surveyOnlySeen": {
+ "message": "כך אפשר למצוא רק מסמכים שנפתחו בדפדפן הזה."
}
}
diff --git a/tray/webext/_locales/hi/messages.json b/tray/webext/_locales/hi/messages.json
index bd07c90a..782eb3b0 100644
--- a/tray/webext/_locales/hi/messages.json
+++ b/tray/webext/_locales/hi/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "बाकी दोनों भी काम करते हैं, पर Chrome दोबारा पूछता है — पहले वाले के लिए हर बार पुनःआरंभ पर, और आख़िरी वाले के लिए कुछ प्रतीक्षा के बाद।"
+ },
+ "viewLayout": {
+ "message": "दस्तावेज़ कैसे दिखें"
+ },
+ "viewIcons": {
+ "message": "आइकन"
+ },
+ "viewList": {
+ "message": "सूची"
+ },
+ "close": {
+ "message": "बंद करें"
+ },
+ "setLangTitle": {
+ "message": "भाषा"
+ },
+ "setLangSub": {
+ "message": "यह एक्सटेंशन किस भाषा में बोलता है। सामान्यतः यह ब्राउज़र का अनुसरण करता है।"
+ },
+ "langAutomatic": {
+ "message": "स्वचालित — ब्राउज़र का अनुसरण करें"
+ },
+ "setLangNote": {
+ "message": "एक्सटेंशन का अपना नाम और विवरण ब्राउज़र से आते हैं और बदलते नहीं।"
+ },
+ "aboutPromo": {
+ "message": "Bento में नए हैं? टेम्पलेट, गैलरी और AI संपादन गाइड $1 पर मिलेंगे — या $2 पर स्टार दें।"
+ },
+ "setThemeTitle": {
+ "message": "रूप-रंग"
+ },
+ "setThemeSub": {
+ "message": "ब्राउज़र की सेटिंग डिफ़ॉल्ट है, अनिवार्य नहीं।"
+ },
+ "themeAuto": {
+ "message": "ब्राउज़र के अनुसार"
+ },
+ "themeLight": {
+ "message": "हल्का"
+ },
+ "themeDark": {
+ "message": "गहरा"
+ },
+ "checking": {
+ "message": "जाँच हो रही है…"
+ },
+ "surveyTitle": {
+ "message": "पता लगाएँ कि आपके दस्तावेज़ कहाँ हैं"
+ },
+ "surveySub": {
+ "message": "ब्राउज़र जानता है कि आपने कौन-से Bento दस्तावेज़ खोले हैं। वह बता सकता है कि वे किन फ़ोल्डरों में हैं।"
+ },
+ "surveyDeclined": {
+ "message": "कोई बात नहीं — आप फ़ोल्डर हाथ से भी जोड़ सकते हैं।"
+ },
+ "surveyAllCovered": {
+ "message": "इस ब्राउज़र ने जो $1 दस्तावेज़ देखे हैं, वे सभी पहले से जोड़े गए फ़ोल्डर में हैं।"
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> दस्तावेज़ आपके जोड़े हर फ़ोल्डर से बाहर हैं। $2 पहले से शामिल हैं।"
+ },
+ "surveyCovers": {
+ "message": "$1 शामिल"
+ },
+ "surveyAdd": {
+ "message": "यह फ़ोल्डर जोड़ें…"
+ },
+ "surveyAdded": {
+ "message": "$1 जोड़ा गया — इसके दस्तावेज़ तैयार हैं"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 जोड़ा गया, पर दस्तावेज़ उसमें नहीं हैं — Finder से एक बार कोई एक खोलें।"
+ },
+ "surveyOnlySeen": {
+ "message": "इस तरह केवल वही दस्तावेज़ मिलते हैं जो इस ब्राउज़र में खोले गए हों।"
}
}
diff --git a/tray/webext/_locales/id/messages.json b/tray/webext/_locales/id/messages.json
index 8bd5bb06..7c8dd3e8 100644
--- a/tray/webext/_locales/id/messages.json
+++ b/tray/webext/_locales/id/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "Dua lainnya juga berfungsi, tetapi Chrome akan bertanya lagi — setiap kali mulai ulang untuk yang pertama, dan setelah menunggu untuk yang terakhir."
+ },
+ "viewLayout": {
+ "message": "Cara dokumen ditampilkan"
+ },
+ "viewIcons": {
+ "message": "Ikon"
+ },
+ "viewList": {
+ "message": "Daftar"
+ },
+ "close": {
+ "message": "Tutup"
+ },
+ "setLangTitle": {
+ "message": "Bahasa"
+ },
+ "setLangSub": {
+ "message": "Bahasa yang digunakan ekstensi ini. Biasanya mengikuti peramban."
+ },
+ "langAutomatic": {
+ "message": "Otomatis — ikuti peramban"
+ },
+ "setLangNote": {
+ "message": "Nama dan deskripsi ekstensi ini sendiri berasal dari peramban dan tidak berubah."
+ },
+ "aboutPromo": {
+ "message": "Baru di Bento? Temukan templat, galeri, dan panduan penyuntingan AI di $1 — atau beri bintang di $2."
+ },
+ "setThemeTitle": {
+ "message": "Tampilan"
+ },
+ "setThemeSub": {
+ "message": "Setelan peramban adalah default, bukan keharusan."
+ },
+ "themeAuto": {
+ "message": "Ikuti peramban"
+ },
+ "themeLight": {
+ "message": "Terang"
+ },
+ "themeDark": {
+ "message": "Gelap"
+ },
+ "checking": {
+ "message": "Memeriksa…"
+ },
+ "surveyTitle": {
+ "message": "Temukan di mana dokumen Anda berada"
+ },
+ "surveySub": {
+ "message": "Peramban tahu dokumen Bento mana yang pernah Anda buka. Ia bisa menyebut folder tempatnya."
+ },
+ "surveyDeclined": {
+ "message": "Tidak masalah — Anda bisa menambahkan folder secara manual."
+ },
+ "surveyAllCovered": {
+ "message": "Semua $1 dokumen yang pernah dilihat peramban ini sudah ada di folder yang Anda tambahkan."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> dokumen berada di luar semua folder yang Anda tambahkan. $2 sudah tercakup."
+ },
+ "surveyCovers": {
+ "message": "mencakup $1"
+ },
+ "surveyAdd": {
+ "message": "Tambahkan folder ini…"
+ },
+ "surveyAdded": {
+ "message": "$1 ditambahkan — dokumen di dalamnya siap"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 ditambahkan, tetapi dokumennya tidak di sana — buka satu lewat Finder sekali."
+ },
+ "surveyOnlySeen": {
+ "message": "Cara ini hanya menemukan dokumen yang pernah dibuka di peramban ini."
}
}
diff --git a/tray/webext/_locales/it/messages.json b/tray/webext/_locales/it/messages.json
index ea1f458d..a88fdcd2 100644
--- a/tray/webext/_locales/it/messages.json
+++ b/tray/webext/_locales/it/messages.json
@@ -442,5 +442,80 @@
},
"primeNote": {
"message": "Anche le altre due funzionano, ma Chrome chiederà di nuovo — la prima a ogni riavvio, l’ultima dopo un’attesa."
+ },
+ "viewLayout": {
+ "message": "Come vengono mostrati i documenti"
+ },
+ "viewIcons": {
+ "message": "Icone"
+ },
+ "viewList": {
+ "message": "Elenco"
+ },
+ "close": {
+ "message": "Chiudi"
+ },
+ "setLangTitle": {
+ "message": "Lingua"
+ },
+ "setLangSub": {
+ "message": "In quale lingua parla questa estensione. Di norma segue il browser."
+ },
+ "langAutomatic": {
+ "message": "Automatico — segui il browser"
+ },
+ "setLangNote": {
+ "message": "Il nome e la descrizione dell'estensione stessa vengono dal browser e non cambiano."
+ },
+ "aboutPromo": {
+ "message": "Nuovo su Bento? Trovi modelli, la galleria e la guida all’editing con l’IA su $1 — o lascia una stella su $2."
+ },
+ "setThemeTitle": {
+ "message": "Aspetto"
+ },
+ "setThemeSub": {
+ "message": "L’impostazione del browser è il valore predefinito, non un obbligo."
+ },
+ "themeAuto": {
+ "message": "Come il browser"
+ },
+ "themeLight": {
+ "message": "Chiaro"
+ },
+ "themeDark": {
+ "message": "Scuro"
+ },
+ "checking": {
+ "message": "Controllo…"
+ },
+ "surveyTitle": {
+ "message": "Trova dove sono i tuoi documenti"
+ },
+ "surveySub": {
+ "message": "Il browser sa quali documenti Bento hai aperto. Può dire in quali cartelle si trovano."
+ },
+ "surveyDeclined": {
+ "message": "Nessun problema: puoi aggiungere le cartelle a mano."
+ },
+ "surveyAllCovered": {
+ "message": "Tutti i $1 documenti visti da questo browser sono già in una cartella aggiunta."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> documenti sono fuori da ogni cartella aggiunta. $2 sono già coperti."
+ },
+ "surveyCovers": {
+ "message": "contiene $1"
+ },
+ "surveyAdd": {
+ "message": "Aggiungi questa cartella…"
+ },
+ "surveyAdded": {
+ "message": "$1 aggiunta — i documenti al suo interno sono pronti"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 aggiunta, ma i documenti non sono lì: aprine uno dal Finder una volta."
+ },
+ "surveyOnlySeen": {
+ "message": "Così si trovano solo i documenti aperti in questo browser."
}
}
diff --git a/tray/webext/_locales/ja/messages.json b/tray/webext/_locales/ja/messages.json
index 95252f61..dab05d4c 100644
--- a/tray/webext/_locales/ja/messages.json
+++ b/tray/webext/_locales/ja/messages.json
@@ -442,5 +442,80 @@
},
"primeNote": {
"message": "他の 2 つでも動きますが、Chrome は再び尋ねます — 1 つ目は再起動のたびに、最後のものはしばらく待ってから。"
+ },
+ "viewLayout": {
+ "message": "ドキュメントの表示方法"
+ },
+ "viewIcons": {
+ "message": "アイコン"
+ },
+ "viewList": {
+ "message": "リスト"
+ },
+ "close": {
+ "message": "閉じる"
+ },
+ "setLangTitle": {
+ "message": "言語"
+ },
+ "setLangSub": {
+ "message": "この拡張機能が話す言語です。通常はブラウザーに従います。"
+ },
+ "langAutomatic": {
+ "message": "自動 — ブラウザーに従う"
+ },
+ "setLangNote": {
+ "message": "拡張機能自体の名前と説明はブラウザーから来るため、変わりません。"
+ },
+ "aboutPromo": {
+ "message": "Bento は初めてですか?テンプレート、ギャラリー、AI 編集ガイドは $1 にあります。$2 でスターを付けることもできます。"
+ },
+ "setThemeTitle": {
+ "message": "外観"
+ },
+ "setThemeSub": {
+ "message": "ブラウザーの設定は既定値であって、強制ではありません。"
+ },
+ "themeAuto": {
+ "message": "ブラウザーに合わせる"
+ },
+ "themeLight": {
+ "message": "ライト"
+ },
+ "themeDark": {
+ "message": "ダーク"
+ },
+ "checking": {
+ "message": "確認中…"
+ },
+ "surveyTitle": {
+ "message": "ドキュメントの場所を探す"
+ },
+ "surveySub": {
+ "message": "ブラウザーは、あなたが開いた Bento ドキュメントを把握しています。どのフォルダーにあるかを教えられます。"
+ },
+ "surveyDeclined": {
+ "message": "問題ありません。フォルダーは手動でも追加できます。"
+ },
+ "surveyAllCovered": {
+ "message": "このブラウザーが見た $1 件のドキュメントは、すべて追加済みのフォルダーにあります。"
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> 件のドキュメントが、追加したどのフォルダーにもありません。$2 件は対象済みです。"
+ },
+ "surveyCovers": {
+ "message": "$1 件を含む"
+ },
+ "surveyAdd": {
+ "message": "このフォルダーを追加…"
+ },
+ "surveyAdded": {
+ "message": "$1 を追加しました。中のドキュメントは利用できます"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 を追加しましたが、ドキュメントはその中にありません。Finder から一度開いてください。"
+ },
+ "surveyOnlySeen": {
+ "message": "この方法で見つかるのは、このブラウザーで開いたドキュメントだけです。"
}
}
diff --git a/tray/webext/_locales/ko/messages.json b/tray/webext/_locales/ko/messages.json
index 38dc0d45..2e100504 100644
--- a/tray/webext/_locales/ko/messages.json
+++ b/tray/webext/_locales/ko/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "나머지 둘도 동작하지만 Chrome이 다시 묻습니다 — 첫 번째는 재시작할 때마다, 마지막은 일정 시간이 지난 뒤에."
+ },
+ "viewLayout": {
+ "message": "문서 표시 방식"
+ },
+ "viewIcons": {
+ "message": "아이콘"
+ },
+ "viewList": {
+ "message": "목록"
+ },
+ "close": {
+ "message": "닫기"
+ },
+ "setLangTitle": {
+ "message": "언어"
+ },
+ "setLangSub": {
+ "message": "이 확장 프로그램이 사용하는 언어입니다. 보통은 브라우저를 따릅니다."
+ },
+ "langAutomatic": {
+ "message": "자동 — 브라우저를 따름"
+ },
+ "setLangNote": {
+ "message": "확장 프로그램 자체의 이름과 설명은 브라우저에서 오므로 바뀌지 않습니다."
+ },
+ "aboutPromo": {
+ "message": "Bento가 처음이신가요? 템플릿과 갤러리, AI 편집 가이드는 $1에 있습니다. $2에서 별을 눌러 주셔도 좋습니다."
+ },
+ "setThemeTitle": {
+ "message": "모양"
+ },
+ "setThemeSub": {
+ "message": "브라우저 설정은 기본값일 뿐, 강제 사항은 아닙니다."
+ },
+ "themeAuto": {
+ "message": "브라우저 설정 따르기"
+ },
+ "themeLight": {
+ "message": "밝게"
+ },
+ "themeDark": {
+ "message": "어둡게"
+ },
+ "checking": {
+ "message": "확인 중…"
+ },
+ "surveyTitle": {
+ "message": "문서가 어디에 있는지 찾기"
+ },
+ "surveySub": {
+ "message": "브라우저는 당신이 연 Bento 문서를 알고 있습니다. 어떤 폴더에 있는지 알려줄 수 있습니다."
+ },
+ "surveyDeclined": {
+ "message": "괜찮습니다. 폴더는 직접 추가할 수도 있습니다."
+ },
+ "surveyAllCovered": {
+ "message": "이 브라우저가 본 $1개의 문서는 모두 이미 추가한 폴더 안에 있습니다."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b>개의 문서가 추가한 어떤 폴더에도 없습니다. $2개는 이미 포함되어 있습니다."
+ },
+ "surveyCovers": {
+ "message": "$1개 포함"
+ },
+ "surveyAdd": {
+ "message": "이 폴더 추가…"
+ },
+ "surveyAdded": {
+ "message": "$1 추가됨 — 안의 문서를 쓸 수 있습니다"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1을(를) 추가했지만 문서는 그 안에 없습니다 — Finder에서 한 번 열어 주세요."
+ },
+ "surveyOnlySeen": {
+ "message": "이 방법으로는 이 브라우저에서 연 문서만 찾을 수 있습니다."
}
}
diff --git a/tray/webext/_locales/ms/messages.json b/tray/webext/_locales/ms/messages.json
index 9f424232..fabaebfa 100644
--- a/tray/webext/_locales/ms/messages.json
+++ b/tray/webext/_locales/ms/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "Dua yang lain juga berfungsi, tetapi Chrome akan bertanya lagi — setiap kali mula semula bagi yang pertama, dan selepas menunggu bagi yang terakhir."
+ },
+ "viewLayout": {
+ "message": "Cara dokumen dipaparkan"
+ },
+ "viewIcons": {
+ "message": "Ikon"
+ },
+ "viewList": {
+ "message": "Senarai"
+ },
+ "close": {
+ "message": "Tutup"
+ },
+ "setLangTitle": {
+ "message": "Bahasa"
+ },
+ "setLangSub": {
+ "message": "Bahasa yang digunakan sambungan ini. Biasanya ia mengikut pelayar."
+ },
+ "langAutomatic": {
+ "message": "Automatik — ikut pelayar"
+ },
+ "setLangNote": {
+ "message": "Nama dan perihal sambungan itu sendiri datang daripada pelayar dan tidak berubah."
+ },
+ "aboutPromo": {
+ "message": "Baharu dengan Bento? Cari templat, galeri dan panduan penyuntingan AI di $1 — atau beri bintang di $2."
+ },
+ "setThemeTitle": {
+ "message": "Penampilan"
+ },
+ "setThemeSub": {
+ "message": "Tetapan pelayar ialah lalai, bukan kewajipan."
+ },
+ "themeAuto": {
+ "message": "Ikut pelayar"
+ },
+ "themeLight": {
+ "message": "Cerah"
+ },
+ "themeDark": {
+ "message": "Gelap"
+ },
+ "checking": {
+ "message": "Memeriksa…"
+ },
+ "surveyTitle": {
+ "message": "Cari di mana dokumen anda berada"
+ },
+ "surveySub": {
+ "message": "Pelayar tahu dokumen Bento yang pernah anda buka. Ia boleh menyebut folder tempatnya."
+ },
+ "surveyDeclined": {
+ "message": "Tidak mengapa — anda boleh menambah folder secara manual."
+ },
+ "surveyAllCovered": {
+ "message": "Kesemua $1 dokumen yang pernah dilihat pelayar ini sudah berada dalam folder yang anda tambah."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> dokumen berada di luar semua folder yang anda tambah. $2 sudah dilindungi."
+ },
+ "surveyCovers": {
+ "message": "merangkumi $1"
+ },
+ "surveyAdd": {
+ "message": "Tambah folder ini…"
+ },
+ "surveyAdded": {
+ "message": "$1 ditambah — dokumen di dalamnya sedia"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 ditambah, tetapi dokumennya tiada di situ — buka satu melalui Finder sekali."
+ },
+ "surveyOnlySeen": {
+ "message": "Cara ini hanya menemui dokumen yang pernah dibuka dalam pelayar ini."
}
}
diff --git a/tray/webext/_locales/nb/messages.json b/tray/webext/_locales/nb/messages.json
index 74986b46..37e5d9c8 100644
--- a/tray/webext/_locales/nb/messages.json
+++ b/tray/webext/_locales/nb/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "De to andre virker også, men Chrome spør igjen — ved hver omstart for det første, og etter en ventetid for det siste."
+ },
+ "viewLayout": {
+ "message": "Hvordan dokumenter vises"
+ },
+ "viewIcons": {
+ "message": "Ikoner"
+ },
+ "viewList": {
+ "message": "Liste"
+ },
+ "close": {
+ "message": "Lukk"
+ },
+ "setLangTitle": {
+ "message": "Språk"
+ },
+ "setLangSub": {
+ "message": "Hvilket språk denne utvidelsen snakker. Normalt følger den nettleseren."
+ },
+ "langAutomatic": {
+ "message": "Automatisk — følg nettleseren"
+ },
+ "setLangNote": {
+ "message": "Utvidelsens eget navn og beskrivelse kommer fra nettleseren og endrer seg ikke."
+ },
+ "aboutPromo": {
+ "message": "Ny med Bento? Finn maler, galleriet og AI-redigeringsguiden på $1 — eller gi den en stjerne på $2."
+ },
+ "setThemeTitle": {
+ "message": "Utseende"
+ },
+ "setThemeSub": {
+ "message": "Nettleserens innstilling er standarden, ikke et krav."
+ },
+ "themeAuto": {
+ "message": "Følg nettleseren"
+ },
+ "themeLight": {
+ "message": "Lyst"
+ },
+ "themeDark": {
+ "message": "Mørkt"
+ },
+ "checking": {
+ "message": "Sjekker…"
+ },
+ "surveyTitle": {
+ "message": "Finn hvor dokumentene dine er"
+ },
+ "surveySub": {
+ "message": "Nettleseren vet hvilke Bento-dokumenter du har åpnet. Den kan si hvilke mapper de ligger i."
+ },
+ "surveyDeclined": {
+ "message": "Helt greit — du kan legge til mapper for hånd."
+ },
+ "surveyAllCovered": {
+ "message": "Alle $1 dokumenter denne nettleseren har sett ligger allerede i en lagt til mappe."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> dokumenter ligger utenfor alle mappene du har lagt til. $2 er allerede dekket."
+ },
+ "surveyCovers": {
+ "message": "dekker $1"
+ },
+ "surveyAdd": {
+ "message": "Legg til denne mappen…"
+ },
+ "surveyAdded": {
+ "message": "$1 lagt til — dokumentene i den er klare"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 lagt til, men dokumentene ligger ikke der — åpne ett fra Finder én gang."
+ },
+ "surveyOnlySeen": {
+ "message": "Bare dokumenter som er åpnet i denne nettleseren kan finnes slik."
}
}
diff --git a/tray/webext/_locales/nl/messages.json b/tray/webext/_locales/nl/messages.json
index 46a2c3ec..9aa22976 100644
--- a/tray/webext/_locales/nl/messages.json
+++ b/tray/webext/_locales/nl/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "De andere twee werken ook, maar dan vraagt Chrome het opnieuw — bij de eerste elke herstart, bij de laatste na een wachttijd."
+ },
+ "viewLayout": {
+ "message": "Hoe documenten worden getoond"
+ },
+ "viewIcons": {
+ "message": "Pictogrammen"
+ },
+ "viewList": {
+ "message": "Lijst"
+ },
+ "close": {
+ "message": "Sluiten"
+ },
+ "setLangTitle": {
+ "message": "Taal"
+ },
+ "setLangSub": {
+ "message": "Welke taal deze extensie spreekt. Normaal volgt ze de browser."
+ },
+ "langAutomatic": {
+ "message": "Automatisch — de browser volgen"
+ },
+ "setLangNote": {
+ "message": "De naam en beschrijving van de extensie zelf komen van de browser en veranderen niet."
+ },
+ "aboutPromo": {
+ "message": "Nieuw bij Bento? Sjablonen, de galerie en de AI-bewerkingsgids vind je op $1 — of geef het een ster op $2."
+ },
+ "setThemeTitle": {
+ "message": "Weergave"
+ },
+ "setThemeSub": {
+ "message": "De instelling van de browser is de standaard, geen vereiste."
+ },
+ "themeAuto": {
+ "message": "Zoals de browser"
+ },
+ "themeLight": {
+ "message": "Licht"
+ },
+ "themeDark": {
+ "message": "Donker"
+ },
+ "checking": {
+ "message": "Controleren…"
+ },
+ "surveyTitle": {
+ "message": "Vind waar je documenten staan"
+ },
+ "surveySub": {
+ "message": "De browser weet welke Bento-documenten je hebt geopend. Hij kan zeggen in welke mappen ze staan."
+ },
+ "surveyDeclined": {
+ "message": "Geen probleem — je kunt mappen ook met de hand toevoegen."
+ },
+ "surveyAllCovered": {
+ "message": "Alle $1 documenten die deze browser heeft gezien staan al in een toegevoegde map."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> documenten staan buiten elke toegevoegde map. $2 zijn al gedekt."
+ },
+ "surveyCovers": {
+ "message": "dekt $1"
+ },
+ "surveyAdd": {
+ "message": "Deze map toevoegen…"
+ },
+ "surveyAdded": {
+ "message": "$1 toegevoegd — de documenten erin zijn klaar"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 toegevoegd, maar de documenten staan er niet in — open er één keer een vanuit Finder."
+ },
+ "surveyOnlySeen": {
+ "message": "Zo worden alleen documenten gevonden die in deze browser zijn geopend."
}
}
diff --git a/tray/webext/_locales/pl/messages.json b/tray/webext/_locales/pl/messages.json
index 7c55e975..8c1e6185 100644
--- a/tray/webext/_locales/pl/messages.json
+++ b/tray/webext/_locales/pl/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "Pozostałe dwie też działają, ale Chrome zapyta znowu — pierwsza przy każdym uruchomieniu, ostatnia po odczekaniu."
+ },
+ "viewLayout": {
+ "message": "Sposób wyświetlania dokumentów"
+ },
+ "viewIcons": {
+ "message": "Ikony"
+ },
+ "viewList": {
+ "message": "Lista"
+ },
+ "close": {
+ "message": "Zamknij"
+ },
+ "setLangTitle": {
+ "message": "Język"
+ },
+ "setLangSub": {
+ "message": "W jakim języku mówi to rozszerzenie. Zwykle podąża za przeglądarką."
+ },
+ "langAutomatic": {
+ "message": "Automatycznie — podążaj za przeglądarką"
+ },
+ "setLangNote": {
+ "message": "Nazwa i opis samego rozszerzenia pochodzą z przeglądarki i się nie zmieniają."
+ },
+ "aboutPromo": {
+ "message": "Pierwszy raz w Bento? Szablony, galerię i przewodnik po edycji z AI znajdziesz na $1 — albo daj gwiazdkę na $2."
+ },
+ "setThemeTitle": {
+ "message": "Wygląd"
+ },
+ "setThemeSub": {
+ "message": "Ustawienie przeglądarki jest domyślne, a nie obowiązkowe."
+ },
+ "themeAuto": {
+ "message": "Tak jak przeglądarka"
+ },
+ "themeLight": {
+ "message": "Jasny"
+ },
+ "themeDark": {
+ "message": "Ciemny"
+ },
+ "checking": {
+ "message": "Sprawdzanie…"
+ },
+ "surveyTitle": {
+ "message": "Znajdź, gdzie są Twoje dokumenty"
+ },
+ "surveySub": {
+ "message": "Przeglądarka wie, które dokumenty Bento otwierałeś. Może powiedzieć, w których folderach są."
+ },
+ "surveyDeclined": {
+ "message": "Nic nie szkodzi — foldery możesz dodać ręcznie."
+ },
+ "surveyAllCovered": {
+ "message": "Wszystkie $1 dokumentów widzianych przez tę przeglądarkę są już w dodanym folderze."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> dokumentów jest poza wszystkimi dodanymi folderami. $2 są już objęte."
+ },
+ "surveyCovers": {
+ "message": "obejmuje $1"
+ },
+ "surveyAdd": {
+ "message": "Dodaj ten folder…"
+ },
+ "surveyAdded": {
+ "message": "Dodano $1 — dokumenty w nim są gotowe"
+ },
+ "surveyAddedElsewhere": {
+ "message": "Dodano $1, ale dokumentów tam nie ma — otwórz jeden z Findera."
+ },
+ "surveyOnlySeen": {
+ "message": "W ten sposób znajdziesz tylko dokumenty otwarte w tej przeglądarce."
}
}
diff --git a/tray/webext/_locales/pt_BR/messages.json b/tray/webext/_locales/pt_BR/messages.json
index 8d5a5b7a..3cac8400 100644
--- a/tray/webext/_locales/pt_BR/messages.json
+++ b/tray/webext/_locales/pt_BR/messages.json
@@ -442,5 +442,80 @@
},
"primeNote": {
"message": "As outras duas também funcionam, mas o Chrome pergunta de novo — a primeira a cada reinício, a última depois de uma espera."
+ },
+ "viewLayout": {
+ "message": "Como os documentos são exibidos"
+ },
+ "viewIcons": {
+ "message": "Ícones"
+ },
+ "viewList": {
+ "message": "Lista"
+ },
+ "close": {
+ "message": "Fechar"
+ },
+ "setLangTitle": {
+ "message": "Idioma"
+ },
+ "setLangSub": {
+ "message": "Em qual idioma esta extensão fala. Normalmente segue o navegador."
+ },
+ "langAutomatic": {
+ "message": "Automático — seguir o navegador"
+ },
+ "setLangNote": {
+ "message": "O nome e a descrição da própria extensão vêm do navegador e não mudam."
+ },
+ "aboutPromo": {
+ "message": "Novo no Bento? Encontre modelos, a galeria e o guia de edição com IA em $1 — ou dê uma estrela no $2."
+ },
+ "setThemeTitle": {
+ "message": "Aparência"
+ },
+ "setThemeSub": {
+ "message": "A configuração do navegador é o padrão, não uma exigência."
+ },
+ "themeAuto": {
+ "message": "Igual ao navegador"
+ },
+ "themeLight": {
+ "message": "Claro"
+ },
+ "themeDark": {
+ "message": "Escuro"
+ },
+ "checking": {
+ "message": "Verificando…"
+ },
+ "surveyTitle": {
+ "message": "Descubra onde estão seus documentos"
+ },
+ "surveySub": {
+ "message": "O navegador sabe quais documentos Bento você abriu. Ele pode dizer em quais pastas estão."
+ },
+ "surveyDeclined": {
+ "message": "Sem problema — você pode adicionar pastas manualmente."
+ },
+ "surveyAllCovered": {
+ "message": "Todos os $1 documentos que este navegador viu já estão em uma pasta adicionada."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> documentos estão fora de todas as pastas adicionadas. $2 já estão cobertos."
+ },
+ "surveyCovers": {
+ "message": "abrange $1"
+ },
+ "surveyAdd": {
+ "message": "Adicionar esta pasta…"
+ },
+ "surveyAdded": {
+ "message": "$1 adicionada — os documentos nela estão prontos"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 adicionada, mas os documentos não estão lá — abra um pelo Finder uma vez."
+ },
+ "surveyOnlySeen": {
+ "message": "Só é possível encontrar assim os documentos abertos neste navegador."
}
}
diff --git a/tray/webext/_locales/ru/messages.json b/tray/webext/_locales/ru/messages.json
index 830792c0..152769da 100644
--- a/tray/webext/_locales/ru/messages.json
+++ b/tray/webext/_locales/ru/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "Два других тоже работают, но Chrome спросит снова — первый при каждом перезапуске, последний после ожидания."
+ },
+ "viewLayout": {
+ "message": "Как показаны документы"
+ },
+ "viewIcons": {
+ "message": "Значки"
+ },
+ "viewList": {
+ "message": "Список"
+ },
+ "close": {
+ "message": "Закрыть"
+ },
+ "setLangTitle": {
+ "message": "Язык"
+ },
+ "setLangSub": {
+ "message": "На каком языке говорит это расширение. Обычно следует за браузером."
+ },
+ "langAutomatic": {
+ "message": "Автоматически — следовать за браузером"
+ },
+ "setLangNote": {
+ "message": "Название и описание самого расширения берутся из браузера и не меняются."
+ },
+ "aboutPromo": {
+ "message": "Впервые в Bento? Шаблоны, галерея и руководство по ИИ-редактированию — на $1, а звезду можно поставить на $2."
+ },
+ "setThemeTitle": {
+ "message": "Оформление"
+ },
+ "setThemeSub": {
+ "message": "Настройка браузера — значение по умолчанию, а не требование."
+ },
+ "themeAuto": {
+ "message": "Как в браузере"
+ },
+ "themeLight": {
+ "message": "Светлое"
+ },
+ "themeDark": {
+ "message": "Тёмное"
+ },
+ "checking": {
+ "message": "Проверка…"
+ },
+ "surveyTitle": {
+ "message": "Найдите, где ваши документы"
+ },
+ "surveySub": {
+ "message": "Браузер знает, какие документы Bento вы открывали. Он может сказать, в каких папках они лежат."
+ },
+ "surveyDeclined": {
+ "message": "Ничего страшного — папки можно добавить вручную."
+ },
+ "surveyAllCovered": {
+ "message": "Все $1 документов, которые видел этот браузер, уже в добавленной папке."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> документов вне всех добавленных папок. $2 уже охвачены."
+ },
+ "surveyCovers": {
+ "message": "охватывает $1"
+ },
+ "surveyAdd": {
+ "message": "Добавить эту папку…"
+ },
+ "surveyAdded": {
+ "message": "$1 добавлена — документы в ней готовы"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 добавлена, но документов в ней нет — откройте один из Finder."
+ },
+ "surveyOnlySeen": {
+ "message": "Так находятся только документы, открытые в этом браузере."
}
}
diff --git a/tray/webext/_locales/sv/messages.json b/tray/webext/_locales/sv/messages.json
index a1f86ac9..fe7abc6c 100644
--- a/tray/webext/_locales/sv/messages.json
+++ b/tray/webext/_locales/sv/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "De andra två fungerar också, men Chrome frågar igen — vid varje omstart för det första, och efter en väntan för det sista."
+ },
+ "viewLayout": {
+ "message": "Hur dokument visas"
+ },
+ "viewIcons": {
+ "message": "Ikoner"
+ },
+ "viewList": {
+ "message": "Lista"
+ },
+ "close": {
+ "message": "Stäng"
+ },
+ "setLangTitle": {
+ "message": "Språk"
+ },
+ "setLangSub": {
+ "message": "Vilket språk det här tillägget talar. Normalt följer det webbläsaren."
+ },
+ "langAutomatic": {
+ "message": "Automatiskt — följ webbläsaren"
+ },
+ "setLangNote": {
+ "message": "Tilläggets eget namn och beskrivning kommer från webbläsaren och ändras inte."
+ },
+ "aboutPromo": {
+ "message": "Ny med Bento? Hitta mallar, galleriet och AI-redigeringsguiden på $1 — eller ge den en stjärna på $2."
+ },
+ "setThemeTitle": {
+ "message": "Utseende"
+ },
+ "setThemeSub": {
+ "message": "Webbläsarens inställning är standard, inte ett krav."
+ },
+ "themeAuto": {
+ "message": "Följ webbläsaren"
+ },
+ "themeLight": {
+ "message": "Ljust"
+ },
+ "themeDark": {
+ "message": "Mörkt"
+ },
+ "checking": {
+ "message": "Kontrollerar…"
+ },
+ "surveyTitle": {
+ "message": "Hitta var dina dokument finns"
+ },
+ "surveySub": {
+ "message": "Webbläsaren vet vilka Bento-dokument du har öppnat. Den kan säga vilka mappar de ligger i."
+ },
+ "surveyDeclined": {
+ "message": "Ingen fara — du kan lägga till mappar för hand."
+ },
+ "surveyAllCovered": {
+ "message": "Alla $1 dokument som den här webbläsaren har sett ligger redan i en tillagd mapp."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> dokument ligger utanför alla tillagda mappar. $2 är redan täckta."
+ },
+ "surveyCovers": {
+ "message": "täcker $1"
+ },
+ "surveyAdd": {
+ "message": "Lägg till den här mappen…"
+ },
+ "surveyAdded": {
+ "message": "$1 tillagd — dokumenten i den är redo"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 tillagd, men dokumenten ligger inte där — öppna ett från Finder en gång."
+ },
+ "surveyOnlySeen": {
+ "message": "Bara dokument som öppnats i den här webbläsaren kan hittas så här."
}
}
diff --git a/tray/webext/_locales/th/messages.json b/tray/webext/_locales/th/messages.json
index b8449879..7608ee64 100644
--- a/tray/webext/_locales/th/messages.json
+++ b/tray/webext/_locales/th/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "อีกสองตัวเลือกก็ใช้ได้ แต่ Chrome จะถามอีก — ตัวแรกถามทุกครั้งที่เริ่มใหม่ ส่วนตัวสุดท้ายถามหลังจากรอไประยะหนึ่ง"
+ },
+ "viewLayout": {
+ "message": "รูปแบบการแสดงเอกสาร"
+ },
+ "viewIcons": {
+ "message": "ไอคอน"
+ },
+ "viewList": {
+ "message": "รายการ"
+ },
+ "close": {
+ "message": "ปิด"
+ },
+ "setLangTitle": {
+ "message": "ภาษา"
+ },
+ "setLangSub": {
+ "message": "ภาษาที่ส่วนขยายนี้ใช้ ปกติจะเป็นไปตามเบราว์เซอร์"
+ },
+ "langAutomatic": {
+ "message": "อัตโนมัติ — ตามเบราว์เซอร์"
+ },
+ "setLangNote": {
+ "message": "ชื่อและคำอธิบายของตัวส่วนขยายเองมาจากเบราว์เซอร์และจะไม่เปลี่ยน"
+ },
+ "aboutPromo": {
+ "message": "เพิ่งเริ่มใช้ Bento ใช่ไหม เทมเพลต แกลเลอรี และคู่มือการแก้ไขด้วย AI อยู่ที่ $1 — หรือกดดาวให้ที่ $2"
+ },
+ "setThemeTitle": {
+ "message": "ลักษณะที่ปรากฏ"
+ },
+ "setThemeSub": {
+ "message": "การตั้งค่าของเบราว์เซอร์เป็นค่าเริ่มต้น ไม่ใช่ข้อบังคับ"
+ },
+ "themeAuto": {
+ "message": "ตามเบราว์เซอร์"
+ },
+ "themeLight": {
+ "message": "สว่าง"
+ },
+ "themeDark": {
+ "message": "มืด"
+ },
+ "checking": {
+ "message": "กำลังตรวจสอบ…"
+ },
+ "surveyTitle": {
+ "message": "ค้นหาว่าเอกสารของคุณอยู่ที่ใด"
+ },
+ "surveySub": {
+ "message": "เบราว์เซอร์รู้ว่าคุณเคยเปิดเอกสาร Bento ใดบ้าง และบอกได้ว่าอยู่ในโฟลเดอร์ไหน"
+ },
+ "surveyDeclined": {
+ "message": "ไม่เป็นไร คุณเพิ่มโฟลเดอร์เองได้"
+ },
+ "surveyAllCovered": {
+ "message": "เอกสารทั้ง $1 รายการที่เบราว์เซอร์นี้เคยเห็น อยู่ในโฟลเดอร์ที่คุณเพิ่มไว้แล้ว"
+ },
+ "surveyUncovered": {
+ "message": "มีเอกสาร <b>$1</b> รายการอยู่นอกโฟลเดอร์ที่คุณเพิ่มไว้ทั้งหมด และ $2 รายการครอบคลุมแล้ว"
+ },
+ "surveyCovers": {
+ "message": "ครอบคลุม $1 รายการ"
+ },
+ "surveyAdd": {
+ "message": "เพิ่มโฟลเดอร์นี้…"
+ },
+ "surveyAdded": {
+ "message": "เพิ่ม $1 แล้ว — เอกสารข้างในพร้อมใช้งาน"
+ },
+ "surveyAddedElsewhere": {
+ "message": "เพิ่ม $1 แล้ว แต่เอกสารไม่ได้อยู่ในนั้น — เปิดสักรายการจาก Finder หนึ่งครั้ง"
+ },
+ "surveyOnlySeen": {
+ "message": "วิธีนี้พบเฉพาะเอกสารที่เคยเปิดในเบราว์เซอร์นี้เท่านั้น"
}
}
diff --git a/tray/webext/_locales/tr/messages.json b/tray/webext/_locales/tr/messages.json
index 0809eafe..2bfa5a39 100644
--- a/tray/webext/_locales/tr/messages.json
+++ b/tray/webext/_locales/tr/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "Diğer ikisi de çalışır, ama Chrome yeniden sorar — ilki için her yeniden başlatmada, sonuncusu için bir bekleme sonrasında."
+ },
+ "viewLayout": {
+ "message": "Belgelerin gösterilme biçimi"
+ },
+ "viewIcons": {
+ "message": "Simgeler"
+ },
+ "viewList": {
+ "message": "Liste"
+ },
+ "close": {
+ "message": "Kapat"
+ },
+ "setLangTitle": {
+ "message": "Dil"
+ },
+ "setLangSub": {
+ "message": "Bu uzantının konuştuğu dil. Normalde tarayıcıyı izler."
+ },
+ "langAutomatic": {
+ "message": "Otomatik — tarayıcıyı izle"
+ },
+ "setLangNote": {
+ "message": "Uzantının kendi adı ve açıklaması tarayıcıdan gelir ve değişmez."
+ },
+ "aboutPromo": {
+ "message": "Bento'da yeni misiniz? Şablonlar, galeri ve yapay zekâ düzenleme rehberi $1 adresinde — ya da $2 üzerinde yıldız verin."
+ },
+ "setThemeTitle": {
+ "message": "Görünüm"
+ },
+ "setThemeSub": {
+ "message": "Tarayıcının ayarı varsayılandır, zorunluluk değil."
+ },
+ "themeAuto": {
+ "message": "Tarayıcıyla aynı"
+ },
+ "themeLight": {
+ "message": "Açık"
+ },
+ "themeDark": {
+ "message": "Koyu"
+ },
+ "checking": {
+ "message": "Denetleniyor…"
+ },
+ "surveyTitle": {
+ "message": "Belgelerinizin nerede olduğunu bulun"
+ },
+ "surveySub": {
+ "message": "Tarayıcı hangi Bento belgelerini açtığınızı bilir. Hangi klasörlerde olduklarını söyleyebilir."
+ },
+ "surveyDeclined": {
+ "message": "Sorun değil — klasörleri elle de ekleyebilirsiniz."
+ },
+ "surveyAllCovered": {
+ "message": "Bu tarayıcının gördüğü $1 belgenin tamamı zaten eklediğiniz bir klasörde."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> belge eklediğiniz hiçbir klasörde değil. $2 tanesi zaten kapsanıyor."
+ },
+ "surveyCovers": {
+ "message": "$1 belge içeriyor"
+ },
+ "surveyAdd": {
+ "message": "Bu klasörü ekle…"
+ },
+ "surveyAdded": {
+ "message": "$1 eklendi — içindeki belgeler hazır"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 eklendi, ama belgeler orada değil — Finder'dan bir tanesini bir kez açın."
+ },
+ "surveyOnlySeen": {
+ "message": "Bu yolla yalnızca bu tarayıcıda açılmış belgeler bulunabilir."
}
}
diff --git a/tray/webext/_locales/uk/messages.json b/tray/webext/_locales/uk/messages.json
index e12fb3e1..8cfb4eac 100644
--- a/tray/webext/_locales/uk/messages.json
+++ b/tray/webext/_locales/uk/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "Два інші теж працюють, але Chrome запитає знову — перший при кожному перезапуску, останній після очікування."
+ },
+ "viewLayout": {
+ "message": "Як показано документи"
+ },
+ "viewIcons": {
+ "message": "Піктограми"
+ },
+ "viewList": {
+ "message": "Список"
+ },
+ "close": {
+ "message": "Закрити"
+ },
+ "setLangTitle": {
+ "message": "Мова"
+ },
+ "setLangSub": {
+ "message": "Якою мовою говорить це розширення. Зазвичай слідує за браузером."
+ },
+ "langAutomatic": {
+ "message": "Автоматично — слідувати за браузером"
+ },
+ "setLangNote": {
+ "message": "Назва й опис самого розширення беруться з браузера і не змінюються."
+ },
+ "aboutPromo": {
+ "message": "Уперше в Bento? Шаблони, галерея та посібник із ШІ-редагування — на $1, а зірку можна поставити на $2."
+ },
+ "setThemeTitle": {
+ "message": "Оформлення"
+ },
+ "setThemeSub": {
+ "message": "Налаштування браузера — типове значення, а не вимога."
+ },
+ "themeAuto": {
+ "message": "Як у браузері"
+ },
+ "themeLight": {
+ "message": "Світле"
+ },
+ "themeDark": {
+ "message": "Темне"
+ },
+ "checking": {
+ "message": "Перевірка…"
+ },
+ "surveyTitle": {
+ "message": "Знайдіть, де ваші документи"
+ },
+ "surveySub": {
+ "message": "Браузер знає, які документи Bento ви відкривали. Він може сказати, у яких папках вони лежать."
+ },
+ "surveyDeclined": {
+ "message": "Нічого страшного — папки можна додати вручну."
+ },
+ "surveyAllCovered": {
+ "message": "Усі $1 документів, які бачив цей браузер, уже в доданій папці."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> документів поза всіма доданими папками. $2 вже охоплено."
+ },
+ "surveyCovers": {
+ "message": "охоплює $1"
+ },
+ "surveyAdd": {
+ "message": "Додати цю папку…"
+ },
+ "surveyAdded": {
+ "message": "$1 додано — документи в ній готові"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 додано, але документів у ній немає — відкрийте один із Finder."
+ },
+ "surveyOnlySeen": {
+ "message": "Так знаходяться лише документи, відкриті в цьому браузері."
}
}
diff --git a/tray/webext/_locales/ur/messages.json b/tray/webext/_locales/ur/messages.json
index 64449f57..9d77f6ca 100644
--- a/tray/webext/_locales/ur/messages.json
+++ b/tray/webext/_locales/ur/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "باقی دونوں بھی کام کرتے ہیں، مگر Chrome دوبارہ پوچھتا ہے — پہلے کے لیے ہر بار دوبارہ چلنے پر، اور آخری کے لیے کچھ انتظار کے بعد۔"
+ },
+ "viewLayout": {
+ "message": "دستاویزات کیسے دکھائی جائیں"
+ },
+ "viewIcons": {
+ "message": "آئیکن"
+ },
+ "viewList": {
+ "message": "فہرست"
+ },
+ "close": {
+ "message": "بند کریں"
+ },
+ "setLangTitle": {
+ "message": "زبان"
+ },
+ "setLangSub": {
+ "message": "یہ ایکسٹینشن کس زبان میں بات کرتی ہے۔ عام طور پر یہ براؤزر کی پیروی کرتی ہے۔"
+ },
+ "langAutomatic": {
+ "message": "خودکار — براؤزر کی پیروی کریں"
+ },
+ "setLangNote": {
+ "message": "ایکسٹینشن کا اپنا نام اور تفصیل براؤزر سے آتے ہیں اور تبدیل نہیں ہوتے۔"
+ },
+ "aboutPromo": {
+ "message": "Bento پر نئے ہیں؟ ٹیمپلیٹس، گیلری اور AI ایڈیٹنگ گائیڈ $1 پر ملیں گے — یا $2 پر ستارہ دیں۔"
+ },
+ "setThemeTitle": {
+ "message": "ظاہری شکل"
+ },
+ "setThemeSub": {
+ "message": "براؤزر کی ترتیب پہلے سے طے شدہ ہے، لازمی نہیں۔"
+ },
+ "themeAuto": {
+ "message": "براؤزر کے مطابق"
+ },
+ "themeLight": {
+ "message": "روشن"
+ },
+ "themeDark": {
+ "message": "گہرا"
+ },
+ "checking": {
+ "message": "جانچا جا رہا ہے…"
+ },
+ "surveyTitle": {
+ "message": "معلوم کریں آپ کی دستاویزات کہاں ہیں"
+ },
+ "surveySub": {
+ "message": "براؤزر جانتا ہے کہ آپ نے کون سی Bento دستاویزات کھولی ہیں، اور بتا سکتا ہے کہ وہ کن فولڈرز میں ہیں۔"
+ },
+ "surveyDeclined": {
+ "message": "کوئی بات نہیں — آپ فولڈر خود بھی شامل کر سکتے ہیں۔"
+ },
+ "surveyAllCovered": {
+ "message": "اس براؤزر نے جو $1 دستاویزات دیکھی ہیں، وہ سب پہلے سے شامل کیے گئے فولڈر میں ہیں۔"
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> دستاویزات آپ کے شامل کردہ ہر فولڈر سے باہر ہیں۔ $2 پہلے سے شامل ہیں۔"
+ },
+ "surveyCovers": {
+ "message": "$1 پر مشتمل"
+ },
+ "surveyAdd": {
+ "message": "یہ فولڈر شامل کریں…"
+ },
+ "surveyAdded": {
+ "message": "$1 شامل ہو گیا — اس کی دستاویزات تیار ہیں"
+ },
+ "surveyAddedElsewhere": {
+ "message": "$1 شامل ہو گیا، مگر دستاویزات اس میں نہیں — Finder سے ایک بار کوئی ایک کھولیں۔"
+ },
+ "surveyOnlySeen": {
+ "message": "اس طریقے سے صرف وہی دستاویزات ملتی ہیں جو اس براؤزر میں کھولی گئی ہوں۔"
}
}
diff --git a/tray/webext/_locales/vi/messages.json b/tray/webext/_locales/vi/messages.json
index 1960b43d..b65b938c 100644
--- a/tray/webext/_locales/vi/messages.json
+++ b/tray/webext/_locales/vi/messages.json
@@ -409,5 +409,80 @@
},
"primeNote": {
"message": "Hai lựa chọn kia cũng dùng được, nhưng Chrome sẽ hỏi lại — lựa chọn đầu thì mỗi lần khởi động lại, lựa chọn cuối thì sau một thời gian chờ."
+ },
+ "viewLayout": {
+ "message": "Cách hiển thị tài liệu"
+ },
+ "viewIcons": {
+ "message": "Biểu tượng"
+ },
+ "viewList": {
+ "message": "Danh sách"
+ },
+ "close": {
+ "message": "Đóng"
+ },
+ "setLangTitle": {
+ "message": "Ngôn ngữ"
+ },
+ "setLangSub": {
+ "message": "Ngôn ngữ mà tiện ích này sử dụng. Thường thì nó theo trình duyệt."
+ },
+ "langAutomatic": {
+ "message": "Tự động — theo trình duyệt"
+ },
+ "setLangNote": {
+ "message": "Tên và mô tả của chính tiện ích đến từ trình duyệt và không thay đổi."
+ },
+ "aboutPromo": {
+ "message": "Mới dùng Bento? Bạn có thể tìm mẫu, thư viện và hướng dẫn chỉnh sửa bằng AI tại $1 — hoặc gắn sao trên $2."
+ },
+ "setThemeTitle": {
+ "message": "Giao diện"
+ },
+ "setThemeSub": {
+ "message": "Thiết lập của trình duyệt là mặc định, không phải bắt buộc."
+ },
+ "themeAuto": {
+ "message": "Theo trình duyệt"
+ },
+ "themeLight": {
+ "message": "Sáng"
+ },
+ "themeDark": {
+ "message": "Tối"
+ },
+ "checking": {
+ "message": "Đang kiểm tra…"
+ },
+ "surveyTitle": {
+ "message": "Tìm xem tài liệu của bạn ở đâu"
+ },
+ "surveySub": {
+ "message": "Trình duyệt biết bạn đã mở những tài liệu Bento nào và có thể cho biết chúng nằm trong thư mục nào."
+ },
+ "surveyDeclined": {
+ "message": "Không sao — bạn có thể thêm thư mục thủ công."
+ },
+ "surveyAllCovered": {
+ "message": "Cả $1 tài liệu trình duyệt này từng thấy đều đã nằm trong thư mục bạn đã thêm."
+ },
+ "surveyUncovered": {
+ "message": "<b>$1</b> tài liệu nằm ngoài mọi thư mục bạn đã thêm. $2 tài liệu đã được bao gồm."
+ },
+ "surveyCovers": {
+ "message": "chứa $1"
+ },
+ "surveyAdd": {
+ "message": "Thêm thư mục này…"
+ },
+ "surveyAdded": {
+ "message": "Đã thêm $1 — tài liệu bên trong đã sẵn sàng"
+ },
+ "surveyAddedElsewhere": {
+ "message": "Đã thêm $1, nhưng tài liệu không nằm trong đó — hãy mở một tài liệu từ Finder một lần."
+ },
+ "surveyOnlySeen": {
+ "message": "Cách này chỉ tìm được tài liệu đã mở trong trình duyệt này."
}
}
diff --git a/tray/webext/_locales/zh_CN/messages.json b/tray/webext/_locales/zh_CN/messages.json
index 7fba6acf..3984ca65 100644
--- a/tray/webext/_locales/zh_CN/messages.json
+++ b/tray/webext/_locales/zh_CN/messages.json
@@ -442,5 +442,80 @@
},
"primeNote": {
"message": "另外两个也能用,但 Chrome 会再次询问 — 第一个每次重启都问,最后一个会等一段时间再问。"
+ },
+ "viewLayout": {
+ "message": "文档的显示方式"
+ },
+ "viewIcons": {
+ "message": "图标"
+ },
+ "viewList": {
+ "message": "列表"
+ },
+ "close": {
+ "message": "关闭"
+ },
+ "setLangTitle": {
+ "message": "语言"
+ },
+ "setLangSub": {
+ "message": "此扩展程序使用的语言。通常跟随浏览器。"
+ },
+ "langAutomatic": {
+ "message": "自动 — 跟随浏览器"
+ },
+ "setLangNote": {
+ "message": "扩展程序自身的名称和说明来自浏览器,不会改变。"
+ },
+ "aboutPromo": {
+ "message": "第一次使用 Bento?模板、图库和 AI 编辑指南都在 $1,也欢迎在 $2 上点个星。"
+ },
+ "setThemeTitle": {
+ "message": "外观"
+ },
+ "setThemeSub": {
+ "message": "浏览器的设置只是默认值,并非强制。"
+ },
+ "themeAuto": {
+ "message": "跟随浏览器"
+ },
+ "themeLight": {
+ "message": "浅色"
+ },
+ "themeDark": {
+ "message": "深色"
+ },
+ "checking": {
+ "message": "正在检查…"
+ },
+ "surveyTitle": {
+ "message": "找到文档所在的位置"
+ },
+ "surveySub": {
+ "message": "浏览器知道你打开过哪些 Bento 文档,可以指出它们在哪些文件夹里。"
+ },
+ "surveyDeclined": {
+ "message": "没关系,你也可以手动添加文件夹。"
+ },
+ "surveyAllCovered": {
+ "message": "这个浏览器见过的 $1 个文档都已在你添加的文件夹中。"
+ },
+ "surveyUncovered": {
+ "message": "有 <b>$1</b> 个文档不在你添加的任何文件夹里,$2 个已覆盖。"
+ },
+ "surveyCovers": {
+ "message": "包含 $1 个"
+ },
+ "surveyAdd": {
+ "message": "添加此文件夹…"
+ },
+ "surveyAdded": {
+ "message": "已添加 $1 — 其中的文档已就绪"
+ },
+ "surveyAddedElsewhere": {
+ "message": "已添加 $1,但文档并不在其中 — 请先从访达打开一个。"
+ },
+ "surveyOnlySeen": {
+ "message": "这种方式只能找到在此浏览器中打开过的文档。"
}
}
diff --git a/tray/webext/_locales/zh_TW/messages.json b/tray/webext/_locales/zh_TW/messages.json
index 8b06a3b4..d43e1f4f 100644
--- a/tray/webext/_locales/zh_TW/messages.json
+++ b/tray/webext/_locales/zh_TW/messages.json
@@ -442,5 +442,80 @@
},
"primeNote": {
"message": "另外两個也能用,但 Chrome 會再次询問 — 第一個每次重新啟動都問,最後一個會等一段時间再問。"
+ },
+ "viewLayout": {
+ "message": "文件的顯示方式"
+ },
+ "viewIcons": {
+ "message": "圖示"
+ },
+ "viewList": {
+ "message": "清單"
+ },
+ "close": {
+ "message": "關閉"
+ },
+ "setLangTitle": {
+ "message": "語言"
+ },
+ "setLangSub": {
+ "message": "此擴充功能使用的語言。通常跟隨瀏覽器。"
+ },
+ "langAutomatic": {
+ "message": "自動 — 跟隨瀏覽器"
+ },
+ "setLangNote": {
+ "message": "擴充功能本身的名稱和說明來自瀏覽器,不會改變。"
+ },
+ "aboutPromo": {
+ "message": "第一次使用 Bento?範本、藝廊和 AI 編輯指南都在 $1,也歡迎到 $2 給顆星。"
+ },
+ "setThemeTitle": {
+ "message": "外觀"
+ },
+ "setThemeSub": {
+ "message": "瀏覽器的設定只是預設值,並非強制。"
+ },
+ "themeAuto": {
+ "message": "跟隨瀏覽器"
+ },
+ "themeLight": {
+ "message": "淺色"
+ },
+ "themeDark": {
+ "message": "深色"
+ },
+ "checking": {
+ "message": "正在檢查…"
+ },
+ "surveyTitle": {
+ "message": "找出文件所在的位置"
+ },
+ "surveySub": {
+ "message": "瀏覽器知道你開啟過哪些 Bento 文件,可以指出它們在哪些資料夾裡。"
+ },
+ "surveyDeclined": {
+ "message": "沒關係,你也可以手動新增資料夾。"
+ },
+ "surveyAllCovered": {
+ "message": "這個瀏覽器看過的 $1 份文件都已在你新增的資料夾中。"
+ },
+ "surveyUncovered": {
+ "message": "有 <b>$1</b> 份文件不在你新增的任何資料夾裡,$2 份已涵蓋。"
+ },
+ "surveyCovers": {
+ "message": "包含 $1 份"
+ },
+ "surveyAdd": {
+ "message": "新增這個資料夾…"
+ },
+ "surveyAdded": {
+ "message": "已新增 $1 — 其中的文件已就緒"
+ },
+ "surveyAddedElsewhere": {
+ "message": "已新增 $1,但文件並不在其中 — 請先從 Finder 開啟一份。"
+ },
+ "surveyOnlySeen": {
+ "message": "這種方式只能找到在此瀏覽器中開啟過的文件。"
}
}
diff --git a/tray/webext/manifest.json b/tray/webext/manifest.json
index e3307421..c33630a2 100644
--- a/tray/webext/manifest.json
+++ b/tray/webext/manifest.json
@@ -13,7 +13,7 @@
"optional_permissions": [
"history"
],
- "options_page": "src/home.html",
+ "options_page": "src/home.html#settings",
"background": {
"service_worker": "src/background.js",
"type": "module"
diff --git a/tray/webext/src/home.html b/tray/webext/src/home.html
index 6ed32998..3932b622 100644
--- a/tray/webext/src/home.html
+++ b/tray/webext/src/home.html
@@ -3,6 +3,8 @@
<title>bento/tray</title>
<link rel="icon" href="../icons/icon.svg">
<link rel="stylesheet" href="ui.css">
+<!-- Blocking, and before the body: stamps the theme so the FIRST paint is right. -->
+<script src="theme.js"></script>
<style>
/* Page-specific layout only. Everything shared — palette, controls, notices,
menus, toasts — lives in ui.css, so this page and the popup cannot drift
@@ -13,7 +15,10 @@
/* ---------------------------------------------------------------- sidebar */
aside { border-inline-end: 1px solid var(--line); padding: 18px 12px; display: flex;
flex-direction: column; gap: 4px; overflow-y: auto }
- .brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 14px }
+ .brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 14px;
+ border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
+ width: 100%; text-align: start; border-radius: 8px }
+ .brand:hover { background: var(--hover) }
.brand .mark { width: 24px; height: 24px }
.brand b { font-size: 15px; letter-spacing: -.01em }
.brand b i { color: var(--peach); font-style: normal }
@@ -38,6 +43,78 @@
.search .mag { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%);
color: var(--dim); font-size: 12px; pointer-events: none }
.grow { flex: 1 }
+
+ /* segmented icons/list control */
+ .seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
+ flex: none }
+ .seg button { border: 0; background: var(--panel); color: var(--dim); font: inherit;
+ font-size: 13px; line-height: 1; padding: 6px 9px; cursor: pointer }
+ .seg button + button { border-inline-start: 1px solid var(--line) }
+ .seg button:hover { background: var(--hover); color: var(--ink) }
+ .seg button[aria-pressed="true"] { background: var(--hover); color: var(--ink) }
+
+ /* ----------------------------------------------------------- about dialog */
+ .dlg { border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
+ color: var(--ink); padding: 0; max-width: 30rem; width: calc(100vw - 40px);
+ box-shadow: var(--lift) }
+ .dlg::backdrop { background: rgba(0, 0, 0, .45) }
+ .dlghead { display: flex; align-items: center; gap: 9px; padding: 14px 16px 10px }
+ .dlghead .mark { width: 22px; height: 22px }
+ .dlghead b { font-size: 15px }
+ .dlghead b i { color: var(--peach); font-style: normal }
+ .dlg .x { border: 0; background: none; color: var(--dim); font: inherit; cursor: pointer;
+ padding: 3px 6px; border-radius: 6px; line-height: 1 }
+ .dlg .x:hover { background: var(--hover); color: var(--ink) }
+ .dlghead .ver { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums }
+ #aboutBody { padding: 0 16px 16px; display: grid; gap: 10px }
+ #aboutBody p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.55 }
+ /* The invitation back to the project — the same one bento/slides makes. */
+ .ab-promo { color: var(--dim); font-size: 13px; line-height: 1.55 }
+ /* `bento.page` and `GitHub` are Latin runs sitting inside Arabic, Persian,
+ Hebrew or Urdu prose. Isolating each one stops the surrounding paragraph's
+ bidi resolution from dragging its neighbouring punctuation to the wrong
+ side of it — the same class of bug as the `.html` badge, but embedded in a
+ sentence rather than standing alone. */
+ .ab-promo a { color: var(--ink); unicode-bidi: isolate }
+ /* Version status reuses the `.row` shape Settings uses, so the two screens
+ look like one product saying one thing. */
+ .ab-ver { margin: 0 }
+ .ab-note, .ab-foot { color: var(--dim); font-size: 12.5px; line-height: 1.5 }
+ .ab-foot { border-top: 1px solid var(--line); padding-top: 10px }
+ .dlghead .home { display: flex; align-items: center; gap: 9px; text-decoration: none;
+ color: inherit; border-radius: 7px; padding: 2px 4px; margin-inline-start: -4px }
+ .dlghead .home:hover { background: var(--hover) }
+
+ /* WHY NOT BUTTONS. These were four `.btn` pills that wrapped 3-then-1 and
+ read as four actions of equal weight — in a dialog whose only real action
+ is "Check now". Two of them also repeated links the promo sentence above
+ already carries, so the same destination was offered twice in one box.
+ A quiet dot-separated row says "here is where this lives" without
+ competing with the button that does something. */
+ .ab-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0;
+ font-size: 12.5px }
+ .ab-links a { color: var(--dim); text-decoration: none; padding: 2px 0;
+ unicode-bidi: isolate }
+ .ab-links a:hover { color: var(--ink); text-decoration: underline }
+ /* Separator drawn by CSS, not typed into the markup — a literal '·' between
+ anchors would be a bidi-neutral character sitting between links, and in
+ RTL it lands on the wrong side of the one it follows. */
+ /* Half-strength DIM, not `--line`. `--line` is a BORDER colour: measured
+ against the dialog's own background in dark mode its contrast was so low
+ that the separators were invisible, and the row read as three items with
+ odd gaps rather than a list. */
+ .ab-links a:not(:last-child)::after { content: '·'; color: var(--dim); opacity: .5;
+ margin-inline: 9px; text-decoration: none; display: inline-block }
+
+ /* the folder survey */
+ .survey { margin-top: 9px }
+ .survey-out:not(:empty) { margin-top: 10px; display: grid; gap: 6px }
+ .survey-out .row { margin-bottom: 0 }
+ .survey-out .sub { margin: 0; font-size: 12.5px; color: var(--dim) }
+ .survey-out b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
+ font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
+ direction: ltr; unicode-bidi: isolate }
+
#notice { display: grid; gap: 8px; padding: 0 22px 10px }
#notice:empty { padding: 0 }
@@ -83,10 +160,48 @@
/* Which Bento a document is, and whether it is named like one. Both sit on
the picture so they never push the title around. */
+
.badges { position: absolute; top: 7px; inset-inline-end: 7px; display: flex; gap: 4px }
.badges span { background: var(--panel); border: 1px solid var(--line); color: var(--dim);
font-size: 10.5px; line-height: 1; padding: 3px 5px; border-radius: 5px;
- letter-spacing: .02em }
+ letter-spacing: .02em;
+ /* Every badge is a Latin technical string — an app name, or the literal
+ extension `.html`. Under `dir="rtl"` the leading dot is bidi-NEUTRAL and
+ gets reordered to the end, so the badge read `html.` in Arabic, Persian,
+ Hebrew and Urdu. Isolating each badge pins its own direction without
+ affecting the order the badges themselves sit in, which must still
+ mirror. */
+ direction: ltr; unicode-bidi: isolate }
+
+ /* ------------------------------------------------------------ list mode */
+ /* The SAME card markup, relaid out. The thumbnail re-fits itself because
+ decorate() scales the preview iframe from a ResizeObserver on `.shot`
+ (home.js), so switching modes needs no JS beyond the class — and a
+ document keeps its picture, which is the point of icons-vs-list rather
+ than pictures-vs-none. */
+ .grid.as-list { grid-template-columns: 1fr; gap: 5px }
+ .as-list .card { flex-direction: row; align-items: center; gap: 12px;
+ padding: 6px 10px; border-radius: 9px }
+ .as-list .card:hover { transform: none; box-shadow: var(--lift) }
+ .as-list .shot { width: 84px; flex: none; border-bottom: 0;
+ border: 1px solid var(--line); border-radius: 5px }
+ .as-list .shot .glyph { font-size: 15px }
+ .as-list .shot .label { font-size: 9px; padding: 0 4px; text-align: center }
+ .as-list .cardbody { padding: 0; flex: 1; min-width: 0; align-items: center }
+ .as-list .cardbody b { white-space: nowrap }
+ /* Out of the picture and onto the row: at 84px wide they would cover the
+ thumbnail they are meant to annotate.
+ ORDER was the fiddly part. `.more` lives inside `.cardbody`, so a badge
+ placed after the body rendered after the ⋯ and the two read as one
+ control; moving the badge before the body instead pushed the THUMBNAILS
+ out of alignment by the badge's width, which is the one thing a list is
+ for avoiding. So the ⋯ is pinned to the row end and everything else keeps
+ its natural order — thumbnails flush, badges beside the text they
+ annotate. */
+ .as-list .card { padding-inline-end: 32px }
+ .as-list .badges { position: static; flex: none; order: 2 }
+ .as-list .more { position: absolute; inset-inline-end: 8px; top: 50%;
+ transform: translateY(-50%) }
/* ------------------------------------------------------- empty and set-up */
.empty { max-width: 52ch; color: var(--dim); padding: 20px 0 }
@@ -137,10 +252,14 @@
</style>
<aside>
- <div class="brand">
+ <!-- The wordmark is the way to About, exactly as it is in bento/slides.
+ It was a sidebar nav item here, which made "what is this program" a
+ destination you navigate to and lose your place from — and made the same
+ question look like two different features across two Bento apps. -->
+ <button class="brand" id="brand" data-i18n-title="helpAboutTitle">
<img class="mark" src="../icons/icon.svg" alt="">
<b>bento<i>/</i>tray</b>
- </div>
+ </button>
<button class="navitem" id="navAll" aria-current="true">
<span class="dot"></span> <span data-i18n="navAll"></span> <span class="n" id="nAll"></span>
@@ -168,6 +287,14 @@
<option value="name" data-i18n="sortName"></option>
<option value="folder" data-i18n="sortFolder"></option>
</select>
+ <!-- Icons or list, the way every file browser has offered since before the
+ web. Labelled by TITLE and marked with aria-pressed rather than drawn
+ with text: at 30 locales a two-word label is two more strings to get
+ right in each, and the glyphs are the convention people already read. -->
+ <div class="seg" id="layout" role="group" data-i18n-title="viewLayout">
+ <button data-layout="icons" data-i18n-title="viewIcons" aria-pressed="true">▦</button>
+ <button data-layout="list" data-i18n-title="viewList" aria-pressed="false">☰</button>
+ </div>
<span class="grow"></span>
<button class="btn primary" id="new" data-i18n="newDocument"></button>
</div>
@@ -176,4 +303,20 @@
<div class="scroll"><div class="grid" id="grid"></div></div>
</main>
+<!-- About lives in a dialog, not a view: it answers a question you ask WHILE
+ doing something else, and a <dialog> returns you to exactly where you were.
+ Content is built in home.js so the version and the links stay in one place. -->
+<dialog id="aboutDlg" class="dlg">
+ <div class="dlghead">
+ <a class="home" href="https://bento.page" target="_blank" rel="noopener" title="bento.page">
+ <img class="mark" src="../icons/icon.svg" alt="">
+ <b>bento<i>/</i>tray</b>
+ </a>
+ <span class="ver" id="aboutVer"></span>
+ <span class="grow"></span>
+ <button class="x" id="aboutClose" data-i18n-title="close">✕</button>
+ </div>
+ <div id="aboutBody"></div>
+</dialog>
+
<script type="module" src="home.js"></script>
diff --git a/tray/webext/src/home.js b/tray/webext/src/home.js
index 89230635..1d16cf01 100644
--- a/tray/webext/src/home.js
+++ b/tray/webext/src/home.js
@@ -15,9 +15,10 @@
import { getGrants, putGrants, status } from './status.js'
import { listDocuments, describe, newDocument, duplicate, rename, APPS } from './library.js'
import { prefixFor } from './route.js'
-import { learnPrefix } from './db.js'
+import { learnPrefix, GRANT, get, put } from './db.js'
import { checkForUpdate, pendingUpdate, isSelfManaged, autoCheckEnabled, setAutoCheck } from './update.js'
-import { t, localize } from './i18n.js'
+import { t, localize, LOCALES, localeLabel, localeOverride, setLocale, initI18n }
+ from './i18n.js'
/**
* Find the granted folders on disk, without sending anyone to Finder.
@@ -79,6 +80,104 @@ async function locateFolders() {
return { learned, declined: false }
}
+/**
+ * Which folders would cover the documents nobody has granted yet.
+ *
+ * `locateFolders` above already asks history where documents are — and then
+ * throws away every path that is not inside a folder already granted. That
+ * discarded set is the interesting one: it is precisely "documents this
+ * browser has seen that the tray cannot manage".
+ *
+ * THE SHAPE OF THE ANSWER. Not a list of documents — a list of FOLDERS, fewest
+ * first, because a grant covers everything inside it. Greedy set cover: take
+ * the directory that accounts for the most uncovered documents, drop what it
+ * covers, repeat. Ties go to the SHALLOWER directory, since one broad grant is
+ * the thing the setup screen already recommends.
+ *
+ * WHY IT WILL NOT PROPOSE YOUR HOME DIRECTORY. `MIN_SEGMENTS` stops the walk
+ * three segments in, so `/Users/you/Documents` is proposable and `/Users/you`,
+ * `/Users` and `/` are not. Covering everything by granting the lot is a real
+ * answer and a bad one to put in front of somebody as a suggestion.
+ */
+const MIN_SEGMENTS = 3
+const MAX_PROPOSALS = 4
+
+export function proposeFolders(paths, minSegments = MIN_SEGMENTS, max = MAX_PROPOSALS) {
+ const dirsOf = (p) => {
+ const parts = p.split('/').filter(Boolean)
+ parts.pop() // the file itself
+ const out = []
+ for (let i = minSegments; i <= parts.length; i++) out.push('/' + parts.slice(0, i).join('/'))
+ return out
+ }
+ let left = paths.filter((p) => dirsOf(p).length)
+ const picked = []
+ while (left.length && picked.length < max) {
+ const count = new Map()
+ for (const p of left) for (const d of dirsOf(p)) count.set(d, (count.get(d) ?? 0) + 1)
+ let best = null
+ for (const [dir, n] of count) {
+ const depth = dir.split('/').length
+ if (!best || n > best.n || (n === best.n && depth < best.depth)) best = { dir, n, depth }
+ }
+ if (!best) break
+ // A REAL document path from under this directory travels with the proposal.
+ // Verifying the folder the user actually picked means walking one of its
+ // own documents' routes (`prefixFor`) — a made-up filename would fail that
+ // walk and the folder would be added but never placed.
+ const sample = left.find((p) => dirsOf(p).includes(best.dir))
+ picked.push({
+ dir: best.dir, count: best.n, sample,
+ name: best.dir.split('/').filter(Boolean).pop(),
+ })
+ left = left.filter((p) => !dirsOf(p).includes(best.dir))
+ }
+ return { proposals: picked, uncovered: paths.length, unplaceable: left.length }
+}
+
+/**
+ * Everything the browser knows about where Bento documents live.
+ *
+ * Returns what is already covered, and what a grant would still need to reach.
+ * The history permission is requested and handed straight back, exactly as
+ * `locateFolders` does — this is the same question asked more completely.
+ */
+async function surveyDocuments() {
+ const granted = await chrome.permissions.request({ permissions: ['history'] })
+ if (!granted) return { declined: true }
+
+ const paths = []
+ let covered = 0
+ try {
+ const items = await chrome.history.search({ text: '.bento.html', maxResults: 5000, startTime: 0 })
+ const grants = await getGrants()
+ const seen = new Set()
+ for (const it of items) {
+ if (!it.url?.startsWith('file://')) continue
+ let path
+ try { path = decodeURIComponent(new URL(it.url).pathname) } catch { continue }
+ if (!path.endsWith('.bento.html') || seen.has(path)) continue
+ seen.add(path)
+ let inside = false
+ for (const dir of grants) {
+ if (await dir.queryPermission({ mode: 'readwrite' }) !== 'granted') continue
+ const prefix = await prefixFor(dir, path)
+ if (!prefix) continue
+ // Free of charge: walking the route to test containment also PLACES
+ // the folder, which is the whole job of "Find my folders".
+ await learnPrefix(dir.name, prefix)
+ inside = true
+ break
+ }
+ if (inside) covered++
+ else paths.push(path)
+ }
+ } finally {
+ await chrome.permissions.remove({ permissions: ['history'] }).catch(() => {})
+ }
+ return { declined: false, covered, ...proposeFolders(paths) }
+}
+
const $ = (id) => document.getElementById(id)
const esc = (s) => String(s).replace(/[&<>"]/g, (c) => (
{ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }[c]))
@@ -94,7 +193,10 @@ const ago = (ms) => {
return new Date(ms).toLocaleDateString(undefined, { day: 'numeric', month: 'short', year: 'numeric' })
}
-const state = { docs: [], folder: null, q: '', sort: 'recent', view: 'docs' }
+// `view` is which SCREEN is showing (docs/settings/help); `layout` is how the
+// documents are drawn within it. Two different words on purpose — they were
+// briefly the same one, and "view" then meant two things one line apart.
+const state = { docs: [], folder: null, q: '', sort: 'recent', view: 'docs', layout: 'icons' }
/**
* Settings is a VIEW here, not a separate page.
@@ -105,12 +207,34 @@ const state = { docs: [], folder: null, q: '', sort: 'recent', view: 'docs' }
* design system, one back-and-forth-free navigation, and one place that knows
* what a folder is.
*/
+/**
+ * Which screen the URL names. Kept in sync BOTH ways.
+ *
+ * It used to be one-way — the hash was read at boot and then left to rot while
+ * the view moved on. Chrome matches an already-open options tab BY URL, so a
+ * page still claiming `#settings` while showing the documents grid got focused
+ * rather than re-routed, and the second "Options" click landed you on the
+ * documents home. Writing the view back means the URL is either honest (Chrome
+ * focuses a tab that really is Settings) or different (Chrome opens one that
+ * is). `replaceState` rather than assignment: this is a correction to the
+ * address, not a place in history, and it fires no `hashchange` to loop on.
+ */
+const VIEW_HASH = { docs: '', settings: '#settings', help: '#help' }
+
function show(view) {
state.view = view
+ const want = VIEW_HASH[view] ?? ''
+ if (location.hash !== want) {
+ try { history.replaceState(null, '', want || location.pathname) } catch { /* not fatal */ }
+ }
const docs = view === 'docs'
$('searchWrap').hidden = !docs
$('sort').hidden = !docs
$('new').hidden = !docs
+ // How documents are DRAWN is meaningless where none are: Settings and Help
+ // replace the scroller entirely, so the toggle would sit over a page it
+ // cannot affect.
+ $('layout').hidden = !docs
$('settings').setAttribute('aria-current', String(view === 'settings'))
$('help').setAttribute('aria-current', String(view === 'help'))
$('navAll').setAttribute('aria-current', String(docs && state.folder === null))
@@ -199,6 +323,95 @@ function visible() {
* short list that shows which are done, not a paragraph explaining why nothing
* works.
*/
+/**
+ * The survey, as something you can look at and act on.
+ *
+ * One builder, used by the first-run screen and by Settings, because "where are
+ * my documents" is the same question whether you are new or have been using
+ * this for a month — and two implementations would drift.
+ */
+function surveyPanel(onDone) {
+ const box = document.createElement('div')
+ box.className = 'survey'
+
+ const go = document.createElement('button')
+ go.className = 'btn primary'
+ go.textContent = t('findFolders')
+ box.appendChild(go)
+
+ const out = document.createElement('div')
+ out.className = 'survey-out'
+ box.appendChild(out)
+
+ go.addEventListener('click', async () => {
+ go.disabled = true
+ go.textContent = t('looking')
+ let r
+ try { r = await surveyDocuments() } catch (e) { toast(e.message); r = null }
+ go.disabled = false
+ go.textContent = t('findFolders')
+ if (!r) return
+ if (r.declined) { out.innerHTML = `<p class="sub">${t('surveyDeclined')}</p>`; return }
+
+ out.textContent = ''
+ const line = document.createElement('p')
+ line.className = 'sub'
+ // Three different answers, and they are not the same news.
+ line.innerHTML = r.uncovered === 0
+ ? t('surveyAllCovered', r.covered)
+ : t('surveyUncovered', r.uncovered, r.covered)
+ out.appendChild(line)
+
+ for (const prop of r.proposals) {
+ const row = document.createElement('div')
+ row.className = 'row'
+ row.innerHTML = `<b>${esc(prop.dir)}</b>`
+ + `<span class="note">${esc(t('surveyCovers', prop.count))}</span>`
+ const add = document.createElement('button')
+ add.className = 'btn'
+ add.textContent = t('surveyAdd')
+ add.addEventListener('click', async () => {
+ add.disabled = true
+ try {
+ // The picker is unavoidable: Chrome grants a directory to the USER's
+ // choice, in a real dialog, and an extension cannot pre-select a path
+ // — `startIn` takes a well-known name or an existing handle, never an
+ // arbitrary one. So the proposal is a signpost, not a shortcut.
+ const dir = await window.showDirectoryPicker({ mode: 'readwrite', startIn: 'documents' })
+ await dir.requestPermission({ mode: 'readwrite' })
+ const dirs = await getGrants()
+ for (const existing of dirs) if (await existing.isSameEntry(dir)) { add.disabled = false; return }
+ await putGrants([...dirs, dir])
+ // Did they pick the folder that was proposed? Verified, not assumed:
+ // walking one of its own documents' routes both proves containment
+ // and PLACES the folder, so it is openable immediately instead of
+ // waiting for someone to open a file from Finder.
+ const probe = prop.sample ?? `${prop.dir}/x.bento.html`
+ const prefix = await prefixFor(dir, probe)
+ if (prefix) await learnPrefix(dir.name, prefix)
+ await load()
+ await renderNotice()
+ toast(prefix ? t('surveyAdded', dir.name) : t('surveyAddedElsewhere', dir.name))
+ onDone?.()
+ } catch { /* the picker was dismissed, which is an answer */ }
+ add.disabled = false
+ })
+ row.appendChild(add)
+ out.appendChild(row)
+ }
+
+ // History only knows what this browser has opened. Saying so stops "it
+ // missed some" reading as a fault.
+ const caveat = document.createElement('p')
+ caveat.className = 'sub'
+ caveat.textContent = t('surveyOnlySeen')
+ out.appendChild(caveat)
+ onDone?.()
+ })
+
+ return box
+}
+
function firstRun() {
const el = document.createElement('div')
el.className = 'empty'
@@ -220,6 +433,18 @@ function firstRun() {
pick.textContent = t('chooseFolder')
pick.onclick = () => $('addFolder').click()
step(1, !!state.grants, t('setupStep1'), t('setupStep1Note'), pick)
+ // The survey belongs HERE most of all. On a fresh install the answer to "which
+ // folder?" is knowable — the browser has the paths — and asking somebody to
+ // guess at a directory tree when the extension could just tell them is the
+ // worse half of this screen.
+ if (!state.grants) {
+ const s = document.createElement('div')
+ s.className = 'step'
+ s.innerHTML = `<span class="num">?</span>`
+ + `<span class="txt"><b>${esc(t('surveyTitle'))}</b><small>${t('surveySub')}</small></span>`
+ s.querySelector('.txt').appendChild(surveyPanel(() => { void renderGrid() }))
+ steps.appendChild(s)
+ }
step(2, state.fileAccess === true, t('setupStep2'), t('setupStep2Note'))
@@ -258,6 +483,7 @@ function renderGrid() {
const scroll = document.querySelector('.scroll')
scroll.innerHTML = '<div class="grid" id="grid"></div>'
const grid = $('grid')
+ if (state.layout === 'list') grid.classList.add('as-list')
const docs = visible()
$('heading').textContent = state.folder ?? t('navAll')
@@ -523,6 +749,141 @@ async function renderNotice() {
$('q').addEventListener('input', (e) => { state.q = e.target.value; renderGrid() })
$('sort').addEventListener('change', (e) => { state.sort = e.target.value; renderGrid() })
+// ------------------------------------------------------------------- about
+//
+// A dialog rather than a view, opened from the wordmark — the idiom bento/slides
+// already uses, so the same question is asked the same way across the suite.
+// <dialog> is used for what it gives free: Esc closes it, focus is trapped and
+// restored, and the backdrop is inert without a click-outside handler of ours.
+async function openAbout() {
+ const dlg = $('aboutDlg')
+ const body = $('aboutBody')
+ const mine = chrome.runtime.getManifest().version
+ const selfManaged = await isSelfManaged()
+ const upd = await pendingUpdate()
+
+ body.textContent = ''
+ const add = (cls, html) => {
+ const el = document.createElement('div')
+ el.className = cls
+ el.innerHTML = html
+ body.appendChild(el)
+ return el
+ }
+
+ // The route back to the project. bento/slides carries the same invitation in
+ // its About dialog; someone who installed the tray may never have seen the
+ // gallery or the agent guide, and this is the one screen where telling them
+ // is not an interruption.
+ add('ab-promo', t('aboutPromo',
+ '<a href="https://bento.page" target="_blank" rel="noopener">bento.page</a>',
+ '<a href="https://github.com/nyblnet/bento" target="_blank" rel="noopener">GitHub</a>'))
+
+ // Version, and what that means for updates — the same three states Settings
+ // shows, derived the same way, because two screens disagreeing about whether
+ // you are up to date is worse than one screen not saying.
+ const row = add('ab-ver row',
+ `<span class="dot ${upd?.version ? 'meh' : 'ok'}"></span><b>${esc(mine)}</b>`
+ + `<span class="note">${upd?.version
+ ? t('versionAvailable', esc(upd.version))
+ : selfManaged ? t('versionUpToDate') : t('versionManaged')}</span>`)
+ if (upd?.version) {
+ const a = document.createElement('a')
+ a.className = 'btn'
+ a.href = upd.url
+ a.target = '_blank'
+ a.rel = 'noopener'
+ a.textContent = t('getIt')
+ row.appendChild(a)
+ }
+ if (selfManaged) {
+ const now = document.createElement('button')
+ now.className = 'btn'
+ now.textContent = t('checkNow')
+ // A check that finds nothing repaints to exactly what was already on
+ // screen, so without saying so the button reads as broken — press, nothing,
+ // press again. It says what it is doing, then says what it found.
+ now.onclick = async () => {
+ const note = row.querySelector('.note')
+ const was = note.textContent
+ now.disabled = true
+ note.textContent = t('checking')
+ let found = null
+ try { found = await checkForUpdate({ force: true }) } catch { /* offline */ }
+ now.disabled = false
+ if (found?.version) {
+ await openAbout() // a real update: repaint, it changes the row
+ } else {
+ note.textContent = was
+ toast(t('versionUpToDate'))
+ }
+ }
+ row.appendChild(now)
+ }
+ add('ab-note', esc(selfManaged ? t('setVersionUnpacked') : t('setVersionStore')))
+
+ // bento.page is deliberately absent: the wordmark above links there, and the
+ // promo sentence says it in words. Offering it a third time as a pill was
+ // what made this row look like leftover chrome.
+ const links = document.createElement('div')
+ links.className = 'ab-links'
+ for (const [label, href] of [
+ [t('linkSource'), 'https://github.com/nyblnet/bento'],
+ [t('linkIssues'), 'https://github.com/nyblnet/bento/issues'],
+ [t('linkReleases'), 'https://github.com/nyblnet/bento/releases'],
+ ]) {
+ const a = document.createElement('a')
+ a.href = href
+ a.target = '_blank'
+ a.rel = 'noopener'
+ a.textContent = label
+ links.appendChild(a)
+ }
+ body.appendChild(links)
+
+ add('ab-foot', esc(t('helpAboutSub', mine)))
+
+ // The version belongs beside the wordmark, as it does in bento/slides.
+ $('aboutVer').textContent = `v${mine}`
+ if (!dlg.open) dlg.showModal()
+}
+
+$('brand').addEventListener('click', openAbout)
+$('aboutClose').addEventListener('click', () => $('aboutDlg').close())
+// Clicking the backdrop closes it. The dialog's own box is a child, so a click
+// that lands on the element itself and not on any descendant IS the backdrop.
+$('aboutDlg').addEventListener('click', (e) => { if (e.target === $('aboutDlg')) $('aboutDlg').close() })
+
+// ------------------------------------------------------------- icons / list
+//
+// Stored per DEVICE rather than per folder. Finder remembers per directory,
+// but Finder's folders are a place you furnish; these are a flat list of
+// grants that the user rarely revisits and never arranges, so a per-folder
+// memory would mostly be a setting that appears to forget itself.
+//
+// Kept in the same IndexedDB store as every other preference (update.js does
+// the same with `autoCheck`) so there is one place a preference lives.
+const LAYOUTS = ['icons', 'list']
+
+function paintLayout() {
+ for (const b of $('layout').querySelectorAll('button')) {
+ b.setAttribute('aria-pressed', String(b.dataset.layout === state.layout))
+ }
+}
+
+async function setLayout(next) {
+ if (!LAYOUTS.includes(next) || next === state.layout) return
+ state.layout = next
+ paintLayout()
+ renderGrid()
+ try { await put(GRANT, 'layout', next) } catch { /* the view still changed */ }
+}
+
+$('layout').addEventListener('click', (e) => {
+ const b = e.target.closest('button[data-layout]')
+ if (b) void setLayout(b.dataset.layout)
+})
+
// `/` focuses search, the convention everywhere text is listed. Not while
// typing in a field, or it eats the character.
addEventListener('keydown', (e) => {
@@ -586,8 +947,18 @@ $('new').addEventListener('click', async (ev) => {
// extension: a document made here is the same build everyone else has
// today, and the extension never needs re-reviewing to keep up.
const made = await newDocument(target, 'Untitled', { app: app.id })
- toast(t('createdIn', made.base, `${made.app} ${made.version}`, target.name))
await load()
+ toast(t('createdIn', made.base, `${made.app} ${made.version}`, target.name))
+ // Creating a document is not the goal — writing in it is. Open it, the
+ // way saving a new file in any editor leaves you inside the file.
+ //
+ // Conditional because it HAS to be: a tab needs an absolute path, and a
+ // folder handle does not carry one (see locateFolders above). If this
+ // folder has never been placed, `path` is null and there is nothing to
+ // navigate to — the card lands in the grid marked unplaced, which
+ // already explains itself, rather than a tab opening on `file://null`.
+ const fresh = state.docs.find((d) => d.folder === target.name && d.base === made.base)
+ if (fresh?.path) openDoc(fresh)
} catch (e) {
toast(e.message)
} finally {
@@ -625,7 +996,6 @@ $('help').addEventListener('click', () => show('help'))
async function renderHelp() {
$('heading').textContent = t('navHelp')
const s = await status()
- const mine = chrome.runtime.getManifest().version
const wrap = document.createElement('div')
wrap.className = 'panel'
@@ -679,25 +1049,9 @@ async function renderHelp() {
// --- what it never does
section(t('helpNeverTitle'), t('helpNeverSub'))
- // --- where it came from
- const about = section(t('helpAboutTitle'), t('helpAboutSub', esc(mine)))
- const links = document.createElement('div')
- links.className = 'links'
- for (const [label, href] of [
- ['bento.page', 'https://bento.page'],
- [t('linkSource'), 'https://github.com/nyblnet/bento'],
- [t('linkIssues'), 'https://github.com/nyblnet/bento/issues'],
- [t('linkReleases'), 'https://github.com/nyblnet/bento/releases'],
- ]) {
- const a = document.createElement('a')
- a.className = 'btn'
- a.href = href
- a.target = '_blank'
- a.rel = 'noopener'
- a.textContent = label
- links.appendChild(a)
- }
- about.appendChild(links)
+ // Where it came from is NOT repeated here. It lives in the About dialog on
+ // the wordmark (openAbout) — one answer in one place, reachable without
+ // leaving whatever you were doing.
const scroll = document.querySelector('.scroll')
scroll.innerHTML = ''
@@ -768,6 +1122,75 @@ async function renderSettings() {
add.onclick = () => $('addFolder').click()
folders.appendChild(add)
+ // --- the language, which Chrome will not let you change on macOS
+ //
+ // `chrome.i18n` follows the browser's UI language and cannot be redirected,
+ // and on macOS that language comes from the SYSTEM — so without this the only
+ // way to read the extension in Japanese was to run the whole computer in it.
+ // bento/slides has had a picker in its About dialog all along; this is the
+ // same control, in the place a tray preference belongs.
+ const lang = section(t('setLangTitle'), t('setLangSub'))
+ const lrow = document.createElement('div')
+ lrow.className = 'row'
+ const sel = document.createElement('select')
+ const auto = document.createElement('option')
+ auto.value = ''
+ auto.textContent = t('langAutomatic')
+ sel.appendChild(auto)
+ // Sorted by what each language calls ITSELF, in that language's own
+ // collation — the order an English speaker would impose is not the order the
+ // reader is scanning in.
+ for (const code of [...LOCALES].sort((a, b) => localeLabel(a).localeCompare(localeLabel(b)))) {
+ const o = document.createElement('option')
+ o.value = code
+ o.textContent = localeLabel(code)
+ sel.appendChild(o)
+ }
+ sel.value = localeOverride() ?? ''
+ sel.addEventListener('change', async () => {
+ await setLocale(sel.value || null)
+ // Everything on screen is now in the wrong language, including the static
+ // markup filled at load, so both are redone rather than just this view.
+ localize()
+ show('settings')
+ })
+ lrow.appendChild(sel)
+ const lnote = document.createElement('span')
+ lnote.className = 'note'
+ lnote.textContent = t('setLangNote')
+ lrow.appendChild(lnote)
+ lang.appendChild(lrow)
+
+ // Where else are documents? The same question the first-run screen asks,
+ // still worth asking later: folders get added over time.
+ const find = section(t('surveyTitle'), t('surveySub'))
+ find.appendChild(surveyPanel(() => { void renderSettings() }))
+
+ // --- light or dark, or whatever the browser is doing
+ //
+ // The same shape as Language directly above, and for the same reason: the
+ // browser's answer is a good DEFAULT and a bad requirement. Semantics come
+ // from theme.js, which mirrors `kernel/src/theme.ts` so bento/slides and
+ // bento/tray mean the same three things by the same three words.
+ const theme = section(t('setThemeTitle'), t('setThemeSub'))
+ const trow = document.createElement('div')
+ trow.className = 'row'
+ const tsel = document.createElement('select')
+ for (const [value, label] of [
+ ['auto', t('themeAuto')],
+ ['light', t('themeLight')],
+ ['dark', t('themeDark')],
+ ]) {
+ const o = document.createElement('option')
+ o.value = value
+ o.textContent = label
+ tsel.appendChild(o)
+ }
+ tsel.value = globalThis.bentoTheme?.choice() ?? 'auto'
+ tsel.addEventListener('change', () => { globalThis.bentoTheme?.set(tsel.value) })
+ trow.appendChild(tsel)
+ theme.appendChild(trow)
+
// --- the permission nothing can request
const access = section(t('setAccessTitle'), t('setAccessSub'))
const row = document.createElement('div')
@@ -893,9 +1316,37 @@ document.addEventListener('visibilitychange', () => {
// A fresh install is sent here by the worker (`#welcome`), because the first
// question is "what did I just install and what does it want" — and a grid of
// documents it cannot see yet answers none of it.
+// Before ANY painting: a saved language choice has to be in hand, or the page
+// renders in the browser's language and visibly re-renders a moment later.
+await initI18n()
localize()
-if (location.hash === '#welcome' || location.hash === '#help') show('help')
+
+// Read BEFORE the first grid render, so someone who chose list mode never
+// watches it boot into icons and reflow a frame later.
+try {
+ const saved = await get(GRANT, 'layout')
+ if (LAYOUTS.includes(saved)) state.layout = saved
+} catch { /* the default is a perfectly good answer */ }
+paintLayout()
+
+// Which screen the window was ASKED for. `#welcome` is the worker's post-install
+// landing; `#settings` is what `options_page` points at, because Chrome's
+// "Options" entry means "configure this extension" and answering it with a grid
+// of documents ignores the question. Applied twice on purpose — once before the
+// documents load so the right screen paints immediately, once after, because
+// `load()` finishes by showing the grid.
+const routeHash = () => {
+ const view = { '#welcome': 'help', '#help': 'help', '#settings': 'settings' }[location.hash]
+ if (view) show(view)
+ return !!view
+}
+
+routeHash()
await load()
await renderNotice()
-if (location.hash === '#welcome' || location.hash === '#help') show('help')
+routeHash()
+
+// A hash change while the page is already open (Chrome reuses an existing
+// options tab rather than opening a second one) must still move the view.
+addEventListener('hashchange', routeHash)
diff --git a/tray/webext/src/i18n.js b/tray/webext/src/i18n.js
index f2ecaf60..076d3a38 100644
--- a/tray/webext/src/i18n.js
+++ b/tray/webext/src/i18n.js
@@ -3,62 +3,142 @@
//
// Every word the extension says, in the reader's language.
//
-// WHY NOT THE APP'S SYSTEM. `slides/src/i18n.ts` uses the English string as the
-// key, compiles catalogues into the bundle, and lets the VIEWER pick a language
-// at runtime. That design exists because a document travels: it is opened by
-// people who did not write it, on machines that are not the author's, and the
-// reader chooses. An extension does not travel. It belongs to one browser, and
-// browser chrome should speak the browser's language — which is exactly what
-// `chrome.i18n` does, and the only mechanism that can also localise the store
-// listing.
+// WHERE THE LANGUAGE COMES FROM. `chrome.i18n` resolves the catalogue once, at
+// load, from the BROWSER'S UI LANGUAGE — and offers no way to change it. That
+// is the right default (browser chrome should speak the browser's language, and
+// it is the only mechanism that can also localise the store listing) but on
+// macOS the browser's UI language is the system's, so a user who wants the
+// extension in another language has to restart their whole computer in it.
+// bento/slides has a picker; this had nothing.
//
-// The cost, accepted deliberately: `chrome.i18n` has NO runtime switching. There
-// is no language picker here as there is in the app's About dialog, because
-// Chrome resolves the locale once at load from its own UI language. Anyone who
-// wants the extension in another language changes it in Chrome, which is where
-// they would look.
+// So there are two paths now:
+//
+// · AUTOMATIC (the default, and what every existing install keeps doing) —
+// `chrome.i18n.getMessage`, exactly as before.
+// · AN EXPLICIT CHOICE — we fetch `_locales/<code>/messages.json` out of our
+// own package and read from that instead. `getMessage` cannot be pointed at
+// another locale, so serving the catalogue ourselves is the only way.
+//
+// WHAT A CHOICE CANNOT REACH. `__MSG_appName__` and `__MSG_appDesc__` live in
+// the manifest and are resolved by Chrome, not by us — so the extension's name
+// and description on the chrome://extensions card, in the toolbar tooltip and
+// in the Web Store stay in the browser's UI language whatever is picked here.
+// That is a limit of the platform, not an oversight: there is no API that
+// re-resolves a manifest string.
//
// A MISSING KEY SHOWS ITSELF. `getMessage` returns an empty string for a key it
// does not know, so a typo silently blanks a button. Falling back to the key
// name makes it read `helpAboutTitle` instead — ugly on purpose, and impossible
// to miss in review.
+import { GRANT, get, put } from './db.js'
+
+/** Every catalogue in the package. Kept in step by scripts/test-webext-i18n.ts. */
+export const LOCALES = [
+ 'ar', 'bn', 'da', 'de', 'en', 'es', 'fa', 'fi', 'fil', 'fr', 'he', 'hi', 'id',
+ 'it', 'ja', 'ko', 'ms', 'nb', 'nl', 'pl', 'pt_BR', 'ru', 'sv', 'th', 'tr',
+ 'uk', 'ur', 'vi', 'zh_CN', 'zh_TW',
+]
+
+/** `_locales` uses underscores; BCP-47 (and Intl) wants hyphens. */
+const tag = (code) => code.replace('_', '-')
+
+/**
+ * What a language calls ITSELF.
+ *
+ * Derived rather than translated: a list of 30 language names, in each of 30
+ * languages, is 900 strings nobody can check. `Intl.DisplayNames` asked for a
+ * language in its own locale gives the endonym — 日本語, العربية — which is
+ * also what a picker should show, because the person looking for their language
+ * is not currently reading the one the UI is in.
+ */
+export function localeLabel(code) {
+ try {
+ const name = new Intl.DisplayNames([tag(code)], { type: 'language' }).of(tag(code))
+ return name ? name[0].toLocaleUpperCase(tag(code)) + name.slice(1) : code
+ } catch {
+ return code
+ }
+}
+
+let catalogue = null // the fetched override catalogue, or null when automatic
+let activeCode = null // the override's code, or null when automatic
+
+/** The language actually in use — the override, else whatever Chrome resolved. */
+export function currentLocale() {
+ if (activeCode) return activeCode
+ try { return chrome.i18n.getUILanguage() } catch { return 'en' }
+}
+
+/** null when following the browser; otherwise the explicitly chosen code. */
+export const localeOverride = () => activeCode
+
+async function fetchCatalogue(code) {
+ const res = await fetch(chrome.runtime.getURL(`_locales/${code}/messages.json`))
+ if (!res.ok) throw new Error(`messages.json ${res.status}`)
+ return res.json()
+}
+
+/**
+ * Load any saved choice. Call — and await — before the first render, or the
+ * page paints in one language and switches to another a moment later.
+ */
+export async function initI18n() {
+ try {
+ const saved = await get(GRANT, 'lang')
+ if (saved && LOCALES.includes(saved)) {
+ catalogue = await fetchCatalogue(saved)
+ activeCode = saved
+ }
+ } catch {
+ // An unreadable store or a missing catalogue is not worth a broken page:
+ // fall back to the browser's own resolution, which always works.
+ catalogue = null
+ activeCode = null
+ }
+}
+
+/**
+ * Choose a language, or pass null to go back to following the browser.
+ * Callers re-render their own UI (see `applyLocale` in home.js).
+ */
+export async function setLocale(code) {
+ if (!code) {
+ catalogue = null
+ activeCode = null
+ await put(GRANT, 'lang', null)
+ return
+ }
+ if (!LOCALES.includes(code)) return
+ catalogue = await fetchCatalogue(code)
+ activeCode = code
+ await put(GRANT, 'lang', code)
+}
+
/**
* One message, with positional substitutions.
*
* t('foundFolders', 2) -> "Found 2 folders"
*
* Chrome takes substitutions as strings, so numbers are coerced here rather
- * than at every call site.
+ * than at every call site. When an override is active we do the `$1` expansion
+ * ourselves, because `getMessage` is doing none of the work.
*/
export const t = (key, ...subs) => {
+ const s = subs.map((x) => String(x))
+ const own = catalogue?.[key]?.message
+ // `$$` is Chrome's escape for a literal dollar; expand placeholders first and
+ // unescape after, so a translated "$$5" cannot be read as a substitution.
+ if (own) return own.replace(/\$(\d)/g, (_, n) => s[Number(n) - 1] ?? '').replace(/\$\$/g, '$')
try {
- return chrome.i18n.getMessage(key, subs.map((s) => String(s))) || key
+ return chrome.i18n.getMessage(key, s) || key
} catch {
return key // no chrome.i18n: a test rig, or a page loaded outside the extension
}
}
/**
- * Fill the static markup.
- *
- * Chrome substitutes `__MSG_x__` in the manifest and in CSS, but NOT in HTML —
- * so anything written into a page has to be filled at load. Attributes are
- * separate because a placeholder and a title are not text nodes and would
- * otherwise have to be set from script, scattering strings back into the code
- * this exists to keep them out of.
- *
- * <h1 data-i18n="helpTitle"></h1>
- * <input data-i18n-placeholder="searchPlaceholder">
- * <button data-i18n-title="moreActions">…</button>
- *
- * `data-i18n-html` exists for the few strings carrying <b> or <code>. The
- * source is our own catalogue, never a document or a message, so it is markup
- * we wrote — but it is a separate attribute so that using it is a decision
- * rather than the default.
- */
-/**
- * Right-to-left, when the browser's language is.
+ * Right-to-left, when the chosen language is.
*
* The app already does this deliberately (`slides/src/i18n.ts RTL_LANGS`), and
* the extension shipped Arabic, Persian, Hebrew and Urdu catalogues into a
@@ -66,19 +146,20 @@ export const t = (key, ...subs) => {
* of it — the CSS had to stop naming sides, which is why it uses
* `inset-inline-start` and `text-align: start` rather than `left`.
*
- * `chrome.i18n.getUILanguage()` is the browser's language, which is the one
- * Chrome resolved the catalogue from, so the direction cannot disagree with the
- * words on screen.
+ * Reads `currentLocale()` rather than `getUILanguage()` directly, so an
+ * explicit choice of Arabic mirrors the layout even though Chrome's own UI is
+ * still in English. Getting this wrong is invisible in English and total in
+ * Arabic.
*/
const RTL = new Set(['ar', 'fa', 'he', 'iw', 'ur', 'ps', 'sd', 'ug', 'yi'])
export function applyDirection(root = document) {
+ const lang = currentLocale()
try {
- const lang = chrome.i18n.getUILanguage()
- root.documentElement.lang = lang
- root.documentElement.dir = RTL.has(lang.split('-')[0].toLowerCase()) ? 'rtl' : 'ltr'
+ root.documentElement.lang = tag(lang)
+ root.documentElement.dir = RTL.has(lang.split(/[-_]/)[0].toLowerCase()) ? 'rtl' : 'ltr'
} catch {
- /* no chrome.i18n: leave the document as authored */
+ /* no document to mark up */
}
}
diff --git a/tray/webext/src/panel.html b/tray/webext/src/panel.html
index cb3944a7..7dafa7ef 100644
--- a/tray/webext/src/panel.html
+++ b/tray/webext/src/panel.html
@@ -3,6 +3,8 @@
<title>bento/tray</title>
<link rel="icon" href="../icons/icon.svg">
<link rel="stylesheet" href="ui.css">
+<!-- Blocking, and before the body: stamps the theme so the FIRST paint is right. -->
+<script src="theme.js"></script>
<style>
/* Page-specific layout only; the palette and controls come from ui.css.
*
diff --git a/tray/webext/src/panel.js b/tray/webext/src/panel.js
index 49f135ee..21923aab 100644
--- a/tray/webext/src/panel.js
+++ b/tray/webext/src/panel.js
@@ -10,7 +10,7 @@
// that stays quiet while things work.
import { getGrants, putGrants, status, setLapsedBadge } from './status.js'
-import { t, localize } from './i18n.js'
+import { t, localize, initI18n } from './i18n.js'
import { listDocuments, describe, newDocument } from './library.js'
const $ = (id) => document.getElementById(id)
@@ -261,6 +261,9 @@ $('open').addEventListener('click', () => {
chrome.runtime.openOptionsPage()
})
+// The language is one preference across both surfaces, so the panel loads the
+// same saved catalogue the full page does before it draws anything.
+await initI18n()
localize()
await renderStatus()
await renderDocs()
diff --git a/tray/webext/src/theme.js b/tray/webext/src/theme.js
new file mode 100644
index 00000000..815bd9af
--- /dev/null
+++ b/tray/webext/src/theme.js
@@ -0,0 +1,75 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+//
+// Light, dark, or whatever the browser is doing.
+//
+// A CLASSIC SCRIPT, NOT A MODULE, AND LOADED IN <head>. Every other file here
+// is an ES module, which the browser defers until after the document parses —
+// and a theme applied after the first paint is a white flash on a dark
+// machine, every single time a surface opens. A blocking head script runs
+// before the body exists, so the very first paint is already correct. An
+// inline script would do the same job in one line and is forbidden: MV3's
+// content security policy allows extension-local files ('self') and nothing
+// else, so this is a file.
+//
+// WHY localStorage, WHEN EVERY OTHER PREFERENCE HERE LIVES IN IndexedDB.
+// Because IndexedDB is asynchronous and this decision has to be made before
+// the browser paints. localStorage is synchronous, and extension pages share
+// one origin — so home.html and panel.html agree without any message passing.
+// Reading the PROPERTY can throw where site data is blocked, so every access
+// is guarded: a theme is worth less than a working page.
+//
+// SEMANTICS MIRROR `kernel/src/theme.ts`, deliberately. That module cannot be
+// imported (it is TypeScript, and this directory ships plain .js with no build
+// step), so the three states, the storage key and the two attributes it sets
+// are reproduced here rather than reinvented.
+;(() => {
+ const KEY = 'bento-theme'
+ const read = () => { try { return localStorage.getItem(KEY) } catch { return null } }
+ const write = (v) => {
+ try { v ? localStorage.setItem(KEY, v) : localStorage.removeItem(KEY) }
+ catch { /* the preference simply is not remembered */ }
+ }
+ const media = () => {
+ try { return matchMedia('(prefers-color-scheme: dark)') } catch { return null }
+ }
+
+ /** What the user asked for — 'auto' unless they chose otherwise. */
+ const choice = () => {
+ const v = read()
+ return v === 'light' || v === 'dark' ? v : 'auto'
+ }
+ /** What that resolves to right now, given the browser. */
+ const resolved = (c) => {
+ const want = c ?? choice()
+ return want !== 'auto' ? want : (media()?.matches ? 'dark' : 'light')
+ }
+
+ /**
+ * `data-theme` is what ui.css keys off. `color-scheme` is what makes the
+ * BROWSER's own furniture follow — scrollbars, <select> popups, the canvas
+ * behind a rubber-band scroll. Without it a dark page keeps light scrollbars
+ * and light dropdowns, and looks broken in exactly the places CSS cannot
+ * reach. The tray shipped without it: two scrollers and two selects.
+ */
+ const apply = (c) => {
+ const t = resolved(c)
+ const root = document.documentElement
+ root.dataset.theme = t
+ root.style.colorScheme = t
+ return t
+ }
+
+ const set = (c) => {
+ write(c === 'auto' ? null : c)
+ return apply(c)
+ }
+
+ // While the choice is 'auto', follow the browser as it changes — otherwise a
+ // window left open across sunset keeps yesterday's answer.
+ try { media()?.addEventListener('change', () => { if (choice() === 'auto') apply() }) }
+ catch { /* older engines: the next page load picks it up */ }
+
+ apply()
+ globalThis.bentoTheme = { CHOICES: ['auto', 'light', 'dark'], choice, resolved, set, apply }
+})()
diff --git a/tray/webext/src/ui.css b/tray/webext/src/ui.css
index 36cf2128..2a306027 100644
--- a/tray/webext/src/ui.css
+++ b/tray/webext/src/ui.css
@@ -21,14 +21,21 @@
--lift: 0 2px 6px rgba(20,35,60,.10), 0 14px 34px rgba(20,35,60,.12);
--r: 9px;
}
-@media (prefers-color-scheme: dark) {
- :root {
- --bg: #0f1720; --panel: #16202b; --ink: #e7edf4; --dim: #90a1b4;
- --line: #24313f; --hover: #1d2937; --accent: #e7edf4; --peach: #ff9e8a;
- --on-accent: #0f1720; /* --on-good stays white: it sits on green in both themes */
- --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.34);
- --lift: 0 2px 6px rgba(0,0,0,.45), 0 16px 40px rgba(0,0,0,.46);
- }
+/* Keyed on the ATTRIBUTE, not on `prefers-color-scheme`.
+ *
+ * theme.js resolves auto/light/dark before the first paint and stamps the
+ * answer on <html>, exactly as `kernel/src/theme.ts` does for bento/slides —
+ * whose stylesheet likewise contains no media query. Doing it in CSS as well
+ * would mean writing every dark value a second time, and the rule at the top
+ * of this file is that a colour appearing twice is a mistake. It would also be
+ * wrong: a media query cannot be overridden by a user who wants light chrome
+ * on a dark machine, which is the whole point of offering the choice. */
+:root[data-theme="dark"] {
+ --bg: #0f1720; --panel: #16202b; --ink: #e7edf4; --dim: #90a1b4;
+ --line: #24313f; --hover: #1d2937; --accent: #e7edf4; --peach: #ff9e8a;
+ --on-accent: #0f1720; /* --on-good stays white: it sits on green in both themes */
+ --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.34);
+ --lift: 0 2px 6px rgba(0,0,0,.45), 0 16px 40px rgba(0,0,0,.46);
}
* { box-sizing: border-box }