Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.
TypeScript ai-meeting-assistantai-notetakerelectrongranola-alternativelinuxllama-cpplocal-ailocal-firstmacosmcpmeeting-minutesmeeting-notesoffline-firstopen-sourceprivacyspeech-to-texttranscriptionwhisperwhisper-cppwindows
Calendar links: a calendar with years of history now connects, and one that is still too big says so instead of "couldn't reach" (#146)
christianmat074012ea38fc
diff --git a/app/src/main/calendarLink/get.ts b/app/src/main/calendarLink/get.tsindex e4039232..e0d07b9b 100644--- a/app/src/main/calendarLink/get.ts+++ b/app/src/main/calendarLink/get.ts@@ -1,16 +1,42 @@/*** The one request a calendar link makes: the person's own calendar address, straight from this computer to their- * calendar provider (Google, Outlook, …). No Yogurt server sits in between. Small and slow-proof: at most 10 MB, 20 s.+ * calendar provider (Google, Outlook, …). No Yogurt server sits in between. A work calendar with years of history is+ * tens of megabytes (#146), so there's room for that, but not for a download that never ends: 64 MB, one minute.*/-const MAX_BYTES = 10 * 2 ** 20-const TIMEOUT_MS = 20_000+export const MAX_BYTES = 64 * 2 ** 20+export const TIMEOUT_MS = 60_000-export async function getCalendar(url: string): Promise<string> {- const res = await fetch(url, { signal: AbortSignal.timeout(TIMEOUT_MS), redirect: 'follow', headers: { accept: 'text/calendar, */*' } })+/** the feed is over the limit, or took too long to arrive: it was reached, so this isn't a connection problem */+export class CalendarTooBig extends Error {+ constructor() { super('calendar too big') }+}++export async function getCalendar(url: string, { maxBytes = MAX_BYTES, timeoutMs = TIMEOUT_MS } = {}): Promise<string> {+ const signal = AbortSignal.timeout(timeoutMs)+ let res: Response+ // a server that never answers in time is as likely a bad connection as a big calendar+ try { res = await fetch(url, { signal, redirect: 'follow', headers: { accept: 'text/calendar, */*' } }) } catch (e) {+ if (signal.aborted) throw new Error('calendar address did not answer', { cause: e })+ throw e+ }if (!res.ok) throw new Error(`calendar address answered ${res.status}`)- const size = Number(res.headers.get('content-length') ?? 0)- if (size > MAX_BYTES) throw new Error('calendar too big')- const text = await res.text()- if (text.length > MAX_BYTES) throw new Error('calendar too big')- return text+ if (Number(res.headers.get('content-length') ?? 0) > maxBytes) { void res.body?.cancel().catch(() => {}); throw new CalendarTooBig() }+ if (!res.body) return ''+ // counted as it arrives, so a huge feed stops downloading at the limit instead of filling memory first+ const reader = res.body.getReader()+ const chunks: Uint8Array[] = []+ let size = 0+ try {+ for (;;) {+ const { done, value } = await reader.read()+ if (done) break+ size += value.byteLength+ if (size > maxBytes) { void reader.cancel().catch(() => {}); throw new CalendarTooBig() }+ chunks.push(value)+ }+ } catch (e) {+ if (e instanceof CalendarTooBig || signal.aborted) throw new CalendarTooBig()+ throw e+ }+ return Buffer.concat(chunks, size).toString('utf8')}diff --git a/app/src/main/calendarLink/ics.ts b/app/src/main/calendarLink/ics.tsindex 9984bac4..7c0a732b 100644--- a/app/src/main/calendarLink/ics.ts+++ b/app/src/main/calendarLink/ics.ts@@ -53,6 +53,37 @@ function people(c: ICAL.Component, me: string | null): RawEvent['attendees'] {return out}+const DAY_MS = 86_400_000+const WEEKDAYS = ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA']++/**+ * Where to start walking a series so it reaches the window in a few steps (#146: years of daily meetings walked one+ * by one from their first day, each read). Daily and weekly rules repeat every whole number of weeks, so their start+ * moves forward by that many weeks and the same occurrences follow, in their own time zone. null: the series ended+ * before the window. Other rules (monthly, counted, with extra dates) start where they start: they're a few a year.+ */+function nearWindow(ev: ICAL.Event, fromMs: number): ICAL.Time | null {+ const start = ev.startDate+ const rules = ev.component.getAllProperties('rrule')+ if (rules.length !== 1 || ev.component.hasProperty('rdate')) return start+ const rule = rules[0].getFirstValue() as ICAL.Recur+ // a day's room: an end given as a date alone means the whole of that day+ if (rule.until && !rule.count && rule.until.toJSDate().getTime() + DAY_MS < fromMs) return null+ if (rule.count || (rule.freq !== 'DAILY' && rule.freq !== 'WEEKLY')) return start+ const parts = Object.keys(rule.parts)+ if (parts.some((p) => p !== 'BYDAY')) return start+ // the first day itself counts as an occurrence, so the moved one must be a real one too+ const byday = rule.parts.BYDAY as string[] | undefined+ if (byday && !byday.includes(WEEKDAYS[start.dayOfWeek() - 1])) return start+ const period = 7 * (rule.interval || 1)+ // a period short of the window, so a change of clocks on the way can't step past its first occurrence+ const periods = Math.floor((fromMs - start.toJSDate().getTime()) / (period * DAY_MS)) - 1+ if (periods <= 0) return start+ const moved = start.clone()+ moved.adjust(periods * period, 0, 0, 0)+ return moved+}+/** how far either side of a read the occurrences are worked out at once, so the next reads (each minute) reuse them */const SPAN_MS = 7 * 86_400_000@@ -106,8 +137,9 @@ export function icsFeed(text: string, link: LinkRef) {// working out an occurrence (its moved copy, its end) is the slow part: only for ones that can reach the windowconst lasts = ev.duration.toSeconds() * 1000const moved = new Set(Object.keys(ev.exceptions))- const it = ev.iterator()- for (let i = 0, next = it.next(); next && i < MAX_STEPS; i++, next = it.next()) {+ const startAt = nearWindow(ev, fromMs - lasts)+ const it = startAt && ev.iterator(startAt)+ for (let i = 0, next = it ? it.next() : null; it && next && i < MAX_STEPS; i++, next = it.next()) {const at = next.toJSDate().getTime()if (at >= toMs) breakif (at + lasts <= fromMs || moved.has(next.toString())) continue@@ -125,6 +157,8 @@ export function icsFeed(text: string, link: LinkRef) {let kept: { fromMs: number; toMs: number; events: RawEvent[] } | null = nullreturn {+ /** the feed's own name (Google names a person's calendar after them) */+ name,/** Events that overlap [fromMs, toMs), all-day and cancelled ones left out */events(fromMs: number, toMs: number): RawEvent[] {if (!kept || fromMs < kept.fromMs || toMs > kept.toMs) {diff --git a/app/src/main/calendarLink/index.ts b/app/src/main/calendarLink/index.tsindex 6c53834c..640735ee 100644--- a/app/src/main/calendarLink/index.ts+++ b/app/src/main/calendarLink/index.ts@@ -2,7 +2,8 @@ import { calendarAddress as normalize } from '../../shared/calendarLink'export { normalize }import { randomUUID } from 'node:crypto'import { loadSettings, updateSettings } from '../settings'-import { icsFeed, icsName, type IcsFeed, type RawEvent } from './ics'+import { CalendarTooBig } from './get'+import { icsFeed, type IcsFeed, type RawEvent } from './ics'/*** Calendar links: Windows and Linux have no system calendar Yogurt can read, so the person pastes their calendar's@@ -11,7 +12,7 @@ import { icsFeed, icsName, type IcsFeed, type RawEvent } from './ics'* come out in the Mac helper's shape, so the agenda, call detection and attendees work as on a Mac (calendar.ts).*/-export type LinkError = 'bad-url' | 'unreachable' | 'not-calendar' | 'public-address'+export type LinkError = 'bad-url' | 'unreachable' | 'not-calendar' | 'public-address' | 'too-big'export type AddResult = { ok: true; id: string; name: string } | { ok: false; error: LinkError }type Stored = { id: string; name: string; host: string; url: string }@@ -65,14 +66,20 @@ export function createCalendarLinks(d: {// Google's public address only answers for a public calendar; work accounts often have no secret one to use insteadconst publicGoogle = url.hostname === 'calendar.google.com' && /\/public\/[^/]*\.ics$/i.test(url.pathname)let t: string- try { t = await d.get(url.toString()) } catch { return { ok: false, error: publicGoogle ? 'public-address' : 'unreachable' } }- let name: string | null- try { name = icsName(t).name } catch { return { ok: false, error: publicGoogle ? 'public-address' : 'not-calendar' } }+ try { t = await d.get(url.toString()) } catch (e) {+ // reached, but more than Yogurt reads (#146): saying it couldn't be reached sent people checking their connection+ if (e instanceof CalendarTooBig) return { ok: false, error: 'too-big' }+ return { ok: false, error: publicGoogle ? 'public-address' : 'unreachable' }+ }const id = randomUUID()+ // parsed once here, and kept: a feed with years of history takes a moment to read+ const ref = { id, name: '' }+ let f: IcsFeed+ try { f = icsFeed(t, ref) } catch { return { ok: false, error: publicGoogle ? 'public-address' : 'not-calendar' } }const host = url.hostname- const label = name ?? host+ const label = ref.name = f.name ?? hostupdateSettings(d.file, { calendarLinks: [...stored(), { id, name: label, host, url: d.seal(url.toString()) }] })- cache.set(id, { text: t, at: now() })+ cache.set(id, { text: t, at: now(), feed: f })return { ok: true, id, name: label }},remove(id: string) {diff --git a/app/src/renderer/src/components/CalendarLinkForm.tsx b/app/src/renderer/src/components/CalendarLinkForm.tsxindex e2f1fd59..908ec63d 100644--- a/app/src/renderer/src/components/CalendarLinkForm.tsx+++ b/app/src/renderer/src/components/CalendarLinkForm.tsx@@ -31,6 +31,7 @@ const ERRORS = {'unreachable': () => t('Yogurt couldn\'t reach that address. Check your connection and the address.'),'not-calendar': () => t('That address isn\'t a calendar. Copy the iCal address, not the page\'s address.'),'public-address': () => t('That\'s the public address, which only works if your calendar is public. Copy "Secret address in iCal format" instead.'),+ 'too-big': () => t('This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.'),}/** Shared validation and copy; setup keeps its primary Connect and Not now actions. */diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.jsonindex 1278ebd8..c963149a 100644--- a/app/src/shared/locales/ar.json+++ b/app/src/shared/locales/ar.json@@ -792,6 +792,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "ضمن \"Publish a calendar\"، اختر تقويمك و\"Can view all details\"، ثم Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "ضمن \"Settings for my calendars\"، اختر تقويمك، ثم \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "لم يتمكن Yogurt من الوصول إلى هذا العنوان. تحقق من اتصالك ومن العنوان.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "هذا التقويم أكبر من أن يقرأه Yogurt. جرّب رابطًا يشارك الأحداث القادمة فقط.","{name} is connected. You can change this any time in Settings.": "تم ربط {name}. يمكنك تغيير ذلك في أي وقت من الإعدادات.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "هذا هو العنوان العام، ولا يعمل إلا إذا كان تقويمك عامًا. انسخ \"Secret address in iCal format\" بدلًا منه.","Upload a file": "رفع ملف",diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.jsonindex 14cf7989..4edf075d 100644--- a/app/src/shared/locales/bn.json+++ b/app/src/shared/locales/bn.json@@ -724,6 +724,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "\"Publish a calendar\"-এর নিচে আপনার ক্যালেন্ডার এবং \"Can view all details\" বেছে নিন, তারপর Publish করুন।","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "\"Settings for my calendars\"-এর নিচে আপনার ক্যালেন্ডার বেছে নিন, তারপর \"Integrate calendar\"।","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt ওই ঠিকানায় পৌঁছাতে পারেনি। আপনার সংযোগ ও ঠিকানাটি দেখুন।",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "এই ক্যালেন্ডারটি Yogurt-এর পড়ার জন্য অনেক বড়। এমন একটি লিংক দিয়ে দেখুন যা শুধু আসন্ন ইভেন্টগুলো শেয়ার করে।","{name} is connected. You can change this any time in Settings.": "{name} যুক্ত হয়েছে। সেটিংসে যেকোনো সময় এটি বদলাতে পারেন।","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "এটি পাবলিক ঠিকানা, যা শুধু আপনার ক্যালেন্ডার পাবলিক হলে কাজ করে। এর বদলে \"Secret address in iCal format\" কপি করুন।","Upload a file": "একটি ফাইল আপলোড করুন",diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.jsonindex 04967d16..30c0a2a1 100644--- a/app/src/shared/locales/cs.json+++ b/app/src/shared/locales/cs.json@@ -767,6 +767,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "V části „Publish a calendar“ vyberte svůj kalendář a „Can view all details“, pak Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "V části „Settings for my calendars“ vyberte svůj kalendář a pak „Integrate calendar“.","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt se k té adrese nedostal. Zkontrolujte připojení a adresu.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Tenhle kalendář je pro Yogurt moc velký. Zkuste odkaz, který sdílí jen nadcházející události.","{name} is connected. You can change this any time in Settings.": "{name} je připojený. Můžete to kdykoli změnit v Nastavení.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "To je veřejná adresa, která funguje jen u veřejného kalendáře. Zkopírujte místo ní „Secret address in iCal format“.","Upload a file": "Nahrát soubor",diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.jsonindex d720990c..7a8895d5 100644--- a/app/src/shared/locales/da.json+++ b/app/src/shared/locales/da.json@@ -736,6 +736,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Under \"Publish a calendar\" skal du vælge din kalender og \"Can view all details\" og derefter Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Under \"Settings for my calendars\" skal du vælge din kalender og derefter \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt kunne ikke nå den adresse. Tjek din forbindelse og adressen.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Denne kalender er for stor til, at Yogurt kan læse den. Prøv et link, der kun deler kommende begivenheder.","{name} is connected. You can change this any time in Settings.": "{name} er forbundet. Du kan ændre det når som helst i Indstillinger.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Det er den offentlige adresse, som kun virker, hvis din kalender er offentlig. Kopiér \"Secret address in iCal format\" i stedet.","Upload a file": "Upload en fil",diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.jsonindex 311e340b..cf37879e 100644--- a/app/src/shared/locales/de.json+++ b/app/src/shared/locales/de.json@@ -736,6 +736,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Wähle unter „Publish a calendar“ deinen Kalender und „Can view all details“, dann Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Wähle unter „Settings for my calendars“ deinen Kalender, dann „Integrate calendar“.","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt konnte diese Adresse nicht erreichen. Prüfe deine Verbindung und die Adresse.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Dieser Kalender ist zu groß, als dass Yogurt ihn lesen könnte. Versuch es mit einem Link, der nur anstehende Termine teilt.","{name} is connected. You can change this any time in Settings.": "{name} ist verbunden. Du kannst das jederzeit in den Einstellungen ändern.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Das ist die öffentliche Adresse, die nur bei einem öffentlichen Kalender funktioniert. Kopiere stattdessen „Secret address in iCal format“.","Upload a file": "Datei hochladen",diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.jsonindex a6b9216b..291bdd44 100644--- a/app/src/shared/locales/el.json+++ b/app/src/shared/locales/el.json@@ -739,6 +739,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Στο «Publish a calendar», επιλέξτε το ημερολόγιό σας και «Can view all details», και μετά Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Στο «Settings for my calendars», επιλέξτε το ημερολόγιό σας και μετά «Integrate calendar».","Yogurt couldn't reach that address. Check your connection and the address.": "Το Yogurt δεν μπόρεσε να φτάσει σε αυτή τη διεύθυνση. Ελέγξτε τη σύνδεση και τη διεύθυνση.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Αυτό το ημερολόγιο είναι πολύ μεγάλο για να το διαβάσει το Yogurt. Δοκιμάστε έναν σύνδεσμο που κοινοποιεί μόνο τα επερχόμενα συμβάντα.","{name} is connected. You can change this any time in Settings.": "Το {name} συνδέθηκε. Μπορείτε να το αλλάξετε όποτε θέλετε στις Ρυθμίσεις.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Αυτή είναι η δημόσια διεύθυνση, που λειτουργεί μόνο αν το ημερολόγιό σας είναι δημόσιο. Αντιγράψτε το «Secret address in iCal format».","Upload a file": "Μεταφόρτωση αρχείου",diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.jsonindex 6d544f68..d2b730b4 100644--- a/app/src/shared/locales/es.json+++ b/app/src/shared/locales/es.json@@ -749,6 +749,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "En \"Publish a calendar\", elige tu calendario y \"Can view all details\", y luego Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "En \"Settings for my calendars\", elige tu calendario y luego \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt no pudo acceder a esa dirección. Revisa tu conexión y la dirección.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Este calendario es demasiado grande para que Yogurt lo lea. Prueba con un enlace que solo comparta los próximos eventos.","{name} is connected. You can change this any time in Settings.": "{name} está conectado. Puedes cambiarlo cuando quieras en Ajustes.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Esa es la dirección pública, que solo funciona si tu calendario es público. Copia \"Secret address in iCal format\" en su lugar.","Upload a file": "Subir un archivo",diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.jsonindex 75c71def..d23194ef 100644--- a/app/src/shared/locales/fi.json+++ b/app/src/shared/locales/fi.json@@ -742,6 +742,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Valitse kohdassa \"Publish a calendar\" kalenterisi ja \"Can view all details\", sitten Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Valitse kohdassa \"Settings for my calendars\" kalenterisi ja sitten \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt ei saanut yhteyttä osoitteeseen. Tarkista yhteys ja osoite.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Tämä kalenteri on liian suuri Yogurtin luettavaksi. Kokeile linkkiä, joka jakaa vain tulevat tapahtumat.","{name} is connected. You can change this any time in Settings.": "{name} on yhdistetty. Voit muuttaa tätä milloin tahansa Asetuksissa.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Tuo on julkinen osoite, joka toimii vain julkiselle kalenterille. Kopioi sen sijaan \"Secret address in iCal format\".","Upload a file": "Lataa tiedosto",diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.jsonindex c0a699a6..df4a5d78 100644--- a/app/src/shared/locales/fil.json+++ b/app/src/shared/locales/fil.json@@ -736,6 +736,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Sa ilalim ng \"Publish a calendar\", piliin ang calendar mo at \"Can view all details\", saka Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Sa ilalim ng \"Settings for my calendars\", piliin ang calendar mo, saka \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "Hindi maabot ng Yogurt ang address na iyan. Tingnan ang koneksyon mo at ang address.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Masyadong malaki ang kalendaryong ito para mabasa ng Yogurt. Subukan ang link na nagbabahagi lang ng mga paparating na event.","{name} is connected. You can change this any time in Settings.": "Nakakonekta na ang {name}. Puwede mo itong baguhin anumang oras sa Settings.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Iyan ang public address, na gumagana lang kung public ang calendar mo. Kopyahin na lang ang \"Secret address in iCal format\".","Upload a file": "Mag-upload ng file",diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.jsonindex 3ca7794b..ef4ddb7a 100644--- a/app/src/shared/locales/fr.json+++ b/app/src/shared/locales/fr.json@@ -752,6 +752,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Sous « Publish a calendar », choisissez votre calendrier et « Can view all details », puis Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Sous « Settings for my calendars », choisissez votre calendrier, puis « Integrate calendar ».","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt n’a pas pu joindre cette adresse. Vérifiez votre connexion et l’adresse.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Ce calendrier est trop volumineux pour que Yogurt le lise. Essayez un lien qui ne partage que les événements à venir.","{name} is connected. You can change this any time in Settings.": "{name} est connecté. Vous pouvez changer cela à tout moment dans les Réglages.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "C’est l’adresse publique, qui ne fonctionne que si votre calendrier est public. Copiez plutôt « Secret address in iCal format ».","Upload a file": "Importer un fichier",diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.jsonindex 09c7c7a1..3eddb512 100644--- a/app/src/shared/locales/he.json+++ b/app/src/shared/locales/he.json@@ -746,6 +746,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "תחת \"Publish a calendar\", בחרו את היומן שלכם ואת \"Can view all details\", ואז Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "תחת \"Settings for my calendars\", בחרו את היומן שלכם, ואז \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt לא הצליח להגיע לכתובת הזו. בדקו את החיבור ואת הכתובת.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "היומן הזה גדול מדי בשביל ש־Yogurt יוכל לקרוא אותו. נסו קישור שמשתף רק אירועים קרובים.","{name} is connected. You can change this any time in Settings.": "{name} מחובר. אפשר לשנות זאת בכל עת בהגדרות.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "זו הכתובת הציבורית, והיא עובדת רק אם היומן שלכם ציבורי. העתיקו במקומה את \"Secret address in iCal format\".","Upload a file": "העלאת קובץ",diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.jsonindex 82899e45..7a21999c 100644--- a/app/src/shared/locales/hi.json+++ b/app/src/shared/locales/hi.json@@ -724,6 +724,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "\"Publish a calendar\" में अपना कैलेंडर और \"Can view all details\" चुनें, फिर Publish करें।","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "\"Settings for my calendars\" में अपना कैलेंडर चुनें, फिर \"Integrate calendar\"।","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt उस पते तक नहीं पहुंच सका। अपना कनेक्शन और पता जांचें।",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "यह कैलेंडर Yogurt के पढ़ने के लिए बहुत बड़ा है। ऐसा लिंक आज़माएं जो सिर्फ़ आने वाले इवेंट शेयर करे।","{name} is connected. You can change this any time in Settings.": "{name} कनेक्ट हो गया है। आप इसे कभी भी सेटिंग्स में बदल सकते हैं।","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "यह पब्लिक पता है, जो सिर्फ तभी काम करता है जब आपका कैलेंडर पब्लिक हो। इसकी जगह \"Secret address in iCal format\" कॉपी करें।","Upload a file": "फ़ाइल अपलोड करें",diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.jsonindex 82f994c1..c3811c8c 100644--- a/app/src/shared/locales/hu.json+++ b/app/src/shared/locales/hu.json@@ -724,6 +724,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "A „Publish a calendar” résznél válaszd ki a naptárad és a „Can view all details” lehetőséget, majd Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "A „Settings for my calendars” résznél válaszd ki a naptárad, majd „Integrate calendar”.","Yogurt couldn't reach that address. Check your connection and the address.": "A Yogurt nem érte el ezt a címet. Ellenőrizd a kapcsolatot és a címet.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Ez a naptár túl nagy ahhoz, hogy a Yogurt beolvassa. Próbálj egy olyan linket, amely csak a közelgő eseményeket osztja meg.","{name} is connected. You can change this any time in Settings.": "{name} csatlakoztatva. Bármikor módosíthatod a Beállításokban.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Ez a nyilvános cím, ami csak nyilvános naptárnál működik. Másold ki helyette a „Secret address in iCal format” címet.","Upload a file": "Fájl feltöltése",diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.jsonindex 77a86165..2ff763df 100644--- a/app/src/shared/locales/id.json+++ b/app/src/shared/locales/id.json@@ -694,6 +694,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Di \"Publish a calendar\", pilih kalender Anda dan \"Can view all details\", lalu Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Di \"Settings for my calendars\", pilih kalender Anda, lalu \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt tidak bisa menjangkau alamat itu. Periksa koneksi dan alamatnya.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Kalender ini terlalu besar untuk dibaca Yogurt. Coba tautan yang hanya membagikan acara mendatang.","{name} is connected. You can change this any time in Settings.": "{name} terhubung. Anda bisa mengubahnya kapan saja di Pengaturan.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Itu alamat publik, yang hanya berfungsi jika kalender Anda publik. Salin \"Secret address in iCal format\" sebagai gantinya.","Upload a file": "Unggah file",diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.jsonindex a1c0f7ac..87a44419 100644--- a/app/src/shared/locales/it.json+++ b/app/src/shared/locales/it.json@@ -755,6 +755,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "In \"Publish a calendar\", scegli il tuo calendario e \"Can view all details\", poi Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "In \"Settings for my calendars\", scegli il tuo calendario, poi \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt non è riuscito a raggiungere quell’indirizzo. Controlla la connessione e l’indirizzo.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Questo calendario è troppo grande perché Yogurt possa leggerlo. Prova un link che condivida solo gli eventi in arrivo.","{name} is connected. You can change this any time in Settings.": "{name} è collegato. Puoi cambiarlo quando vuoi in Impostazioni.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Quello è l’indirizzo pubblico, che funziona solo se il calendario è pubblico. Copia invece \"Secret address in iCal format\".","Upload a file": "Carica un file",diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.jsonindex 2a99db08..8ea97160 100644--- a/app/src/shared/locales/ja.json+++ b/app/src/shared/locales/ja.json@@ -694,6 +694,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "「Publish a calendar」でカレンダーと「Can view all details」を選び、Publish をクリックします。","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "「Settings for my calendars」でカレンダーを選び、「Integrate calendar」を開きます。","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt はそのアドレスにアクセスできませんでした。接続とアドレスを確認してください。",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "このカレンダーは大きすぎて Yogurt では読み込めません。今後の予定だけを共有するリンクを試してください。","{name} is connected. You can change this any time in Settings.": "{name}を接続しました。設定でいつでも変更できます。","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "それは公開アドレスで、カレンダーが公開されている場合にしか使えません。代わりに「Secret address in iCal format」をコピーしてください。","Upload a file": "ファイルをアップロード",diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.jsonindex f9afb17b..6d3fca78 100644--- a/app/src/shared/locales/ko.json+++ b/app/src/shared/locales/ko.json@@ -694,6 +694,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "\"Publish a calendar\"에서 캘린더와 \"Can view all details\"를 고른 뒤 Publish를 누르세요.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "\"Settings for my calendars\"에서 캘린더를 고른 뒤 \"Integrate calendar\"로 가세요.","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt가 그 주소에 연결하지 못했어요. 인터넷 연결과 주소를 확인하세요.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "이 캘린더는 너무 커서 Yogurt가 읽을 수 없어요. 다가오는 일정만 공유하는 링크를 사용해 보세요.","{name} is connected. You can change this any time in Settings.": "{name}이(가) 연결됐어요. 설정에서 언제든 바꿀 수 있어요.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "그건 공개 주소라서 캘린더가 공개일 때만 작동해요. 대신 \"Secret address in iCal format\"을 복사하세요.","Upload a file": "파일 업로드",diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.jsonindex 2b098a0c..efe5a786 100644--- a/app/src/shared/locales/ms.json+++ b/app/src/shared/locales/ms.json@@ -694,6 +694,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Di bawah \"Publish a calendar\", pilih kalendar anda dan \"Can view all details\", kemudian Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Di bawah \"Settings for my calendars\", pilih kalendar anda, kemudian \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt tidak dapat mencapai alamat itu. Semak sambungan dan alamat anda.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Kalendar ini terlalu besar untuk dibaca oleh Yogurt. Cuba pautan yang hanya berkongsi acara akan datang.","{name} is connected. You can change this any time in Settings.": "{name} disambungkan. Anda boleh menukarnya bila-bila masa dalam Tetapan.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Itu alamat awam, yang hanya berfungsi jika kalendar anda awam. Salin \"Secret address in iCal format\" sebaliknya.","Upload a file": "Muat naik fail",diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.jsonindex e853040e..796f28fa 100644--- a/app/src/shared/locales/nb.json+++ b/app/src/shared/locales/nb.json@@ -736,6 +736,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Under «Publish a calendar» velger du kalenderen din og «Can view all details», og så Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Under «Settings for my calendars» velger du kalenderen din, og så «Integrate calendar».","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt nådde ikke den adressen. Sjekk tilkoblingen og adressen.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Denne kalenderen er for stor til at Yogurt kan lese den. Prøv en lenke som bare deler kommende hendelser.","{name} is connected. You can change this any time in Settings.": "{name} er koblet til. Du kan endre dette når som helst i Innstillinger.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Det er den offentlige adressen, som bare fungerer hvis kalenderen er offentlig. Kopier «Secret address in iCal format» i stedet.","Upload a file": "Last opp en fil",diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.jsonindex bedcdb23..753108c6 100644--- a/app/src/shared/locales/nl.json+++ b/app/src/shared/locales/nl.json@@ -736,6 +736,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Kies onder \"Publish a calendar\" je agenda en \"Can view all details\", en dan Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Kies onder \"Settings for my calendars\" je agenda, en dan \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt kon dat adres niet bereiken. Controleer je verbinding en het adres.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Deze agenda is te groot voor Yogurt om te lezen. Probeer een link die alleen komende afspraken deelt.","{name} is connected. You can change this any time in Settings.": "{name} is gekoppeld. Je kunt dit altijd wijzigen in Instellingen.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Dat is het openbare adres, dat alleen werkt als je agenda openbaar is. Kopieer in plaats daarvan \"Secret address in iCal format\".","Upload a file": "Een bestand uploaden",diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.jsonindex f1267742..51a573be 100644--- a/app/src/shared/locales/pl.json+++ b/app/src/shared/locales/pl.json@@ -772,6 +772,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "W sekcji „Publish a calendar” wybierz swój kalendarz i „Can view all details”, a potem Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "W sekcji „Settings for my calendars” wybierz swój kalendarz, a potem „Integrate calendar”.","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt nie mógł połączyć się z tym adresem. Sprawdź połączenie i adres.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Ten kalendarz jest za duży, żeby Yogurt mógł go odczytać. Spróbuj linku, który udostępnia tylko nadchodzące wydarzenia.","{name} is connected. You can change this any time in Settings.": "{name} jest połączony. Możesz to zmienić w dowolnej chwili w Ustawieniach.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "To adres publiczny, który działa tylko dla publicznego kalendarza. Skopiuj zamiast niego „Secret address in iCal format”.","Upload a file": "Prześlij plik",diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.jsonindex f3e4eba0..62624927 100644--- a/app/src/shared/locales/pt-BR.json+++ b/app/src/shared/locales/pt-BR.json@@ -752,6 +752,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Em \"Publish a calendar\", escolha seu calendário e \"Can view all details\", depois Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Em \"Settings for my calendars\", escolha seu calendário e depois \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "O Yogurt não conseguiu acessar esse endereço. Verifique sua conexão e o endereço.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Esta agenda é grande demais para o Yogurt ler. Tente um link que compartilhe só os próximos eventos.","{name} is connected. You can change this any time in Settings.": "{name} está conectado. Você pode mudar isso quando quiser nos Ajustes.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Esse é o endereço público, que só funciona se o seu calendário for público. Copie \"Secret address in iCal format\" no lugar.","Upload a file": "Enviar um arquivo",diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.jsonindex a586d4ab..26eb5c41 100644--- a/app/src/shared/locales/ro.json+++ b/app/src/shared/locales/ro.json@@ -753,6 +753,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "La „Publish a calendar”, alegeți calendarul și „Can view all details”, apoi Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "La „Settings for my calendars”, alegeți calendarul, apoi „Integrate calendar”.","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt nu a putut accesa această adresă. Verificați conexiunea și adresa.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Acest calendar este prea mare pentru ca Yogurt să-l poată citi. Încercați un link care partajează doar evenimentele viitoare.","{name} is connected. You can change this any time in Settings.": "{name} este conectat. Puteți schimba asta oricând din Setări.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Aceasta este adresa publică, care funcționează doar dacă calendarul este public. Copiați în schimb „Secret address in iCal format”.","Upload a file": "Încarcă un fișier",diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.jsonindex b3c63c73..3891aaf1 100644--- a/app/src/shared/locales/ru.json+++ b/app/src/shared/locales/ru.json@@ -764,6 +764,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "В разделе «Publish a calendar» выберите свой календарь и «Can view all details», затем Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "В разделе «Settings for my calendars» выберите свой календарь, затем «Integrate calendar».","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt не удалось открыть этот адрес. Проверьте подключение и адрес.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Этот календарь слишком большой, Yogurt не может его прочитать. Попробуйте ссылку, которая открывает доступ только к предстоящим событиям.","{name} is connected. You can change this any time in Settings.": "{name}: подключено. Это можно изменить в любой момент в Настройках.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Это общедоступный адрес, он работает только для общедоступного календаря. Скопируйте вместо него «Secret address in iCal format».","Upload a file": "Загрузить файл",diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.jsonindex 057a91fa..f0589bc0 100644--- a/app/src/shared/locales/sv.json+++ b/app/src/shared/locales/sv.json@@ -736,6 +736,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Under ”Publish a calendar” väljer du din kalender och ”Can view all details”, sedan Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Under ”Settings for my calendars” väljer du din kalender, sedan ”Integrate calendar”.","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt nådde inte den adressen. Kontrollera anslutningen och adressen.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Den här kalendern är för stor för Yogurt att läsa. Prova en länk som bara delar kommande händelser.","{name} is connected. You can change this any time in Settings.": "{name} är ansluten. Du kan ändra det när som helst i Inställningar.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Det är den offentliga adressen, som bara fungerar om kalendern är offentlig. Kopiera ”Secret address in iCal format” i stället.","Upload a file": "Ladda upp en fil",diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.jsonindex 15f2cdfe..b0a80f7f 100644--- a/app/src/shared/locales/th.json+++ b/app/src/shared/locales/th.json@@ -694,6 +694,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "ใต้ \"Publish a calendar\" ให้เลือกปฏิทินของคุณและ \"Can view all details\" แล้วกด Publish","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "ใต้ \"Settings for my calendars\" ให้เลือกปฏิทินของคุณ แล้วไปที่ \"Integrate calendar\"","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt เข้าถึงที่อยู่นั้นไม่ได้ ตรวจสอบการเชื่อมต่อและที่อยู่",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "ปฏิทินนี้ใหญ่เกินกว่าที่ Yogurt จะอ่านได้ ลองใช้ลิงก์ที่แชร์เฉพาะกิจกรรมที่กำลังจะมาถึง","{name} is connected. You can change this any time in Settings.": "เชื่อมต่อ {name} แล้ว เปลี่ยนได้ทุกเมื่อในการตั้งค่า","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "นั่นคือที่อยู่สาธารณะ ซึ่งใช้ได้เฉพาะเมื่อปฏิทินเป็นแบบสาธารณะ ให้คัดลอก \"Secret address in iCal format\" แทน","Upload a file": "อัปโหลดไฟล์",diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.jsonindex a8f7c1bb..b8cbee4a 100644--- a/app/src/shared/locales/tr.json+++ b/app/src/shared/locales/tr.json@@ -724,6 +724,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "\"Publish a calendar\" altında takviminizi ve \"Can view all details\" seçeneğini seçin, ardından Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "\"Settings for my calendars\" altında takviminizi seçin, ardından \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt bu adrese ulaşamadı. Bağlantınızı ve adresi kontrol edin.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Bu takvim Yogurt'un okuyamayacağı kadar büyük. Yalnızca yaklaşan etkinlikleri paylaşan bir bağlantı deneyin.","{name} is connected. You can change this any time in Settings.": "{name} bağlandı. Bunu istediğiniz zaman Ayarlar’dan değiştirebilirsiniz.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Bu, yalnızca takviminiz herkese açıksa çalışan genel adres. Bunun yerine \"Secret address in iCal format\" adresini kopyalayın.","Upload a file": "Dosya yükle",diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.jsonindex 51365fdc..d41124c8 100644--- a/app/src/shared/locales/uk.json+++ b/app/src/shared/locales/uk.json@@ -764,6 +764,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "У розділі «Publish a calendar» виберіть свій календар і «Can view all details», потім Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "У розділі «Settings for my calendars» виберіть свій календар, потім «Integrate calendar».","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt не зміг відкрити цю адресу. Перевірте з’єднання та адресу.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Цей календар завеликий, щоб Yogurt міг його прочитати. Спробуйте посилання, яке відкриває доступ лише до майбутніх подій.","{name} is connected. You can change this any time in Settings.": "{name}: під’єднано. Це можна змінити будь-коли в Параметрах.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Це загальнодоступна адреса, вона працює лише для загальнодоступного календаря. Скопіюйте натомість «Secret address in iCal format».","Upload a file": "Завантажити файл",diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.jsonindex b4505812..08406f92 100644--- a/app/src/shared/locales/vi.json+++ b/app/src/shared/locales/vi.json@@ -694,6 +694,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "Trong \"Publish a calendar\", chọn lịch của bạn và \"Can view all details\", rồi Publish.","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "Trong \"Settings for my calendars\", chọn lịch của bạn, rồi \"Integrate calendar\".","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt không truy cập được địa chỉ đó. Hãy kiểm tra kết nối và địa chỉ.",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "Lịch này quá lớn nên Yogurt không đọc được. Hãy thử một liên kết chỉ chia sẻ các sự kiện sắp tới.","{name} is connected. You can change this any time in Settings.": "Đã kết nối {name}. Bạn có thể đổi bất cứ lúc nào trong Cài đặt.","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "Đó là địa chỉ công khai, chỉ dùng được khi lịch của bạn ở chế độ công khai. Hãy sao chép \"Secret address in iCal format\" thay vào đó.","Upload a file": "Tải tệp lên",diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.jsonindex 2182fc51..d48fe657 100644--- a/app/src/shared/locales/zh-CN.json+++ b/app/src/shared/locales/zh-CN.json@@ -694,6 +694,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "在“Publish a calendar”下选择你的日历和“Can view all details”,然后点 Publish。","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "在“Settings for my calendars”下选择你的日历,然后打开“Integrate calendar”。","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt 无法访问该地址。请检查网络连接和地址。",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "这个日历太大,Yogurt 无法读取。请试试只共享即将到来的活动的链接。","{name} is connected. You can change this any time in Settings.": "{name}已连接。你随时可以在设置中更改。","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "这是公开地址,只有日历公开时才能使用。请改为复制“Secret address in iCal format”。","Upload a file": "上传文件",diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.jsonindex 024f0c22..5f321f8f 100644--- a/app/src/shared/locales/zh-TW.json+++ b/app/src/shared/locales/zh-TW.json@@ -694,6 +694,7 @@"Under \"Publish a calendar\", choose your calendar and \"Can view all details\", then Publish.": "在「Publish a calendar」下選擇你的行事曆和「Can view all details」,然後按 Publish。","Under \"Settings for my calendars\", choose your calendar, then \"Integrate calendar\".": "在「Settings for my calendars」下選擇你的行事曆,然後開啟「Integrate calendar」。","Yogurt couldn't reach that address. Check your connection and the address.": "Yogurt 無法連到這個地址。請檢查網路連線和地址。",+ "This calendar is too big for Yogurt to read. Try a link that only shares upcoming events.": "這個行事曆太大,Yogurt 無法讀取。請試試只分享即將到來活動的連結。","{name} is connected. You can change this any time in Settings.": "{name}已連接。你隨時可以在設定中更改。","That's the public address, which only works if your calendar is public. Copy \"Secret address in iCal format\" instead.": "這是公開地址,只有行事曆公開時才能使用。請改為複製「Secret address in iCal format」。","Upload a file": "上傳檔案",diff --git a/app/src/shared/types.ts b/app/src/shared/types.tsindex bfbbef23..797b6b3a 100644--- a/app/src/shared/types.ts+++ b/app/src/shared/types.ts@@ -268,7 +268,7 @@ export type YogurtApi = {/** Windows and Linux: the calendar links connected (never their addresses) */links(): Promise<CalendarLinkInfo[]>/** connect a private calendar address; why not when it can't be */- addLink(url: string): Promise<{ ok: true; id: string; name: string } | { ok: false; error: 'bad-url' | 'unreachable' | 'not-calendar' | 'public-address' }>+ addLink(url: string): Promise<{ ok: true; id: string; name: string } | { ok: false; error: 'bad-url' | 'unreachable' | 'not-calendar' | 'public-address' | 'too-big' }>removeLink(id: string): Promise<boolean>}/** what Yogurt may use: read it, ask for it (the Mac's own prompt), or open its pane of System Settings */diff --git a/app/test/calendarLinkForm.test.ts b/app/test/calendarLinkForm.test.tsindex fd0d4c15..13bbab2e 100644--- a/app/test/calendarLinkForm.test.ts+++ b/app/test/calendarLinkForm.test.ts@@ -69,6 +69,16 @@ it('holds dismissal during connection and keeps a failed address for correction'expect(h.get('calendar-link-error').props.children).toContain("isn't a calendar")expect(h.get('calendar-link-input').props.value).toBe('https://calendar.example/private');expect(busy).toHaveBeenLastCalledWith(false);expect(connected).not.toHaveBeenCalled()})+it('says plainly when a calendar is too big to read, not that it could not be reached (#146)',async()=>{+ let finish:(v:unknown)=>void=()=>{}+ vi.stubGlobal('window',{yogurt:{calendar:{addLink:vi.fn(()=>new Promise(r=>{finish=r}))}}})+ const h=harness(()=>CalendarLinkForm({only:'other',onConnected:vi.fn()}))+ h.get('calendar-link-input').props.onChange({target:{value:'https://example.com/cal.ics'}});h.run()+ h.get('calendar-link-form').props.onSubmit({preventDefault(){}});h.run()+ finish({ok:false,error:'too-big'});await Promise.resolve();await Promise.resolve();h.run()+ expect(h.get('calendar-link-error').props.children).toContain('too big')+ expect(h.get('calendar-link-error').props.children).not.toContain("couldn't reach")+})it('uses the same keyboard dismissal in setup while keeping its existing extra action',()=>{const cancel=vi.fn(),h=harness(()=>CalendarLinkForm({variant:'onboarding',extra:'Not now',onConnected:vi.fn(),onCancel:cancel}))expect(h.get('calendar-link-cancel')).toBeUndefined()diff --git a/app/test/calendarLinkGet.test.ts b/app/test/calendarLinkGet.test.tsnew file mode 100644index 00000000..5354be18--- /dev/null+++ b/app/test/calendarLinkGet.test.ts@@ -0,0 +1,49 @@+import { createServer, type Server } from 'node:http'+import type { AddressInfo } from 'node:net'+import { afterEach, describe, expect, it } from 'vitest'+import { CalendarTooBig, getCalendar, MAX_BYTES, TIMEOUT_MS } from '../src/main/calendarLink/get'++// #146: a work calendar with years of history is tens of megabytes; one that is still too big or too slow says so+const servers: Server[] = []+afterEach(() => servers.splice(0).forEach((s) => s.close()))+async function serve(handler: Parameters<typeof createServer>[1]): Promise<string> {+ const s = createServer(handler); servers.push(s)+ await new Promise<void>((r) => s.listen(0, '127.0.0.1', r))+ return `http://127.0.0.1:${(s.address() as AddressInfo).port}/cal.ics`+}+const chunk = 'X'.repeat(2 ** 20)++describe('fetching a calendar link', () => {+ it('room for years of history: 64 MB and a minute', () => {+ expect(MAX_BYTES).toBe(64 * 2 ** 20)+ expect(TIMEOUT_MS).toBe(60_000)+ })+ it('reads a feed of tens of megabytes', async () => {+ const url = await serve((_q, res) => { res.write('BEGIN:VCALENDAR\r\n'); for (let i = 0; i < 30; i++) res.write(chunk); res.end('END:VCALENDAR\r\n') })+ expect((await getCalendar(url)).length).toBe(30 * 2 ** 20 + 32)+ })+ it('a feed over the limit is too big, whether or not it says its size up front, and stops downloading', async () => {+ let sent = 0+ const streamed = await serve(async (_q, res) => {+ res.on('error', () => {})+ for (; sent < 80 && !res.destroyed; sent++) if (!res.write(chunk)) await new Promise((r) => res.once('drain', r).once('close', r))+ res.end()+ })+ await expect(getCalendar(streamed, { maxBytes: 8 * 2 ** 20 })).rejects.toBeInstanceOf(CalendarTooBig)+ expect(sent).toBeLessThan(80)+ const said = await serve((_q, res) => { res.writeHead(200, { 'content-length': String(100 * 2 ** 20) }); res.write(chunk); res.on('error', () => {}) })+ await expect(getCalendar(said, { maxBytes: 8 * 2 ** 20 })).rejects.toBeInstanceOf(CalendarTooBig)+ })+ it('a feed that takes too long to download is too big to read', async () => {+ const url = await serve((_q, res) => { res.write('BEGIN:VCALENDAR\r\n'); const t = setInterval(() => res.write('X'), 20); res.on('close', () => clearInterval(t)) })+ await expect(getCalendar(url, { timeoutMs: 300 })).rejects.toBeInstanceOf(CalendarTooBig)+ })+ it('an address that answers with an error, or a server that is not there, is not called too big', async () => {+ const url = await serve((_q, res) => { res.writeHead(404); res.end() })+ const got = await getCalendar(url).catch((e) => e)+ expect(got).toBeInstanceOf(Error); expect(got).not.toBeInstanceOf(CalendarTooBig)+ const closed = await serve(() => {}); servers.pop()!.close()+ const gone = await getCalendar(closed).catch((e) => e)+ expect(gone).toBeInstanceOf(Error); expect(gone).not.toBeInstanceOf(CalendarTooBig)+ })+})diff --git a/app/test/calendarLinkIcs.test.ts b/app/test/calendarLinkIcs.test.tsindex 6bdc997e..6f0554cf 100644--- a/app/test/calendarLinkIcs.test.ts+++ b/app/test/calendarLinkIcs.test.ts@@ -2,6 +2,7 @@ import ICAL from 'ical.js'import { parseEvents } from '../src/main/calendar'import { describe, expect, it, vi } from 'vitest'import { icsEvents, icsFeed, icsName } from '../src/main/calendarLink/ics'+import { bigCalendar } from './helpers/bigCalendar'// A made-up feed in the shape Google's "Secret address in iCal format" gives: its own time zone, attendees, a Meet linkconst feed = (events: string) => `BEGIN:VCALENDAR@@ -165,6 +166,66 @@ END:VEVENT`expect(parse).toHaveBeenCalledTimes(1)parse.mockRestore()})++ // #146: a work calendar with years of history: thousands of meetings, hundreds of series, long invites+ describe('a feed with years of history', () => {+ const text = bigCalendar()+ const day = [at('2026-11-23T00:00:00Z'), at('2026-11-24T00:00:00Z')] as const+ /** every occurrence of every series walked from its start: slow, but plainly right */+ function reference(text: string, fromMs: number, toMs: number) {+ const root = new ICAL.Component(ICAL.parse(text))+ for (const tz of root.getAllSubcomponents('vtimezone')) ICAL.TimezoneService.register(tz)+ const vevents = root.getAllSubcomponents('vevent')+ const moved = new Map<unknown, ICAL.Component[]>()+ for (const v of vevents) if (v.hasProperty('recurrence-id')) moved.set(v.getFirstPropertyValue('uid'), [...moved.get(v.getFirstPropertyValue('uid')) ?? [], v])+ const out: string[] = []+ for (const v of vevents) {+ if (v.hasProperty('recurrence-id')) continue+ const ev = new ICAL.Event(v, { exceptions: moved.get(v.getFirstPropertyValue('uid')) ?? [] })+ const it = ev.iterator()+ for (let next = it.next(); next; next = it.next()) {+ const d = ev.getOccurrenceDetails(next)+ const s = d.startDate.toJSDate().getTime(), e = d.endDate.toJSDate().getTime()+ if (s >= toMs + 30 * 86_400_000) break+ if (s < toMs && e > fromMs) out.push(`${ev.uid}|${new Date(s).toISOString()}`)+ }+ }+ return out.sort()+ }++ it('is tens of megabytes, as the reporter\'s was', () => {+ expect(text.length).toBeGreaterThan(15 * 2 ** 20)+ })+ it('gives the same meetings as walking every series from its start, today and years back', () => {+ // fewer of them, so walking every series the slow way stays quick+ const small = bigCalendar({ oneOffs: 600, series: 200 })+ const f = icsFeed(small, link)+ for (const [from, to] of [[at('2026-11-16T00:00:00Z'), at('2026-11-30T00:00:00Z')], [at('2021-03-01T00:00:00Z'), at('2021-03-15T00:00:00Z')]] as const) {+ const got = f.events(from, to).map((e) => e.id).sort()+ expect(got.length).toBeGreaterThan(5)+ expect(got).toEqual(reference(small, from, to))+ }+ }, 30_000)+ it('series running for years are not walked occurrence by occurrence to reach today', () => {+ const steps = vi.spyOn(ICAL.RecurExpansion.prototype, 'next')+ icsFeed(text, link).events(...day)+ // ~600 series and a few weeks of each; walking each from its start is hundreds of thousands+ expect(steps.mock.calls.length).toBeLessThan(20_000)+ steps.mockRestore()+ })+ })++ it('a daily meeting that has run for more than ten years still shows today', () => {+ const old = `BEGIN:VEVENT+UID:[email protected]+SUMMARY:Daily check-in+DTSTART:20120102T090000Z+DTEND:20120102T091500Z+RRULE:FREQ=DAILY+END:VEVENT`+ expect(icsEvents(feed(old), at('2026-11-23T00:00:00Z'), at('2026-11-24T00:00:00Z'), link).map((e) => [e.title, e.start]))+ .toEqual([['Daily check-in', '2026-11-23T09:00:00.000Z']])+ })})it('marks a decline only when the feed identifies the attendee as its owner', () => {diff --git a/app/test/calendarLinks.test.ts b/app/test/calendarLinks.test.tsindex 54468946..c4b44e05 100644--- a/app/test/calendarLinks.test.ts+++ b/app/test/calendarLinks.test.ts@@ -4,6 +4,7 @@ import { join } from 'node:path'import ICAL from 'ical.js'import { afterEach, describe, expect, it, vi } from 'vitest'import { createCalendarLinks } from '../src/main/calendarLink'+import { CalendarTooBig } from '../src/main/calendarLink/get'const ics = (name: string) => `BEGIN:VCALENDAR\nVERSION:2.0\nX-WR-CALNAME:${name}\nBEGIN:VEVENT\nUID:[email protected]\nSUMMARY:Standup\nDTSTART:20261117T170000Z\nDTEND:20261117T171500Z\nEND:VEVENT\nEND:VCALENDAR\n`const dirs: string[] = []@@ -45,6 +46,10 @@ describe('calendar links (Windows and Linux): a private calendar address, kept oexpect(await rig(() => { throw new Error('offline') }).links.add('https://example.com/cal.ics')).toEqual({ ok: false, error: 'unreachable' })expect(await rig(() => '<html>Sign in</html>').links.add('https://example.com/cal.ics')).toEqual({ ok: false, error: 'not-calendar' })})+ it('a calendar too big or too slow to read says so, and a network failure still says it could not be reached (#146)', async () => {+ expect(await rig(() => { throw new CalendarTooBig() }).links.add('https://example.com/cal.ics')).toEqual({ ok: false, error: 'too-big' })+ expect(await rig(() => { throw new TypeError('fetch failed') }).links.add('https://example.com/cal.ics')).toEqual({ ok: false, error: 'unreachable' })+ })it("Google's public address says so when it fails (it works only for a public calendar), and works when the calendar is public", async () => {const pub = 'https://calendar.google.com/calendar/ical/alex%40example.com/public/basic.ics'expect(await rig(() => { throw new Error('404') }).links.add(pub)).toEqual({ ok: false, error: 'public-address' })diff --git a/app/test/helpers/bigCalendar.ts b/app/test/helpers/bigCalendar.tsnew file mode 100644index 00000000..c0168f2e--- /dev/null+++ b/app/test/helpers/bigCalendar.ts@@ -0,0 +1,59 @@+/**+ * A made-up work calendar feed with years of history, in the shape Google's secret iCal address gives (#146): one-off+ * meetings, recurring ones (many long ended, some still on, a few daily since the start) with skipped weeks and moved+ * copies, and long invite text. Nothing in it is real; the same seed always gives the same feed.+ */+export function bigCalendar({ years = 7, oneOffs = 5400, series = 600, until = Date.parse('2026-12-31T00:00:00Z') } = {}): string {+ let seed = 146+ const rand = () => ((seed = (seed * 1103515245 + 12345) % 2 ** 31) / 2 ** 31)+ const pick = <T,>(xs: T[]) => xs[Math.floor(rand() * xs.length)]+ const from = until - years * 365 * 86_400_000+ const stamp = (ms: number) => new Date(ms).toISOString().replace(/[-:]/g, '').replace(/\.\d+/, '')+ const local = (ms: number) => stamp(ms).replace('Z', '')+ const hour = (ms: number) => Math.floor(ms / 3_600_000) * 3_600_000+ const people = Array.from({ length: 80 }, (_, i) => `ATTENDEE;CN=Person ${i};PARTSTAT=${pick(['ACCEPTED', 'TENTATIVE', 'NEEDS-ACTION'])}:mailto:person${i}@example.com`)+ const words = 'plan review budget launch roadmap sync design hiring notes metrics customer draft agenda update retro'.split(' ')+ const invite = () => {+ const lines = ['DESCRIPTION:' + Array.from({ length: 30 + Math.floor(rand() * 60) }, () => pick(words)).join(' ') ++ '\\n\\nJoin with Google Meet: https://meet.google.com/abc-defg-hij\\nOr dial: +1 555-0100 PIN: 123456#\\n\\n' ++ 'Learn more about Meet at: https://support.google.com/a/users/answer/9282720\\n\\nPlease do not edit this section.']+ // invites run long: agendas pasted in, the call's boilerplate in several languages+ for (let i = Math.floor(rand() * 25); i > 0; i--) lines[0] += '\\n' + Array.from({ length: 20 }, () => pick(words)).join(' ')+ // iCal folds lines at 75 characters+ return lines[0].match(/.{1,74}/g)!.join('\r\n ')+ }+ const event = (props: string[]) => ['BEGIN:VEVENT', ...props,+ ...Array.from({ length: 3 + Math.floor(rand() * 12) }, () => pick(people)),+ 'ORGANIZER;CN=Person 1:mailto:[email protected]', invite(), 'LOCATION:Room ' + Math.floor(rand() * 40),+ 'BEGIN:VALARM', 'ACTION:DISPLAY', 'TRIGGER:-P0DT0H10M0S', 'DESCRIPTION:This is an event reminder', 'END:VALARM', 'END:VEVENT']+ const out: string[] = ['BEGIN:VCALENDAR', 'VERSION:2.0', 'PRODID:-//Google Inc//Google Calendar 70.9054//EN', 'X-WR-CALNAME:[email protected]',+ 'BEGIN:VTIMEZONE', 'TZID:Europe/Amsterdam',+ 'BEGIN:DAYLIGHT', 'TZOFFSETFROM:+0100', 'TZOFFSETTO:+0200', 'DTSTART:19700329T020000', 'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU', 'END:DAYLIGHT',+ 'BEGIN:STANDARD', 'TZOFFSETFROM:+0200', 'TZOFFSETTO:+0100', 'DTSTART:19701025T030000', 'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU', 'END:STANDARD',+ 'END:VTIMEZONE']+ for (let i = 0; i < oneOffs; i++) {+ const s = hour(from + rand() * (until - from))+ out.push(...event([`UID:one-${i}@example.com`, `SUMMARY:${pick(words)} ${i}`, `DTSTART:${stamp(s)}`, `DTEND:${stamp(s + 3_600_000)}`]))+ }+ for (let i = 0; i < series; i++) {+ const s = hour(from + rand() * (until - from) * 0.9)+ const tz = 'TZID=Europe/Amsterdam'+ const daily = i % 20 === 0+ const ended = !daily && rand() < 0.7+ const rule = daily ? 'FREQ=DAILY;BYDAY=MO,TU,WE,TH,FR' : pick(['FREQ=WEEKLY', 'FREQ=WEEKLY;INTERVAL=2', 'FREQ=MONTHLY', 'FREQ=WEEKLY;BYDAY=TU,TH'])+ const end = ended ? s + (30 + rand() * 600) * 86_400_000 : 0+ const props = [`UID:series-${i}@example.com`, `SUMMARY:${pick(words)} series ${i}`, `DTSTART;${tz}:${local(s)}`, `DTEND;${tz}:${local(s + 1_800_000)}`,+ `RRULE:${rule}${ended ? `;UNTIL=${stamp(end)}` : ''}`]+ // a skipped week or two+ if (rand() < 0.4 && !rule.includes('BYDAY')) props.push(`EXDATE;${tz}:${local(s + 7 * 86_400_000 * (rule === 'FREQ=WEEKLY' ? 2 : 4))}`)+ out.push(...event(props))+ // moved copies: an hour later, Google keeps one for every occurrence anyone ever changed+ if (rule === 'FREQ=WEEKLY') for (let k = 1; k <= 3; k++) {+ const was = s + k * 3 * 7 * 86_400_000+ out.push(...event([`UID:series-${i}@example.com`, `RECURRENCE-ID;${tz}:${local(was)}`, `SUMMARY:${pick(words)} series ${i} (moved)`,+ `DTSTART;${tz}:${local(was + 3_600_000)}`, `DTEND;${tz}:${local(was + 5_400_000)}`]))+ }+ }+ out.push('END:VCALENDAR', '')+ return out.join('\r\n')+}