The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
feat(assistant): the book design card shows each page before and after
Maurice3516c0b6b274
diff --git a/client/src/api/bookDesignApi.ts b/client/src/api/bookDesignApi.tsnew file mode 100644index 000000000..d338f382b--- /dev/null+++ b/client/src/api/bookDesignApi.ts@@ -0,0 +1,21 @@+import type { BookDesignSelectionRequest, BookDesignSelectionResponse } from '@trek/shared';++import apiClient from './client';++/**+ * The assistant's whole-book design drafts as the Studio chat's proposal card+ * narrows them: the pages of a draft its apply writes. The draft itself is+ * read through `assistantApi.bookDesign`, which the Studio also draws a page+ * of a draft from. Online only, like the assistant: a draft lives on the+ * server for a few hours and nowhere else.+ */+export const bookDesignApi = {+ selection: (+ journeyId: number,+ designId: string,+ body: BookDesignSelectionRequest+ ): Promise<BookDesignSelectionResponse> =>+ apiClient+ .put(`/journeys/${journeyId}/book-designs/${encodeURIComponent(designId)}/selection`, body)+ .then((r) => r.data),+};diff --git a/client/src/components/Assistant/cards/bookDesign/BookDesignCard.test.tsx b/client/src/components/Assistant/cards/bookDesign/BookDesignCard.test.tsxnew file mode 100644index 000000000..48bd02980--- /dev/null+++ b/client/src/components/Assistant/cards/bookDesign/BookDesignCard.test.tsx@@ -0,0 +1,368 @@+/**+ * FE-BOOKDSN-010 to FE-BOOKDSN-017+ *+ * The whole-book design in the Studio's chat: the held apply named by its+ * style with its facts, each page it changes drawn beside the page it+ * replaces (the book from the Studio, the draft from the server), a page+ * taken out of the apply sent after a pause and put back when the server+ * refuses, the receipt with the pages it wrote and the ones it left, a draft+ * the server forgot, the way to a page, the draft as an answer card, a+ * choice still waiting sent as the card goes away, and a book that cannot be+ * read; a choice sent at once when the pointer leaves the pages (the way to+ * Apply), and an older answer arriving last never taken for what the server+ * kept.+ */+import {+ type AssistantApplied,+ type AssistantChangePreview,+ type AssistantMessage,+ blankBook,+ type BookDesignCard,+ type BookDesignDraftResponse,+ type BookDocument,+ type BookSpread,+} from '@trek/shared';+import type { ReactNode } from 'react';+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';++import { act, fireEvent, render, screen, waitFor } from '../../../../../tests/helpers/render';+import { useStudioStore } from '../../../../store/studioStore';+import AssistantChangeCard from '../../AssistantChangeCard';+import type { ChangeItem } from '../../assistantParts';+import { type AssistantView, AssistantViewContext } from '../../assistantViewContext';+import { CARD_RULES } from '../cardLooks';+import { BookDesignBlock } from './BookDesignCard';++const repo = vi.hoisted(() => ({ draft: vi.fn(), book: vi.fn(), select: vi.fn() }));+vi.mock('../../../../repo/bookDesignRepo', () => ({ bookDesignRepo: repo }));++const STUDIO = useStudioStore.getState();++/** sp-1 the cover, sp-2 the first page, sp-3 a double page, sp-4 the last page, sp-5 the back. */+function book(): BookDocument {+ let seq = 0;+ return blankBook({ title: 'Lisbon', newId: (prefix) => `${prefix}-${++seq}` });+}++function inner(id: string): BookSpread {+ return { id, role: 'inner', background: null, elements: [], parked: [], entryId: null };+}++/** The book in the Studio: a second double page (sp-7) after sp-3. */+function stored(): BookDocument {+ const doc = book();+ return { ...doc, spreads: [...doc.spreads.slice(0, 3), inner('sp-7'), ...doc.spreads.slice(3)] };+}++/** The designed book: sp-3 laid out again, a new double page sp-9, sp-7 dropped. */+function designed(): BookDocument {+ const doc = book();+ return { ...doc, spreads: [...doc.spreads.slice(0, 3), inner('sp-9'), ...doc.spreads.slice(3)] };+}++type Row = [string, number, BookDesignCard['spreads'][number]['action'], number, number];++/** The cover kept, sp-3 laid out again (one fault, one warning), sp-9 new (two warnings), sp-7 dropped. */+const ROWS: Row[] = [+ ['sp-1', 0, 'keep', 0, 0],+ ['sp-3', 2, 'replace', 1, 1],+ ['sp-9', 3, 'insert', 0, 2],+ ['sp-7', 3, 'drop', 0, 0],+];++function draft(rows: Row[] = ROWS, doc: BookDocument = designed()): BookDesignDraftResponse {+ const plan = rows.map(([spreadId, index, action, severe, warn]) => ({+ spreadId,+ index,+ action,+ beat: 'duo' as const,+ chapter: null,+ entryId: null,+ photoIds: [],+ findings: { severe, warn },+ }));+ const selection = rows.filter(([, , action]) => action !== 'keep').map(([spreadId]) => spreadId);+ return { designId: 'd-1', baseVersion: 4, expiresAt: '2026-10-22T18:00:00.000Z', document: doc, plan, selection };+}++function card(over: Partial<BookDesignCard> = {}): BookDesignCard {+ const spreads = ROWS.map(([spreadId, index, action, severe, warn]) => ({+ spreadId,+ index,+ action,+ beat: 'duo' as const,+ chapter: null,+ entryId: null,+ photoCount: 0,+ severe,+ warn,+ }));+ return {+ kind: 'bookDesign',+ change: 'proposed',+ journeyId: 3,+ designId: 'd-1',+ baseVersion: 4,+ style: 'editorial',+ paper: '#faf8f4',+ ink: '#1a1a1a',+ accent: '#c0392b',+ heading: 'playfair',+ body: 'garamond',+ spreads,+ more: 6,+ leftOut: 2,+ revisionId: null,+ skipped: [],+ ...over,+ };+}++function item(state: ChangeItem['state'], held: BookDesignCard): ChangeItem {+ const preview: AssistantChangePreview = {+ toolCallId: 'w1',+ verbKey: 'designBook',+ subject: '',+ rows: [],+ dayId: null,+ placeIds: [],+ undoable: true,+ card: held,+ };+ const receipt: AssistantApplied = { toolCallId: 'w1', entity: 'book_page', ids: [], dayId: null, undoUntil: null };+ return { toolCallId: 'w1', preview, applied: state === 'applied' ? receipt : null, state, card: held };+}++/** The chat of journey 3's Studio (its key is the negated journey id), unless `view` names another. */+function inView(ui: ReactNode, view: Partial<AssistantView> = {}) {+ const value: AssistantView = { tripId: -3, variant: 'window', ...view };+ return render(<AssistantViewContext.Provider value={value}>{ui}</AssistantViewContext.Provider>);+}++/** The round choice of a page, by the page's name. */+function choice(page: string, nth = 0): HTMLElement {+ return screen.getAllByRole('button', { name: `${page}: use the new design` })[nth] as HTMLElement;+}++/** The pages of the design, the area a pointer leaves on its way to Apply. */+function pagesArea(): HTMLElement {+ return screen.getByRole('list', { name: 'Pages of the design' }).parentElement as HTMLElement;+}++beforeEach(() => {+ repo.draft.mockResolvedValue(draft());+ repo.book.mockResolvedValue(stored());+ repo.select.mockImplementation((_journeyId: number, _designId: string, ids: string[]) => Promise.resolve(ids));+});++afterEach(() => {+ useStudioStore.setState(STUDIO, true);+ vi.clearAllMocks();+});++describe('the whole-book design card', () => {+ it('FE-BOOKDSN-010: a waiting design names its style and facts, and draws each page beside the one it replaces', async () => {+ useStudioStore.setState({ doc: stored(), activeSpread: 0 });+ inView(<AssistantChangeCard items={[item('pending', card())]} />);+ expect(screen.getByText('Editorial design')).toBeInTheDocument();+ expect(screen.getByText('Apply the book design')).toBeInTheDocument();+ expect(screen.getByRole('img', { name: 'Paper, ink and accent colour' })).toBeInTheDocument();+ expect(screen.getByText('Playfair Display and EB Garamond')).toBeInTheDocument();+ expect(screen.getByText('3 pages change')).toBeInTheDocument();+ expect(screen.getByText('2 photos left out')).toBeInTheDocument();+ expect(screen.getByText('4 things to check')).toBeInTheDocument();++ // The page laid out again shows before and after; the new page and the dropped one stand alone.+ expect(await screen.findByText('Before')).toBeInTheDocument();+ expect(screen.getByText('After')).toBeInTheDocument();+ expect(screen.getByText('Double page 1')).toBeInTheDocument();+ expect(screen.getAllByText('Double page 2')).toHaveLength(2);+ expect(screen.getByText('New')).toBeInTheDocument();+ expect(screen.getByText('Removed')).toBeInTheDocument();+ expect(screen.getAllByRole('button', { name: 'Show this page' })).toHaveLength(4);+ // The page laid out again and the new page each carry two findings; the dropped one none.+ expect(screen.getAllByRole('img', { name: '2 things to check' })).toHaveLength(2);+ expect(choice('Double page 1')).toHaveAttribute('aria-pressed', 'true');+ // The draft comes from the server, the book from the Studio.+ expect(repo.draft).toHaveBeenCalledWith(3, 'd-1');+ expect(repo.book).not.toHaveBeenCalled();+ });++ it('FE-BOOKDSN-011: a page taken out is shown at once and sent after a pause, the last choice only', async () => {+ useStudioStore.setState({ doc: stored() });+ inView(<AssistantChangeCard items={[item('pending', card())]} />);+ await screen.findByText('Before');+ fireEvent.click(choice('Double page 2', 0));+ fireEvent.click(choice('Double page 2', 1));+ expect(choice('Double page 2', 0)).toHaveAttribute('aria-pressed', 'false');+ expect(choice('Double page 2', 1)).toHaveAttribute('aria-pressed', 'false');+ expect(repo.select).not.toHaveBeenCalled();+ await waitFor(() => expect(repo.select).toHaveBeenCalledTimes(1));+ expect(repo.select).toHaveBeenCalledWith(3, 'd-1', ['sp-3']);++ // Put back in: the pages in the plan's order.+ fireEvent.click(choice('Double page 2', 1));+ await waitFor(() => expect(repo.select).toHaveBeenCalledTimes(2));+ expect(repo.select).toHaveBeenLastCalledWith(3, 'd-1', ['sp-3', 'sp-7']);+ });++ it('FE-BOOKDSN-012: a refused choice is put back to what the server kept, and says so', async () => {+ useStudioStore.setState({ doc: stored() });+ repo.select.mockRejectedValue(new Error('offline'));+ inView(<AssistantChangeCard items={[item('pending', card())]} />);+ await screen.findByText('Before');+ fireEvent.click(choice('Double page 1'));+ expect(choice('Double page 1')).toHaveAttribute('aria-pressed', 'false');+ expect(await screen.findByText('The choice of pages could not be saved and was put back.')).toBeInTheDocument();+ expect(choice('Double page 1')).toHaveAttribute('aria-pressed', 'true');+ });++ it('FE-BOOKDSN-013: the receipt draws the pages it wrote as the book holds them, and names the ones it left', async () => {+ useStudioStore.setState({ doc: designed() });+ const skipped: BookDesignCard['skipped'] = [+ { spreadId: 'sp-9', reason: 'changed_since' },+ { spreadId: 'sp-7', reason: 'excluded' },+ ];+ inView(<AssistantChangeCard items={[item('applied', card({ change: 'applied', revisionId: 8, skipped }))]} />);+ expect(screen.getByText('1 page changed since, kept as it is')).toBeInTheDocument();+ expect(screen.getByText('1 page not chosen')).toBeInTheDocument();+ expect(screen.queryByText('3 pages change')).toBeNull();+ expect(await screen.findAllByRole('button', { name: 'Show this page' })).toHaveLength(1);+ expect(screen.queryByText('Before')).toBeNull();+ expect(screen.queryByRole('button', { name: /use the new design/ })).toBeNull();+ // The draft is gone with the apply: nothing asks for it.+ expect(repo.draft).not.toHaveBeenCalled();+ });++ it('FE-BOOKDSN-014: a draft the server forgot keeps the badges and says so; any other failure says the pages did not load', async () => {+ useStudioStore.setState({ doc: stored() });+ repo.draft.mockRejectedValue(Object.assign(new Error('gone'), { response: { status: 410 } }));+ const first = inView(<AssistantChangeCard items={[item('pending', card())]} />);+ const gone = await screen.findByText('This draft is gone. Ask for the design again to see its pages.');+ expect(gone).toBeInTheDocument();+ expect(screen.getByText('3 pages change')).toBeInTheDocument();+ expect(screen.queryByRole('button', { name: 'Show this page' })).toBeNull();+ first.unmount();++ repo.draft.mockRejectedValue(new Error('down'));+ inView(<AssistantChangeCard items={[item('pending', card())]} />);+ expect(await screen.findByText('The pages could not be loaded.')).toBeInTheDocument();+ });++ it('FE-BOOKDSN-015: a page opens in the Studio: there its page, elsewhere the Studio on it', async () => {+ useStudioStore.setState({ doc: stored(), activeSpread: 0 });+ const onOpen = vi.fn();+ const own = inView(<AssistantChangeCard items={[item('pending', card())]} />, { onOpen });+ const sheets = await screen.findAllByRole('button', { name: 'Show this page' });+ fireEvent.click(sheets[0] as HTMLElement);+ expect(useStudioStore.getState().activeSpread).toBe(2);+ expect(onOpen).not.toHaveBeenCalled();+ own.unmount();++ // A trip's chat: the book is read from the server, and a page opens the Studio on it.+ inView(<AssistantChangeCard items={[item('pending', card())]} />, { tripId: 4, onOpen });+ const away = await screen.findAllByRole('button', { name: 'Show this page' });+ expect(repo.book).toHaveBeenCalledWith(3);+ fireEvent.click(away[0] as HTMLElement);+ expect(onOpen).toHaveBeenCalledWith({ kind: 'page', path: '/journey/3/studio?page=sp-3' });+ });++ it('FE-BOOKDSN-017: a choice still waiting is sent when the card goes away; a book that cannot be read leaves the draft alone', async () => {+ useStudioStore.setState({ doc: stored() });+ const first = inView(<AssistantChangeCard items={[item('pending', card())]} />);+ await screen.findByText('Before');+ fireEvent.click(choice('Double page 1'));+ first.unmount();+ expect(repo.select).toHaveBeenCalledWith(3, 'd-1', ['sp-9', 'sp-7']);++ // A trip's chat whose book read fails: the draft's pages stand alone, the dropped page has nothing to draw.+ repo.book.mockRejectedValue(new Error('down'));+ inView(<AssistantChangeCard items={[item('pending', card())]} />, { tripId: 4 });+ expect(await screen.findAllByRole('button', { name: 'Show this page' })).toHaveLength(2);+ expect(screen.queryByText('Before')).toBeNull();+ expect(screen.getByText('Double page 1')).toBeInTheDocument();+ });++ it('FE-BOOKDSN-016: the draft stands as an answer card that gives way to its proposal; a discarded one draws no pages', async () => {+ useStudioStore.setState({ doc: stored() });+ const many = Array.from({ length: 14 }, (_, i): Row => [`sp-n${i}`, i + 1, 'insert', 0, 0]);+ const doc = book();+ repo.draft.mockResolvedValue(draft(many, { ...doc, spreads: [...doc.spreads, ...many.map(([id]) => inner(id))] }));+ const answer = card({ change: 'none' });+ const message = {} as AssistantMessage;+ const first = inView(<BookDesignBlock cards={[{ toolCallId: 'r1', card: answer }]} message={message} />);+ expect(screen.getByText('Editorial design')).toBeInTheDocument();+ expect(screen.getByText('10 pages')).toBeInTheDocument();+ expect(await screen.findAllByRole('button', { name: 'Show this page' })).toHaveLength(12);+ expect(screen.queryByRole('button', { name: /use the new design/ })).toBeNull();+ fireEvent.click(screen.getByRole('button', { name: 'Show all 14 pages' }));+ expect(screen.getAllByRole('button', { name: 'Show this page' })).toHaveLength(14);+ first.unmount();++ expect(CARD_RULES.yieldsToChange(answer, card())).toBe(true);+ expect(CARD_RULES.yieldsToChange(answer, card({ designId: 'd-2' }))).toBe(false);++ vi.clearAllMocks();+ inView(<AssistantChangeCard items={[item('discarded', card())]} />);+ expect(screen.getByText('Editorial design')).toHaveClass('line-through');+ expect(screen.queryByRole('button', { name: 'Show this page' })).toBeNull();+ expect(repo.draft).not.toHaveBeenCalled();+ });++ it('FE-BOOKDSN-018: a choice goes out as soon as the pointer leaves the pages, and stays faded while the apply runs', async () => {+ useStudioStore.setState({ doc: stored() });+ const view = inView(<AssistantChangeCard items={[item('pending', card())]} />);+ await screen.findByText('Before');+ fireEvent.click(choice('Double page 1'));+ expect(repo.select).not.toHaveBeenCalled();+ fireEvent.pointerLeave(pagesArea());+ expect(repo.select).toHaveBeenCalledTimes(1);+ expect(repo.select).toHaveBeenCalledWith(3, 'd-1', ['sp-9', 'sp-7']);+ expect(choice('Double page 1').closest('li')).toHaveClass('opacity-50');++ // The apply runs: no choice any more, the page taken out still faded, nothing sent twice.+ const running = <AssistantChangeCard items={[item('applying', card())]} />;+ view.rerender(+ <AssistantViewContext.Provider value={{ tripId: -3, variant: 'window' }}>{running}</AssistantViewContext.Provider>+ );+ expect(screen.queryByRole('button', { name: /use the new design/ })).toBeNull();+ expect(screen.getByText('Double page 1').closest('li')).toHaveClass('opacity-50');+ expect(screen.getAllByText('Double page 2')[0]?.closest('li')).not.toHaveClass('opacity-50');+ expect(repo.select).toHaveBeenCalledTimes(1);+ });++ it('FE-BOOKDSN-019: an older answer arriving last neither shows nor becomes what a refusal puts back', async () => {+ useStudioStore.setState({ doc: stored() });+ let release: (ids: string[]) => void = () => undefined;+ repo.select+ .mockImplementationOnce(+ () =>+ new Promise<string[]>((resolve) => {+ release = resolve;+ })+ )+ .mockImplementationOnce((_journeyId: number, _designId: string, ids: string[]) => Promise.resolve(ids))+ .mockImplementationOnce(() => Promise.reject(new Error('down')));+ inView(<AssistantChangeCard items={[item('pending', card())]} />);+ await screen.findByText('Before');++ // sp-7 out (its answer held back), then in again (answered at once).+ fireEvent.click(choice('Double page 2', 1));+ fireEvent.pointerLeave(pagesArea());+ fireEvent.click(choice('Double page 2', 1));+ fireEvent.pointerLeave(pagesArea());+ await waitFor(() => expect(repo.select).toHaveBeenCalledTimes(2));+ await act(async () => {+ release(['sp-3', 'sp-9']);+ await Promise.resolve();+ });+ expect(choice('Double page 2', 1)).toHaveAttribute('aria-pressed', 'true');++ // A refused choice puts back the newest answer, sp-7 in.+ fireEvent.click(choice('Double page 2', 0));+ fireEvent.pointerLeave(pagesArea());+ expect(await screen.findByText('The choice of pages could not be saved and was put back.')).toBeInTheDocument();+ expect(choice('Double page 2', 0)).toHaveAttribute('aria-pressed', 'true');+ expect(choice('Double page 2', 1)).toHaveAttribute('aria-pressed', 'true');+ });+});diff --git a/client/src/components/Assistant/cards/bookDesign/BookDesignCard.tsx b/client/src/components/Assistant/cards/bookDesign/BookDesignCard.tsxnew file mode 100644index 000000000..ef08c4555--- /dev/null+++ b/client/src/components/Assistant/cards/bookDesign/BookDesignCard.tsx@@ -0,0 +1,202 @@+import type { AssistantMessage, BookDesignCard, TrekCard } from '@trek/shared';+import { CircleSlash, Files, History, ImageOff, Palette, TriangleAlert, Type } from 'lucide-react';+import { lazy, Suspense } from 'react';++import { useTranslation } from '../../../../i18n';+import { BOOK_FONTS } from '../../../Studio/bookFonts';+import type { ChangeItem } from '../../assistantParts';+import type { CardEntry } from '../cardTypes';+import { CardFacts, Fact } from '../parts/CardFacts';+import CardFrame from '../parts/CardFrame';+import CardHeader from '../parts/CardHeader';+import { designCounts, skippedCounts, styleLabel } from './bookDesignModel';++/**+ * The whole-book design in the chat. Its head names the design after its+ * style, with the book's colours (paper, ink, accent) as three dots; its+ * facts name the two typefaces, how many pages change, the photos left out+ * and the findings worth a look; under it the pages, each beside the page it+ * replaces (BookDesignSpreadStrip, loaded with the first design card).+ *+ * `design_book`'s draft stands as an answer card; the held+ * `apply_book_design` is a change row whose pages can be taken out one by one+ * before the person applies the rest; its receipt shows the pages it wrote+ * and names the ones it left as they were.+ */++interface SlotProps {+ card: BookDesignCard;+ item: ChangeItem;+}++const BookDesignSpreadStrip = lazy(() => import('./BookDesignSpreadStrip'));++/** A change that no longer runs: no pages to draw, its name struck through. */+const GONE: ReadonlySet<ChangeItem['state']> = new Set(['failed', 'discarded', 'expired']);+const STRUCK: ReadonlySet<ChangeItem['state']> = new Set(['discarded', 'expired']);++const SUBJECT_ROW = 'flex min-w-0 items-center gap-2';+const SUBJECT = 'block min-w-0 truncate text-body font-semibold leading-tight text-content';+const SUBJECT_STRUCK = `${SUBJECT} line-through`;+const SWATCHES = 'inline-flex flex-none items-center gap-0.5';+const SWATCH = 'h-2.5 w-2.5 rounded-full ring-1 ring-inset ring-edge';+const CARDS = 'flex flex-col gap-2';+const BODY = 'mt-1';++/** The book's colours as three dots: paper, ink and accent. */+function Swatches({ card }: { card: BookDesignCard }) {+ const { t } = useTranslation();+ const colours = [+ { role: 'paper', value: card.paper },+ { role: 'ink', value: card.ink },+ { role: 'accent', value: card.accent },+ ];+ return (+ <span role="img" aria-label={t('assistant.card.bookDesign.colours')} className={SWATCHES}>+ {colours.map((colour) => (+ <span key={colour.role} className={SWATCH} style={{ backgroundColor: colour.value }} />+ ))}+ </span>+ );+}++/** The pages an applied design left as they were, by why. */+function SkippedFacts({ card }: { card: BookDesignCard }) {+ const { t } = useTranslation();+ const skipped = skippedCounts(card);+ return (+ <>+ {skipped.changed_since > 0 && (+ <Fact+ icon={History}+ tone="warning"+ label={t('assistant.card.bookDesign.skippedChanged', { count: skipped.changed_since })}+ />+ )}+ {skipped.photo_gone > 0 && (+ <Fact+ icon={ImageOff}+ tone="warning"+ label={t('assistant.card.bookDesign.skippedPhoto', { count: skipped.photo_gone })}+ />+ )}+ {skipped.excluded > 0 && (+ <Fact icon={CircleSlash} label={t('assistant.card.bookDesign.skippedExcluded', { count: skipped.excluded })} />+ )}+ </>+ );+}++/** The design's facts: its typefaces, the pages it changes, photos left out, findings; once applied, what it left. */+function DesignFacts({ card, applied }: { card: BookDesignCard; applied: boolean }) {+ const { t } = useTranslation();+ const counts = designCounts(card);+ const faces = { heading: BOOK_FONTS[card.heading].name, body: BOOK_FONTS[card.body].name };+ // One typeface for both is named once.+ const typeface = faces.heading === faces.body ? faces.heading : t('assistant.card.bookDesign.faces', faces);+ return (+ <>+ <Fact icon={Type} label={typeface} />+ {!applied && counts.changes > 0 && (+ <Fact icon={Files} label={t('assistant.card.bookDesign.changes', { count: counts.changes })} />+ )}+ {!applied && card.leftOut > 0 && (+ <Fact icon={ImageOff} label={t('assistant.card.bookDesign.leftOut', { count: card.leftOut })} />+ )}+ {!applied && counts.findings > 0 && (+ <Fact+ icon={TriangleAlert}+ tone={counts.severe ? 'danger' : 'warning'}+ label={t('assistant.card.book.findings', { count: counts.findings })}+ />+ )}+ {applied && <SkippedFacts card={card} />}+ </>+ );+}++interface PagesProps {+ card: BookDesignCard;+ mode: 'draft' | 'applied';+ editable: boolean;+}++/** The pages of the design under its card or row. */+function DesignPages({ card, mode, editable }: PagesProps) {+ return (+ <div className={BODY}>+ <Suspense fallback={null}>+ <BookDesignSpreadStrip card={card} mode={mode} editable={editable} />+ </Suspense>+ </div>+ );+}++/** A draft `design_book` made, nothing proposed yet: the design, its facts and its pages. */+function DesignAnswer({ card }: { card: BookDesignCard }) {+ const { t } = useTranslation();+ const counts = designCounts(card);+ return (+ <CardFrame label={t('assistant.card.bookDesign.label')}>+ <CardHeader+ icon={Palette}+ tone="info"+ title={styleLabel(card, t)}+ meta={t('assistant.card.bookDesign.pages', { count: counts.pages })}+ actions={<Swatches card={card} />}+ />+ <CardFacts>+ <DesignFacts card={card} applied={false} />+ </CardFacts>+ <DesignPages card={card} mode="draft" editable={false} />+ </CardFrame>+ );+}++/** One answer card of the group, drawn when it is a design. */+function DesignEntry({ card }: { card: TrekCard }) {+ return card.kind === 'bookDesign' ? <DesignAnswer card={card} /> : null;+}++/** The drafts an answer made, one card each. */+export function BookDesignBlock({ cards }: { cards: readonly CardEntry[]; message: AssistantMessage }) {+ return (+ <div className={CARDS}>+ {cards.map((entry) => (+ <DesignEntry key={entry.toolCallId} card={entry.card} />+ ))}+ </div>+ );+}++/** The design as a change row's subject: its style in bold with its colours, struck once it no longer runs. */+export function BookDesignSubject({ card, item }: SlotProps) {+ const { t } = useTranslation();+ const subject = styleLabel(card, t);+ return (+ <span className={SUBJECT_ROW}>+ <bdi title={subject} className={STRUCK.has(item.state) ? SUBJECT_STRUCK : SUBJECT}>+ {subject}+ </bdi>+ <Swatches card={card} />+ </span>+ );+}++/** The change row's facts; once applied, the pages it left as they were. */+export function BookDesignFacts({ card, item }: SlotProps) {+ return <DesignFacts card={card} applied={item.state === 'applied'} />;+}++/**+ * The pages under the change row: while it waits, each page beside the one+ * it replaces, with the choice of pages until it is decided; once applied,+ * the pages as the book holds them now. Nothing for a change that no longer+ * runs.+ */+export function BookDesignBody({ card, item }: SlotProps) {+ if (GONE.has(item.state)) return null;+ const applied = item.state === 'applied';+ const editable = item.state === 'pending' && card.change === 'proposed';+ return <DesignPages card={card} mode={applied ? 'applied' : 'draft'} editable={editable} />;+}diff --git a/client/src/components/Assistant/cards/bookDesign/BookDesignSpreadStrip.tsx b/client/src/components/Assistant/cards/bookDesign/BookDesignSpreadStrip.tsxnew file mode 100644index 000000000..f7bbff2ea--- /dev/null+++ b/client/src/components/Assistant/cards/bookDesign/BookDesignSpreadStrip.tsx@@ -0,0 +1,196 @@+import type { BookDesignCard, BookPageSetup, BookSpread } from '@trek/shared';+import { ArrowRight, Check, TriangleAlert } from 'lucide-react';+import { type FocusEvent, useState } from 'react';++import { useTranslation } from '../../../../i18n';+import { SpreadThumb } from '../../../Studio/SpreadThumb';+import { pageLabel } from '../book/bookCardModel';+import { ChangeMark } from '../parts/CardFacts';+import type { DesignPair } from './bookDesignModel';+import { useBookDesignDraft } from './useBookDesignDraft';++/**+ * The pages of a whole-book design drawn small, a row to scroll through:+ * each page the design changes beside the page of the book it replaces (a+ * new page alone, marked new; a dropped one alone, marked removed), its+ * findings flagged. While the proposal waits, a round choice on each page+ * keeps it in the apply or takes it out. Once applied, the pages as the book+ * holds them now. Each sheet is the editor's own view under a scale, so the+ * card never looks different from the page; pressing one shows that page.+ */++/** A sheet's height in pixels; its width follows the page. */+const SHEET_HEIGHT = 48;+/** Pages shown before the rest wait behind "Show all". */+const FIRST_PAIRS = 12;++const FOCUS = 'outline-none focus-visible:ring-2 focus-visible:ring-accent';+const STRIP = 'flex flex-col gap-1.5';+const ROW = '-mx-1 flex gap-3 overflow-x-auto px-1 pb-1';+const PAIR = 'flex flex-none flex-col gap-1 transition-opacity';+const PAIR_OUT = `${PAIR} opacity-50`;+const PAIR_HEAD = 'flex min-w-0 items-center gap-1.5';+const PAIR_LABEL = 'truncate text-caption text-content-secondary';+const SHEETS = 'flex items-center gap-1';+const SHEET_BUTTON = `flex flex-col items-start gap-0.5 rounded-md ${FOCUS}`;+const SHEET = 'relative overflow-hidden rounded-sm ring-1 ring-edge-faint';+const SHEET_CAPTION = 'text-caption text-content-faint';+const ARROW = 'flex-none text-content-faint rtl:-scale-x-100';+const CHOICE = `grid h-4 w-4 flex-none place-items-center rounded-full transition-colors ${FOCUS}`;+const CHOICE_ON = `${CHOICE} bg-accent`;+const CHOICE_OFF = `${CHOICE} border-[1.5px] border-edge bg-surface-card`;+const CHOICE_MARK = 'text-accent-text';+const MORE = `self-start rounded-sm text-caption font-medium text-accent-on hover:underline ${FOCUS}`;+const NOTE = 'text-caption text-content-muted';+const NOTE_ERR = 'text-caption text-danger';+const SKELETON = 'trek-skeleton block h-12 w-48';+const FLAG_SEVERE = 'flex-none text-danger';+const FLAG_WARN = 'flex-none text-warning';++interface SheetProps {+ spread: BookSpread;+ page: BookPageSetup;+ /** "Before" or "After" under a page drawn beside its other side; nothing under a page alone. */+ caption: string | null;+ onShow: () => void;+}++/** One page drawn small; pressing it shows the page. */+function Sheet({ spread, page, caption, onShow }: SheetProps) {+ const { t } = useTranslation();+ const width = (SHEET_HEIGHT * (spread.role === 'inner' ? page.pageWidth * 2 : page.pageWidth)) / page.pageHeight;+ return (+ <button type="button" onClick={onShow} aria-label={t('assistant.card.book.showPage')} className={SHEET_BUTTON}>+ <SpreadThumb spread={spread} page={page} width={width} className={SHEET} />+ {caption && <span className={SHEET_CAPTION}>{caption}</span>}+ </button>+ );+}++type Strip = ReturnType<typeof useBookDesignDraft>;++interface PairProps {+ pair: DesignPair;+ strip: Strip;+ editable: boolean;+}++interface PairRowProps extends PairProps {+ /** A proposal's pages: one taken out of the apply is faded, also while the apply runs. */+ choosing: boolean;+}++/** A page's head: its round choice while it can be taken out, its name, what happens to it, its findings. */+function PairHead({ pair, strip, editable, label }: PairProps & { label: string }) {+ const { t } = useTranslation();+ const included = strip.chosen.has(pair.spreadId);+ return (+ <span className={PAIR_HEAD}>+ {editable && (+ <button+ type="button"+ onClick={() => strip.toggle(pair.spreadId)}+ aria-pressed={included}+ aria-label={t('assistant.card.bookDesign.include', { page: label })}+ className={included ? CHOICE_ON : CHOICE_OFF}+ >+ {included && <Check size={10} strokeWidth={3} aria-hidden="true" className={CHOICE_MARK} />}+ </button>+ )}+ <bdi className={PAIR_LABEL}>{label}</bdi>+ {pair.action === 'insert' && <ChangeMark change="new" />}+ {pair.action === 'drop' && <ChangeMark change="removed" />}+ {pair.findings > 0 && (+ <TriangleAlert+ size={11}+ role="img"+ aria-label={t('assistant.card.book.findings', { count: pair.findings })}+ className={pair.severe ? FLAG_SEVERE : FLAG_WARN}+ />+ )}+ </span>+ );+}++/** The page before and after, "Before" and "After" under them when both are drawn. */+function PairSheets({ pair, strip }: { pair: DesignPair; strip: Strip }) {+ const { t } = useTranslation();+ const show = () => strip.show(pair.spreadId);+ const both = pair.before !== null && pair.after !== null;+ return (+ <span className={SHEETS}>+ {pair.before && strip.beforePage && (+ <Sheet+ spread={pair.before}+ page={strip.beforePage}+ caption={both ? t('assistant.card.book.before') : null}+ onShow={show}+ />+ )}+ {both && <ArrowRight size={12} aria-hidden="true" className={ARROW} />}+ {pair.after && strip.afterPage && (+ <Sheet+ spread={pair.after}+ page={strip.afterPage}+ caption={both ? t('assistant.card.book.after') : null}+ onShow={show}+ />+ )}+ </span>+ );+}++/** One page of the design: its head, and the page before and after; faded once taken out of the apply. */+function Pair({ pair, strip, editable, choosing }: PairRowProps) {+ const { t } = useTranslation();+ const label = pair.page ? pageLabel(pair.page, t) : t('assistant.card.book.spreadAny');+ return (+ <li className={choosing && !strip.chosen.has(pair.spreadId) ? PAIR_OUT : PAIR}>+ <PairHead pair={pair} strip={strip} editable={editable} label={label} />+ <PairSheets pair={pair} strip={strip} />+ </li>+ );+}++interface StripProps {+ card: BookDesignCard;+ /** `draft` while the design waits, `applied` for its receipt. */+ mode: 'draft' | 'applied';+ /** The pages can be taken out of the apply (a proposal still waiting). */+ editable: boolean;+}++export default function BookDesignSpreadStrip({ card, mode, editable }: StripProps) {+ const { t } = useTranslation();+ const strip = useBookDesignDraft(card, mode, editable);+ const [all, setAll] = useState(false);+ // The choice goes out as soon as the pointer or the focus leaves the pages, so an Apply right after it applies it.+ const leave = (event: FocusEvent<HTMLDivElement>) => {+ if (!event.currentTarget.contains(event.relatedTarget)) strip.flush();+ };+ if (strip.status === 'loading') return <span aria-hidden="true" className={SKELETON} />;+ if (strip.status === 'expired') return <p className={NOTE}>{t('assistant.card.bookDesign.expired')}</p>;+ if (strip.status === 'failed') return <p className={NOTE}>{t('assistant.card.bookDesign.unavailable')}</p>;+ if (strip.pairs.length === 0) return null;+ const shown = all ? strip.pairs : strip.pairs.slice(0, FIRST_PAIRS);+ const choosing = mode === 'draft' && card.change === 'proposed';+ return (+ <div onPointerLeave={strip.flush} onBlur={leave} className={STRIP}>+ <ul aria-label={t('assistant.card.bookDesign.pagesLabel')} className={ROW}>+ {shown.map((pair) => (+ <Pair key={pair.spreadId} pair={pair} strip={strip} editable={editable} choosing={choosing} />+ ))}+ </ul>+ {shown.length < strip.pairs.length && (+ <button type="button" onClick={() => setAll(true)} className={MORE}>+ {t('assistant.card.bookDesign.showAll', { count: strip.pairs.length })}+ </button>+ )}+ {strip.selectFailed && (+ <p role="status" className={NOTE_ERR}>+ {t('assistant.card.bookDesign.selectFailed')}+ </p>+ )}+ </div>+ );+}diff --git a/client/src/components/Assistant/cards/bookDesign/bookDesignLook.ts b/client/src/components/Assistant/cards/bookDesign/bookDesignLook.tsnew file mode 100644index 000000000..6551f8f68--- /dev/null+++ b/client/src/components/Assistant/cards/bookDesign/bookDesignLook.ts@@ -0,0 +1,39 @@+import { BookmarkMinus, BookmarkPlus, Copy, Ruler, Sparkles } from 'lucide-react';++import type { PackLook } from '../cardTypes';++/**+ * What the assistant's whole-book design brings to the chat's pure look: the+ * verbs of the book-level changes (a design applied, the page format and the+ * page numbers, a page copied, a layout kept or taken away), the reading+ * steps of the design tools and the look of the design card. A look stays+ * pure, icons and literals only: the chat's main chunk reads every look, so+ * whatever a look imports ships with it.+ *+ * The changes touch pages of the book, so they name the photo book's own+ * entity (`book_page`, bookLook.ts) and add none; the card opens its pages+ * itself, each one in the Studio.+ */+export const BOOK_DESIGN_LOOK = {+ verbs: {+ designBook: { Icon: Sparkles, tone: 'info', labelKey: 'assistant.change.verb.designBook' },+ setBookSetup: { Icon: Ruler, tone: 'info', labelKey: 'assistant.change.verb.setBookSetup' },+ duplicateBookPage: { Icon: Copy, tone: 'success', labelKey: 'assistant.change.verb.duplicateBookPage' },+ saveBookLayout: { Icon: BookmarkPlus, tone: 'success', labelKey: 'assistant.change.verb.saveBookLayout' },+ removeBookLayout: { Icon: BookmarkMinus, tone: 'danger', labelKey: 'assistant.change.verb.removeBookLayout' },+ },+ tools: {},+ steps: {+ design_book: { stepKey: 'assistant.step.designingBook' },+ get_book_design: { stepKey: 'assistant.step.readingDesign' },+ revise_book_design: { stepKey: 'assistant.step.revisingDesign' },+ },+ entities: {},+ cards: {+ bookDesign: {+ entity: () => 'book_page',+ // The draft's card gives way to the proposal of the same draft, which shows the same pages.+ yieldsToChange: (answer, change) => change.kind === 'bookDesign' && change.designId === answer.designId,+ },+ },+} satisfies PackLook<'bookDesign'>;diff --git a/client/src/components/Assistant/cards/bookDesign/bookDesignModel.test.ts b/client/src/components/Assistant/cards/bookDesign/bookDesignModel.test.tsnew file mode 100644index 000000000..4fa5fd61e--- /dev/null+++ b/client/src/components/Assistant/cards/bookDesign/bookDesignModel.test.ts@@ -0,0 +1,160 @@+/**+ * FE-BOOKDSN-001 to FE-BOOKDSN-004+ *+ * The pure side of the whole-book design card: what it counts, the pairs it+ * draws while the design waits (the draft's page beside the book's), the+ * pages an applied design wrote, and a choice of pages kept in plan order.+ */+import {+ blankBook,+ type BookDesignCard,+ type BookDesignDraftResponse,+ type BookDocument,+ type BookSpread,+} from '@trek/shared';+import { describe, expect, it } from 'vitest';++import { appliedPairs, designCounts, draftPairs, skippedCounts, styleLabel, toggledSelection } from './bookDesignModel';++/** sp-1 the cover, sp-2 the first page, sp-3 a double page, sp-4 the last page, sp-5 the back. */+function book(): BookDocument {+ let seq = 0;+ return blankBook({ title: 'Lisbon', newId: (prefix) => `${prefix}-${++seq}` });+}++function inner(id: string): BookSpread {+ return { id, role: 'inner', background: null, elements: [], parked: [], entryId: null };+}++/** The book with a second double page (sp-7) after sp-3. */+function stored(): BookDocument {+ const doc = book();+ return { ...doc, spreads: [...doc.spreads.slice(0, 3), inner('sp-7'), ...doc.spreads.slice(3)] };+}++/** The designed book: sp-3 laid out again, a new double page sp-9 after it, sp-7 dropped. */+function designed(): BookDocument {+ const doc = book();+ const again = { ...inner('sp-3'), background: '#faf8f4' };+ return { ...doc, spreads: [...doc.spreads.slice(0, 2), again, inner('sp-9'), ...doc.spreads.slice(3)] };+}++type PlanRow = BookDesignDraftResponse['plan'][number];+type CardRow = BookDesignCard['spreads'][number];++/** The plan: the cover kept, sp-3 laid out again, sp-9 new, sp-7 dropped. */+const PLAN: [string, number, PlanRow['action'], PlanRow['beat'], number, number][] = [+ ['sp-1', 0, 'keep', 'cover', 0, 0],+ ['sp-3', 2, 'replace', 'hero', 1, 1],+ ['sp-9', 3, 'insert', 'duo', 0, 2],+ ['sp-7', 3, 'drop', 'quiet', 0, 0],+];++function planRow([spreadId, index, action, beat, severe, warn]: (typeof PLAN)[number]): PlanRow {+ const findings = { severe, warn };+ return { spreadId, index, action, beat, chapter: null, entryId: null, photoIds: [], findings };+}++function cardRow([spreadId, index, action, beat, severe, warn]: (typeof PLAN)[number]): CardRow {+ return { spreadId, index, action, beat, chapter: null, entryId: null, photoCount: 0, severe, warn };+}++function draft(): BookDesignDraftResponse {+ return {+ designId: 'd-1',+ baseVersion: 4,+ expiresAt: '2026-10-22T18:00:00.000Z',+ document: designed(),+ plan: PLAN.map(planRow),+ selection: ['sp-3', 'sp-9', 'sp-7'],+ };+}++function card(over: Partial<BookDesignCard> = {}): BookDesignCard {+ return {+ kind: 'bookDesign',+ change: 'proposed',+ journeyId: 3,+ designId: 'd-1',+ baseVersion: 4,+ style: 'editorial',+ paper: '#faf8f4',+ ink: '#1a1a1a',+ accent: '#c0392b',+ heading: 'playfair',+ body: 'garamond',+ spreads: PLAN.map(cardRow),+ more: 6,+ leftOut: 2,+ revisionId: null,+ skipped: [],+ ...over,+ };+}++describe('the whole-book design card model', () => {+ it('FE-BOOKDSN-001: counts the plan, the pages that change, the findings and the pages an apply left', () => {+ expect(designCounts(card())).toEqual({ pages: 10, changes: 3, findings: 4, severe: true });+ expect(designCounts(card({ spreads: [] }))).toEqual({ pages: 6, changes: 0, findings: 0, severe: false });+ const skipped = card({+ skipped: [+ { spreadId: 'sp-3', reason: 'changed_since' },+ { spreadId: 'sp-9', reason: 'photo_gone' },+ { spreadId: 'sp-7', reason: 'excluded' },+ { spreadId: 'sp-8', reason: 'changed_since' },+ ],+ });+ expect(skippedCounts(skipped)).toEqual({ excluded: 1, changed_since: 2, photo_gone: 1 });+ expect(styleLabel(card(), (key) => `t:${key}`)).toBe('t:assistant.card.bookDesign.style.editorial');+ });++ it('FE-BOOKDSN-002: a waiting design pairs each page it changes with the page it replaces', () => {+ const pairs = draftPairs(draft(), stored());+ expect(pairs.map((pair) => [pair.spreadId, pair.action])).toEqual([+ ['sp-3', 'replace'],+ ['sp-9', 'insert'],+ ['sp-7', 'drop'],+ ]);+ const [replaced, added, dropped] = pairs;+ // Laid out again: the book's page before, the draft's after, named by where it stands in the draft.+ expect(replaced?.before?.background).toBeNull();+ expect(replaced?.after?.background).toBe('#faf8f4');+ expect(replaced?.page).toMatchObject({ spreadId: 'sp-3', role: 'inner', number: 1 });+ expect(replaced).toMatchObject({ findings: 2, severe: true });+ // New: nothing before; the second double page of the draft.+ expect(added?.before).toBeNull();+ expect(added?.after?.id).toBe('sp-9');+ expect(added?.page).toMatchObject({ number: 2 });+ expect(added).toMatchObject({ findings: 2, severe: false });+ // Dropped: nothing after; named by where it stood in the book.+ expect(dropped?.after).toBeNull();+ expect(dropped?.before?.id).toBe('sp-7');+ expect(dropped?.page).toMatchObject({ spreadId: 'sp-7', number: 2 });+ // Without the book (it could not be read), the draft's pages stand alone.+ const alone = draftPairs(draft(), null);+ expect(alone.map((pair) => pair.before)).toEqual([null, null, null]);+ expect(alone[2]?.page).toBeNull();+ });++ it('FE-BOOKDSN-003: an applied design shows the pages it wrote as the book holds them, none it left', () => {+ const now = designed();+ const written = appliedPairs(card({ change: 'applied' }), now);+ expect(written.map((pair) => pair.spreadId)).toEqual(['sp-3', 'sp-9']);+ expect(written.every((pair) => pair.before === null)).toBe(true);+ expect(written[0]?.after?.background).toBe('#faf8f4');+ expect(written[1]?.page).toMatchObject({ role: 'inner', number: 2 });++ const left = card({ change: 'applied', skipped: [{ spreadId: 'sp-3', reason: 'changed_since' }] });+ expect(appliedPairs(left, now).map((pair) => pair.spreadId)).toEqual(['sp-9']);+ // A page the book no longer holds is not drawn, and without the book nothing is.+ expect(appliedPairs(card({ change: 'applied' }), book()).map((pair) => pair.spreadId)).toEqual(['sp-3']);+ expect(appliedPairs(card({ change: 'applied' }), null)).toEqual([]);+ });++ it('FE-BOOKDSN-004: a page put in or taken out keeps the plan order', () => {+ const order = ['sp-3', 'sp-9', 'sp-7'];+ expect(toggledSelection(['sp-3', 'sp-9', 'sp-7'], 'sp-9', order)).toEqual(['sp-3', 'sp-7']);+ expect(toggledSelection(['sp-7', 'sp-3'], 'sp-9', order)).toEqual(['sp-3', 'sp-9', 'sp-7']);+ expect(toggledSelection([], 'sp-1', order)).toEqual([]);+ });+});diff --git a/client/src/components/Assistant/cards/bookDesign/bookDesignModel.ts b/client/src/components/Assistant/cards/bookDesign/bookDesignModel.tsnew file mode 100644index 000000000..472ee5a50--- /dev/null+++ b/client/src/components/Assistant/cards/bookDesign/bookDesignModel.ts@@ -0,0 +1,162 @@+import type {+ BookCardPage,+ BookDesignAction,+ BookDesignCard,+ BookDesignDraftResponse,+ BookDesignSkipReason,+ BookDesignStyle,+ BookDocument,+ BookSpread,+} from '@trek/shared';++/**+ * The pure side of the whole-book design card: what a style is called, what+ * the card counts (pages, the ones that change, findings to check, the pages+ * an apply left as they were), and the pairs it draws, each page of the book+ * as it is beside the page of the draft that would take its place.+ */++/** What each style of design is called. A table, so a new style fails to compile until it has words. */+const STYLE_LOOK: Readonly<Record<BookDesignStyle, { labelKey: string }>> = {+ classic: { labelKey: 'assistant.card.bookDesign.style.classic' },+ minimal: { labelKey: 'assistant.card.bookDesign.style.minimal' },+ editorial: { labelKey: 'assistant.card.bookDesign.style.editorial' },+ journal: { labelKey: 'assistant.card.bookDesign.style.journal' },+ bold: { labelKey: 'assistant.card.bookDesign.style.bold' },+ scrapbook: { labelKey: 'assistant.card.bookDesign.style.scrapbook' },+};++type Translate = (key: string, params?: Record<string, string | number>) => string;++/** The design's name, after its style. */+export function styleLabel(card: BookDesignCard, t: Translate): string {+ return t(STYLE_LOOK[card.style].labelKey);+}++/** What a design card counts. */+interface DesignCounts {+ /** The plan's pages, those past the card included. */+ pages: number;+ /** The pages the card lists that the design changes, adds or drops. */+ changes: number;+ /** Severe findings and warnings the server's check left on the listed pages. */+ findings: number;+ severe: boolean;+}++/** What the card counts: the plan's pages, the ones the design changes, and the findings worth a look. */+export function designCounts(card: BookDesignCard): DesignCounts {+ let changes = 0;+ let findings = 0;+ let severe = false;+ for (const spread of card.spreads) {+ if (spread.action !== 'keep') changes += 1;+ findings += spread.severe + spread.warn;+ if (spread.severe > 0) severe = true;+ }+ return { pages: card.spreads.length + card.more, changes, findings, severe };+}++/** The pages an applied design left as they were, by why. */+export function skippedCounts(card: BookDesignCard): Record<BookDesignSkipReason, number> {+ const counts: Record<BookDesignSkipReason, number> = { excluded: 0, changed_since: 0, photo_gone: 0 };+ for (const skipped of card.skipped) counts[skipped.reason] += 1;+ return counts;+}++/** One page of the plan as the card draws it: the book's page as it is, and the draft's in its place. */+export interface DesignPair {+ spreadId: string;+ action: BookDesignAction;+ /** Where the page stands, named as the Studio names it: from the draft, else the book. */+ page: BookCardPage | null;+ before: BookSpread | null;+ after: BookSpread | null;+ findings: number;+ severe: boolean;+}++/** One row of a plan, from the card or from the draft: the page, what happens to it, its findings. */+interface PlanRow {+ spreadId: string;+ action: BookDesignAction;+ severe: number;+ warn: number;+}++/** A spread found in a document, with where it stands. */+interface Found {+ spread: BookSpread | null;+ page: BookCardPage | null;+}++const NOT_FOUND: Found = { spread: null, page: null };++/** The number of the double page at `index`: how many double pages run up to it. */+function innerNumber(spreads: readonly BookSpread[], index: number): number {+ return spreads.slice(0, index + 1).filter((spread) => spread.role === 'inner').length;+}++/** A spread of a document by its id, with where it stands as the Studio names it; nothing when it holds none. */+function spreadIn(doc: BookDocument | null, spreadId: string): Found {+ const spreads = doc?.spreads ?? [];+ const index = spreads.findIndex((spread) => spread.id === spreadId);+ const spread = spreads[index];+ if (!spread) return NOT_FOUND;+ const number = spread.role === 'inner' ? innerNumber(spreads, index) : null;+ return { spread, page: { spreadId, index, role: spread.role, number, photos: 0 } };+}++function pairOf(row: PlanRow, draft: BookDocument | null, book: BookDocument | null): DesignPair {+ const designed = row.action === 'drop' ? NOT_FOUND : spreadIn(draft, row.spreadId);+ const stored = row.action === 'insert' ? NOT_FOUND : spreadIn(book, row.spreadId);+ return {+ spreadId: row.spreadId,+ action: row.action,+ page: designed.page ?? stored.page,+ before: stored.spread,+ after: designed.spread,+ findings: row.severe + row.warn,+ severe: row.severe > 0,+ };+}++/** A row of the draft's plan as the pairs read it. */+function planRowOf(row: BookDesignDraftResponse['plan'][number]): PlanRow {+ return { spreadId: row.spreadId, action: row.action, severe: row.findings.severe, warn: row.findings.warn };+}++/**+ * The pages a waiting design changes, each beside the page it replaces: the+ * draft's plan (the whole plan, not only the rows the card holds) with the+ * draft's page after and the book's page before. A page the design keeps as+ * it is is left out; a new page has nothing before it, a dropped one nothing+ * after it.+ */+export function draftPairs(draft: BookDesignDraftResponse, book: BookDocument | null): DesignPair[] {+ return draft.plan.filter((row) => row.action !== 'keep').map((row) => pairOf(planRowOf(row), draft.document, book));+}++/**+ * The pages an applied design wrote, as the book holds them now: every page+ * it replaced or added and did not leave as it was. A dropped page is gone,+ * and the draft is gone with the apply, so nothing is drawn before.+ */+export function appliedPairs(card: BookDesignCard, book: BookDocument | null): DesignPair[] {+ const skipped = new Set(card.skipped.map((page) => page.spreadId));+ const written = card.spreads.filter(+ (row) => (row.action === 'replace' || row.action === 'insert') && !skipped.has(row.spreadId)+ );+ return written.flatMap((row) => {+ const now = spreadIn(book, row.spreadId);+ return now.spread ? [{ ...pairOf(row, null, null), page: now.page, after: now.spread }] : [];+ });+}++/** The selection with a page put in or taken out, in the plan's order. */+export function toggledSelection(selection: readonly string[], spreadId: string, order: readonly string[]): string[] {+ const chosen = new Set(selection);+ if (chosen.has(spreadId)) chosen.delete(spreadId);+ else chosen.add(spreadId);+ return order.filter((id) => chosen.has(id));+}diff --git a/client/src/components/Assistant/cards/bookDesign/bookDesignViews.tsx b/client/src/components/Assistant/cards/bookDesign/bookDesignViews.tsxnew file mode 100644index 000000000..9ae450f86--- /dev/null+++ b/client/src/components/Assistant/cards/bookDesign/bookDesignViews.tsx@@ -0,0 +1,20 @@+import type { CardView } from '../cardTypes';+import { BookDesignBlock, BookDesignBody, BookDesignFacts, BookDesignSubject } from './BookDesignCard';++/**+ * How the whole-book design draws in the chat: `design_book`'s draft as an+ * answer card of its own, the held `apply_book_design` and its receipt as a+ * change row with the design as its subject, its facts on the faint line and+ * its pages under it. This file only maps the kind to its view: the+ * components live in a sibling file, since a file that exports anything+ * besides components breaks fast refresh.+ */+export const BOOK_DESIGN_VIEWS = {+ bookDesign: {+ Block: BookDesignBlock,+ ownsSubject: true,+ Aside: BookDesignSubject,+ Facts: BookDesignFacts,+ Body: BookDesignBody,+ },+} satisfies { [K in 'bookDesign']: CardView<K> };diff --git a/client/src/components/Assistant/cards/bookDesign/useBookDesignDraft.ts b/client/src/components/Assistant/cards/bookDesign/useBookDesignDraft.tsnew file mode 100644index 000000000..d618ed1e6--- /dev/null+++ b/client/src/components/Assistant/cards/bookDesign/useBookDesignDraft.ts@@ -0,0 +1,240 @@+import type { BookDesignCard, BookDesignDraftResponse, BookDocument, BookPageSetup } from '@trek/shared';+import { useCallback, useEffect, useMemo, useRef, useState } from 'react';++import { bookDesignRepo } from '../../../../repo/bookDesignRepo';+import { useStudioStore } from '../../../../store/studioStore';+import { useAssistantScope, useAssistantView } from '../../assistantViewContext';+import { studioTarget } from '../book/bookLook';+import { appliedPairs, draftPairs, toggledSelection, type DesignPair } from './bookDesignModel';++/**+ * What the whole-book design card draws and does: the draft (read from the+ * server while the design waits), the book beside it (the Studio's own copy+ * in this journey's Studio, else read once), the pages chosen for the apply,+ * and the way to a page.+ *+ * A choice is shown at once and sent 300 ms after the last press, the whole+ * selection in one request; a refusal puts back what the server last kept and+ * says so. A choice still waiting is sent at once when the pointer or the+ * focus leaves the pages (the way to Apply) and when the card goes away.+ */++/** How long the card waits after the last press before it sends the selection. */+const SELECT_DEBOUNCE_MS = 300;++/** Where a read stands: still on its way, done, gone from the server (410), or failed otherwise. */+type ReadState<T> =+ { status: 'loading' } | { status: 'ready'; value: T } | { status: 'expired' } | { status: 'failed' };++const LOADING = { status: 'loading' } as const;++/** A draft the server forgot, or one another user made: 410. */+function isGone(err: unknown): boolean {+ return (err as { response?: { status?: number } } | null)?.response?.status === 410;+}++/** A read answered for `key`; an answer for another key is never shown. */+interface Keyed<T> {+ key: string;+ state: ReadState<T>;+}++/** The draft of the card while `active`. */+function useDraftRead(card: BookDesignCard, active: boolean): ReadState<BookDesignDraftResponse> {+ const { journeyId, designId } = card;+ const key = active ? `${journeyId}:${designId}` : null;+ const [read, setRead] = useState<Keyed<BookDesignDraftResponse> | null>(null);+ useEffect(() => {+ if (key === null) return undefined;+ let live = true;+ bookDesignRepo.draft(journeyId, designId).then(+ (value) => {+ if (live) setRead({ key, state: { status: 'ready', value } });+ },+ (err: unknown) => {+ if (live) setRead({ key, state: { status: isGone(err) ? 'expired' : 'failed' } });+ }+ );+ return () => {+ live = false;+ };+ }, [key, journeyId, designId]);+ return key !== null && read?.key === key ? read.state : LOADING;+}++/** The book as the card reads it, and whether it is the Studio's own copy. */+interface BookRead {+ own: boolean;+ state: ReadState<BookDocument | null>;+}++/** The book beside the design: the Studio's own copy where the chat is this journey's, else read once per `mode`. */+function useBookRead(journeyId: number, mode: string): BookRead {+ const scope = useAssistantScope();+ const studioDoc = useStudioStore((s) => s.doc);+ const own = scope.kind === 'journey' && scope.journeyId === journeyId && studioDoc !== null;+ const key = own ? null : `${journeyId}:${mode}`;+ const [read, setRead] = useState<Keyed<BookDocument | null> | null>(null);+ useEffect(() => {+ if (key === null) return undefined;+ let live = true;+ bookDesignRepo.book(journeyId).then(+ (value) => {+ if (live) setRead({ key, state: { status: 'ready', value } });+ },+ () => {+ if (live) setRead({ key, state: { status: 'failed' } });+ }+ );+ return () => {+ live = false;+ };+ }, [key, journeyId]);+ if (own) return { own, state: { status: 'ready', value: studioDoc } };+ return { own, state: key !== null && read?.key === key ? read.state : LOADING };+}++/** A selection sent later, and the timer that sends it. */+interface Outbox {+ timer: number | null;+ flush: (() => void) | null;+}++/** The pages chosen for the apply: shown at once, sent after a pause, put back when the server refuses. */+function useSelection(card: BookDesignCard, draft: BookDesignDraftResponse | null, editable: boolean) {+ const { journeyId, designId } = card;+ const key = draft ? `${journeyId}:${designId}` : null;+ const [chosen, setChosen] = useState<{ key: string; ids: string[] } | null>(null);+ const [failed, setFailed] = useState(false);+ const outbox = useRef<Outbox>({ timer: null, flush: null });+ // The newest selection the server answered, with the request it answered: an older answer arriving last never wins.+ const confirmed = useRef<{ seq: number; ids: string[] } | null>(null);+ const sent = useRef(0);+ const selection = useMemo(+ () => (key !== null && chosen?.key === key ? chosen.ids : (draft?.selection ?? [])),+ [key, chosen, draft]+ );+ const order = useMemo(+ () => (draft?.plan ?? []).filter((row) => row.action !== 'keep').map((row) => row.spreadId),+ [draft]+ );++ const send = useCallback(+ (ids: string[]) => {+ if (key === null || !draft) return;+ const proposed = draft.selection;+ sent.current += 1;+ const mine = sent.current;+ bookDesignRepo.select(journeyId, designId, ids).then(+ (kept) => {+ if (confirmed.current === null || mine > confirmed.current.seq) confirmed.current = { seq: mine, ids: kept };+ if (mine === sent.current) setChosen({ key, ids: kept });+ },+ () => {+ if (mine !== sent.current) return;+ setChosen({ key, ids: confirmed.current?.ids ?? proposed });+ setFailed(true);+ }+ );+ },+ [key, draft, journeyId, designId]+ );++ const toggle = useCallback(+ (spreadId: string) => {+ if (key === null || !editable) return;+ const next = toggledSelection(selection, spreadId, order);+ setChosen({ key, ids: next });+ setFailed(false);+ const box = outbox.current;+ if (box.timer !== null) window.clearTimeout(box.timer);+ const sendNow = () => {+ box.timer = null;+ box.flush = null;+ send(next);+ };+ box.flush = sendNow;+ box.timer = window.setTimeout(sendNow, SELECT_DEBOUNCE_MS);+ },+ [key, editable, selection, order, send]+ );++ // A choice still waiting is sent now: the pointer or the focus left the pages (on its way to Apply), or the card+ // went away.+ const flush = useCallback(() => {+ const box = outbox.current;+ if (box.timer !== null) window.clearTimeout(box.timer);+ box.flush?.();+ }, []);+ useEffect(() => flush, [flush]);++ const chosenSet = useMemo(() => new Set(selection), [selection]);+ return { chosen: chosenSet, toggle, flush, failed };+}++/** Shows a page: in this journey's Studio its page there, elsewhere the Studio opened on it. */+function useShowPage(journeyId: number, own: boolean) {+ const { onOpen } = useAssistantView();+ const setActiveSpread = useStudioStore((s) => s.setActiveSpread);+ return useCallback(+ (spreadId: string) => {+ if (!own) {+ onOpen?.(studioTarget(journeyId, spreadId));+ return;+ }+ const index = useStudioStore.getState().doc?.spreads.findIndex((spread) => spread.id === spreadId) ?? -1;+ if (index >= 0) setActiveSpread(index);+ },+ [journeyId, own, onOpen, setActiveSpread]+ );+}++/** Where the card's pages stand: still loading, drawn, the draft gone, or not readable. */+type DesignStripStatus = 'loading' | 'ready' | 'expired' | 'failed';++interface DesignStrip {+ status: DesignStripStatus;+ pairs: DesignPair[];+ /** The page setup of the book as it is and of the draft; null where it is not read. */+ beforePage: BookPageSetup | null;+ afterPage: BookPageSetup | null;+ chosen: ReadonlySet<string>;+ toggle(spreadId: string): void;+ /** Sends a choice still waiting for its pause at once. */+ flush(): void;+ /** The last choice was refused and put back. */+ selectFailed: boolean;+ show(spreadId: string): void;+}++/**+ * The card's pages: while the design waits (`draft`), each page it changes+ * beside the page of the book it replaces, with the choice of pages when+ * `editable`; once applied (`applied`), the pages it wrote as the book holds+ * them now.+ */+export function useBookDesignDraft(card: BookDesignCard, mode: 'draft' | 'applied', editable: boolean): DesignStrip {+ const draftRead = useDraftRead(card, mode === 'draft');+ const book = useBookRead(card.journeyId, mode);+ const draft = draftRead.status === 'ready' ? draftRead.value : null;+ const bookDoc = book.state.status === 'ready' ? book.state.value : null;+ const selection = useSelection(card, draft, editable);+ const show = useShowPage(card.journeyId, book.own);+ const pairs = useMemo(() => {+ if (mode === 'applied') return appliedPairs(card, bookDoc);+ return draft ? draftPairs(draft, bookDoc) : [];+ }, [mode, card, draft, bookDoc]);+ let status: DesignStripStatus = mode === 'draft' ? draftRead.status : book.state.status;+ if (status === 'ready' && book.state.status === 'loading') status = 'loading';+ return {+ status,+ pairs,+ beforePage: bookDoc?.page ?? null,+ afterPage: mode === 'applied' ? (bookDoc?.page ?? null) : (draft?.document.page ?? null),+ chosen: selection.chosen,+ toggle: selection.toggle,+ flush: selection.flush,+ selectFailed: selection.failed,+ show,+ };+}diff --git a/client/src/components/Assistant/cards/cardLooks.ts b/client/src/components/Assistant/cards/cardLooks.tsindex e3ba014bf..4e29b986c 100644--- a/client/src/components/Assistant/cards/cardLooks.ts+++ b/client/src/components/Assistant/cards/cardLooks.ts@@ -21,6 +21,8 @@ import {import type { CardMapLook } from '../../../types/assistantMap';import type { CardRules } from '../assistantParts';import { ATLAS_LOOK } from './atlas/atlasLook';+import { BOOK_LOOK } from './book/bookLook';+import { BOOK_DESIGN_LOOK } from './bookDesign/bookDesignLook';import { BOOKING_LOOK } from './booking/bookingLook';import { BUDGET_LOOK } from './budget/budgetLook';import type { CardLook, EntityLook, StepLook, VerbLook } from './cardTypes';@@ -74,6 +76,8 @@ export const VERB_LOOK: Readonly<Record<AssistantChangeVerbKey, VerbLook>> = {...VACAY_LOOK.verbs,...JOURNEY_LOOK.verbs,...PACKING_LOOK.verbs,+ ...BOOK_LOOK.verbs,+ ...BOOK_DESIGN_LOOK.verbs,};/** The tools TREK names an action of their own for; a change by any other tool is named by its verb. */@@ -119,6 +123,8 @@ export const TOOL_LABELS: Readonly<Partial<Record<string, { labelKey: string }>>...VACAY_LOOK.tools,...JOURNEY_LOOK.tools,...PACKING_LOOK.tools,+ ...BOOK_LOOK.tools,+ ...BOOK_DESIGN_LOOK.tools,};/** How each reading tool is named while it runs; a tool not listed reads "Working on it". */@@ -161,6 +167,8 @@ export const STEP_LOOKS: Readonly<Partial<Record<string, StepLook>>> = {...VACAY_LOOK.steps,...JOURNEY_LOOK.steps,...PACKING_LOOK.steps,+ ...BOOK_LOOK.steps,+ ...BOOK_DESIGN_LOOK.steps,};/** Shown on the map by its day: a stop or a note lives on one. */@@ -193,6 +201,8 @@ export const ENTITY_LOOK: Readonly<Record<AssistantApplied['entity'], EntityLook...VACAY_LOOK.entities,...JOURNEY_LOOK.entities,...PACKING_LOOK.entities,+ ...BOOK_LOOK.entities,+ ...BOOK_DESIGN_LOOK.entities,};/**@@ -221,6 +231,8 @@ export const CARD_LOOKS: { readonly [K in TrekCardKind]: CardLook<K> } = {...VACAY_LOOK.cards,...JOURNEY_LOOK.cards,...PACKING_LOOK.cards,+ ...BOOK_LOOK.cards,+ ...BOOK_DESIGN_LOOK.cards,};/** The look of the card in hand, typed for any kind. */diff --git a/client/src/components/Assistant/cards/cardViews.ts b/client/src/components/Assistant/cards/cardViews.tsindex 039e704e0..de0309380 100644--- a/client/src/components/Assistant/cards/cardViews.ts+++ b/client/src/components/Assistant/cards/cardViews.ts@@ -1,6 +1,8 @@import type { TrekCard, TrekCardKind } from '@trek/shared';import { ATLAS_VIEWS } from './atlas/atlasViews';+import { BOOK_VIEWS } from './book/bookViews';+import { BOOK_DESIGN_VIEWS } from './bookDesign/bookDesignViews';import { BOOKING_VIEWS } from './booking/bookingViews';import { BUDGET_VIEWS } from './budget/budgetViews';import type { CardView } from './cardTypes';@@ -29,6 +31,8 @@ export const CARD_VIEWS: { readonly [K in TrekCardKind]: CardView<K> } = {...VACAY_VIEWS,...JOURNEY_VIEWS,...PACKING_VIEWS,+ ...BOOK_VIEWS,+ ...BOOK_DESIGN_VIEWS,};/** The view of the card in hand, typed for any kind. */diff --git a/client/src/repo/bookDesignRepo.test.ts b/client/src/repo/bookDesignRepo.test.tsnew file mode 100644index 000000000..c2ee180ac--- /dev/null+++ b/client/src/repo/bookDesignRepo.test.ts@@ -0,0 +1,89 @@+/**+ * FE-BOOKDSN-020 to FE-BOOKDSN-021+ *+ * The whole-book design card's repository: the draft parsed against the+ * shared contract, the book read for a chat outside the Studio, the chosen+ * pages sent whole and answered as the server kept them; offline, nothing is+ * sent.+ */+import { blankBook } from '@trek/shared';+import { http, HttpResponse } from 'msw';+import { afterEach, beforeEach, describe, expect, it } from 'vitest';++import { server } from '../../tests/helpers/msw/server';+import { _resetNetworkMode, setForcedOffline } from '../sync/networkMode';+import { bookDesignRepo } from './bookDesignRepo';+import { OnlineOnlyError } from './onlineOnly';++const BASE = '/api/journeys/3/book-designs/d-1';++let seq = 0;+const DOC = blankBook({ title: 'Lisbon', newId: (prefix) => `${prefix}-${++seq}` });++const DRAFT = {+ designId: 'd-1',+ baseVersion: 4,+ expiresAt: '2026-10-22T18:00:00.000Z',+ document: DOC,+ plan: [+ {+ spreadId: 'sp-3',+ index: 2,+ action: 'replace',+ beat: 'hero',+ chapter: 'Alfama',+ entryId: 11,+ photoIds: [5],+ findings: { severe: 0, warn: 1 },+ },+ ],+ selection: ['sp-3'],+};++beforeEach(() => _resetNetworkMode());+afterEach(() => _resetNetworkMode());++describe('bookDesignRepo', () => {+ it('FE-BOOKDSN-020: reads the draft and the book, and sends the chosen pages whole', async () => {+ let sent: unknown = null;+ server.use(+ http.get(BASE, () => HttpResponse.json(DRAFT)),+ http.get('/api/journeys/3/book', () => HttpResponse.json({ book: { document: DOC } })),+ http.get('/api/journeys/4/book', () => HttpResponse.json({ book: null })),+ http.put(`${BASE}/selection`, async ({ request }) => {+ sent = await request.json();+ return HttpResponse.json({ selection: ['sp-3'] });+ })+ );+ const draft = await bookDesignRepo.draft(3, 'd-1');+ expect(draft.plan[0]).toMatchObject({ spreadId: 'sp-3', action: 'replace' });+ expect(draft.document.spreads).toHaveLength(5);+ expect(await bookDesignRepo.book(3)).toMatchObject({ title: 'Lisbon' });+ expect(await bookDesignRepo.book(4)).toBeNull();+ expect(await bookDesignRepo.select(3, 'd-1', ['sp-3', 'sp-3'])).toEqual(['sp-3']);+ expect(sent).toEqual({ spreadIds: ['sp-3', 'sp-3'] });+ });++ it('FE-BOOKDSN-021: refuses before a request while offline, and refuses an answer outside the contract', async () => {+ let requests = 0;+ server.use(+ http.get(BASE, () => {+ requests += 1;+ return HttpResponse.json({ designId: 'd-1' });+ }),+ http.put(`${BASE}/selection`, () => {+ requests += 1;+ return HttpResponse.json({ selection: 'all' });+ })+ );+ await expect(bookDesignRepo.draft(3, 'd-1')).rejects.toThrow();+ await expect(bookDesignRepo.select(3, 'd-1', [])).rejects.toThrow();+ expect(requests).toBe(2);++ setForcedOffline(true);+ await expect(bookDesignRepo.draft(3, 'd-1')).rejects.toBeInstanceOf(OnlineOnlyError);+ await expect(bookDesignRepo.book(3)).rejects.toBeInstanceOf(OnlineOnlyError);+ await expect(bookDesignRepo.select(3, 'd-1', ['sp-3'])).rejects.toBeInstanceOf(OnlineOnlyError);+ expect(requests).toBe(2);+ });+});diff --git a/client/src/repo/bookDesignRepo.ts b/client/src/repo/bookDesignRepo.tsnew file mode 100644index 000000000..e37d65a3f--- /dev/null+++ b/client/src/repo/bookDesignRepo.ts@@ -0,0 +1,44 @@+import {+ bookDesignDraftResponseSchema,+ bookDesignSelectionResponseSchema,+ type BookDesignDraftResponse,+ type BookDocument,+} from '@trek/shared';++import { assistantApi } from '../api/assistant';+import { bookDesignApi } from '../api/bookDesignApi';+import { journeyApi } from '../api/client';+import { requireOnline } from './onlineOnly';++/**+ * A whole-book design the assistant drafted, as its card in the Studio's+ * chat reads it: the draft (the designed book, its plan, the pages chosen for+ * the apply), the book as the server holds it to draw beside it, and the+ * pages the person keeps in or takes out.+ *+ * **Deliberately online-only, and no Dexie table.** A draft lives in the+ * server's memory for a few hours and belongs to the chat that made it; a+ * cached copy would outlive it and show a design nobody can apply. Each call+ * refuses with `OnlineOnlyError` before a request is made, like the+ * assistant's own repository.+ */+export const bookDesignRepo = {+ /** The draft; a draft the server forgot answers 410. */+ async draft(journeyId: number, designId: string): Promise<BookDesignDraftResponse> {+ requireOnline();+ return bookDesignDraftResponseSchema.parse(await assistantApi.bookDesign(journeyId, designId));+ },++ /** The book as the server holds it, for a chat outside the Studio; null for a journey without one. */+ async book(journeyId: number): Promise<BookDocument | null> {+ requireOnline();+ return (await journeyApi.getBook(journeyId)).book?.document ?? null;+ },++ /** The pages the apply writes, as the server kept them. */+ async select(journeyId: number, designId: string, spreadIds: readonly string[]): Promise<string[]> {+ requireOnline();+ const answer = await bookDesignApi.selection(journeyId, designId, { spreadIds: [...spreadIds] });+ return bookDesignSelectionResponseSchema.parse(answer).selection;+ },+};diff --git a/shared/src/i18n/ar/assistantBookDesign.ts b/shared/src/i18n/ar/assistantBookDesign.tsnew file mode 100644index 000000000..a3b74b501--- /dev/null+++ b/shared/src/i18n/ar/assistantBookDesign.ts@@ -0,0 +1,69 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'تطبيق تصميم الكتاب',+ 'assistant.change.verb.setBookSetup': 'تغيير مقاس الصفحات',+ 'assistant.change.verb.duplicateBookPage': 'تكرار الصفحة',+ 'assistant.change.verb.saveBookLayout': 'حفظ الصفحة كتخطيط',+ 'assistant.change.verb.removeBookLayout': 'إزالة تخطيط محفوظ',+ 'assistant.step.designingBook': 'يصمم الكتاب',+ 'assistant.step.readingDesign': 'يقرأ التصميم',+ 'assistant.step.revisingDesign': 'يعيد العمل على صفحة من التصميم',+ 'assistant.card.bookDesign.label': 'تصميم الكتاب',+ 'assistant.card.bookDesign.style.classic': 'تصميم كلاسيكي',+ 'assistant.card.bookDesign.style.minimal': 'تصميم بسيط',+ 'assistant.card.bookDesign.style.editorial': 'تصميم مجلة',+ 'assistant.card.bookDesign.style.journal': 'تصميم يوميات',+ 'assistant.card.bookDesign.style.bold': 'تصميم جريء',+ 'assistant.card.bookDesign.style.scrapbook': 'تصميم ألبوم قصاصات',+ 'assistant.card.bookDesign.colours': 'لون الورق والحبر ولون التمييز',+ 'assistant.card.bookDesign.faces': '{heading} و{body}',+ 'assistant.card.bookDesign.pages': '{count} صفحة',+ 'assistant.card.bookDesign.pages.zero': '{count} صفحات',+ 'assistant.card.bookDesign.pages.one': '{count} صفحة',+ 'assistant.card.bookDesign.pages.two': '{count} صفحتان',+ 'assistant.card.bookDesign.pages.few': '{count} صفحات',+ 'assistant.card.bookDesign.pages.many': '{count} صفحة',+ 'assistant.card.bookDesign.changes': '{count} صفحة تتغير',+ 'assistant.card.bookDesign.changes.zero': '{count} صفحات تتغير',+ 'assistant.card.bookDesign.changes.one': '{count} صفحة تتغير',+ 'assistant.card.bookDesign.changes.two': '{count} صفحتان تتغيران',+ 'assistant.card.bookDesign.changes.few': '{count} صفحات تتغير',+ 'assistant.card.bookDesign.changes.many': '{count} صفحة تتغير',+ 'assistant.card.bookDesign.leftOut': '{count} صورة مستبعدة',+ 'assistant.card.bookDesign.leftOut.zero': '{count} صور مستبعدة',+ 'assistant.card.bookDesign.leftOut.one': '{count} صورة مستبعدة',+ 'assistant.card.bookDesign.leftOut.two': '{count} صورتان مستبعدتان',+ 'assistant.card.bookDesign.leftOut.few': '{count} صور مستبعدة',+ 'assistant.card.bookDesign.leftOut.many': '{count} صورة مستبعدة',+ 'assistant.card.bookDesign.skippedChanged': '{count} صفحة تغيرت منذ ذلك الحين وبقيت كما هي',+ 'assistant.card.bookDesign.skippedChanged.zero': '{count} صفحات تغيرت منذ ذلك الحين وبقيت كما هي',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} صفحة تغيرت منذ ذلك الحين وبقيت كما هي',+ 'assistant.card.bookDesign.skippedChanged.two': '{count} صفحتان تغيرتا منذ ذلك الحين وبقيتا كما هما',+ 'assistant.card.bookDesign.skippedChanged.few': '{count} صفحات تغيرت منذ ذلك الحين وبقيت كما هي',+ 'assistant.card.bookDesign.skippedChanged.many': '{count} صفحة تغيرت منذ ذلك الحين وبقيت كما هي',+ 'assistant.card.bookDesign.skippedPhoto': '{count} صفحة محفوظة، صورة غادرت المعرض',+ 'assistant.card.bookDesign.skippedPhoto.zero': '{count} صفحات محفوظة، صورة غادرت المعرض',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} صفحة محفوظة، صورة غادرت المعرض',+ 'assistant.card.bookDesign.skippedPhoto.two': '{count} صفحتان محفوظتان، صورة غادرت المعرض',+ 'assistant.card.bookDesign.skippedPhoto.few': '{count} صفحات محفوظة، صورة غادرت المعرض',+ 'assistant.card.bookDesign.skippedPhoto.many': '{count} صفحة محفوظة، صورة غادرت المعرض',+ 'assistant.card.bookDesign.skippedExcluded': '{count} صفحة غير مختارة',+ 'assistant.card.bookDesign.skippedExcluded.zero': '{count} صفحات غير مختارة',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} صفحة غير مختارة',+ 'assistant.card.bookDesign.skippedExcluded.two': '{count} صفحتان غير مختارتين',+ 'assistant.card.bookDesign.skippedExcluded.few': '{count} صفحات غير مختارة',+ 'assistant.card.bookDesign.skippedExcluded.many': '{count} صفحة غير مختارة',+ 'assistant.card.bookDesign.pagesLabel': 'صفحات التصميم',+ 'assistant.card.bookDesign.include': '{page}: استخدام التصميم الجديد',+ 'assistant.card.bookDesign.showAll': 'عرض كل الصفحات ({count})',+ 'assistant.card.bookDesign.showAll.zero': 'عرض كل الصفحات ({count})',+ 'assistant.card.bookDesign.showAll.one': 'عرض الصفحة ({count})',+ 'assistant.card.bookDesign.showAll.two': 'عرض الصفحتين ({count})',+ 'assistant.card.bookDesign.showAll.few': 'عرض كل الصفحات ({count})',+ 'assistant.card.bookDesign.showAll.many': 'عرض كل الصفحات ({count})',+ 'assistant.card.bookDesign.expired': 'هذه المسودة لم تعد موجودة. اطلب التصميم مرة أخرى لترى صفحاته.',+ 'assistant.card.bookDesign.unavailable': 'تعذر تحميل الصفحات.',+ 'assistant.card.bookDesign.selectFailed': 'تعذر حفظ اختيار الصفحات وتمت إعادته.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/ar/index.ts b/shared/src/i18n/ar/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/ar/index.ts+++ b/shared/src/i18n/ar/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/az/assistantBookDesign.ts b/shared/src/i18n/az/assistantBookDesign.tsnew file mode 100644index 000000000..59cc04a07--- /dev/null+++ b/shared/src/i18n/az/assistantBookDesign.ts@@ -0,0 +1,41 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Kitab dizaynını tətbiq et',+ 'assistant.change.verb.setBookSetup': 'Səhifə formatını dəyiş',+ 'assistant.change.verb.duplicateBookPage': 'Səhifənin surətini çıxar',+ 'assistant.change.verb.saveBookLayout': 'Səhifəni maket kimi saxla',+ 'assistant.change.verb.removeBookLayout': 'Saxlanmış maketi sil',+ 'assistant.step.designingBook': 'Kitabı dizayn edir',+ 'assistant.step.readingDesign': 'Dizaynı oxuyur',+ 'assistant.step.revisingDesign': 'Dizaynın bir səhifəsini yenidən işləyir',+ 'assistant.card.bookDesign.label': 'Kitab dizaynı',+ 'assistant.card.bookDesign.style.classic': 'Klassik dizayn',+ 'assistant.card.bookDesign.style.minimal': 'Minimal dizayn',+ 'assistant.card.bookDesign.style.editorial': 'Jurnal dizaynı',+ 'assistant.card.bookDesign.style.journal': 'Gündəlik dizaynı',+ 'assistant.card.bookDesign.style.bold': 'Cəsarətli dizayn',+ 'assistant.card.bookDesign.style.scrapbook': 'Skrapbuk dizaynı',+ 'assistant.card.bookDesign.colours': 'Kağız, mürəkkəb və vurğu rəngi',+ 'assistant.card.bookDesign.faces': '{heading} və {body}',+ 'assistant.card.bookDesign.pages': '{count} səhifə',+ 'assistant.card.bookDesign.pages.one': '{count} səhifə',+ 'assistant.card.bookDesign.changes': '{count} səhifə dəyişir',+ 'assistant.card.bookDesign.changes.one': '{count} səhifə dəyişir',+ 'assistant.card.bookDesign.leftOut': '{count} foto kənarda qaldı',+ 'assistant.card.bookDesign.leftOut.one': '{count} foto kənarda qaldı',+ 'assistant.card.bookDesign.skippedChanged': '{count} səhifə o vaxtdan dəyişib, olduğu kimi saxlanıldı',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} səhifə o vaxtdan dəyişib, olduğu kimi saxlanıldı',+ 'assistant.card.bookDesign.skippedPhoto': '{count} səhifə saxlanıldı, bir foto qalereyadan çıxıb',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} səhifə saxlanıldı, bir foto qalereyadan çıxıb',+ 'assistant.card.bookDesign.skippedExcluded': '{count} səhifə seçilmədi',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} səhifə seçilmədi',+ 'assistant.card.bookDesign.pagesLabel': 'Dizaynın səhifələri',+ 'assistant.card.bookDesign.include': '{page}: yeni dizayndan istifadə et',+ 'assistant.card.bookDesign.showAll': 'Bütün {count} səhifəni göstər',+ 'assistant.card.bookDesign.showAll.one': '{count} səhifəni göstər',+ 'assistant.card.bookDesign.expired': 'Bu qaralama artıq yoxdur. Səhifələrini görmək üçün dizaynı yenidən istəyin.',+ 'assistant.card.bookDesign.unavailable': 'Səhifələri yükləmək mümkün olmadı.',+ 'assistant.card.bookDesign.selectFailed': 'Səhifə seçimi saxlanılmadı və geri qaytarıldı.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/az/index.ts b/shared/src/i18n/az/index.tsindex d7e6e9c6a..4c107a668 100644--- a/shared/src/i18n/az/index.ts+++ b/shared/src/i18n/az/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/br/assistantBookDesign.ts b/shared/src/i18n/br/assistantBookDesign.tsnew file mode 100644index 000000000..1cc9edcf2--- /dev/null+++ b/shared/src/i18n/br/assistantBookDesign.ts@@ -0,0 +1,41 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Aplicar o design do livro',+ 'assistant.change.verb.setBookSetup': 'Mudar o formato da página',+ 'assistant.change.verb.duplicateBookPage': 'Duplicar a página',+ 'assistant.change.verb.saveBookLayout': 'Salvar a página como layout',+ 'assistant.change.verb.removeBookLayout': 'Remover um layout salvo',+ 'assistant.step.designingBook': 'Criando o design do livro',+ 'assistant.step.readingDesign': 'Lendo o design',+ 'assistant.step.revisingDesign': 'Refazendo uma página do design',+ 'assistant.card.bookDesign.label': 'Design do livro',+ 'assistant.card.bookDesign.style.classic': 'Design clássico',+ 'assistant.card.bookDesign.style.minimal': 'Design minimalista',+ 'assistant.card.bookDesign.style.editorial': 'Design de revista',+ 'assistant.card.bookDesign.style.journal': 'Design de diário',+ 'assistant.card.bookDesign.style.bold': 'Design marcante',+ 'assistant.card.bookDesign.style.scrapbook': 'Design de scrapbook',+ 'assistant.card.bookDesign.colours': 'Papel, tinta e cor de destaque',+ 'assistant.card.bookDesign.faces': '{heading} e {body}',+ 'assistant.card.bookDesign.pages': '{count} páginas',+ 'assistant.card.bookDesign.pages.one': '{count} página',+ 'assistant.card.bookDesign.changes': '{count} páginas mudam',+ 'assistant.card.bookDesign.changes.one': '{count} página muda',+ 'assistant.card.bookDesign.leftOut': '{count} fotos deixadas de fora',+ 'assistant.card.bookDesign.leftOut.one': '{count} foto deixada de fora',+ 'assistant.card.bookDesign.skippedChanged': '{count} páginas alteradas desde então, mantidas como estão',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} página alterada desde então, mantida como está',+ 'assistant.card.bookDesign.skippedPhoto': '{count} páginas mantidas, uma foto saiu da galeria',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} página mantida, uma foto saiu da galeria',+ 'assistant.card.bookDesign.skippedExcluded': '{count} páginas não escolhidas',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} página não escolhida',+ 'assistant.card.bookDesign.pagesLabel': 'Páginas do design',+ 'assistant.card.bookDesign.include': '{page}: usar o novo design',+ 'assistant.card.bookDesign.showAll': 'Mostrar todas as {count} páginas',+ 'assistant.card.bookDesign.showAll.one': 'Mostrar {count} página',+ 'assistant.card.bookDesign.expired': 'Este rascunho não existe mais. Peça o design de novo para ver as páginas.',+ 'assistant.card.bookDesign.unavailable': 'Não foi possível carregar as páginas.',+ 'assistant.card.bookDesign.selectFailed': 'Não foi possível salvar a escolha de páginas, e ela foi desfeita.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/br/index.ts b/shared/src/i18n/br/index.tsindex 44a9f0441..510bca449 100644--- a/shared/src/i18n/br/index.ts+++ b/shared/src/i18n/br/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/ca/assistantBookDesign.ts b/shared/src/i18n/ca/assistantBookDesign.tsnew file mode 100644index 000000000..1a21762dc--- /dev/null+++ b/shared/src/i18n/ca/assistantBookDesign.ts@@ -0,0 +1,42 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Aplicar el disseny del llibre',+ 'assistant.change.verb.setBookSetup': 'Canviar el format de pàgina',+ 'assistant.change.verb.duplicateBookPage': 'Duplicar la pàgina',+ 'assistant.change.verb.saveBookLayout': 'Desar la pàgina com a disseny',+ 'assistant.change.verb.removeBookLayout': 'Treure un disseny desat',+ 'assistant.step.designingBook': 'Dissenyant el llibre',+ 'assistant.step.readingDesign': 'Llegint el disseny',+ 'assistant.step.revisingDesign': 'Retocant una pàgina del disseny',+ 'assistant.card.bookDesign.label': 'Disseny del llibre',+ 'assistant.card.bookDesign.style.classic': 'Disseny clàssic',+ 'assistant.card.bookDesign.style.minimal': 'Disseny minimalista',+ 'assistant.card.bookDesign.style.editorial': 'Disseny de revista',+ 'assistant.card.bookDesign.style.journal': 'Disseny de diari',+ 'assistant.card.bookDesign.style.bold': 'Disseny cridaner',+ 'assistant.card.bookDesign.style.scrapbook': 'Disseny d’àlbum de retalls',+ 'assistant.card.bookDesign.colours': 'Paper, tinta i color d’accent',+ 'assistant.card.bookDesign.faces': '{heading} i {body}',+ 'assistant.card.bookDesign.pages': '{count} pàgines',+ 'assistant.card.bookDesign.pages.one': '{count} pàgina',+ 'assistant.card.bookDesign.changes': '{count} pàgines canvien',+ 'assistant.card.bookDesign.changes.one': '{count} pàgina canvia',+ 'assistant.card.bookDesign.leftOut': '{count} fotos descartades',+ 'assistant.card.bookDesign.leftOut.one': '{count} foto descartada',+ 'assistant.card.bookDesign.skippedChanged': '{count} pàgines canviades des de llavors, es queden com estan',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} pàgina canviada des de llavors, es queda com està',+ 'assistant.card.bookDesign.skippedPhoto': '{count} pàgines conservades, una foto ha sortit de la galeria',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} pàgina conservada, una foto ha sortit de la galeria',+ 'assistant.card.bookDesign.skippedExcluded': '{count} pàgines no triades',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} pàgina no triada',+ 'assistant.card.bookDesign.pagesLabel': 'Pàgines del disseny',+ 'assistant.card.bookDesign.include': '{page}: fer servir el disseny nou',+ 'assistant.card.bookDesign.showAll': 'Mostra les {count} pàgines',+ 'assistant.card.bookDesign.showAll.one': 'Mostra {count} pàgina',+ 'assistant.card.bookDesign.expired':+ 'Aquest esborrany ja no existeix. Torna a demanar el disseny per veure’n les pàgines.',+ 'assistant.card.bookDesign.unavailable': 'No s’han pogut carregar les pàgines.',+ 'assistant.card.bookDesign.selectFailed': 'No s’ha pogut desar la tria de pàgines i s’ha restablert.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/ca/index.ts b/shared/src/i18n/ca/index.tsindex ecfa11329..d46616492 100644--- a/shared/src/i18n/ca/index.ts+++ b/shared/src/i18n/ca/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/cs/assistantBookDesign.ts b/shared/src/i18n/cs/assistantBookDesign.tsnew file mode 100644index 000000000..609a96cae--- /dev/null+++ b/shared/src/i18n/cs/assistantBookDesign.ts@@ -0,0 +1,48 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Použít návrh knihy',+ 'assistant.change.verb.setBookSetup': 'Změnit formát stránek',+ 'assistant.change.verb.duplicateBookPage': 'Duplikovat stránku',+ 'assistant.change.verb.saveBookLayout': 'Uložit stránku jako rozvržení',+ 'assistant.change.verb.removeBookLayout': 'Odebrat uložené rozvržení',+ 'assistant.step.designingBook': 'Navrhuje knihu',+ 'assistant.step.readingDesign': 'Čte návrh',+ 'assistant.step.revisingDesign': 'Přepracovává stránku návrhu',+ 'assistant.card.bookDesign.label': 'Návrh knihy',+ 'assistant.card.bookDesign.style.classic': 'Klasický návrh',+ 'assistant.card.bookDesign.style.minimal': 'Minimalistický návrh',+ 'assistant.card.bookDesign.style.editorial': 'Časopisecký návrh',+ 'assistant.card.bookDesign.style.journal': 'Deníkový návrh',+ 'assistant.card.bookDesign.style.bold': 'Výrazný návrh',+ 'assistant.card.bookDesign.style.scrapbook': 'Scrapbookový návrh',+ 'assistant.card.bookDesign.colours': 'Papír, inkoust a barva zvýraznění',+ 'assistant.card.bookDesign.faces': '{heading} a {body}',+ 'assistant.card.bookDesign.pages': '{count} stránek',+ 'assistant.card.bookDesign.pages.one': '{count} stránka',+ 'assistant.card.bookDesign.pages.few': '{count} stránky',+ 'assistant.card.bookDesign.changes': '{count} stránek se změní',+ 'assistant.card.bookDesign.changes.one': '{count} stránka se změní',+ 'assistant.card.bookDesign.changes.few': '{count} stránky se změní',+ 'assistant.card.bookDesign.leftOut': '{count} fotek vynecháno',+ 'assistant.card.bookDesign.leftOut.one': '{count} fotka vynechána',+ 'assistant.card.bookDesign.leftOut.few': '{count} fotky vynechány',+ 'assistant.card.bookDesign.skippedChanged': '{count} stránek se mezitím změnilo, zůstávají beze změny',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} stránka se mezitím změnila, zůstává beze změny',+ 'assistant.card.bookDesign.skippedChanged.few': '{count} stránky se mezitím změnily, zůstávají beze změny',+ 'assistant.card.bookDesign.skippedPhoto': '{count} stránek ponecháno, fotka zmizela z galerie',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} stránka ponechána, fotka zmizela z galerie',+ 'assistant.card.bookDesign.skippedPhoto.few': '{count} stránky ponechány, fotka zmizela z galerie',+ 'assistant.card.bookDesign.skippedExcluded': '{count} stránek nevybráno',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} stránka nevybrána',+ 'assistant.card.bookDesign.skippedExcluded.few': '{count} stránky nevybrány',+ 'assistant.card.bookDesign.pagesLabel': 'Stránky návrhu',+ 'assistant.card.bookDesign.include': '{page}: použít nový návrh',+ 'assistant.card.bookDesign.showAll': 'Zobrazit všech {count} stránek',+ 'assistant.card.bookDesign.showAll.one': 'Zobrazit {count} stránku',+ 'assistant.card.bookDesign.showAll.few': 'Zobrazit všechny {count} stránky',+ 'assistant.card.bookDesign.expired': 'Tento koncept už neexistuje. Požádej o návrh znovu, abys viděl jeho stránky.',+ 'assistant.card.bookDesign.unavailable': 'Stránky se nepodařilo načíst.',+ 'assistant.card.bookDesign.selectFailed': 'Výběr stránek se nepodařilo uložit a byl vrácen.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/cs/index.ts b/shared/src/i18n/cs/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/cs/index.ts+++ b/shared/src/i18n/cs/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/de/assistantBookDesign.ts b/shared/src/i18n/de/assistantBookDesign.tsnew file mode 100644index 000000000..884b92032--- /dev/null+++ b/shared/src/i18n/de/assistantBookDesign.ts@@ -0,0 +1,43 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Buchdesign übernehmen',+ 'assistant.change.verb.setBookSetup': 'Seitenformat ändern',+ 'assistant.change.verb.duplicateBookPage': 'Seite duplizieren',+ 'assistant.change.verb.saveBookLayout': 'Seite als Layout speichern',+ 'assistant.change.verb.removeBookLayout': 'Gespeichertes Layout entfernen',+ 'assistant.step.designingBook': 'Gestaltet das Buch',+ 'assistant.step.readingDesign': 'Liest das Design',+ 'assistant.step.revisingDesign': 'Überarbeitet eine Seite des Designs',+ 'assistant.card.bookDesign.label': 'Buchdesign',+ 'assistant.card.bookDesign.style.classic': 'Klassisches Design',+ 'assistant.card.bookDesign.style.minimal': 'Minimalistisches Design',+ 'assistant.card.bookDesign.style.editorial': 'Magazin-Design',+ 'assistant.card.bookDesign.style.journal': 'Tagebuch-Design',+ 'assistant.card.bookDesign.style.bold': 'Kräftiges Design',+ 'assistant.card.bookDesign.style.scrapbook': 'Scrapbook-Design',+ 'assistant.card.bookDesign.colours': 'Papier, Schrift und Akzentfarbe',+ 'assistant.card.bookDesign.faces': '{heading} und {body}',+ 'assistant.card.bookDesign.pages': '{count} Seiten',+ 'assistant.card.bookDesign.pages.one': '{count} Seite',+ 'assistant.card.bookDesign.changes': '{count} Seiten ändern sich',+ 'assistant.card.bookDesign.changes.one': '{count} Seite ändert sich',+ 'assistant.card.bookDesign.leftOut': '{count} Fotos nicht verwendet',+ 'assistant.card.bookDesign.leftOut.one': '{count} Foto nicht verwendet',+ 'assistant.card.bookDesign.skippedChanged': '{count} Seiten seitdem geändert, so belassen',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} Seite seitdem geändert, so belassen',+ 'assistant.card.bookDesign.skippedPhoto': '{count} Seiten behalten, ein Foto ist nicht mehr in der Galerie',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} Seite behalten, ein Foto ist nicht mehr in der Galerie',+ 'assistant.card.bookDesign.skippedExcluded': '{count} Seiten nicht ausgewählt',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} Seite nicht ausgewählt',+ 'assistant.card.bookDesign.pagesLabel': 'Seiten des Designs',+ 'assistant.card.bookDesign.include': '{page}: neues Design verwenden',+ 'assistant.card.bookDesign.showAll': 'Alle {count} Seiten zeigen',+ 'assistant.card.bookDesign.showAll.one': '{count} Seite zeigen',+ 'assistant.card.bookDesign.expired':+ 'Dieser Entwurf ist nicht mehr da. Frag noch einmal nach dem Design, um seine Seiten zu sehen.',+ 'assistant.card.bookDesign.unavailable': 'Die Seiten konnten nicht geladen werden.',+ 'assistant.card.bookDesign.selectFailed':+ 'Die Seitenauswahl konnte nicht gespeichert werden und wurde zurückgesetzt.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/de/index.ts b/shared/src/i18n/de/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/de/index.ts+++ b/shared/src/i18n/de/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/en/assistantBookDesign.ts b/shared/src/i18n/en/assistantBookDesign.tsnew file mode 100644index 000000000..29b810239--- /dev/null+++ b/shared/src/i18n/en/assistantBookDesign.ts@@ -0,0 +1,41 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Apply the book design',+ 'assistant.change.verb.setBookSetup': 'Change the page format',+ 'assistant.change.verb.duplicateBookPage': 'Duplicate the page',+ 'assistant.change.verb.saveBookLayout': 'Save the page as a layout',+ 'assistant.change.verb.removeBookLayout': 'Remove a saved layout',+ 'assistant.step.designingBook': 'Designing the book',+ 'assistant.step.readingDesign': 'Reading the design',+ 'assistant.step.revisingDesign': 'Reworking a page of the design',+ 'assistant.card.bookDesign.label': 'Book design',+ 'assistant.card.bookDesign.style.classic': 'Classic design',+ 'assistant.card.bookDesign.style.minimal': 'Minimal design',+ 'assistant.card.bookDesign.style.editorial': 'Editorial design',+ 'assistant.card.bookDesign.style.journal': 'Journal design',+ 'assistant.card.bookDesign.style.bold': 'Bold design',+ 'assistant.card.bookDesign.style.scrapbook': 'Scrapbook design',+ 'assistant.card.bookDesign.colours': 'Paper, ink and accent colour',+ 'assistant.card.bookDesign.faces': '{heading} and {body}',+ 'assistant.card.bookDesign.pages': '{count} pages',+ 'assistant.card.bookDesign.pages.one': '{count} page',+ 'assistant.card.bookDesign.changes': '{count} pages change',+ 'assistant.card.bookDesign.changes.one': '{count} page changes',+ 'assistant.card.bookDesign.leftOut': '{count} photos left out',+ 'assistant.card.bookDesign.leftOut.one': '{count} photo left out',+ 'assistant.card.bookDesign.skippedChanged': '{count} pages changed since, kept as they are',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} page changed since, kept as it is',+ 'assistant.card.bookDesign.skippedPhoto': '{count} pages kept, a photo left the gallery',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} page kept, a photo left the gallery',+ 'assistant.card.bookDesign.skippedExcluded': '{count} pages not chosen',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} page not chosen',+ 'assistant.card.bookDesign.pagesLabel': 'Pages of the design',+ 'assistant.card.bookDesign.include': '{page}: use the new design',+ 'assistant.card.bookDesign.showAll': 'Show all {count} pages',+ 'assistant.card.bookDesign.showAll.one': 'Show {count} page',+ 'assistant.card.bookDesign.expired': 'This draft is gone. Ask for the design again to see its pages.',+ 'assistant.card.bookDesign.unavailable': 'The pages could not be loaded.',+ 'assistant.card.bookDesign.selectFailed': 'The choice of pages could not be saved and was put back.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/en/index.ts b/shared/src/i18n/en/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/en/index.ts+++ b/shared/src/i18n/en/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/es/assistantBookDesign.ts b/shared/src/i18n/es/assistantBookDesign.tsnew file mode 100644index 000000000..09dd161b2--- /dev/null+++ b/shared/src/i18n/es/assistantBookDesign.ts@@ -0,0 +1,41 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Aplicar el diseño del libro',+ 'assistant.change.verb.setBookSetup': 'Cambiar el formato de página',+ 'assistant.change.verb.duplicateBookPage': 'Duplicar la página',+ 'assistant.change.verb.saveBookLayout': 'Guardar la página como diseño',+ 'assistant.change.verb.removeBookLayout': 'Quitar un diseño guardado',+ 'assistant.step.designingBook': 'Diseñando el libro',+ 'assistant.step.readingDesign': 'Leyendo el diseño',+ 'assistant.step.revisingDesign': 'Retocando una página del diseño',+ 'assistant.card.bookDesign.label': 'Diseño del libro',+ 'assistant.card.bookDesign.style.classic': 'Diseño clásico',+ 'assistant.card.bookDesign.style.minimal': 'Diseño minimalista',+ 'assistant.card.bookDesign.style.editorial': 'Diseño de revista',+ 'assistant.card.bookDesign.style.journal': 'Diseño de diario',+ 'assistant.card.bookDesign.style.bold': 'Diseño llamativo',+ 'assistant.card.bookDesign.style.scrapbook': 'Diseño scrapbook',+ 'assistant.card.bookDesign.colours': 'Papel, tinta y color de acento',+ 'assistant.card.bookDesign.faces': '{heading} y {body}',+ 'assistant.card.bookDesign.pages': '{count} páginas',+ 'assistant.card.bookDesign.pages.one': '{count} página',+ 'assistant.card.bookDesign.changes': '{count} páginas cambian',+ 'assistant.card.bookDesign.changes.one': '{count} página cambia',+ 'assistant.card.bookDesign.leftOut': '{count} fotos descartadas',+ 'assistant.card.bookDesign.leftOut.one': '{count} foto descartada',+ 'assistant.card.bookDesign.skippedChanged': '{count} páginas cambiadas desde entonces, se quedan como están',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} página cambiada desde entonces, se queda como está',+ 'assistant.card.bookDesign.skippedPhoto': '{count} páginas conservadas, una foto salió de la galería',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} página conservada, una foto salió de la galería',+ 'assistant.card.bookDesign.skippedExcluded': '{count} páginas no elegidas',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} página no elegida',+ 'assistant.card.bookDesign.pagesLabel': 'Páginas del diseño',+ 'assistant.card.bookDesign.include': '{page}: usar el nuevo diseño',+ 'assistant.card.bookDesign.showAll': 'Mostrar las {count} páginas',+ 'assistant.card.bookDesign.showAll.one': 'Mostrar {count} página',+ 'assistant.card.bookDesign.expired': 'Este borrador ya no existe. Vuelve a pedir el diseño para ver sus páginas.',+ 'assistant.card.bookDesign.unavailable': 'No se pudieron cargar las páginas.',+ 'assistant.card.bookDesign.selectFailed': 'No se pudo guardar la selección de páginas y se ha restaurado.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/es/index.ts b/shared/src/i18n/es/index.tsindex a789191c8..745fbfc63 100644--- a/shared/src/i18n/es/index.ts+++ b/shared/src/i18n/es/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/et/assistantBookDesign.ts b/shared/src/i18n/et/assistantBookDesign.tsnew file mode 100644index 000000000..6f4d41320--- /dev/null+++ b/shared/src/i18n/et/assistantBookDesign.ts@@ -0,0 +1,41 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Rakenda raamatu kujundus',+ 'assistant.change.verb.setBookSetup': 'Muuda lehekülje formaati',+ 'assistant.change.verb.duplicateBookPage': 'Tee leheküljest koopia',+ 'assistant.change.verb.saveBookLayout': 'Salvesta lehekülg paigutusena',+ 'assistant.change.verb.removeBookLayout': 'Eemalda salvestatud paigutus',+ 'assistant.step.designingBook': 'Kujundab raamatut',+ 'assistant.step.readingDesign': 'Loeb kujundust',+ 'assistant.step.revisingDesign': 'Töötab kujunduse üht lehekülge ümber',+ 'assistant.card.bookDesign.label': 'Raamatu kujundus',+ 'assistant.card.bookDesign.style.classic': 'Klassikaline kujundus',+ 'assistant.card.bookDesign.style.minimal': 'Minimalistlik kujundus',+ 'assistant.card.bookDesign.style.editorial': 'Ajakirjalik kujundus',+ 'assistant.card.bookDesign.style.journal': 'Päevikulik kujundus',+ 'assistant.card.bookDesign.style.bold': 'Julge kujundus',+ 'assistant.card.bookDesign.style.scrapbook': 'Albumikujundus',+ 'assistant.card.bookDesign.colours': 'Paber, tint ja rõhuvärv',+ 'assistant.card.bookDesign.faces': '{heading} ja {body}',+ 'assistant.card.bookDesign.pages': '{count} lehekülge',+ 'assistant.card.bookDesign.pages.one': '{count} lehekülg',+ 'assistant.card.bookDesign.changes': '{count} lehekülge muutub',+ 'assistant.card.bookDesign.changes.one': '{count} lehekülg muutub',+ 'assistant.card.bookDesign.leftOut': '{count} fotot välja jäetud',+ 'assistant.card.bookDesign.leftOut.one': '{count} foto välja jäetud',+ 'assistant.card.bookDesign.skippedChanged': '{count} lehekülge on vahepeal muutunud, jäeti nii',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} lehekülg on vahepeal muutunud, jäeti nii',+ 'assistant.card.bookDesign.skippedPhoto': '{count} lehekülge jäeti alles, üks foto lahkus galeriist',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} lehekülg jäeti alles, üks foto lahkus galeriist',+ 'assistant.card.bookDesign.skippedExcluded': '{count} lehekülge pole valitud',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} lehekülg pole valitud',+ 'assistant.card.bookDesign.pagesLabel': 'Kujunduse leheküljed',+ 'assistant.card.bookDesign.include': '{page}: kasuta uut kujundust',+ 'assistant.card.bookDesign.showAll': 'Näita kõiki {count} lehekülge',+ 'assistant.card.bookDesign.showAll.one': 'Näita {count} lehekülg',+ 'assistant.card.bookDesign.expired': 'Seda mustandit enam pole. Küsi kujundust uuesti, et selle lehekülgi näha.',+ 'assistant.card.bookDesign.unavailable': 'Lehekülgi ei õnnestunud laadida.',+ 'assistant.card.bookDesign.selectFailed': 'Lehekülgede valikut ei õnnestunud salvestada ja see taastati.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/et/index.ts b/shared/src/i18n/et/index.tsindex d7e6e9c6a..4c107a668 100644--- a/shared/src/i18n/et/index.ts+++ b/shared/src/i18n/et/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/fr/assistantBookDesign.ts b/shared/src/i18n/fr/assistantBookDesign.tsnew file mode 100644index 000000000..ee658406f--- /dev/null+++ b/shared/src/i18n/fr/assistantBookDesign.ts@@ -0,0 +1,41 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Appliquer la maquette du livre',+ 'assistant.change.verb.setBookSetup': 'Changer le format des pages',+ 'assistant.change.verb.duplicateBookPage': 'Dupliquer la page',+ 'assistant.change.verb.saveBookLayout': 'Enregistrer la page comme mise en page',+ 'assistant.change.verb.removeBookLayout': 'Supprimer une mise en page enregistrée',+ 'assistant.step.designingBook': 'Conçoit le livre',+ 'assistant.step.readingDesign': 'Lit la maquette',+ 'assistant.step.revisingDesign': 'Retravaille une page de la maquette',+ 'assistant.card.bookDesign.label': 'Maquette du livre',+ 'assistant.card.bookDesign.style.classic': 'Maquette classique',+ 'assistant.card.bookDesign.style.minimal': 'Maquette minimaliste',+ 'assistant.card.bookDesign.style.editorial': 'Maquette magazine',+ 'assistant.card.bookDesign.style.journal': 'Maquette carnet',+ 'assistant.card.bookDesign.style.bold': 'Maquette audacieuse',+ 'assistant.card.bookDesign.style.scrapbook': 'Maquette scrapbooking',+ 'assistant.card.bookDesign.colours': 'Papier, encre et couleur d’accent',+ 'assistant.card.bookDesign.faces': '{heading} et {body}',+ 'assistant.card.bookDesign.pages': 'Livre de {count} pages',+ 'assistant.card.bookDesign.pages.one': 'Livre de {count} page',+ 'assistant.card.bookDesign.changes': '{count} pages modifiées',+ 'assistant.card.bookDesign.changes.one': '{count} page modifiée',+ 'assistant.card.bookDesign.leftOut': '{count} photos écartées',+ 'assistant.card.bookDesign.leftOut.one': '{count} photo écartée',+ 'assistant.card.bookDesign.skippedChanged': '{count} pages modifiées depuis, laissées telles quelles',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} page modifiée depuis, laissée telle quelle',+ 'assistant.card.bookDesign.skippedPhoto': '{count} pages conservées, une photo a quitté la galerie',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} page conservée, une photo a quitté la galerie',+ 'assistant.card.bookDesign.skippedExcluded': '{count} pages non retenues',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} page non retenue',+ 'assistant.card.bookDesign.pagesLabel': 'Pages de la maquette',+ 'assistant.card.bookDesign.include': '{page} : utiliser la nouvelle maquette',+ 'assistant.card.bookDesign.showAll': 'Afficher les {count} pages',+ 'assistant.card.bookDesign.showAll.one': 'Afficher {count} page',+ 'assistant.card.bookDesign.expired': 'Ce brouillon n’existe plus. Redemandez la maquette pour voir ses pages.',+ 'assistant.card.bookDesign.unavailable': 'Impossible de charger les pages.',+ 'assistant.card.bookDesign.selectFailed': 'Le choix des pages n’a pas pu être enregistré et a été annulé.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/fr/index.ts b/shared/src/i18n/fr/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/fr/index.ts+++ b/shared/src/i18n/fr/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/gr/assistantBookDesign.ts b/shared/src/i18n/gr/assistantBookDesign.tsnew file mode 100644index 000000000..e875384b1--- /dev/null+++ b/shared/src/i18n/gr/assistantBookDesign.ts@@ -0,0 +1,42 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Εφαρμογή σχεδίου βιβλίου',+ 'assistant.change.verb.setBookSetup': 'Αλλαγή μορφής σελίδας',+ 'assistant.change.verb.duplicateBookPage': 'Αντιγραφή της σελίδας',+ 'assistant.change.verb.saveBookLayout': 'Αποθήκευση σελίδας ως διάταξη',+ 'assistant.change.verb.removeBookLayout': 'Αφαίρεση αποθηκευμένης διάταξης',+ 'assistant.step.designingBook': 'Σχεδιάζει το βιβλίο',+ 'assistant.step.readingDesign': 'Διαβάζει το σχέδιο',+ 'assistant.step.revisingDesign': 'Ξαναδουλεύει μια σελίδα του σχεδίου',+ 'assistant.card.bookDesign.label': 'Σχέδιο βιβλίου',+ 'assistant.card.bookDesign.style.classic': 'Κλασικό σχέδιο',+ 'assistant.card.bookDesign.style.minimal': 'Μινιμαλιστικό σχέδιο',+ 'assistant.card.bookDesign.style.editorial': 'Σχέδιο περιοδικού',+ 'assistant.card.bookDesign.style.journal': 'Σχέδιο ημερολογίου',+ 'assistant.card.bookDesign.style.bold': 'Τολμηρό σχέδιο',+ 'assistant.card.bookDesign.style.scrapbook': 'Σχέδιο λευκώματος',+ 'assistant.card.bookDesign.colours': 'Χαρτί, μελάνι και χρώμα έμφασης',+ 'assistant.card.bookDesign.faces': '{heading} και {body}',+ 'assistant.card.bookDesign.pages': '{count} σελίδες',+ 'assistant.card.bookDesign.pages.one': '{count} σελίδα',+ 'assistant.card.bookDesign.changes': '{count} σελίδες αλλάζουν',+ 'assistant.card.bookDesign.changes.one': '{count} σελίδα αλλάζει',+ 'assistant.card.bookDesign.leftOut': '{count} φωτογραφίες εκτός',+ 'assistant.card.bookDesign.leftOut.one': '{count} φωτογραφία εκτός',+ 'assistant.card.bookDesign.skippedChanged': '{count} σελίδες άλλαξαν στο μεταξύ, έμειναν ως έχουν',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} σελίδα άλλαξε στο μεταξύ, έμεινε ως έχει',+ 'assistant.card.bookDesign.skippedPhoto': '{count} σελίδες κρατήθηκαν, μια φωτογραφία έφυγε από τη συλλογή',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} σελίδα κρατήθηκε, μια φωτογραφία έφυγε από τη συλλογή',+ 'assistant.card.bookDesign.skippedExcluded': '{count} σελίδες δεν επιλέχθηκαν',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} σελίδα δεν επιλέχθηκε',+ 'assistant.card.bookDesign.pagesLabel': 'Σελίδες του σχεδίου',+ 'assistant.card.bookDesign.include': '{page}: χρήση του νέου σχεδίου',+ 'assistant.card.bookDesign.showAll': 'Εμφάνιση όλων των {count} σελίδων',+ 'assistant.card.bookDesign.showAll.one': 'Εμφάνιση {count} σελίδας',+ 'assistant.card.bookDesign.expired':+ 'Αυτό το προσχέδιο δεν υπάρχει πια. Ζητήστε ξανά το σχέδιο για να δείτε τις σελίδες του.',+ 'assistant.card.bookDesign.unavailable': 'Δεν ήταν δυνατή η φόρτωση των σελίδων.',+ 'assistant.card.bookDesign.selectFailed': 'Η επιλογή σελίδων δεν αποθηκεύτηκε και επανήλθε.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/gr/index.ts b/shared/src/i18n/gr/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/gr/index.ts+++ b/shared/src/i18n/gr/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/hu/assistantBookDesign.ts b/shared/src/i18n/hu/assistantBookDesign.tsnew file mode 100644index 000000000..c26caa6dc--- /dev/null+++ b/shared/src/i18n/hu/assistantBookDesign.ts@@ -0,0 +1,41 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Könyvterv alkalmazása',+ 'assistant.change.verb.setBookSetup': 'Oldalformátum módosítása',+ 'assistant.change.verb.duplicateBookPage': 'Oldal megkettőzése',+ 'assistant.change.verb.saveBookLayout': 'Oldal mentése elrendezésként',+ 'assistant.change.verb.removeBookLayout': 'Mentett elrendezés eltávolítása',+ 'assistant.step.designingBook': 'Megtervezi a könyvet',+ 'assistant.step.readingDesign': 'Olvassa a tervet',+ 'assistant.step.revisingDesign': 'Átdolgozza a terv egyik oldalát',+ 'assistant.card.bookDesign.label': 'Könyvterv',+ 'assistant.card.bookDesign.style.classic': 'Klasszikus terv',+ 'assistant.card.bookDesign.style.minimal': 'Minimalista terv',+ 'assistant.card.bookDesign.style.editorial': 'Magazinos terv',+ 'assistant.card.bookDesign.style.journal': 'Naplós terv',+ 'assistant.card.bookDesign.style.bold': 'Merész terv',+ 'assistant.card.bookDesign.style.scrapbook': 'Scrapbook stílusú terv',+ 'assistant.card.bookDesign.colours': 'Papír, tinta és kiemelőszín',+ 'assistant.card.bookDesign.faces': '{heading} és {body}',+ 'assistant.card.bookDesign.pages': '{count} oldal',+ 'assistant.card.bookDesign.pages.one': '{count} oldal',+ 'assistant.card.bookDesign.changes': '{count} oldal változik',+ 'assistant.card.bookDesign.changes.one': '{count} oldal változik',+ 'assistant.card.bookDesign.leftOut': '{count} fotó kimaradt',+ 'assistant.card.bookDesign.leftOut.one': '{count} fotó kimaradt',+ 'assistant.card.bookDesign.skippedChanged': '{count} oldal azóta megváltozott, változatlanul maradt',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} oldal azóta megváltozott, változatlanul maradt',+ 'assistant.card.bookDesign.skippedPhoto': '{count} oldal megmaradt, egy fotó kikerült a galériából',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} oldal megmaradt, egy fotó kikerült a galériából',+ 'assistant.card.bookDesign.skippedExcluded': '{count} oldal nincs kiválasztva',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} oldal nincs kiválasztva',+ 'assistant.card.bookDesign.pagesLabel': 'A terv oldalai',+ 'assistant.card.bookDesign.include': '{page}: az új terv használata',+ 'assistant.card.bookDesign.showAll': 'Mind a(z) {count} oldal mutatása',+ 'assistant.card.bookDesign.showAll.one': '{count} oldal mutatása',+ 'assistant.card.bookDesign.expired': 'Ez a vázlat már nem létezik. Kérd újra a tervet, hogy lásd az oldalait.',+ 'assistant.card.bookDesign.unavailable': 'Az oldalakat nem sikerült betölteni.',+ 'assistant.card.bookDesign.selectFailed': 'Az oldalválasztást nem sikerült menteni, ezért visszaállt.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/hu/index.ts b/shared/src/i18n/hu/index.tsindex 44a9f0441..510bca449 100644--- a/shared/src/i18n/hu/index.ts+++ b/shared/src/i18n/hu/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/id/assistantBookDesign.ts b/shared/src/i18n/id/assistantBookDesign.tsnew file mode 100644index 000000000..1c61fc360--- /dev/null+++ b/shared/src/i18n/id/assistantBookDesign.ts@@ -0,0 +1,34 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Terapkan desain buku foto',+ 'assistant.change.verb.setBookSetup': 'Ubah format halaman',+ 'assistant.change.verb.duplicateBookPage': 'Duplikat halaman',+ 'assistant.change.verb.saveBookLayout': 'Simpan halaman sebagai tata letak',+ 'assistant.change.verb.removeBookLayout': 'Hapus tata letak tersimpan',+ 'assistant.step.designingBook': 'Mendesain buku foto',+ 'assistant.step.readingDesign': 'Membaca desain',+ 'assistant.step.revisingDesign': 'Mengerjakan ulang satu halaman desain',+ 'assistant.card.bookDesign.label': 'Desain buku foto',+ 'assistant.card.bookDesign.style.classic': 'Desain klasik',+ 'assistant.card.bookDesign.style.minimal': 'Desain minimalis',+ 'assistant.card.bookDesign.style.editorial': 'Desain majalah',+ 'assistant.card.bookDesign.style.journal': 'Desain jurnal',+ 'assistant.card.bookDesign.style.bold': 'Desain berani',+ 'assistant.card.bookDesign.style.scrapbook': 'Desain scrapbook',+ 'assistant.card.bookDesign.colours': 'Kertas, tinta, dan warna aksen',+ 'assistant.card.bookDesign.faces': '{heading} dan {body}',+ 'assistant.card.bookDesign.pages': '{count} halaman',+ 'assistant.card.bookDesign.changes': '{count} halaman berubah',+ 'assistant.card.bookDesign.leftOut': '{count} foto tidak dipakai',+ 'assistant.card.bookDesign.skippedChanged': '{count} halaman sudah berubah sejak itu, dibiarkan apa adanya',+ 'assistant.card.bookDesign.skippedPhoto': '{count} halaman dipertahankan, sebuah foto keluar dari galeri',+ 'assistant.card.bookDesign.skippedExcluded': '{count} halaman tidak dipilih',+ 'assistant.card.bookDesign.pagesLabel': 'Halaman desain',+ 'assistant.card.bookDesign.include': '{page}: pakai desain baru',+ 'assistant.card.bookDesign.showAll': 'Tampilkan semua {count} halaman',+ 'assistant.card.bookDesign.expired': 'Draf ini sudah tidak ada. Minta desainnya lagi untuk melihat halamannya.',+ 'assistant.card.bookDesign.unavailable': 'Halaman tidak dapat dimuat.',+ 'assistant.card.bookDesign.selectFailed': 'Pilihan halaman tidak dapat disimpan dan dikembalikan.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/id/index.ts b/shared/src/i18n/id/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/id/index.ts+++ b/shared/src/i18n/id/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/it/assistantBookDesign.ts b/shared/src/i18n/it/assistantBookDesign.tsnew file mode 100644index 000000000..087271c18--- /dev/null+++ b/shared/src/i18n/it/assistantBookDesign.ts@@ -0,0 +1,42 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Applica il design del libro',+ 'assistant.change.verb.setBookSetup': 'Cambia il formato delle pagine',+ 'assistant.change.verb.duplicateBookPage': 'Duplica la pagina',+ 'assistant.change.verb.saveBookLayout': 'Salva la pagina come layout',+ 'assistant.change.verb.removeBookLayout': 'Rimuovi un layout salvato',+ 'assistant.step.designingBook': 'Progetta il libro',+ 'assistant.step.readingDesign': 'Legge il design',+ 'assistant.step.revisingDesign': 'Rielabora una pagina del design',+ 'assistant.card.bookDesign.label': 'Design del libro',+ 'assistant.card.bookDesign.style.classic': 'Design classico',+ 'assistant.card.bookDesign.style.minimal': 'Design minimalista',+ 'assistant.card.bookDesign.style.editorial': 'Design da rivista',+ 'assistant.card.bookDesign.style.journal': 'Design da diario',+ 'assistant.card.bookDesign.style.bold': 'Design deciso',+ 'assistant.card.bookDesign.style.scrapbook': 'Design scrapbook',+ 'assistant.card.bookDesign.colours': 'Carta, inchiostro e colore d’accento',+ 'assistant.card.bookDesign.faces': '{heading} e {body}',+ 'assistant.card.bookDesign.pages': '{count} pagine',+ 'assistant.card.bookDesign.pages.one': '{count} pagina',+ 'assistant.card.bookDesign.changes': '{count} pagine cambiano',+ 'assistant.card.bookDesign.changes.one': '{count} pagina cambia',+ 'assistant.card.bookDesign.leftOut': '{count} foto escluse',+ 'assistant.card.bookDesign.leftOut.one': '{count} foto esclusa',+ 'assistant.card.bookDesign.skippedChanged': '{count} pagine modificate nel frattempo, lasciate come sono',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} pagina modificata nel frattempo, lasciata com’è',+ 'assistant.card.bookDesign.skippedPhoto': '{count} pagine mantenute, una foto ha lasciato la galleria',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} pagina mantenuta, una foto ha lasciato la galleria',+ 'assistant.card.bookDesign.skippedExcluded': '{count} pagine non scelte',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} pagina non scelta',+ 'assistant.card.bookDesign.pagesLabel': 'Pagine del design',+ 'assistant.card.bookDesign.include': '{page}: usa il nuovo design',+ 'assistant.card.bookDesign.showAll': 'Mostra tutte le {count} pagine',+ 'assistant.card.bookDesign.showAll.one': 'Mostra {count} pagina',+ 'assistant.card.bookDesign.expired':+ 'Questa bozza non esiste più. Richiedi di nuovo il design per vederne le pagine.',+ 'assistant.card.bookDesign.unavailable': 'Impossibile caricare le pagine.',+ 'assistant.card.bookDesign.selectFailed': 'La scelta delle pagine non è stata salvata ed è stata ripristinata.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/it/index.ts b/shared/src/i18n/it/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/it/index.ts+++ b/shared/src/i18n/it/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/ja/assistantBookDesign.ts b/shared/src/i18n/ja/assistantBookDesign.tsnew file mode 100644index 000000000..d13dc2941--- /dev/null+++ b/shared/src/i18n/ja/assistantBookDesign.ts@@ -0,0 +1,35 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'フォトブックのデザインを適用',+ 'assistant.change.verb.setBookSetup': 'ページ形式を変更',+ 'assistant.change.verb.duplicateBookPage': 'ページを複製',+ 'assistant.change.verb.saveBookLayout': 'ページをレイアウトとして保存',+ 'assistant.change.verb.removeBookLayout': '保存したレイアウトを削除',+ 'assistant.step.designingBook': 'フォトブックをデザインしています',+ 'assistant.step.readingDesign': 'デザインを読んでいます',+ 'assistant.step.revisingDesign': 'デザインのページを手直ししています',+ 'assistant.card.bookDesign.label': 'フォトブックのデザイン',+ 'assistant.card.bookDesign.style.classic': 'クラシックなデザイン',+ 'assistant.card.bookDesign.style.minimal': 'ミニマルなデザイン',+ 'assistant.card.bookDesign.style.editorial': '雑誌風のデザイン',+ 'assistant.card.bookDesign.style.journal': '日記風のデザイン',+ 'assistant.card.bookDesign.style.bold': '大胆なデザイン',+ 'assistant.card.bookDesign.style.scrapbook': 'スクラップブック風のデザイン',+ 'assistant.card.bookDesign.colours': '用紙、インク、アクセントの色',+ 'assistant.card.bookDesign.faces': '{heading} と {body}',+ 'assistant.card.bookDesign.pages': '{count} ページ',+ 'assistant.card.bookDesign.changes': '{count} ページが変わります',+ 'assistant.card.bookDesign.leftOut': '{count} 枚の写真を除外',+ 'assistant.card.bookDesign.skippedChanged': 'その後変更された {count} ページはそのままです',+ 'assistant.card.bookDesign.skippedPhoto': '{count} ページを維持、写真がギャラリーから外れました',+ 'assistant.card.bookDesign.skippedExcluded': '選ばれていない {count} ページ',+ 'assistant.card.bookDesign.pagesLabel': 'デザインのページ',+ 'assistant.card.bookDesign.include': '{page}: 新しいデザインを使う',+ 'assistant.card.bookDesign.showAll': '{count} ページをすべて表示',+ 'assistant.card.bookDesign.expired':+ 'この下書きはもうありません。ページを見るにはもう一度デザインを依頼してください。',+ 'assistant.card.bookDesign.unavailable': 'ページを読み込めませんでした。',+ 'assistant.card.bookDesign.selectFailed': 'ページの選択を保存できなかったため、元に戻しました。',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/ja/index.ts b/shared/src/i18n/ja/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/ja/index.ts+++ b/shared/src/i18n/ja/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/ko/assistantBookDesign.ts b/shared/src/i18n/ko/assistantBookDesign.tsnew file mode 100644index 000000000..5ee441fb0--- /dev/null+++ b/shared/src/i18n/ko/assistantBookDesign.ts@@ -0,0 +1,34 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': '포토북 디자인 적용',+ 'assistant.change.verb.setBookSetup': '페이지 형식 변경',+ 'assistant.change.verb.duplicateBookPage': '페이지 복제',+ 'assistant.change.verb.saveBookLayout': '페이지를 레이아웃으로 저장',+ 'assistant.change.verb.removeBookLayout': '저장한 레이아웃 삭제',+ 'assistant.step.designingBook': '포토북을 디자인하는 중',+ 'assistant.step.readingDesign': '디자인을 읽는 중',+ 'assistant.step.revisingDesign': '디자인의 페이지를 다듬는 중',+ 'assistant.card.bookDesign.label': '포토북 디자인',+ 'assistant.card.bookDesign.style.classic': '클래식 디자인',+ 'assistant.card.bookDesign.style.minimal': '미니멀 디자인',+ 'assistant.card.bookDesign.style.editorial': '매거진 디자인',+ 'assistant.card.bookDesign.style.journal': '다이어리 디자인',+ 'assistant.card.bookDesign.style.bold': '과감한 디자인',+ 'assistant.card.bookDesign.style.scrapbook': '스크랩북 디자인',+ 'assistant.card.bookDesign.colours': '종이, 잉크, 강조 색상',+ 'assistant.card.bookDesign.faces': '{heading} 및 {body}',+ 'assistant.card.bookDesign.pages': '{count}페이지',+ 'assistant.card.bookDesign.changes': '{count}페이지 변경',+ 'assistant.card.bookDesign.leftOut': '사진 {count}장 제외',+ 'assistant.card.bookDesign.skippedChanged': '그동안 바뀐 {count}페이지는 그대로 둠',+ 'assistant.card.bookDesign.skippedPhoto': '{count}페이지 유지, 사진이 갤러리에서 빠짐',+ 'assistant.card.bookDesign.skippedExcluded': '선택하지 않은 {count}페이지',+ 'assistant.card.bookDesign.pagesLabel': '디자인의 페이지',+ 'assistant.card.bookDesign.include': '{page}: 새 디자인 사용',+ 'assistant.card.bookDesign.showAll': '{count}페이지 모두 보기',+ 'assistant.card.bookDesign.expired': '이 초안은 더 이상 없습니다. 페이지를 보려면 디자인을 다시 요청하세요.',+ 'assistant.card.bookDesign.unavailable': '페이지를 불러오지 못했습니다.',+ 'assistant.card.bookDesign.selectFailed': '페이지 선택을 저장하지 못해 되돌렸습니다.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/ko/index.ts b/shared/src/i18n/ko/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/ko/index.ts+++ b/shared/src/i18n/ko/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/nl/assistantBookDesign.ts b/shared/src/i18n/nl/assistantBookDesign.tsnew file mode 100644index 000000000..d0e9b3ce4--- /dev/null+++ b/shared/src/i18n/nl/assistantBookDesign.ts@@ -0,0 +1,42 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Boekontwerp toepassen',+ 'assistant.change.verb.setBookSetup': 'Paginaformaat wijzigen',+ 'assistant.change.verb.duplicateBookPage': 'Pagina dupliceren',+ 'assistant.change.verb.saveBookLayout': 'Pagina als lay-out opslaan',+ 'assistant.change.verb.removeBookLayout': 'Opgeslagen lay-out verwijderen',+ 'assistant.step.designingBook': 'Ontwerpt het boek',+ 'assistant.step.readingDesign': 'Leest het ontwerp',+ 'assistant.step.revisingDesign': 'Werkt een pagina van het ontwerp bij',+ 'assistant.card.bookDesign.label': 'Boekontwerp',+ 'assistant.card.bookDesign.style.classic': 'Klassiek ontwerp',+ 'assistant.card.bookDesign.style.minimal': 'Minimalistisch ontwerp',+ 'assistant.card.bookDesign.style.editorial': 'Tijdschriftontwerp',+ 'assistant.card.bookDesign.style.journal': 'Dagboekontwerp',+ 'assistant.card.bookDesign.style.bold': 'Krachtig ontwerp',+ 'assistant.card.bookDesign.style.scrapbook': 'Scrapbookontwerp',+ 'assistant.card.bookDesign.colours': 'Papier, inkt en accentkleur',+ 'assistant.card.bookDesign.faces': '{heading} en {body}',+ 'assistant.card.bookDesign.pages': '{count} pagina’s',+ 'assistant.card.bookDesign.pages.one': '{count} pagina',+ 'assistant.card.bookDesign.changes': '{count} pagina’s veranderen',+ 'assistant.card.bookDesign.changes.one': '{count} pagina verandert',+ 'assistant.card.bookDesign.leftOut': '{count} foto’s weggelaten',+ 'assistant.card.bookDesign.leftOut.one': '{count} foto weggelaten',+ 'assistant.card.bookDesign.skippedChanged': '{count} pagina’s sindsdien gewijzigd, gelaten zoals ze zijn',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} pagina sindsdien gewijzigd, gelaten zoals hij is',+ 'assistant.card.bookDesign.skippedPhoto': '{count} pagina’s behouden, een foto staat niet meer in de galerij',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} pagina behouden, een foto staat niet meer in de galerij',+ 'assistant.card.bookDesign.skippedExcluded': '{count} pagina’s niet gekozen',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} pagina niet gekozen',+ 'assistant.card.bookDesign.pagesLabel': 'Pagina’s van het ontwerp',+ 'assistant.card.bookDesign.include': '{page}: nieuw ontwerp gebruiken',+ 'assistant.card.bookDesign.showAll': 'Alle {count} pagina’s tonen',+ 'assistant.card.bookDesign.showAll.one': '{count} pagina tonen',+ 'assistant.card.bookDesign.expired':+ 'Dit concept bestaat niet meer. Vraag opnieuw om het ontwerp om de pagina’s te zien.',+ 'assistant.card.bookDesign.unavailable': 'De pagina’s konden niet worden geladen.',+ 'assistant.card.bookDesign.selectFailed': 'De paginakeuze kon niet worden opgeslagen en is teruggezet.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/nl/index.ts b/shared/src/i18n/nl/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/nl/index.ts+++ b/shared/src/i18n/nl/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/pl/assistantBookDesign.ts b/shared/src/i18n/pl/assistantBookDesign.tsnew file mode 100644index 000000000..bf07a2304--- /dev/null+++ b/shared/src/i18n/pl/assistantBookDesign.ts@@ -0,0 +1,56 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Zastosuj projekt książki',+ 'assistant.change.verb.setBookSetup': 'Zmień format stron',+ 'assistant.change.verb.duplicateBookPage': 'Powiel stronę',+ 'assistant.change.verb.saveBookLayout': 'Zapisz stronę jako układ',+ 'assistant.change.verb.removeBookLayout': 'Usuń zapisany układ',+ 'assistant.step.designingBook': 'Projektuje książkę',+ 'assistant.step.readingDesign': 'Czyta projekt',+ 'assistant.step.revisingDesign': 'Przerabia stronę projektu',+ 'assistant.card.bookDesign.label': 'Projekt książki',+ 'assistant.card.bookDesign.style.classic': 'Projekt klasyczny',+ 'assistant.card.bookDesign.style.minimal': 'Projekt minimalistyczny',+ 'assistant.card.bookDesign.style.editorial': 'Projekt magazynowy',+ 'assistant.card.bookDesign.style.journal': 'Projekt pamiętnikowy',+ 'assistant.card.bookDesign.style.bold': 'Projekt wyrazisty',+ 'assistant.card.bookDesign.style.scrapbook': 'Projekt scrapbookowy',+ 'assistant.card.bookDesign.colours': 'Papier, tusz i kolor akcentu',+ 'assistant.card.bookDesign.faces': '{heading} i {body}',+ 'assistant.card.bookDesign.pages': '{count} strony',+ 'assistant.card.bookDesign.pages.one': '{count} strona',+ 'assistant.card.bookDesign.pages.few': '{count} strony',+ 'assistant.card.bookDesign.pages.many': '{count} stron',+ 'assistant.card.bookDesign.changes': '{count} strony się zmienia',+ 'assistant.card.bookDesign.changes.one': '{count} strona się zmienia',+ 'assistant.card.bookDesign.changes.few': '{count} strony się zmieniają',+ 'assistant.card.bookDesign.changes.many': '{count} stron się zmienia',+ 'assistant.card.bookDesign.leftOut': '{count} zdjęcia pominięte',+ 'assistant.card.bookDesign.leftOut.one': '{count} zdjęcie pominięte',+ 'assistant.card.bookDesign.leftOut.few': '{count} zdjęcia pominięte',+ 'assistant.card.bookDesign.leftOut.many': '{count} zdjęć pominiętych',+ 'assistant.card.bookDesign.skippedChanged': '{count} strony zmienione w międzyczasie, pozostawione bez zmian',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} strona zmieniona w międzyczasie, pozostawiona bez zmian',+ 'assistant.card.bookDesign.skippedChanged.few': '{count} strony zmienione w międzyczasie, pozostawione bez zmian',+ 'assistant.card.bookDesign.skippedChanged.many': '{count} stron zmienionych w międzyczasie, pozostawionych bez zmian',+ 'assistant.card.bookDesign.skippedPhoto': '{count} strony zachowane, zdjęcie zniknęło z galerii',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} strona zachowana, zdjęcie zniknęło z galerii',+ 'assistant.card.bookDesign.skippedPhoto.few': '{count} strony zachowane, zdjęcie zniknęło z galerii',+ 'assistant.card.bookDesign.skippedPhoto.many': '{count} stron zachowanych, zdjęcie zniknęło z galerii',+ 'assistant.card.bookDesign.skippedExcluded': '{count} strony niewybrane',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} strona niewybrana',+ 'assistant.card.bookDesign.skippedExcluded.few': '{count} strony niewybrane',+ 'assistant.card.bookDesign.skippedExcluded.many': '{count} stron niewybranych',+ 'assistant.card.bookDesign.pagesLabel': 'Strony projektu',+ 'assistant.card.bookDesign.include': '{page}: użyj nowego projektu',+ 'assistant.card.bookDesign.showAll': 'Pokaż wszystkie {count} strony',+ 'assistant.card.bookDesign.showAll.one': 'Pokaż {count} stronę',+ 'assistant.card.bookDesign.showAll.few': 'Pokaż wszystkie {count} strony',+ 'assistant.card.bookDesign.showAll.many': 'Pokaż wszystkie {count} stron',+ 'assistant.card.bookDesign.expired':+ 'Ten szkic już nie istnieje. Poproś ponownie o projekt, aby zobaczyć jego strony.',+ 'assistant.card.bookDesign.unavailable': 'Nie udało się wczytać stron.',+ 'assistant.card.bookDesign.selectFailed': 'Nie udało się zapisać wyboru stron, więc został przywrócony.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/pl/index.ts b/shared/src/i18n/pl/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/pl/index.ts+++ b/shared/src/i18n/pl/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/ru/assistantBookDesign.ts b/shared/src/i18n/ru/assistantBookDesign.tsnew file mode 100644index 000000000..358ed0bdb--- /dev/null+++ b/shared/src/i18n/ru/assistantBookDesign.ts@@ -0,0 +1,56 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Применить дизайн книги',+ 'assistant.change.verb.setBookSetup': 'Изменить формат страниц',+ 'assistant.change.verb.duplicateBookPage': 'Дублировать страницу',+ 'assistant.change.verb.saveBookLayout': 'Сохранить страницу как макет',+ 'assistant.change.verb.removeBookLayout': 'Удалить сохранённый макет',+ 'assistant.step.designingBook': 'Оформляет книгу',+ 'assistant.step.readingDesign': 'Читает дизайн',+ 'assistant.step.revisingDesign': 'Переделывает страницу дизайна',+ 'assistant.card.bookDesign.label': 'Дизайн книги',+ 'assistant.card.bookDesign.style.classic': 'Классический дизайн',+ 'assistant.card.bookDesign.style.minimal': 'Минималистичный дизайн',+ 'assistant.card.bookDesign.style.editorial': 'Журнальный дизайн',+ 'assistant.card.bookDesign.style.journal': 'Дизайн дневника',+ 'assistant.card.bookDesign.style.bold': 'Яркий дизайн',+ 'assistant.card.bookDesign.style.scrapbook': 'Дизайн скрапбука',+ 'assistant.card.bookDesign.colours': 'Бумага, чернила и акцентный цвет',+ 'assistant.card.bookDesign.faces': '{heading} и {body}',+ 'assistant.card.bookDesign.pages': '{count} страницы',+ 'assistant.card.bookDesign.pages.one': '{count} страница',+ 'assistant.card.bookDesign.pages.few': '{count} страницы',+ 'assistant.card.bookDesign.pages.many': '{count} страниц',+ 'assistant.card.bookDesign.changes': '{count} страницы изменится',+ 'assistant.card.bookDesign.changes.one': '{count} страница изменится',+ 'assistant.card.bookDesign.changes.few': '{count} страницы изменятся',+ 'assistant.card.bookDesign.changes.many': '{count} страниц изменится',+ 'assistant.card.bookDesign.leftOut': '{count} фото не вошло',+ 'assistant.card.bookDesign.leftOut.one': '{count} фото не вошло',+ 'assistant.card.bookDesign.leftOut.few': '{count} фото не вошли',+ 'assistant.card.bookDesign.leftOut.many': '{count} фото не вошло',+ 'assistant.card.bookDesign.skippedChanged': '{count} страницы изменено с тех пор, оставлено как есть',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} страница изменена с тех пор, оставлена как есть',+ 'assistant.card.bookDesign.skippedChanged.few': '{count} страницы изменены с тех пор, оставлены как есть',+ 'assistant.card.bookDesign.skippedChanged.many': '{count} страниц изменено с тех пор, оставлено как есть',+ 'assistant.card.bookDesign.skippedPhoto': '{count} страницы сохранено, фото удалено из галереи',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} страница сохранена, фото удалено из галереи',+ 'assistant.card.bookDesign.skippedPhoto.few': '{count} страницы сохранены, фото удалено из галереи',+ 'assistant.card.bookDesign.skippedPhoto.many': '{count} страниц сохранено, фото удалено из галереи',+ 'assistant.card.bookDesign.skippedExcluded': '{count} страницы не выбрано',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} страница не выбрана',+ 'assistant.card.bookDesign.skippedExcluded.few': '{count} страницы не выбраны',+ 'assistant.card.bookDesign.skippedExcluded.many': '{count} страниц не выбрано',+ 'assistant.card.bookDesign.pagesLabel': 'Страницы дизайна',+ 'assistant.card.bookDesign.include': '{page}: использовать новый дизайн',+ 'assistant.card.bookDesign.showAll': 'Показать все {count} страницы',+ 'assistant.card.bookDesign.showAll.one': 'Показать {count} страницу',+ 'assistant.card.bookDesign.showAll.few': 'Показать все {count} страницы',+ 'assistant.card.bookDesign.showAll.many': 'Показать все {count} страниц',+ 'assistant.card.bookDesign.expired':+ 'Этого черновика больше нет. Запросите дизайн снова, чтобы увидеть его страницы.',+ 'assistant.card.bookDesign.unavailable': 'Не удалось загрузить страницы.',+ 'assistant.card.bookDesign.selectFailed': 'Не удалось сохранить выбор страниц, он был отменён.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/ru/index.ts b/shared/src/i18n/ru/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/ru/index.ts+++ b/shared/src/i18n/ru/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/sk/assistantBookDesign.ts b/shared/src/i18n/sk/assistantBookDesign.tsnew file mode 100644index 000000000..66197ec79--- /dev/null+++ b/shared/src/i18n/sk/assistantBookDesign.ts@@ -0,0 +1,48 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Použiť návrh knihy',+ 'assistant.change.verb.setBookSetup': 'Zmeniť formát strán',+ 'assistant.change.verb.duplicateBookPage': 'Duplikovať stranu',+ 'assistant.change.verb.saveBookLayout': 'Uložiť stranu ako rozloženie',+ 'assistant.change.verb.removeBookLayout': 'Odstrániť uložené rozloženie',+ 'assistant.step.designingBook': 'Navrhuje knihu',+ 'assistant.step.readingDesign': 'Číta návrh',+ 'assistant.step.revisingDesign': 'Prepracúva stranu návrhu',+ 'assistant.card.bookDesign.label': 'Návrh knihy',+ 'assistant.card.bookDesign.style.classic': 'Klasický návrh',+ 'assistant.card.bookDesign.style.minimal': 'Minimalistický návrh',+ 'assistant.card.bookDesign.style.editorial': 'Časopisový návrh',+ 'assistant.card.bookDesign.style.journal': 'Denníkový návrh',+ 'assistant.card.bookDesign.style.bold': 'Výrazný návrh',+ 'assistant.card.bookDesign.style.scrapbook': 'Scrapbookový návrh',+ 'assistant.card.bookDesign.colours': 'Papier, atrament a farba zvýraznenia',+ 'assistant.card.bookDesign.faces': '{heading} a {body}',+ 'assistant.card.bookDesign.pages': '{count} strán',+ 'assistant.card.bookDesign.pages.one': '{count} strana',+ 'assistant.card.bookDesign.pages.few': '{count} strany',+ 'assistant.card.bookDesign.changes': '{count} strán sa zmení',+ 'assistant.card.bookDesign.changes.one': '{count} strana sa zmení',+ 'assistant.card.bookDesign.changes.few': '{count} strany sa zmenia',+ 'assistant.card.bookDesign.leftOut': '{count} fotiek vynechaných',+ 'assistant.card.bookDesign.leftOut.one': '{count} fotka vynechaná',+ 'assistant.card.bookDesign.leftOut.few': '{count} fotky vynechané',+ 'assistant.card.bookDesign.skippedChanged': '{count} strán sa medzitým zmenilo, ostávajú bez zmeny',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} strana sa medzitým zmenila, ostáva bez zmeny',+ 'assistant.card.bookDesign.skippedChanged.few': '{count} strany sa medzitým zmenili, ostávajú bez zmeny',+ 'assistant.card.bookDesign.skippedPhoto': '{count} strán ponechaných, fotka zmizla z galérie',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} strana ponechaná, fotka zmizla z galérie',+ 'assistant.card.bookDesign.skippedPhoto.few': '{count} strany ponechané, fotka zmizla z galérie',+ 'assistant.card.bookDesign.skippedExcluded': '{count} strán nevybraných',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} strana nevybraná',+ 'assistant.card.bookDesign.skippedExcluded.few': '{count} strany nevybrané',+ 'assistant.card.bookDesign.pagesLabel': 'Strany návrhu',+ 'assistant.card.bookDesign.include': '{page}: použiť nový návrh',+ 'assistant.card.bookDesign.showAll': 'Zobraziť všetkých {count} strán',+ 'assistant.card.bookDesign.showAll.one': 'Zobraziť {count} stranu',+ 'assistant.card.bookDesign.showAll.few': 'Zobraziť všetky {count} strany',+ 'assistant.card.bookDesign.expired': 'Tento koncept už neexistuje. Požiadaj o návrh znova, aby si videl jeho strany.',+ 'assistant.card.bookDesign.unavailable': 'Strany sa nepodarilo načítať.',+ 'assistant.card.bookDesign.selectFailed': 'Výber strán sa nepodarilo uložiť a bol vrátený.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/sk/index.ts b/shared/src/i18n/sk/index.tsindex d7e6e9c6a..4c107a668 100644--- a/shared/src/i18n/sk/index.ts+++ b/shared/src/i18n/sk/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/sv/assistantBookDesign.ts b/shared/src/i18n/sv/assistantBookDesign.tsnew file mode 100644index 000000000..588c71022--- /dev/null+++ b/shared/src/i18n/sv/assistantBookDesign.ts@@ -0,0 +1,41 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Använd bokens design',+ 'assistant.change.verb.setBookSetup': 'Ändra sidformat',+ 'assistant.change.verb.duplicateBookPage': 'Duplicera sidan',+ 'assistant.change.verb.saveBookLayout': 'Spara sidan som layout',+ 'assistant.change.verb.removeBookLayout': 'Ta bort en sparad layout',+ 'assistant.step.designingBook': 'Formger boken',+ 'assistant.step.readingDesign': 'Läser designen',+ 'assistant.step.revisingDesign': 'Bearbetar en sida i designen',+ 'assistant.card.bookDesign.label': 'Bokdesign',+ 'assistant.card.bookDesign.style.classic': 'Klassisk design',+ 'assistant.card.bookDesign.style.minimal': 'Minimalistisk design',+ 'assistant.card.bookDesign.style.editorial': 'Tidningsdesign',+ 'assistant.card.bookDesign.style.journal': 'Dagboksdesign',+ 'assistant.card.bookDesign.style.bold': 'Djärv design',+ 'assistant.card.bookDesign.style.scrapbook': 'Scrapbookdesign',+ 'assistant.card.bookDesign.colours': 'Papper, bläck och accentfärg',+ 'assistant.card.bookDesign.faces': '{heading} och {body}',+ 'assistant.card.bookDesign.pages': '{count} sidor',+ 'assistant.card.bookDesign.pages.one': '{count} sida',+ 'assistant.card.bookDesign.changes': '{count} sidor ändras',+ 'assistant.card.bookDesign.changes.one': '{count} sida ändras',+ 'assistant.card.bookDesign.leftOut': '{count} foton utelämnade',+ 'assistant.card.bookDesign.leftOut.one': '{count} foto utelämnat',+ 'assistant.card.bookDesign.skippedChanged': '{count} sidor ändrade sedan dess, lämnade som de är',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} sida ändrad sedan dess, lämnad som den är',+ 'assistant.card.bookDesign.skippedPhoto': '{count} sidor behållna, ett foto har lämnat galleriet',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} sida behållen, ett foto har lämnat galleriet',+ 'assistant.card.bookDesign.skippedExcluded': '{count} sidor inte valda',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} sida inte vald',+ 'assistant.card.bookDesign.pagesLabel': 'Designens sidor',+ 'assistant.card.bookDesign.include': '{page}: använd den nya designen',+ 'assistant.card.bookDesign.showAll': 'Visa alla {count} sidor',+ 'assistant.card.bookDesign.showAll.one': 'Visa {count} sida',+ 'assistant.card.bookDesign.expired': 'Utkastet finns inte längre. Be om designen igen för att se sidorna.',+ 'assistant.card.bookDesign.unavailable': 'Sidorna kunde inte laddas.',+ 'assistant.card.bookDesign.selectFailed': 'Sidvalet kunde inte sparas och har återställts.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/sv/index.ts b/shared/src/i18n/sv/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/sv/index.ts+++ b/shared/src/i18n/sv/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/th/assistantBookDesign.ts b/shared/src/i18n/th/assistantBookDesign.tsnew file mode 100644index 000000000..7c64523c7--- /dev/null+++ b/shared/src/i18n/th/assistantBookDesign.ts@@ -0,0 +1,34 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'ใช้ดีไซน์โฟโต้บุ๊ก',+ 'assistant.change.verb.setBookSetup': 'เปลี่ยนรูปแบบหน้า',+ 'assistant.change.verb.duplicateBookPage': 'ทำสำเนาหน้า',+ 'assistant.change.verb.saveBookLayout': 'บันทึกหน้าเป็นเลย์เอาต์',+ 'assistant.change.verb.removeBookLayout': 'ลบเลย์เอาต์ที่บันทึกไว้',+ 'assistant.step.designingBook': 'กำลังออกแบบโฟโต้บุ๊ก',+ 'assistant.step.readingDesign': 'กำลังอ่านดีไซน์',+ 'assistant.step.revisingDesign': 'กำลังปรับหน้าหนึ่งของดีไซน์',+ 'assistant.card.bookDesign.label': 'ดีไซน์โฟโต้บุ๊ก',+ 'assistant.card.bookDesign.style.classic': 'ดีไซน์คลาสสิก',+ 'assistant.card.bookDesign.style.minimal': 'ดีไซน์มินิมอล',+ 'assistant.card.bookDesign.style.editorial': 'ดีไซน์แบบนิตยสาร',+ 'assistant.card.bookDesign.style.journal': 'ดีไซน์แบบไดอารี',+ 'assistant.card.bookDesign.style.bold': 'ดีไซน์โดดเด่น',+ 'assistant.card.bookDesign.style.scrapbook': 'ดีไซน์สแครปบุ๊ก',+ 'assistant.card.bookDesign.colours': 'สีกระดาษ หมึก และสีเน้น',+ 'assistant.card.bookDesign.faces': '{heading} และ {body}',+ 'assistant.card.bookDesign.pages': '{count} หน้า',+ 'assistant.card.bookDesign.changes': 'เปลี่ยน {count} หน้า',+ 'assistant.card.bookDesign.leftOut': 'ไม่ได้ใช้รูป {count} รูป',+ 'assistant.card.bookDesign.skippedChanged': '{count} หน้าที่ถูกแก้ไขในระหว่างนี้ยังคงเดิม',+ 'assistant.card.bookDesign.skippedPhoto': 'คง {count} หน้าไว้ เพราะมีรูปออกจากแกลเลอรี',+ 'assistant.card.bookDesign.skippedExcluded': 'ไม่ได้เลือก {count} หน้า',+ 'assistant.card.bookDesign.pagesLabel': 'หน้าของดีไซน์',+ 'assistant.card.bookDesign.include': '{page}: ใช้ดีไซน์ใหม่',+ 'assistant.card.bookDesign.showAll': 'แสดงทั้งหมด {count} หน้า',+ 'assistant.card.bookDesign.expired': 'ฉบับร่างนี้ไม่มีแล้ว ขอดีไซน์อีกครั้งเพื่อดูหน้าต่างๆ',+ 'assistant.card.bookDesign.unavailable': 'โหลดหน้าไม่ได้',+ 'assistant.card.bookDesign.selectFailed': 'บันทึกการเลือกหน้าไม่ได้และได้คืนค่าแล้ว',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/th/index.ts b/shared/src/i18n/th/index.tsindex d7e6e9c6a..4c107a668 100644--- a/shared/src/i18n/th/index.ts+++ b/shared/src/i18n/th/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/tr/assistantBookDesign.ts b/shared/src/i18n/tr/assistantBookDesign.tsnew file mode 100644index 000000000..6341137bc--- /dev/null+++ b/shared/src/i18n/tr/assistantBookDesign.ts@@ -0,0 +1,41 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Kitap tasarımını uygula',+ 'assistant.change.verb.setBookSetup': 'Sayfa biçimini değiştir',+ 'assistant.change.verb.duplicateBookPage': 'Sayfayı çoğalt',+ 'assistant.change.verb.saveBookLayout': 'Sayfayı düzen olarak kaydet',+ 'assistant.change.verb.removeBookLayout': 'Kayıtlı bir düzeni kaldır',+ 'assistant.step.designingBook': 'Kitabı tasarlıyor',+ 'assistant.step.readingDesign': 'Tasarımı okuyor',+ 'assistant.step.revisingDesign': 'Tasarımın bir sayfasını yeniden işliyor',+ 'assistant.card.bookDesign.label': 'Kitap tasarımı',+ 'assistant.card.bookDesign.style.classic': 'Klasik tasarım',+ 'assistant.card.bookDesign.style.minimal': 'Minimal tasarım',+ 'assistant.card.bookDesign.style.editorial': 'Dergi tasarımı',+ 'assistant.card.bookDesign.style.journal': 'Günlük tasarımı',+ 'assistant.card.bookDesign.style.bold': 'Cesur tasarım',+ 'assistant.card.bookDesign.style.scrapbook': 'Karalama defteri tasarımı',+ 'assistant.card.bookDesign.colours': 'Kâğıt, mürekkep ve vurgu rengi',+ 'assistant.card.bookDesign.faces': '{heading} ve {body}',+ 'assistant.card.bookDesign.pages': '{count} sayfa',+ 'assistant.card.bookDesign.pages.one': '{count} sayfa',+ 'assistant.card.bookDesign.changes': '{count} sayfa değişiyor',+ 'assistant.card.bookDesign.changes.one': '{count} sayfa değişiyor',+ 'assistant.card.bookDesign.leftOut': '{count} fotoğraf dışarıda kaldı',+ 'assistant.card.bookDesign.leftOut.one': '{count} fotoğraf dışarıda kaldı',+ 'assistant.card.bookDesign.skippedChanged': '{count} sayfa o zamandan beri değişti, olduğu gibi bırakıldı',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} sayfa o zamandan beri değişti, olduğu gibi bırakıldı',+ 'assistant.card.bookDesign.skippedPhoto': '{count} sayfa korundu, bir fotoğraf galeriden çıktı',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} sayfa korundu, bir fotoğraf galeriden çıktı',+ 'assistant.card.bookDesign.skippedExcluded': '{count} sayfa seçilmedi',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} sayfa seçilmedi',+ 'assistant.card.bookDesign.pagesLabel': 'Tasarımın sayfaları',+ 'assistant.card.bookDesign.include': '{page}: yeni tasarımı kullan',+ 'assistant.card.bookDesign.showAll': '{count} sayfanın tümünü göster',+ 'assistant.card.bookDesign.showAll.one': '{count} sayfayı göster',+ 'assistant.card.bookDesign.expired': 'Bu taslak artık yok. Sayfalarını görmek için tasarımı yeniden iste.',+ 'assistant.card.bookDesign.unavailable': 'Sayfalar yüklenemedi.',+ 'assistant.card.bookDesign.selectFailed': 'Sayfa seçimi kaydedilemedi ve geri alındı.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/tr/index.ts b/shared/src/i18n/tr/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/tr/index.ts+++ b/shared/src/i18n/tr/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/uk/assistantBookDesign.ts b/shared/src/i18n/uk/assistantBookDesign.tsnew file mode 100644index 000000000..9f4d7779e--- /dev/null+++ b/shared/src/i18n/uk/assistantBookDesign.ts@@ -0,0 +1,55 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Застосувати дизайн книги',+ 'assistant.change.verb.setBookSetup': 'Змінити формат сторінок',+ 'assistant.change.verb.duplicateBookPage': 'Дублювати сторінку',+ 'assistant.change.verb.saveBookLayout': 'Зберегти сторінку як макет',+ 'assistant.change.verb.removeBookLayout': 'Видалити збережений макет',+ 'assistant.step.designingBook': 'Оформлює книгу',+ 'assistant.step.readingDesign': 'Читає дизайн',+ 'assistant.step.revisingDesign': 'Переробляє сторінку дизайну',+ 'assistant.card.bookDesign.label': 'Дизайн книги',+ 'assistant.card.bookDesign.style.classic': 'Класичний дизайн',+ 'assistant.card.bookDesign.style.minimal': 'Мінімалістичний дизайн',+ 'assistant.card.bookDesign.style.editorial': 'Журнальний дизайн',+ 'assistant.card.bookDesign.style.journal': 'Дизайн щоденника',+ 'assistant.card.bookDesign.style.bold': 'Яскравий дизайн',+ 'assistant.card.bookDesign.style.scrapbook': 'Дизайн скрапбуку',+ 'assistant.card.bookDesign.colours': 'Папір, чорнило й акцентний колір',+ 'assistant.card.bookDesign.faces': '{heading} і {body}',+ 'assistant.card.bookDesign.pages': '{count} сторінки',+ 'assistant.card.bookDesign.pages.one': '{count} сторінка',+ 'assistant.card.bookDesign.pages.few': '{count} сторінки',+ 'assistant.card.bookDesign.pages.many': '{count} сторінок',+ 'assistant.card.bookDesign.changes': '{count} сторінки зміниться',+ 'assistant.card.bookDesign.changes.one': '{count} сторінка зміниться',+ 'assistant.card.bookDesign.changes.few': '{count} сторінки зміняться',+ 'assistant.card.bookDesign.changes.many': '{count} сторінок зміниться',+ 'assistant.card.bookDesign.leftOut': '{count} фото не ввійшло',+ 'assistant.card.bookDesign.leftOut.one': '{count} фото не ввійшло',+ 'assistant.card.bookDesign.leftOut.few': '{count} фото не ввійшли',+ 'assistant.card.bookDesign.leftOut.many': '{count} фото не ввійшло',+ 'assistant.card.bookDesign.skippedChanged': '{count} сторінки змінено відтоді, залишено як є',+ 'assistant.card.bookDesign.skippedChanged.one': '{count} сторінку змінено відтоді, залишено як є',+ 'assistant.card.bookDesign.skippedChanged.few': '{count} сторінки змінено відтоді, залишено як є',+ 'assistant.card.bookDesign.skippedChanged.many': '{count} сторінок змінено відтоді, залишено як є',+ 'assistant.card.bookDesign.skippedPhoto': '{count} сторінки збережено, фото зникло з галереї',+ 'assistant.card.bookDesign.skippedPhoto.one': '{count} сторінку збережено, фото зникло з галереї',+ 'assistant.card.bookDesign.skippedPhoto.few': '{count} сторінки збережено, фото зникло з галереї',+ 'assistant.card.bookDesign.skippedPhoto.many': '{count} сторінок збережено, фото зникло з галереї',+ 'assistant.card.bookDesign.skippedExcluded': '{count} сторінки не вибрано',+ 'assistant.card.bookDesign.skippedExcluded.one': '{count} сторінку не вибрано',+ 'assistant.card.bookDesign.skippedExcluded.few': '{count} сторінки не вибрано',+ 'assistant.card.bookDesign.skippedExcluded.many': '{count} сторінок не вибрано',+ 'assistant.card.bookDesign.pagesLabel': 'Сторінки дизайну',+ 'assistant.card.bookDesign.include': '{page}: використати новий дизайн',+ 'assistant.card.bookDesign.showAll': 'Показати всі {count} сторінки',+ 'assistant.card.bookDesign.showAll.one': 'Показати {count} сторінку',+ 'assistant.card.bookDesign.showAll.few': 'Показати всі {count} сторінки',+ 'assistant.card.bookDesign.showAll.many': 'Показати всі {count} сторінок',+ 'assistant.card.bookDesign.expired': 'Цієї чернетки вже немає. Попросіть дизайн знову, щоб побачити його сторінки.',+ 'assistant.card.bookDesign.unavailable': 'Не вдалося завантажити сторінки.',+ 'assistant.card.bookDesign.selectFailed': 'Не вдалося зберегти вибір сторінок, його скасовано.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/uk/index.ts b/shared/src/i18n/uk/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/uk/index.ts+++ b/shared/src/i18n/uk/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/vi/assistantBookDesign.ts b/shared/src/i18n/vi/assistantBookDesign.tsnew file mode 100644index 000000000..8f76d072e--- /dev/null+++ b/shared/src/i18n/vi/assistantBookDesign.ts@@ -0,0 +1,34 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': 'Áp dụng thiết kế sách ảnh',+ 'assistant.change.verb.setBookSetup': 'Đổi khổ trang',+ 'assistant.change.verb.duplicateBookPage': 'Nhân bản trang',+ 'assistant.change.verb.saveBookLayout': 'Lưu trang thành bố cục',+ 'assistant.change.verb.removeBookLayout': 'Xóa bố cục đã lưu',+ 'assistant.step.designingBook': 'Đang thiết kế sách ảnh',+ 'assistant.step.readingDesign': 'Đang đọc thiết kế',+ 'assistant.step.revisingDesign': 'Đang chỉnh lại một trang của thiết kế',+ 'assistant.card.bookDesign.label': 'Thiết kế sách ảnh',+ 'assistant.card.bookDesign.style.classic': 'Thiết kế cổ điển',+ 'assistant.card.bookDesign.style.minimal': 'Thiết kế tối giản',+ 'assistant.card.bookDesign.style.editorial': 'Thiết kế kiểu tạp chí',+ 'assistant.card.bookDesign.style.journal': 'Thiết kế kiểu nhật ký',+ 'assistant.card.bookDesign.style.bold': 'Thiết kế nổi bật',+ 'assistant.card.bookDesign.style.scrapbook': 'Thiết kế kiểu scrapbook',+ 'assistant.card.bookDesign.colours': 'Màu giấy, mực và màu nhấn',+ 'assistant.card.bookDesign.faces': '{heading} và {body}',+ 'assistant.card.bookDesign.pages': '{count} trang',+ 'assistant.card.bookDesign.changes': '{count} trang thay đổi',+ 'assistant.card.bookDesign.leftOut': '{count} ảnh không được dùng',+ 'assistant.card.bookDesign.skippedChanged': '{count} trang đã thay đổi từ đó, giữ nguyên',+ 'assistant.card.bookDesign.skippedPhoto': 'Giữ nguyên {count} trang, một ảnh đã rời thư viện',+ 'assistant.card.bookDesign.skippedExcluded': '{count} trang không được chọn',+ 'assistant.card.bookDesign.pagesLabel': 'Các trang của thiết kế',+ 'assistant.card.bookDesign.include': '{page}: dùng thiết kế mới',+ 'assistant.card.bookDesign.showAll': 'Hiện cả {count} trang',+ 'assistant.card.bookDesign.expired': 'Bản nháp này không còn nữa. Hãy yêu cầu thiết kế lại để xem các trang.',+ 'assistant.card.bookDesign.unavailable': 'Không thể tải các trang.',+ 'assistant.card.bookDesign.selectFailed': 'Không lưu được lựa chọn trang nên đã khôi phục.',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/vi/index.ts b/shared/src/i18n/vi/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/vi/index.ts+++ b/shared/src/i18n/vi/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/zh-TW/assistantBookDesign.ts b/shared/src/i18n/zh-TW/assistantBookDesign.tsnew file mode 100644index 000000000..c0a297646--- /dev/null+++ b/shared/src/i18n/zh-TW/assistantBookDesign.ts@@ -0,0 +1,34 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': '套用相片書設計',+ 'assistant.change.verb.setBookSetup': '變更頁面尺寸',+ 'assistant.change.verb.duplicateBookPage': '複製頁面',+ 'assistant.change.verb.saveBookLayout': '將頁面儲存為版面',+ 'assistant.change.verb.removeBookLayout': '刪除已儲存的版面',+ 'assistant.step.designingBook': '正在設計相片書',+ 'assistant.step.readingDesign': '正在讀取設計',+ 'assistant.step.revisingDesign': '正在修改設計中的一頁',+ 'assistant.card.bookDesign.label': '相片書設計',+ 'assistant.card.bookDesign.style.classic': '經典設計',+ 'assistant.card.bookDesign.style.minimal': '極簡設計',+ 'assistant.card.bookDesign.style.editorial': '雜誌風設計',+ 'assistant.card.bookDesign.style.journal': '手帳風設計',+ 'assistant.card.bookDesign.style.bold': '大膽設計',+ 'assistant.card.bookDesign.style.scrapbook': '剪貼簿設計',+ 'assistant.card.bookDesign.colours': '紙張、墨色與強調色',+ 'assistant.card.bookDesign.faces': '{heading} 與 {body}',+ 'assistant.card.bookDesign.pages': '{count} 頁',+ 'assistant.card.bookDesign.changes': '{count} 頁有變更',+ 'assistant.card.bookDesign.leftOut': '{count} 張相片未使用',+ 'assistant.card.bookDesign.skippedChanged': '{count} 頁之後已被修改,維持原樣',+ 'assistant.card.bookDesign.skippedPhoto': '{count} 頁維持不變,有相片已不在圖庫中',+ 'assistant.card.bookDesign.skippedExcluded': '{count} 頁未選擇',+ 'assistant.card.bookDesign.pagesLabel': '設計的頁面',+ 'assistant.card.bookDesign.include': '{page}:使用新設計',+ 'assistant.card.bookDesign.showAll': '顯示全部 {count} 頁',+ 'assistant.card.bookDesign.expired': '此草稿已不存在。請重新要求設計以查看其頁面。',+ 'assistant.card.bookDesign.unavailable': '無法載入頁面。',+ 'assistant.card.bookDesign.selectFailed': '頁面選擇未能儲存,已還原。',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/zh-TW/index.ts b/shared/src/i18n/zh-TW/index.tsindex 467792e71..6d7fcbf30 100644--- a/shared/src/i18n/zh-TW/index.ts+++ b/shared/src/i18n/zh-TW/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,diff --git a/shared/src/i18n/zh/assistantBookDesign.ts b/shared/src/i18n/zh/assistantBookDesign.tsnew file mode 100644index 000000000..186e20487--- /dev/null+++ b/shared/src/i18n/zh/assistantBookDesign.ts@@ -0,0 +1,34 @@+import type { TranslationStrings } from '../types';++const assistantBookDesign: TranslationStrings = {+ 'assistant.change.verb.designBook': '应用相册书设计',+ 'assistant.change.verb.setBookSetup': '更改页面尺寸',+ 'assistant.change.verb.duplicateBookPage': '复制页面',+ 'assistant.change.verb.saveBookLayout': '将页面保存为版式',+ 'assistant.change.verb.removeBookLayout': '删除已保存的版式',+ 'assistant.step.designingBook': '正在设计相册书',+ 'assistant.step.readingDesign': '正在读取设计',+ 'assistant.step.revisingDesign': '正在修改设计中的一页',+ 'assistant.card.bookDesign.label': '相册书设计',+ 'assistant.card.bookDesign.style.classic': '经典设计',+ 'assistant.card.bookDesign.style.minimal': '极简设计',+ 'assistant.card.bookDesign.style.editorial': '杂志风设计',+ 'assistant.card.bookDesign.style.journal': '手账风设计',+ 'assistant.card.bookDesign.style.bold': '大胆设计',+ 'assistant.card.bookDesign.style.scrapbook': '剪贴簿设计',+ 'assistant.card.bookDesign.colours': '纸张、墨色和强调色',+ 'assistant.card.bookDesign.faces': '{heading} 和 {body}',+ 'assistant.card.bookDesign.pages': '{count} 页',+ 'assistant.card.bookDesign.changes': '{count} 页有变化',+ 'assistant.card.bookDesign.leftOut': '{count} 张照片未使用',+ 'assistant.card.bookDesign.skippedChanged': '{count} 页此后已被修改,保持原样',+ 'assistant.card.bookDesign.skippedPhoto': '{count} 页保持不变,有照片已不在图库中',+ 'assistant.card.bookDesign.skippedExcluded': '{count} 页未选择',+ 'assistant.card.bookDesign.pagesLabel': '设计的页面',+ 'assistant.card.bookDesign.include': '{page}:使用新设计',+ 'assistant.card.bookDesign.showAll': '显示全部 {count} 页',+ 'assistant.card.bookDesign.expired': '此草稿已不存在。请重新请求设计以查看其页面。',+ 'assistant.card.bookDesign.unavailable': '无法加载页面。',+ 'assistant.card.bookDesign.selectFailed': '页面选择未能保存,已恢复。',+};+export default assistantBookDesign;diff --git a/shared/src/i18n/zh/index.ts b/shared/src/i18n/zh/index.tsindex ac45f1ade..69990b155 100644--- a/shared/src/i18n/zh/index.ts+++ b/shared/src/i18n/zh/index.ts@@ -2,6 +2,8 @@ import admin from './admin';import airport from './airport';import assistant from './assistant';import assistantAtlas from './assistantAtlas';+import assistantBook from './assistantBook';+import assistantBookDesign from './assistantBookDesign';import assistantBooking from './assistantBooking';import assistantBudget from './assistantBudget';import assistantCard from './assistantCard';@@ -133,6 +135,8 @@ const locale = {...assistantTour,...assistantRoadtrip,...assistantBudget,+ ...assistantBook,+ ...assistantBookDesign,...assistantBooking,...assistantCollab,...assistantCollection,