Add Svelte web client and service worker

Mobile-first PWA: groups via key-in-fragment links, encrypted outbox and
sync over SSE, all split modes, currencies with ECB rate prefill, photos,
comments, history and rewind, stats, recurring expenses, CSV and backup,
EN/CS, dark/light theme, Web Push decrypted in the service worker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
This commit is contained in:
agent 2026-10-09 19:59:16 +00:00
parent f67add3660
commit 8fbbb4933e
53 changed files with 4558 additions and 37 deletions

View file

@ -0,0 +1,253 @@
import type { Messages } from './en.ts';
const cs: Messages = {
app_name: 'OweMe',
tagline: 'Dělte společné výdaje. Šifrováno end-to-end.',
your_groups: 'Vaše skupiny',
no_groups: 'Na tomto zařízení zatím nejsou žádné skupiny. Vytvořte novou, nebo otevřete odkaz, který vám někdo poslal.',
new_group: 'Nová skupina',
open_link: 'Otevřít odkaz na skupinu',
restore_backup: 'Obnovit zálohu',
paste_link: 'Vložte odkaz na skupinu',
open: 'Otevřít',
invalid_link: 'Tohle nevypadá jako úplný odkaz na skupinu OweMe.',
you_are_owed: 'dluží vám {amount}',
you_owe: 'dlužíte {amount}',
settled: 'vyrovnáno',
pick_identity_hint: 'vyberte, kdo jste',
group_gone: 'smazáno',
e2e_note: 'Vše se šifruje přímo ve vašem zařízení. Server ukládá jen data, která nedokáže přečíst. Odkazy na skupiny si proto dobře uschovejte: ztracený odkaz nelze obnovit.',
settings: 'Nastavení',
app_settings: 'Nastavení aplikace',
language: 'Jazyk',
lang_auto: 'Automaticky',
theme: 'Vzhled',
theme_system: 'Podle systému',
theme_dark: 'Tmavý',
theme_light: 'Světlý',
create_group: 'Vytvořit skupinu',
group_name: 'Název skupiny',
group_name_ph: 'Výlet do Prahy',
base_currency: 'Hlavní měna',
base_currency_hint: 'V této měně se zobrazují zůstatky. Jakmile má skupina výdaje, nelze ji změnit.',
base_currency_locked: 'Uzamčeno, protože skupina už má výdaje.',
icon: 'Ikona',
your_name: 'Vaše jméno',
other_members: 'Další členové',
add_member: 'Přidat člena',
member_name: 'Jméno',
creating: 'Vytvářím…',
share_group: 'Sdílet skupinu',
share_intro: 'Kdokoli s tímto odkazem může skupinu vidět i upravovat. Posílejte ho jen členům.',
save_link_warning: 'Uložte si tento odkaz na bezpečné místo. Pokud se ztratí všechny kopie, skupinu nepůjde obnovit.',
copy_link: 'Kopírovat odkaz',
copied: 'Zkopírováno',
share: 'Sdílet…',
done: 'Hotovo',
who_are_you: 'Kdo jste?',
who_are_you_hint: 'Zapamatuje se na tomto zařízení, takže výdaje budou předvyplněné na vás.',
im_new: 'Nejsem v seznamu',
just_looking: 'Přeskočit',
change_identity: 'Nejsem {name}',
you: 'vy',
expenses: 'Výdaje',
balances: 'Zůstatky',
stats: 'Statistiky',
activity: 'Aktivita',
add_expense: 'Přidat výdaj',
no_expenses: 'Zatím žádné výdaje. Klepněte na + a přidejte první.',
total_spent: 'Celkem utraceno',
paid_by: 'Platil(a) {name}',
paid_by_many: 'Platilo {n} lidí',
your_share: 'váš podíl {amount}',
you_lent: 'půjčili jste {amount}',
you_borrowed: 'dlužíte {amount}',
not_involved: 'netýká se vás',
transfer_line: '{from} → {to}',
offline: 'Jste offline. Změny se uloží v zařízení a synchronizují se později.',
pending: { one: '{n} změna čeká na synchronizaci', few: '{n} změny čekají na synchronizaci', other: '{n} změn čeká na synchronizaci' },
rollback_warning: 'Server vrátil starší data, než toto zařízení už vidělo. Mohl s nimi někdo manipulovat, nebo byla obnovena ze zálohy.',
not_found_group: 'Tato skupina už na serveru neexistuje.',
remove_from_device: 'Odebrat z tohoto zařízení',
group_not_on_device: 'Tato skupina není uložená v tomto zařízení. Otevřete celý odkaz (včetně části za #).',
loading: 'Načítám…',
search: 'Hledat',
settle_up: 'Vyrovnání',
all_settled: 'Všichni jsou vyrovnaní. 🎉',
mark_paid: 'Zaznamenat platbu',
show_in: 'Zobrazit v',
display_only_rate: 'Přepočteno dnešním kurzem, jen pro zobrazení.',
is_owed: 'má dostat {amount}',
owes: 'dluží {amount}',
new_expense: 'Nový výdaj',
edit_expense: 'Upravit výdaj',
new_transfer: 'Zaznamenat platbu',
kind_expense: 'Výdaj',
kind_transfer: 'Platba',
amount: 'Částka',
title: 'Za co?',
title_ph: 'Večeře',
category: 'Kategorie',
date: 'Datum',
currency: 'Měna',
rate: 'Směnný kurz',
rate_source_ecb: 'Kurz ECB ze dne {date}',
rate_source_manual: 'Zadáno ručně',
rate_unavailable: 'Pro tuto měnu není kurz k dispozici, zadejte ho prosím.',
paid_by_label: 'Platil(a)',
multiple_payers: 'Platilo více lidí',
from_label: 'Od',
to_label: 'Komu',
split: 'Rozdělení',
split_equal: 'Rovným dílem',
split_shares: 'Podíly',
split_exact: 'Částky',
split_percent: 'Procenta',
remaining: 'Zbývá: {amount}',
over_by: 'Přebývá: {amount}',
select_all: 'Všichni',
select_none: 'Nikdo',
note: 'Poznámka',
photo: 'Fotka',
add_photo: 'Přidat fotku',
replace_photo: 'Vyměnit',
remove_photo: 'Odebrat',
processing_photo: 'Zpracovávám fotku…',
photo_too_large: 'Fotka je i po zmenšení příliš velká.',
repeat: 'Opakovat',
repeat_none: 'Nikdy',
repeat_weekly: 'Každý týden',
repeat_monthly: 'Každý měsíc',
repeat_yearly: 'Každý rok',
save: 'Uložit',
cancel: 'Zrušit',
invalid_amount: 'Zadejte platnou částku.',
invalid_split: 'Rozdělení nesedí.',
invalid_payers: 'Platby nedávají dohromady celou částku.',
need_title: 'Doplňte popis.',
need_members: 'Nejdřív do skupiny přidejte členy.',
delete: 'Smazat',
restore: 'Obnovit',
edit: 'Upravit',
deleted_banner: 'Tento výdaj byl smazán.',
split_details: 'Rozdělení',
paid: 'zaplatil(a) {amount}',
owes_share: 'podíl {amount}',
converted: '{amount} při kurzu {rate}',
comments: 'Komentáře',
add_comment: 'Napište komentář…',
send: 'Odeslat',
history: 'Historie',
restore_version: 'Obnovit tuto verzi',
current_version: 'Aktuální verze',
recurring_badge: 'Opakuje se',
confirm_delete: 'Smazat tento výdaj? Později ho můžete obnovit z historie.',
rewind_here: 'Vrátit skupinu sem',
undo_rewind: 'Zrušit toto vrácení',
confirm_rewind: 'Vrátit celou skupinu do stavu po této změně? Nic se neztratí: vrácení lze zase zrušit.',
act_group_created: '{actor} vytvořil(a) skupinu',
act_group_updated: '{actor} změnil(a) nastavení skupiny',
act_member_added: '{actor} přidal(a) člena {name}',
act_member_updated: '{actor} přejmenoval(a) {old} na {name}',
act_member_archived: '{actor} archivoval(a) člena {name}',
act_member_restored: '{actor} obnovil(a) člena {name}',
act_expense_created: '{actor} přidal(a) {title}',
act_expense_updated: '{actor} upravil(a) {title}',
act_expense_deleted: '{actor} smazal(a) {title}',
act_expense_restored: '{actor} obnovil(a) {title}',
act_comment_added: '{actor} okomentoval(a) {title}',
act_comment_deleted: '{actor} smazal(a) komentář u {title}',
act_recurring_created: '{actor} nastavil(a) opakování {title}',
act_recurring_updated: '{actor} změnil(a) opakování {title}',
act_recurring_deleted: '{actor} zrušil(a) opakování {title}',
act_revert: '{actor} vrátil(a) skupinu do stavu z {time}',
someone: 'Někdo',
changed_fields: 'Změněno: {fields}',
no_activity: 'Zatím žádná aktivita.',
range_all: 'Celé období',
range_month: 'Tento měsíc',
range_30: 'Posledních 30 dní',
range_year: 'Tento rok',
by_category: 'Podle kategorie',
by_month: 'Podle měsíce',
per_member: 'Zaplaceno vs. podíl',
legend_paid: 'Zaplaceno',
legend_share: 'Podíl',
my_spending: 'Můj podíl na útratě',
no_data: 'Za toto období tu nic není.',
group_settings: 'Nastavení skupiny',
members: 'Členové',
rename: 'Přejmenovat',
archive: 'Archivovat',
archived: 'archivován(a)',
unarchive: 'Obnovit',
archive_needs_zero: 'Archivovat lze jen členy s nulovým zůstatkem.',
identity: 'Jste',
not_set: 'Nenastaveno',
change: 'Změnit',
notifications: 'Oznámení',
notifications_hint: 'Dostanete oznámení, když skupinu změní někdo jiný.',
notifications_ios: 'Na iPhonu a iPadu nejdřív přidejte OweMe na plochu (Sdílet → Přidat na plochu).',
notifications_denied: 'Oznámení jsou pro tento web zablokovaná v nastavení prohlížeče.',
notifications_unavailable: 'Oznámení nejsou na tomto serveru nebo v tomto prohlížeči k dispozici.',
recurring: 'Opakované výdaje',
no_recurring: 'Žádné. Při přidání výdaje zvolte „Opakovat“.',
next_on: 'příště {date}',
stop: 'Zrušit',
export: 'Export',
export_expenses: 'Výdaje (CSV)',
export_balances: 'Zůstatky (CSV)',
backup: 'Soubor se zálohou',
backup_hint: 'Obsahuje klíč skupiny: kdokoli se souborem skupinu otevře. Uložte ho bezpečně.',
danger_zone: 'Nebezpečná zóna',
remove_from_device_hint: 'Skupina zůstane na serveru i v ostatních zařízeních.',
delete_group: 'Smazat skupinu pro všechny',
delete_group_hint: 'Smaže ze serveru všechny výdaje a fotky. Pro potvrzení napište název skupiny.',
confirm: 'Potvrdit',
saved: 'Uloženo',
restore_title: 'Obnovit zálohu',
restore_pick: 'Vyberte soubor se zálohou OweMe (.json).',
restore_bad_file: 'Tohle není platná záloha OweMe.',
restore_exists: 'Tato skupina na serveru už existuje, takže byla jen přidána do tohoto zařízení.',
restoring: 'Obnovuji…',
back: 'Zpět',
close: 'Zavřít',
error_generic: 'Něco se pokazilo: {msg}',
update_available: 'Je k dispozici nová verze.',
reload: 'Načíst znovu',
today: 'Dnes',
yesterday: 'Včera',
n_members: { one: '{n} člen', few: '{n} členové', other: '{n} členů' },
cat_food: 'Jídlo a pití',
cat_groceries: 'Potraviny',
cat_transport: 'Doprava',
cat_accommodation: 'Ubytování',
cat_entertainment: 'Zábava',
cat_shopping: 'Nákupy',
cat_utilities: 'Energie a služby',
cat_rent: 'Nájem',
cat_travel: 'Cestování',
cat_gifts: 'Dárky',
cat_health: 'Zdraví',
cat_other: 'Ostatní',
cat_transfer: 'Platba',
notif_new_activity: { one: '{n} nová změna', few: '{n} nové změny', other: '{n} nových změn' },
};
export default cs;

View file

@ -0,0 +1,270 @@
// English strings. `{name}` placeholders are filled by t(); entries with
// one/few/other are plural forms chosen by Intl.PluralRules on `{n}`.
const en = {
app_name: 'OweMe',
tagline: 'Split group expenses. End-to-end encrypted.',
// home
your_groups: 'Your groups',
no_groups: 'No groups on this device yet. Create one, or open a group link someone sent you.',
new_group: 'New group',
open_link: 'Open a group link',
restore_backup: 'Restore a backup',
paste_link: 'Paste the group link',
open: 'Open',
invalid_link: "That doesn't look like a complete OweMe group link.",
you_are_owed: 'you are owed {amount}',
you_owe: 'you owe {amount}',
settled: 'settled up',
pick_identity_hint: 'choose who you are',
group_gone: 'deleted',
e2e_note: 'Everything is encrypted on your device. The server only stores data it cannot read, so keep your group links safe: lost links cannot be recovered.',
// settings
settings: 'Settings',
app_settings: 'App settings',
language: 'Language',
lang_auto: 'Automatic',
theme: 'Theme',
theme_system: 'System',
theme_dark: 'Dark',
theme_light: 'Light',
// new group
create_group: 'Create group',
group_name: 'Group name',
group_name_ph: 'Prague trip',
base_currency: 'Main currency',
base_currency_hint: 'Balances are shown in this currency. It can’t be changed once the group has expenses.',
base_currency_locked: 'Locked because the group has expenses.',
icon: 'Icon',
your_name: 'Your name',
other_members: 'Other members',
add_member: 'Add member',
member_name: 'Name',
creating: 'Creating…',
// share
share_group: 'Share group',
share_intro: 'Anyone with this link can see and edit the group. Send it only to group members.',
save_link_warning: 'Save this link somewhere safe. If every copy is lost, the group can’t be recovered.',
copy_link: 'Copy link',
copied: 'Copied',
share: 'Share…',
done: 'Done',
// identity
who_are_you: 'Who are you?',
who_are_you_hint: 'This is remembered on this device, so expenses default to you.',
im_new: 'I’m not on the list',
just_looking: 'Skip',
change_identity: 'I’m not {name}',
you: 'you',
// group tabs
expenses: 'Expenses',
balances: 'Balances',
stats: 'Stats',
activity: 'Activity',
add_expense: 'Add expense',
no_expenses: 'No expenses yet. Tap + to add the first one.',
total_spent: 'Total spent',
paid_by: 'Paid by {name}',
paid_by_many: 'Paid by {n} people',
your_share: 'your share {amount}',
you_lent: 'you lent {amount}',
you_borrowed: 'you borrowed {amount}',
not_involved: 'not involved',
transfer_line: '{from} → {to}',
offline: 'Offline. Changes are saved on this device and will sync later.',
pending: { one: '{n} change waiting to sync', few: '{n} changes waiting to sync', other: '{n} changes waiting to sync' },
rollback_warning: 'The server returned older data than this device has seen. Someone may have tampered with it, or it was restored from a backup.',
not_found_group: 'This group no longer exists on the server.',
remove_from_device: 'Remove from this device',
group_not_on_device: 'This group isn’t saved on this device. Open the full link (with the part after #) to add it.',
loading: 'Loading…',
search: 'Search',
// balances
settle_up: 'Settle up',
all_settled: 'Everyone is settled up. 🎉',
mark_paid: 'Record payment',
show_in: 'Show in',
display_only_rate: 'Converted at today’s rate, for display only.',
is_owed: 'is owed {amount}',
owes: 'owes {amount}',
// expense editor
new_expense: 'New expense',
edit_expense: 'Edit expense',
new_transfer: 'Record payment',
kind_expense: 'Expense',
kind_transfer: 'Payment',
amount: 'Amount',
title: 'What was it for?',
title_ph: 'Dinner',
category: 'Category',
date: 'Date',
currency: 'Currency',
rate: 'Exchange rate',
rate_source_ecb: 'ECB rate from {date}',
rate_source_manual: 'Entered manually',
rate_unavailable: 'No rate available for this currency, please enter it.',
paid_by_label: 'Paid by',
multiple_payers: 'Several people paid',
from_label: 'From',
to_label: 'To',
split: 'Split',
split_equal: 'Equally',
split_shares: 'Shares',
split_exact: 'Amounts',
split_percent: 'Percent',
remaining: 'Remaining: {amount}',
over_by: 'Over by: {amount}',
select_all: 'All',
select_none: 'None',
note: 'Note',
photo: 'Photo',
add_photo: 'Add photo',
replace_photo: 'Replace',
remove_photo: 'Remove',
processing_photo: 'Processing photo…',
photo_too_large: 'The photo is too large even after compressing.',
repeat: 'Repeat',
repeat_none: 'Never',
repeat_weekly: 'Every week',
repeat_monthly: 'Every month',
repeat_yearly: 'Every year',
save: 'Save',
cancel: 'Cancel',
invalid_amount: 'Enter a valid amount.',
invalid_split: 'The split doesn’t add up.',
invalid_payers: 'The payers don’t add up to the amount.',
need_title: 'Add a description.',
need_members: 'Add members to the group first.',
// expense detail
delete: 'Delete',
restore: 'Restore',
edit: 'Edit',
deleted_banner: 'This expense was deleted.',
split_details: 'Split',
paid: 'paid {amount}',
owes_share: 'share {amount}',
converted: '{amount} at {rate}',
comments: 'Comments',
add_comment: 'Write a comment…',
send: 'Send',
history: 'History',
restore_version: 'Restore this version',
current_version: 'Current version',
recurring_badge: 'Repeats',
confirm_delete: 'Delete this expense? You can restore it later from its history.',
// activity
rewind_here: 'Rewind group to here',
undo_rewind: 'Undo this rewind',
confirm_rewind: 'Restore the whole group to how it was after this change? Nothing is lost: the rewind itself can be undone.',
act_group_created: '{actor} created the group',
act_group_updated: '{actor} changed group settings',
act_member_added: '{actor} added {name}',
act_member_updated: '{actor} renamed {old} to {name}',
act_member_archived: '{actor} archived {name}',
act_member_restored: '{actor} restored {name}',
act_expense_created: '{actor} added {title}',
act_expense_updated: '{actor} edited {title}',
act_expense_deleted: '{actor} deleted {title}',
act_expense_restored: '{actor} restored {title}',
act_comment_added: '{actor} commented on {title}',
act_comment_deleted: '{actor} deleted a comment on {title}',
act_recurring_created: '{actor} set up repeating {title}',
act_recurring_updated: '{actor} changed repeating {title}',
act_recurring_deleted: '{actor} stopped repeating {title}',
act_revert: '{actor} rewound the group to {time}',
someone: 'Someone',
changed_fields: 'Changed: {fields}',
no_activity: 'No activity yet.',
// stats
range_all: 'All time',
range_month: 'This month',
range_30: 'Last 30 days',
range_year: 'This year',
by_category: 'By category',
by_month: 'By month',
per_member: 'Paid vs. share',
legend_paid: 'Paid',
legend_share: 'Share',
my_spending: 'My share of spending',
no_data: 'Nothing to show for this period.',
// group settings
group_settings: 'Group settings',
members: 'Members',
rename: 'Rename',
archive: 'Archive',
archived: 'archived',
unarchive: 'Restore',
archive_needs_zero: 'Only members with a zero balance can be archived.',
identity: 'You are',
not_set: 'Not set',
change: 'Change',
notifications: 'Notifications',
notifications_hint: 'Get a notification when someone else changes this group.',
notifications_ios: 'On iPhone and iPad, add OweMe to your home screen first (Share → Add to Home Screen).',
notifications_denied: 'Notifications are blocked for this site in your browser settings.',
notifications_unavailable: 'Notifications aren’t available on this server or in this browser.',
recurring: 'Repeating expenses',
no_recurring: 'None. Choose “Repeat” when adding an expense.',
next_on: 'next on {date}',
stop: 'Stop',
export: 'Export',
export_expenses: 'Expenses (CSV)',
export_balances: 'Balances (CSV)',
backup: 'Backup file',
backup_hint: 'Contains the group key: anyone with the file can open the group. Store it safely.',
danger_zone: 'Danger zone',
remove_from_device_hint: 'The group stays on the server and on other devices.',
delete_group: 'Delete group for everyone',
delete_group_hint: 'Deletes all expenses and photos from the server. Type the group name to confirm.',
confirm: 'Confirm',
saved: 'Saved',
// backup restore
restore_title: 'Restore a backup',
restore_pick: 'Choose an OweMe backup file (.json).',
restore_bad_file: 'That isn’t a valid OweMe backup.',
restore_exists: 'This group already exists on the server, so it was added to this device.',
restoring: 'Restoring…',
// misc
back: 'Back',
close: 'Close',
error_generic: 'Something went wrong: {msg}',
update_available: 'A new version is available.',
reload: 'Reload',
today: 'Today',
yesterday: 'Yesterday',
n_members: { one: '{n} member', few: '{n} members', other: '{n} members' },
cat_food: 'Food & drink',
cat_groceries: 'Groceries',
cat_transport: 'Transport',
cat_accommodation: 'Accommodation',
cat_entertainment: 'Entertainment',
cat_shopping: 'Shopping',
cat_utilities: 'Utilities',
cat_rent: 'Rent',
cat_travel: 'Travel',
cat_gifts: 'Gifts',
cat_health: 'Health',
cat_other: 'Other',
cat_transfer: 'Payment',
// notifications (service worker)
notif_new_activity: { one: '{n} new change', few: '{n} new changes', other: '{n} new changes' },
};
export type Plural = { one: string; few: string; other: string };
export type Messages = { [K in keyof typeof en]: (typeof en)[K] extends string ? string : Plural };
export default en satisfies Messages as Messages;