diff --git a/client/scripts/eslint-baseline.json b/client/scripts/eslint-baseline.json index abecc8977..492f6dc91 100644 --- a/client/scripts/eslint-baseline.json +++ b/client/scripts/eslint-baseline.json @@ -35,7 +35,7 @@ }, "tests": { "@typescript-eslint/no-explicit-any": 490, - "@typescript-eslint/no-non-null-assertion": 1929, + "@typescript-eslint/no-non-null-assertion": 1927, "@typescript-eslint/no-misused-promises": 22, "@typescript-eslint/no-unused-vars": 51, "@typescript-eslint/no-floating-promises": 33, diff --git a/client/scripts/format-baseline.json b/client/scripts/format-baseline.json index 5b54a7eeb..44c1b5166 100644 --- a/client/scripts/format-baseline.json +++ b/client/scripts/format-baseline.json @@ -408,7 +408,6 @@ "src/components/Journey/usePhotoZoom.ts", "src/components/Layout/BottomNav.test.tsx", "src/components/Layout/BottomNav.tsx", - "src/components/Layout/DemoBanner.tsx", "src/components/Layout/InAppNotificationBell.test.tsx", "src/components/Layout/InAppNotificationBell.tsx", "src/components/Layout/MobileTopBar.test.tsx", diff --git a/client/scripts/theme-baseline.json b/client/scripts/theme-baseline.json index 0d6556315..641c00f88 100644 --- a/client/scripts/theme-baseline.json +++ b/client/scripts/theme-baseline.json @@ -51,7 +51,6 @@ "components/Journey/journeyMapPopup.ts": 17, "components/Journey/moodConfig.ts": 5, "components/Layout/BottomNav.tsx": 3, - "components/Layout/DemoBanner.tsx": 25, "components/Layout/InAppNotificationBell.tsx": 3, "components/Layout/MobileTopBar.tsx": 51, "components/Layout/Navbar.tsx": 21, diff --git a/client/src/components/Demo/DemoWelcome.test.tsx b/client/src/components/Demo/DemoWelcome.test.tsx new file mode 100644 index 000000000..a0be84371 --- /dev/null +++ b/client/src/components/Demo/DemoWelcome.test.tsx @@ -0,0 +1,92 @@ +import { act, fireEvent } from '@testing-library/react'; +import userEvent from '@testing-library/user-event'; +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; +import { render, screen } from '../../../tests/helpers/render'; +import { resetAllStores, seedStore } from '../../../tests/helpers/store'; +import { useAuthStore } from '../../store/authStore'; +import DemoWelcome from './DemoWelcome'; + +beforeEach(() => { + resetAllStores(); + seedStore(useAuthStore, { serverTimezone: 'UTC' }); +}); + +afterEach(() => { + vi.useRealTimers(); +}); + +describe('DemoWelcome', () => { + it('FE-COMP-DEMOWELCOME-001: opens as a dialog saying what TREK is', () => { + render(); + const dialog = screen.getByRole('dialog', { name: 'Live demo' }); + expect(dialog).toHaveTextContent('Welcome to TREK'); + expect(dialog).toHaveTextContent('The travel planner you share'); + }); + + it('FE-COMP-DEMOWELCOME-002: says the demo resets every hour and what it cannot do', () => { + render(); + expect(screen.getByText('Everything resets every hour')).toBeInTheDocument(); + for (const line of [ + 'Uploading photos, documents and covers', + 'Changing the account, its password or 2FA', + 'Creating API keys', + 'Connecting MCP clients', + 'Connecting your own AI model', + ]) + expect(screen.getByText(line)).toBeInTheDocument(); + }); + + it('FE-COMP-DEMOWELCOME-003: shows the highlights to try and what the full version adds', () => { + render(); + for (const title of [ + 'Trip planner', + 'Tours and hikes', + 'Photo books in TREK Studio', + 'Plan together live', + 'Journey travel journal', + 'Atlas world map', + 'Vacay holiday planner', + 'Collections', + 'Works offline', + ]) + expect(screen.getByText(title)).toBeInTheDocument(); + for (const line of ['Sign in with OIDC and SSO', 'Automatic backups', 'Plugins for new features']) + expect(screen.getByText(line)).toBeInTheDocument(); + expect(screen.getByText('The AI assistant on your own model')).toBeInTheDocument(); + expect(screen.getByText('An admin panel for users, addons and permissions')).toBeInTheDocument(); + }); + + it('FE-COMP-DEMOWELCOME-004: links to the repository in a new tab', () => { + render(); + const link = screen.getByRole('link', { name: 'Source code on GitHub' }); + expect(link).toHaveAttribute('href', 'https://github.com/liketrek/TREK'); + expect(link).toHaveAttribute('target', '_blank'); + expect(link).toHaveAttribute('rel', 'noopener noreferrer'); + }); + + it('FE-COMP-DEMOWELCOME-005: the countdown runs live in the server zone', async () => { + vi.useFakeTimers({ shouldAdvanceTime: false }); + vi.setSystemTime(new Date(Date.UTC(2026, 9, 24, 12, 17, 53))); + render(); + expect(screen.getByTestId('demo-countdown')).toHaveTextContent('42:07'); + + await act(async () => { + vi.setSystemTime(new Date(Date.UTC(2026, 9, 24, 12, 17, 58))); + vi.advanceTimersByTime(1000); + }); + expect(screen.getByTestId('demo-countdown')).toHaveTextContent('42:02'); + }); + + it('FE-COMP-DEMOWELCOME-006: the button closes it', async () => { + const user = userEvent.setup(); + render(); + await user.click(screen.getByRole('button', { name: 'Start exploring' })); + expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + }); + + it('FE-COMP-DEMOWELCOME-007: Escape closes it too', () => { + render(); + fireEvent.keyDown(document, { key: 'Escape' }); + expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + }); +}); diff --git a/client/src/components/Demo/DemoWelcome.tsx b/client/src/components/Demo/DemoWelcome.tsx new file mode 100644 index 000000000..a78cf3d5d --- /dev/null +++ b/client/src/components/Demo/DemoWelcome.tsx @@ -0,0 +1,147 @@ +import { ArrowRight, Clock, ExternalLink, RotateCcw } from 'lucide-react'; +import { useId } from 'react'; +import { useTranslation } from '../../i18n'; +import { + DialogButton, + DialogFooter, + DialogHeader, + DialogSection, + DialogShell, + DialogTile, + FooterSpacer, + NEUTRAL_TINT, + PILL, + fs, +} from '../shared/DialogShell'; +import TrekIcon from '../shared/TrekIcon'; +import { DEMO_FEATURES, DEMO_FULL_VERSION, DEMO_LIMITS, TREK_REPO_URL, type DemoLine } from './demoWelcomeModel'; +import { useDemoWelcome } from './useDemoWelcome'; + +type Translate = ReturnType['t']; + +/** The tiles: what a visitor can open right now, one card each. */ +function FeatureGrid({ t }: { t: Translate }) { + return ( +
+ {DEMO_FEATURES.map(({ id, icon: Icon, titleKey, bodyKey }) => ( +
+ + + +
+
+ {t(titleKey)} +
+

+ {t(bodyKey)} +

+
+
+ ))} +
+ ); +} + +/** A short list with an icon per line, for what the demo leaves out and what the full version adds. */ +function LineList({ lines, tone, t }: { lines: readonly DemoLine[]; tone: 'muted' | 'accent'; t: Translate }) { + const iconClass = tone === 'accent' ? 'text-success' : 'text-content-faint'; + return ( +
    + {lines.map(({ icon: Icon, labelKey }) => ( +
  • + + {t(labelKey)} +
  • + ))} +
+ ); +} + +/** + * The welcome a demo instance opens with: what TREK is, that the demo resets + * on the hour (with the live countdown), what to try right away, what the + * demo leaves out and what the full version adds. Closed by the button, + * Escape or a click on the backdrop, and shown again on the next visit. + */ +export default function DemoWelcome() { + const { t } = useTranslation(); + const labelId = useId(); + const { open, close, countdown } = useDemoWelcome(); + + return ( + + + + } + tint={NEUTRAL_TINT} + labelId={labelId} + onClose={close} + eyebrow={t('demo.welcome.eyebrow')} + title={t('demo.welcome.title')} + sub={t('demo.welcome.tagline')} + subWraps + pills={ + + + {t('demo.welcome.resetIn')} + + {countdown} + + + } + /> + } + footer={ + + + + {t('demo.welcome.repo')} + + + }> + {t('demo.welcome.start')} + + + } + > +
+ +
+
+ {t('demo.welcome.resetTitle')} +
+

+ {t('demo.welcome.resetBody')} +

+
+
+ + + + + +
+ + + + + + +
+
+ ); +} diff --git a/client/src/components/Demo/demoWelcomeModel.test.ts b/client/src/components/Demo/demoWelcomeModel.test.ts new file mode 100644 index 000000000..f7c71f9c0 --- /dev/null +++ b/client/src/components/Demo/demoWelcomeModel.test.ts @@ -0,0 +1,59 @@ +import en from '@trek/shared/i18n/en'; +import { describe, expect, it } from 'vitest'; +import { DEMO_FEATURES, DEMO_FULL_VERSION, DEMO_LIMITS, formatCountdown, secondsUntilReset } from './demoWelcomeModel'; + +describe('demo welcome model', () => { + it('FE-DEMO-MODEL-001: every tile and line names a key the English catalogue holds', () => { + const keys = [ + ...DEMO_FEATURES.flatMap((f) => [f.titleKey, f.bodyKey]), + ...DEMO_LIMITS.map((l) => l.labelKey), + ...DEMO_FULL_VERSION.map((l) => l.labelKey), + ]; + for (const key of keys) expect(Object.keys(en), key).toContain(key); + }); + + it('FE-DEMO-MODEL-002: shows the highlights a visitor can open, each once', () => { + expect(DEMO_FEATURES.map((f) => f.id)).toEqual([ + 'planner', + 'tours', + 'studio', + 'collab', + 'journey', + 'atlas', + 'vacay', + 'collections', + 'offline', + ]); + }); + + it('FE-DEMO-MODEL-003: names everything the demo account cannot do', () => { + expect(DEMO_LIMITS.map((l) => l.labelKey)).toEqual([ + 'demo.limit.uploads', + 'demo.limit.account', + 'demo.limit.apiKeys', + 'demo.limit.mcp', + 'demo.limit.ai', + ]); + }); + + it('FE-DEMO-MODEL-004: counts down to the next full hour in the server zone', () => { + const at = new Date(Date.UTC(2026, 9, 24, 12, 17, 53)); + expect(secondsUntilReset(at, 'UTC')).toBe(42 * 60 + 7); + // A zone half an hour off UTC has its hour mark at half past, UTC time. + expect(secondsUntilReset(at, 'Asia/Kolkata')).toBe(12 * 60 + 7); + }); + + it('FE-DEMO-MODEL-005: falls back to the browser clock for a zone it does not know, or none', () => { + const at = new Date(2026, 9, 24, 12, 59, 30); + expect(secondsUntilReset(at, 'Not/AZone')).toBe(30); + expect(secondsUntilReset(at)).toBe(30); + expect(secondsUntilReset(new Date(2026, 9, 24, 13, 0, 0))).toBe(3600); + }); + + it('FE-DEMO-MODEL-006: formats the countdown as minutes and seconds', () => { + expect(formatCountdown(42 * 60 + 7)).toBe('42:07'); + expect(formatCountdown(5)).toBe('00:05'); + expect(formatCountdown(3600)).toBe('60:00'); + expect(formatCountdown(-3)).toBe('00:00'); + }); +}); diff --git a/client/src/components/Demo/demoWelcomeModel.ts b/client/src/components/Demo/demoWelcomeModel.ts new file mode 100644 index 000000000..a7ee71d33 --- /dev/null +++ b/client/src/components/Demo/demoWelcomeModel.ts @@ -0,0 +1,111 @@ +import type { LucideIcon } from 'lucide-react'; +import { + BookImage, + Bookmark, + Bot, + CalendarDays, + DatabaseBackup, + Globe, + KeyRound, + LayoutDashboard, + Map as MapIcon, + Mountain, + NotebookPen, + Puzzle, + ShieldCheck, + Sparkles, + Terminal, + Upload, + UserLock, + Users, + WifiOff, +} from 'lucide-react'; + +/** One thing a visitor can try in the demo right away: a tile of the welcome dialog. */ +export interface DemoFeature { + id: string; + icon: LucideIcon; + titleKey: string; + bodyKey: string; +} + +/** A line of the two lists under the tiles: what the demo leaves out, and what the full version adds. */ +export interface DemoLine { + icon: LucideIcon; + labelKey: string; +} + +export const DEMO_FEATURES: readonly DemoFeature[] = [ + { id: 'planner', icon: MapIcon, titleKey: 'demo.feature.planner.title', bodyKey: 'demo.feature.planner.body' }, + { id: 'tours', icon: Mountain, titleKey: 'demo.feature.tours.title', bodyKey: 'demo.feature.tours.body' }, + { id: 'studio', icon: BookImage, titleKey: 'demo.feature.studio.title', bodyKey: 'demo.feature.studio.body' }, + { id: 'collab', icon: Users, titleKey: 'demo.feature.collab.title', bodyKey: 'demo.feature.collab.body' }, + { id: 'journey', icon: NotebookPen, titleKey: 'demo.feature.journey.title', bodyKey: 'demo.feature.journey.body' }, + { id: 'atlas', icon: Globe, titleKey: 'demo.feature.atlas.title', bodyKey: 'demo.feature.atlas.body' }, + { id: 'vacay', icon: CalendarDays, titleKey: 'demo.feature.vacay.title', bodyKey: 'demo.feature.vacay.body' }, + { + id: 'collections', + icon: Bookmark, + titleKey: 'demo.feature.collections.title', + bodyKey: 'demo.feature.collections.body', + }, + { id: 'offline', icon: WifiOff, titleKey: 'demo.feature.offline.title', bodyKey: 'demo.feature.offline.body' }, +]; + +/** What the shared demo account cannot do; the server refuses each of them too. */ +export const DEMO_LIMITS: readonly DemoLine[] = [ + { icon: Upload, labelKey: 'demo.limit.uploads' }, + { icon: UserLock, labelKey: 'demo.limit.account' }, + { icon: KeyRound, labelKey: 'demo.limit.apiKeys' }, + { icon: Terminal, labelKey: 'demo.limit.mcp' }, + { icon: Sparkles, labelKey: 'demo.limit.ai' }, +]; + +export const DEMO_FULL_VERSION: readonly DemoLine[] = [ + { icon: ShieldCheck, labelKey: 'demo.full.sso' }, + { icon: DatabaseBackup, labelKey: 'demo.full.backups' }, + { icon: Puzzle, labelKey: 'demo.full.plugins' }, + { icon: Bot, labelKey: 'demo.full.assistant' }, + { icon: LayoutDashboard, labelKey: 'demo.full.admin' }, +]; + +export const TREK_REPO_URL = 'https://github.com/liketrek/TREK'; + +/** The demo resets on the hour (the server's `0 * * * *` cron). */ +const HOUR_SECONDS = 3600; + +/** + * Minute and second of the hour at `now` in the server's time zone, where the + * reset cron runs. A zone whose offset is not whole hours (India, Nepal) moves + * the hour mark; an unknown zone falls back to the browser's clock. + */ +function minuteAndSecond(now: Date, timeZone: string | undefined): [number, number] { + if (timeZone) { + try { + const parts = new Intl.DateTimeFormat('en-US', { timeZone, minute: 'numeric', second: 'numeric' }).formatToParts( + now + ); + const read = (type: 'minute' | 'second') => Number(parts.find((p) => p.type === type)?.value); + const minute = read('minute'); + const second = read('second'); + if (Number.isFinite(minute) && Number.isFinite(second)) return [minute, second]; + } catch { + // A zone this browser does not know: the local clock below. + } + } + return [now.getMinutes(), now.getSeconds()]; +} + +/** Seconds until the next hourly reset, from 1 up to 3600. */ +export function secondsUntilReset(now: Date, timeZone?: string): number { + const [minute, second] = minuteAndSecond(now, timeZone); + return HOUR_SECONDS - (minute * 60 + second); +} + +/** The countdown as minutes and seconds, `42:07`. */ +export function formatCountdown(seconds: number): string { + const safe = Math.max(0, Math.floor(seconds)); + const minutes = Math.floor(safe / 60); + const rest = safe % 60; + return `${String(minutes).padStart(2, '0')}:${String(rest).padStart(2, '0')}`; +} diff --git a/client/src/components/Demo/useDemoWelcome.ts b/client/src/components/Demo/useDemoWelcome.ts new file mode 100644 index 000000000..b2e341d79 --- /dev/null +++ b/client/src/components/Demo/useDemoWelcome.ts @@ -0,0 +1,21 @@ +import { useEffect, useState } from 'react'; +import { useAuthStore } from '../../store/authStore'; +import { formatCountdown, secondsUntilReset } from './demoWelcomeModel'; + +/** + * The welcome dialog's state: whether it is still open, and the live countdown + * to the next hourly reset, ticking once a second in the server's time zone. + */ +export function useDemoWelcome() { + const timeZone = useAuthStore((s) => s.serverTimezone); + const [open, setOpen] = useState(true); + const [secondsLeft, setSecondsLeft] = useState(() => secondsUntilReset(new Date(), timeZone)); + + useEffect(() => { + if (!open) return; + const timer = setInterval(() => setSecondsLeft(secondsUntilReset(new Date(), timeZone)), 1000); + return () => clearInterval(timer); + }, [open, timeZone]); + + return { open, close: () => setOpen(false), countdown: formatCountdown(secondsLeft) }; +} diff --git a/client/src/components/Layout/DemoBanner.test.tsx b/client/src/components/Layout/DemoBanner.test.tsx deleted file mode 100644 index 2e73868c5..000000000 --- a/client/src/components/Layout/DemoBanner.test.tsx +++ /dev/null @@ -1,116 +0,0 @@ -import { act, fireEvent } from '@testing-library/react'; -import userEvent from '@testing-library/user-event'; -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { render, screen } from '../../../tests/helpers/render'; -import DemoBanner from './DemoBanner'; - -describe('DemoBanner', () => { - beforeEach(() => { - vi.clearAllMocks(); - }); - - afterEach(() => { - vi.useRealTimers(); - }); - - // FE-COMP-DEMOBANNER-001 - it('renders without crashing', () => { - render(); - expect(document.body).toBeInTheDocument(); - }); - - // FE-COMP-DEMOBANNER-002 - it('overlay is visible on initial render with dismiss button', () => { - render(); - expect(screen.getByText('Got it')).toBeInTheDocument(); - }); - - // FE-COMP-DEMOBANNER-003 - it('shows English welcome title by default', () => { - render(); - expect(screen.getByText(/Welcome to/i)).toBeInTheDocument(); - }); - - // FE-COMP-DEMOBANNER-004 - it('clicking "Got it" dismisses the banner', async () => { - const user = userEvent.setup(); - render(); - const button = screen.getByText('Got it'); - await user.click(button); - expect(screen.queryByText('Got it')).not.toBeInTheDocument(); - }); - - // FE-COMP-DEMOBANNER-005 - it('clicking the overlay backdrop dismisses the banner', () => { - const { container } = render(); - // The outermost fixed div is the overlay backdrop - const overlay = container.firstChild as HTMLElement; - fireEvent.click(overlay); - expect(screen.queryByText('Got it')).not.toBeInTheDocument(); - }); - - // FE-COMP-DEMOBANNER-006 - it('clicking the inner card does NOT dismiss', async () => { - const user = userEvent.setup(); - render(); - // The inner card is the direct parent of the "Got it" button's container - const card = screen.getByText('Got it').closest('div[style*="background: white"]')!; - await user.click(card); - expect(screen.getByText('Got it')).toBeInTheDocument(); - }); - - // FE-COMP-DEMOBANNER-007 - it('shows reset timer', () => { - render(); - expect(screen.getByText(/Next reset in/i)).toBeInTheDocument(); - }); - - // FE-COMP-DEMOBANNER-008 - it('shows upload-disabled notice', () => { - render(); - expect(screen.getByText(/File uploads.*disabled in demo/i)).toBeInTheDocument(); - }); - - // FE-COMP-DEMOBANNER-009 - it('shows "What is TREK?" section', () => { - render(); - expect(screen.getByText('What is TREK?')).toBeInTheDocument(); - }); - - // FE-COMP-DEMOBANNER-010 - it('shows addon cards', () => { - render(); - expect(screen.getByText('Vacay')).toBeInTheDocument(); - expect(screen.getByText('Atlas')).toBeInTheDocument(); - }); - - // FE-COMP-DEMOBANNER-011 - it('shows full version features section', () => { - render(); - expect(screen.getByText(/Additionally in the full version/i)).toBeInTheDocument(); - }); - - // FE-COMP-DEMOBANNER-012 - it('self-host link points to GitHub', () => { - render(); - const link = screen.getByText('self-host it').closest('a')!; - expect(link).toHaveAttribute('href', 'https://github.com/liketrek/TREK'); - expect(link).toHaveAttribute('target', '_blank'); - }); - - // Timer update test - it('updates countdown timer after interval tick', async () => { - vi.useFakeTimers({ shouldAdvanceTime: false }); - // Set time to XX:30 so minutesLeft = 59 - 30 = 29 - vi.setSystemTime(new Date(2026, 3, 7, 12, 30, 0)); - render(); - expect(screen.getByText(/29 minutes/)).toBeInTheDocument(); - - // Advance to XX:31 and tick the interval; wrap in act so React flushes state update - await act(async () => { - vi.setSystemTime(new Date(2026, 3, 7, 12, 31, 0)); - vi.advanceTimersByTime(10000); - }); - expect(screen.getByText(/28 minutes/)).toBeInTheDocument(); - }); -}); diff --git a/client/src/components/Layout/DemoBanner.tsx b/client/src/components/Layout/DemoBanner.tsx deleted file mode 100644 index b40062b43..000000000 --- a/client/src/components/Layout/DemoBanner.tsx +++ /dev/null @@ -1,613 +0,0 @@ -import { - ArrowRightLeft, - CalendarDays, - Clock, - Database, - FileText, - Github, - Globe, - Key, - ListChecks, - Map, - Puzzle, - Shield, - Upload, - Users, - Wallet, -} from 'lucide-react'; -import React, { useEffect, useState } from 'react'; -import { useTranslation } from '../../i18n'; - -interface DemoTexts { - titleBefore: string; - titleAfter: string; - title: string; - description: string; - resetIn: string; - minutes: string; - uploadNote: string; - fullVersionTitle: string; - features: string[]; - addonsTitle: string; - addons: [string, string][]; - whatIs: string; - whatIsDesc: string; - selfHost: string; - selfHostLink: string; - close: string; -} - -const texts: Record = { - de: { - titleBefore: 'Willkommen bei ', - titleAfter: '', - title: 'Willkommen zur TREK Demo', - description: - 'Du kannst Reisen ansehen, bearbeiten und eigene erstellen. Alle Aenderungen werden jede Stunde automatisch zurueckgesetzt.', - resetIn: 'Naechster Reset in', - minutes: 'Minuten', - uploadNote: 'Datei-Uploads (Fotos, Dokumente, Cover) sind in der Demo deaktiviert.', - fullVersionTitle: 'In der Vollversion zusaetzlich:', - features: [ - 'Datei-Uploads (Fotos, Dokumente, Cover)', - 'API-Schluessel (Google Maps, Wetter)', - 'Benutzer- & Rechteverwaltung', - 'Automatische Backups', - 'Addon-Verwaltung (aktivieren/deaktivieren)', - 'OIDC / SSO Single Sign-On', - ], - addonsTitle: 'Modulare Addons (in der Vollversion deaktivierbar)', - addons: [ - ['Vacay', 'Urlaubsplaner mit Kalender, Feiertagen & Fusion'], - ['Atlas', 'Weltkarte mit besuchten Laendern & Reisestatistiken'], - ['Packliste', 'Checklisten pro Reise'], - ['Budget', 'Kostenplanung mit Splitting'], - ['Dokumente', 'Dateien an Reisen anhaengen'], - ['Widgets', 'Waehrungsrechner & Zeitzonen'], - ], - whatIs: 'Was ist TREK?', - whatIsDesc: - 'Ein selbst-gehosteter Reiseplaner mit Echtzeit-Kollaboration, interaktiver Karte, OIDC Login und Dark Mode.', - selfHost: 'Open Source — ', - selfHostLink: 'selbst hosten', - close: 'Verstanden', - }, - en: { - titleBefore: 'Welcome to ', - titleAfter: '', - title: 'Welcome to the TREK Demo', - description: 'You can view, edit and create trips. All changes are automatically reset every hour.', - resetIn: 'Next reset in', - minutes: 'minutes', - uploadNote: 'File uploads (photos, documents, covers) are disabled in demo mode.', - fullVersionTitle: 'Additionally in the full version:', - features: [ - 'File uploads (photos, documents, covers)', - 'API key management (Google Maps, Weather)', - 'User & permission management', - 'Automatic backups', - 'Addon management (enable/disable)', - 'OIDC / SSO single sign-on', - ], - addonsTitle: 'Modular Addons (can be deactivated in full version)', - addons: [ - ['Vacay', 'Vacation planner with calendar, holidays & user fusion'], - ['Atlas', 'World map with visited countries & travel stats'], - ['Packing', 'Checklists per trip'], - ['Budget', 'Expense tracking with splitting'], - ['Documents', 'Attach files to trips'], - ['Widgets', 'Currency converter & timezones'], - ], - whatIs: 'What is TREK?', - whatIsDesc: - 'A self-hosted travel planner with real-time collaboration, interactive maps, OIDC login and dark mode.', - selfHost: 'Open source — ', - selfHostLink: 'self-host it', - close: 'Got it', - }, - et: { - titleBefore: 'Tere tulemast ', - titleAfter: 'i', - title: 'Tere tulemast TREKi demosse', - description: 'Saad reise vaadata, muuta ja luua. Kõik muudatused lähtestatakse automaatselt iga tunni järel.', - resetIn: 'Järgmise lähtestamiseni', - minutes: 'minutit', - uploadNote: 'Failide (fotode, dokumentide ja kaanepiltide) üleslaadimine on demorežiimis keelatud.', - fullVersionTitle: 'Täisversioonis lisaks:', - features: [ - 'Failide üleslaadimine (fotod, dokumendid, kaanepildid)', - 'API-võtmete haldus (Google Maps, ilm)', - 'Kasutajate ja õiguste haldus', - 'Automaatsed varukoopiad', - 'Lisamoodulite haldus (lubamine/keelamine)', - 'OIDC / SSO ühekordne sisselogimine', - ], - addonsTitle: 'Lisamoodulid (täisversioonis saab välja lülitada)', - addons: [ - ['Vacay', 'Puhkuseplaneerija kalendri, pühade ja kasutajate plaanide ühendamisega'], - ['Atlas', 'Maailmakaart külastatud riikide ja reisistatistikaga'], - ['Pakkimine', 'Iga reisi kontrollnimekirjad'], - ['Eelarve', 'Kulude jälgimine ja jagamine'], - ['Dokumendid', 'Lisa reisidele faile'], - ['Vidinad', 'Valuutakalkulaator ja ajavööndid'], - ], - whatIs: 'Mis on TREK?', - whatIsDesc: - 'Ise majutatav reisiplaneerija reaalajas koostöö, interaktiivsete kaartide, OIDC sisselogimise ja tumeda režiimiga.', - selfHost: 'Avatud lähtekood — ', - selfHostLink: 'majuta ise', - close: 'Selge', - }, - es: { - titleBefore: 'Bienvenido a ', - titleAfter: '', - title: 'Bienvenido a la demo de TREK', - description: 'Puedes ver, editar y crear viajes. Todos los cambios se restablecen automáticamente cada hora.', - resetIn: 'Próximo reinicio en', - minutes: 'minutos', - uploadNote: 'Las subidas de archivos (fotos, documentos, portadas) están desactivadas en el modo demo.', - fullVersionTitle: 'Además, en la versión completa:', - features: [ - 'Subida de archivos (fotos, documentos, portadas)', - 'Gestión de claves API (Google Maps, tiempo)', - 'Gestión de usuarios y permisos', - 'Copias de seguridad automáticas', - 'Gestión de addons (activar/desactivar)', - 'Inicio de sesión único OIDC / SSO', - ], - addonsTitle: 'Complementos modulares (se pueden desactivar en la versión completa)', - addons: [ - ['Vacaciones', 'Planificador de vacaciones con calendario, festivos y fusión de usuarios'], - ['Atlas', 'Mapa del mundo con países visitados y estadísticas de viaje'], - ['Equipaje', 'Listas de comprobación para cada viaje'], - ['Presupuesto', 'Control de gastos con reparto'], - ['Documentos', 'Adjunta archivos a los viajes'], - ['Widgets', 'Conversor de divisas y zonas horarias'], - ], - whatIs: '¿Qué es TREK?', - whatIsDesc: - 'Un planificador de viajes autohospedado con colaboración en tiempo real, mapas interactivos, inicio de sesión OIDC y modo oscuro.', - selfHost: 'Código abierto — ', - selfHostLink: 'alójalo tú mismo', - close: 'Entendido', - }, - zh: { - titleBefore: '欢迎来到 ', - titleAfter: '', - title: '欢迎来到 TREK 演示版', - description: '你可以查看、编辑和创建旅行。所有更改都会在每小时自动重置。', - resetIn: '下次重置将在', - minutes: '分钟后', - uploadNote: '演示模式下已禁用文件上传(照片、文档、封面)。', - fullVersionTitle: '完整版本还包括:', - features: [ - '文件上传(照片、文档、封面)', - 'API 密钥管理(Google Maps、天气)', - '用户和权限管理', - '自动备份', - '附加组件管理(启用/禁用)', - 'OIDC / SSO 单点登录', - ], - addonsTitle: '模块化附加组件(完整版本可禁用)', - addons: [ - ['Vacay', '带日历、节假日和用户融合的假期规划器'], - ['Atlas', '带已访问国家和旅行统计的世界地图'], - ['Packing', '按旅行管理清单'], - ['Budget', '支持分摊的费用追踪'], - ['Documents', '将文件附加到旅行'], - ['Widgets', '货币换算和时区工具'], - ], - whatIs: '什么是 TREK?', - whatIsDesc: '一个支持实时协作、交互式地图、OIDC 登录和深色模式的自托管旅行规划器。', - selfHost: '开源项目 - ', - selfHostLink: '自行部署', - close: '知道了', - }, - 'zh-TW': { - titleBefore: '歡迎來到 ', - titleAfter: '', - title: '歡迎來到 TREK 展示版', - description: '你可以檢視、編輯和建立行程。所有變更都會在每小時自動重設。', - resetIn: '下次重設將在', - minutes: '分鐘後', - uploadNote: '展示模式下已停用檔案上傳(照片、文件、封面)。', - fullVersionTitle: '完整版本還包含:', - features: [ - '檔案上傳(照片、文件、封面)', - 'API 金鑰管理(Google Maps、天氣)', - '使用者與權限管理', - '自動備份', - '附加元件管理(啟用/停用)', - 'OIDC / SSO 單一登入', - ], - addonsTitle: '模組化附加元件(完整版本可停用)', - addons: [ - ['Vacay', '具備日曆、假日與使用者融合的假期規劃器'], - ['Atlas', '顯示已造訪國家與旅行統計的世界地圖'], - ['Packing', '依行程管理的檢查清單'], - ['Budget', '支援分攤的費用追蹤'], - ['Documents', '將檔案附加到行程'], - ['Widgets', '貨幣換算與時區工具'], - ], - whatIs: 'TREK 是什麼?', - whatIsDesc: '一個支援即時協作、互動式地圖、OIDC 登入和深色模式的自架旅行規劃器。', - selfHost: '開源專案 - ', - selfHostLink: '自行架設', - close: '知道了', - }, - ar: { - titleBefore: 'مرحبًا بك في ', - titleAfter: '', - title: 'مرحبًا بك في النسخة التجريبية من TREK', - description: 'يمكنك عرض الرحلات وتعديلها وإنشاء رحلات جديدة. تتم إعادة ضبط جميع التغييرات تلقائيًا كل ساعة.', - resetIn: 'إعادة الضبط التالية خلال', - minutes: 'دقيقة', - uploadNote: 'رفع الملفات (الصور والمستندات وصور الغلاف) معطّل في وضع العرض التجريبي.', - fullVersionTitle: 'وفي النسخة الكاملة أيضًا:', - features: [ - 'رفع الملفات (الصور والمستندات وصور الغلاف)', - 'إدارة مفاتيح API (خرائط Google والطقس)', - 'إدارة المستخدمين والصلاحيات', - 'نسخ احتياطية تلقائية', - 'إدارة الإضافات (تفعيل/تعطيل)', - 'تسجيل دخول موحد OIDC / SSO', - ], - addonsTitle: 'إضافات مرنة (يمكن تعطيلها في النسخة الكاملة)', - addons: [ - ['Vacay', 'مخطط إجازات مع تقويم وعطل ودمج مستخدمين'], - ['Atlas', 'خريطة عالمية مع الدول التي تمت زيارتها وإحصاءات السفر'], - ['Packing', 'قوائم تجهيز لكل رحلة'], - ['Budget', 'تتبع المصروفات مع التقسيم'], - ['Documents', 'إرفاق الملفات بالرحلات'], - ['Widgets', 'محول عملات ومناطق زمنية'], - ], - whatIs: 'ما هو TREK؟', - whatIsDesc: 'مخطط رحلات مستضاف ذاتيًا مع تعاون لحظي وخرائط تفاعلية وتسجيل دخول OIDC ووضع داكن.', - selfHost: 'مفتوح المصدر — ', - selfHostLink: 'استضفه بنفسك', - close: 'فهمت', - }, - id: { - titleBefore: 'Selamat datang di ', - titleAfter: '', - title: 'Selamat datang di Demo TREK', - description: - 'Anda dapat melihat, mengedit, dan membuat perjalanan. Semua perubahan akan diatur ulang secara otomatis setiap jam.', - resetIn: 'Atur ulang berikutnya dalam', - minutes: 'menit', - uploadNote: 'Unggah file (foto, dokumen, sampul) dinonaktifkan dalam mode demo.', - fullVersionTitle: 'Selain itu dalam versi lengkap:', - features: [ - 'Unggah file (foto, dokumen, sampul)', - 'Manajemen kunci API (Google Maps, Cuaca)', - 'Manajemen pengguna & izin', - 'Pencadangan otomatis', - 'Manajemen Addon (aktifkan/nonaktifkan)', - 'OIDC / SSO single sign-on', - ], - addonsTitle: 'Addon Modular (dapat dinonaktifkan di versi lengkap)', - addons: [ - ['Vacay', 'Perencana liburan dengan kalender, hari libur & penggabungan pengguna'], - ['Atlas', 'Peta dunia dengan negara yang dikunjungi & statistik perjalanan'], - ['Pengepakan', 'Daftar periksa per perjalanan'], - ['Anggaran', 'Pelacakan pengeluaran dengan pemisahan tagihan'], - ['Dokumen', 'Lampirkan file ke perjalanan'], - ['Widget', 'Konverter mata uang & zona waktu'], - ], - whatIs: 'Apa itu TREK?', - whatIsDesc: - 'Perencana perjalanan yang di-host sendiri dengan kolaborasi real-time, peta interaktif, login OIDC, dan mode gelap.', - selfHost: 'Buka sumber — ', - selfHostLink: 'host mandiri', - close: 'Mengerti', - }, -}; - -const featureIcons = [Upload, Key, Users, Database, Puzzle, Shield]; -const addonIcons = [CalendarDays, Globe, ListChecks, Wallet, FileText, ArrowRightLeft]; - -export default function DemoBanner(): React.ReactElement | null { - const [dismissed, setDismissed] = useState(false); - const [minutesLeft, setMinutesLeft] = useState(59 - new Date().getMinutes()); - const { language } = useTranslation(); - const t = texts[language] || texts.en; - - useEffect(() => { - const interval = setInterval(() => setMinutesLeft(59 - new Date().getMinutes()), 10000); - return () => clearInterval(interval); - }, []); - - if (dismissed) return null; - - return ( -
setDismissed(true)} - onKeyDown={(e: React.KeyboardEvent) => { - if (e.target !== e.currentTarget) return; - if (e.key === 'Enter' || e.key === ' ') { - e.preventDefault(); - setDismissed(true); - } - }} - > -
) => e.stopPropagation()} - > - {/* Header */} -
- -

- {t.titleBefore} - TREK - {t.titleAfter} -

-
- -

- {t.description} -

- - {/* Timer + Upload note */} -
-
- - - {t.resetIn} {minutesLeft} {t.minutes} - -
-
- - - {t.uploadNote} - -
-
- - {/* What is TREK */} -
-
- - - {t.whatIs} - -
-

- {t.whatIsDesc} -

-
- - {/* Addons */} -

- - {t.addonsTitle} -

-
- {t.addons.map(([name, desc], i) => { - const Icon = addonIcons[i]; - return ( -
-
- - - {name} - -
-

- {desc} -

-
- ); - })} -
- - {/* Full version features */} -

- - {t.fullVersionTitle} -

-
- {t.features.map((text, i) => { - const Icon = featureIcons[i]; - return ( -
- - {text} -
- ); - })} -
- - {/* Footer */} -
-
- - {t.selfHost} - - {t.selfHostLink} - -
- -
-
-
- ); -} diff --git a/client/src/mobile/screens/dashboard/MDashboard.tsx b/client/src/mobile/screens/dashboard/MDashboard.tsx index c0b8e5e6e..bf9d7cf1f 100644 --- a/client/src/mobile/screens/dashboard/MDashboard.tsx +++ b/client/src/mobile/screens/dashboard/MDashboard.tsx @@ -14,7 +14,7 @@ import { useInAppNotificationStore } from '../../../store/inAppNotificationStore import { useDashboardPlugins } from '../../../components/Dashboard/useDashboardPlugins' import { useAssistantHomeLauncher } from '../../../components/Assistant/useAssistantHome' import type { TripCardBadge } from '../../../api/client' -import DemoBanner from '../../../components/Layout/DemoBanner' +import DemoWelcome from '../../../components/Demo/DemoWelcome' import { IcsSubscribeModal } from '../../../components/Planner/IcsSubscribeModal' import PluginWidgets from '../../../components/Plugins/PluginWidgets' import { entityGradient } from '../../../utils/gradients' @@ -247,7 +247,7 @@ export default function MDashboard(): React.ReactElement { setMenuOpen(false)} /> - {demoMode && } + {demoMode && }
{loadError && ( diff --git a/client/src/pages/DashboardPage.tsx b/client/src/pages/DashboardPage.tsx index 5eae7bf29..a7dc00e0d 100644 --- a/client/src/pages/DashboardPage.tsx +++ b/client/src/pages/DashboardPage.tsx @@ -1,7 +1,7 @@ import React from 'react' import { useTranslation } from '../i18n' import Navbar from '../components/Layout/Navbar' -import DemoBanner from '../components/Layout/DemoBanner' +import DemoWelcome from '../components/Demo/DemoWelcome' import TripFormModal from '../components/Trips/TripFormModal' import ConfirmDialog from '../components/shared/ConfirmDialog' import CopyTripDialog from '../components/shared/CopyTripDialog' @@ -138,7 +138,7 @@ function DashboardPageDesktop(): React.ReactElement {
- {demoMode && } + {demoMode && }
diff --git a/client/tests/unit/mobile/dashboard/MDashboard.test.tsx b/client/tests/unit/mobile/dashboard/MDashboard.test.tsx index 09ff77a74..b8a293235 100644 --- a/client/tests/unit/mobile/dashboard/MDashboard.test.tsx +++ b/client/tests/unit/mobile/dashboard/MDashboard.test.tsx @@ -173,11 +173,11 @@ describe('MDashboard', () => { expect(screen.queryByText('dashboard.emptyTitle')).not.toBeInTheDocument(); }); - it('FE-MOB-DASH-008: demo mode adds the banner', () => { + it('FE-MOB-DASH-008: demo mode opens the demo welcome', () => { mocks.dash = buildDash({ demoMode: true }); render(); - expect(screen.getByText(/demo/i)).toBeInTheDocument(); + expect(screen.getByRole('dialog')).toHaveTextContent('Welcome to TREK'); }); it('FE-MOB-DASH-009: unread notifications mark the bell and it opens the list', () => { diff --git a/shared/src/i18n/ar/demo.ts b/shared/src/i18n/ar/demo.ts new file mode 100644 index 000000000..23fe20636 --- /dev/null +++ b/shared/src/i18n/ar/demo.ts @@ -0,0 +1,57 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'عرض تجريبي مباشر', + 'demo.welcome.title': 'مرحبًا بك في TREK', + 'demo.welcome.tagline': + 'مخطط الرحلات الذي تتشاركه: خططوا معًا على الخريطة في الوقت الفعلي، من أول فكرة حتى ألبوم الصور بعد الرحلة.', + 'demo.welcome.resetTitle': 'يُعاد ضبط كل شيء كل ساعة', + 'demo.welcome.resetBody': + 'استكشف وعدّل وأنشئ كما تشاء. عند بداية كل ساعة يعود العرض التجريبي إلى حالته الأولى للزائر التالي.', + 'demo.welcome.resetIn': 'إعادة الضبط التالية بعد', + 'demo.welcome.tryTitle': 'جرّبه الآن', + 'demo.feature.planner.title': 'مخطط الرحلات', + 'demo.feature.planner.body': + 'الأيام والأماكن والمسارات على الخريطة، مع الرحلات الجوية والفنادق والمطاعم والحجوزات والتكاليف المشتركة.', + 'demo.feature.tours.title': 'الجولات والمشي', + 'demo.feature.tours.body': 'خطط لمسار مشي على شبكة الدروب وتابعه فوق تضاريس ثلاثية الأبعاد مع مخطط الارتفاع.', + 'demo.feature.studio.title': 'ألبومات الصور في TREK Studio', + 'demo.feature.studio.body': 'حوّل رحلتك إلى ألبوم صور مصمم، صفحة بعد صفحة.', + 'demo.feature.collab.title': 'خططوا معًا مباشرة', + 'demo.feature.collab.body': 'يرى كل من في الرحلة كل تغيير لحظة حدوثه، مع الدردشة والملاحظات والاستطلاعات.', + 'demo.feature.journey.title': 'مذكرات السفر Journey', + 'demo.feature.journey.body': 'تدوينات وصور ومزاج وإيجابيات وسلبيات لكل يوم على الطريق.', + 'demo.feature.atlas.title': 'خريطة العالم Atlas', + 'demo.feature.atlas.body': 'الدول والمناطق التي زرتها، مع إحصاءات سفرك.', + 'demo.feature.vacay.title': 'مخطط الإجازات Vacay', + 'demo.feature.vacay.body': 'خطط لأيام إجازتك حول العطل الرسمية واعرف متى يكون الجميع متفرغين.', + 'demo.feature.collections.title': 'المجموعات', + 'demo.feature.collections.body': 'احفظ أماكن من رحلات مختلفة في قوائمك الخاصة وانسخها إلى أي خطة.', + 'demo.feature.offline.title': 'يعمل دون اتصال', + 'demo.feature.offline.body': 'ثبّت TREK كتطبيق واحتفظ بخططك وخرائطك وقوائمك دون اتصال.', + 'demo.welcome.limitsTitle': 'غير متاح في العرض التجريبي', + 'demo.limit.uploads': 'رفع الصور والمستندات وصور الغلاف', + 'demo.limit.account': 'تغيير الحساب أو كلمة المرور أو 2FA', + 'demo.limit.apiKeys': 'إنشاء مفاتيح API', + 'demo.limit.mcp': 'ربط عملاء MCP', + 'demo.limit.ai': 'ربط نموذج ذكاء اصطناعي خاص بك', + 'demo.welcome.fullTitle': 'تضيف النسخة الكاملة', + 'demo.full.sso': 'تسجيل الدخول عبر OIDC و SSO', + 'demo.full.backups': 'نسخ احتياطية تلقائية', + 'demo.full.plugins': 'إضافات لميزات جديدة', + 'demo.full.assistant': 'مساعد الذكاء الاصطناعي بنموذجك الخاص', + 'demo.full.admin': 'لوحة إدارة للمستخدمين والإضافات والصلاحيات', + 'demo.welcome.repo': 'الشيفرة المصدرية على GitHub', + 'demo.welcome.start': 'ابدأ الاستكشاف', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'الوضع التجريبي', + 'demo.lock.apiKeys': 'لا يمكن إنشاء مفاتيح API في العرض التجريبي.', + 'demo.lock.mcp': 'لا يمكن ربط عملاء MCP في العرض التجريبي.', + 'demo.lock.ai': 'لا يمكن إضافة اتصال ذكاء اصطناعي خاص بك في العرض التجريبي.', + 'demo.lock.aiTitle': 'اربط نموذج ذكاء اصطناعي خاصًا بك', + 'demo.lock.account': 'لا يمكن تغيير حساب العرض التجريبي المشترك.', + 'demo.lock.language': 'يعمل العرض التجريبي دائمًا بالإنجليزية.', +}; + +export default demo; diff --git a/shared/src/i18n/ar/index.ts b/shared/src/i18n/ar/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/ar/index.ts +++ b/shared/src/i18n/ar/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/az/demo.ts b/shared/src/i18n/az/demo.ts new file mode 100644 index 000000000..0693e5a58 --- /dev/null +++ b/shared/src/i18n/az/demo.ts @@ -0,0 +1,59 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Canlı demo', + 'demo.welcome.title': 'TREK-ə xoş gəlmisiniz', + 'demo.welcome.tagline': + 'Paylaşılan səyahət planlayıcısı: xəritədə real vaxtda birlikdə planlayın, ilk ideyadan səfərdən sonrakı foto kitaba qədər.', + 'demo.welcome.resetTitle': 'Hər saat hər şey sıfırlanır', + 'demo.welcome.resetBody': + 'İstədiyiniz qədər baxın, redaktə edin və yaradın. Hər tam saatda demo növbəti ziyarətçi üçün ilkin vəziyyətinə qayıdır.', + 'demo.welcome.resetIn': 'Növbəti sıfırlamaya qalıb', + 'demo.welcome.tryTitle': 'İndi sınayın', + 'demo.feature.planner.title': 'Səyahət planlayıcısı', + 'demo.feature.planner.body': + 'Xəritədə günlər, yerlər və marşrutlar; uçuşlar, otellər, restoranlar, rezervasiyalar və ortaq xərclərlə.', + 'demo.feature.tours.title': 'Turlar və gəzintilər', + 'demo.feature.tours.body': 'Cığır şəbəkəsində gəzinti planlayın və hündürlük profili ilə 3D relyefdə izləyin.', + 'demo.feature.studio.title': 'TREK Studio ilə foto kitablar', + 'demo.feature.studio.body': 'Səyahəti səhifə səhifə tərtib olunmuş foto kitaba çevirin.', + 'demo.feature.collab.title': 'Canlı birlikdə planlayın', + 'demo.feature.collab.body': 'Səfərdəki hər kəs hər dəyişikliyi dərhal görür; söhbət, qeydlər və sorğularla.', + 'demo.feature.journey.title': 'Journey səyahət gündəliyi', + 'demo.feature.journey.body': 'Yolda keçən hər gün üçün qeydlər, fotolar, əhval, üstünlüklər və çatışmazlıqlar.', + 'demo.feature.atlas.title': 'Atlas dünya xəritəsi', + 'demo.feature.atlas.body': 'Səyahət statistikanızla birlikdə ziyarət etdiyiniz ölkələr və bölgələr.', + 'demo.feature.vacay.title': 'Vacay məzuniyyət planlayıcısı', + 'demo.feature.vacay.body': 'İstirahət günlərinizi bayramlara görə planlayın və hamının nə vaxt boş olduğunu görün.', + 'demo.feature.collections.title': 'Kolleksiyalar', + 'demo.feature.collections.body': + 'Müxtəlif səfərlərdən yerləri öz siyahılarınıza yadda saxlayın və istənilən plana köçürün.', + 'demo.feature.offline.title': 'Oflayn işləyir', + 'demo.feature.offline.body': + 'TREK-i tətbiq kimi quraşdırın; planlar, xəritələr və siyahılar bağlantı olmadan da əlinizdə olsun.', + 'demo.welcome.limitsTitle': 'Demoya daxil deyil', + 'demo.limit.uploads': 'Foto, sənəd və üz qabığı yükləmək', + 'demo.limit.account': 'Hesabı, parolu və ya 2FA ayarını dəyişmək', + 'demo.limit.apiKeys': 'API açarları yaratmaq', + 'demo.limit.mcp': 'MCP müştərilərini qoşmaq', + 'demo.limit.ai': 'Öz süni intellekt modelinizi qoşmaq', + 'demo.welcome.fullTitle': 'Tam versiyada əlavə olaraq', + 'demo.full.sso': 'OIDC və SSO ilə giriş', + 'demo.full.backups': 'Avtomatik ehtiyat nüsxələr', + 'demo.full.plugins': 'Yeni imkanlar üçün plaginlər', + 'demo.full.assistant': 'Öz modelinizlə süni intellekt köməkçisi', + 'demo.full.admin': 'İstifadəçilər, əlavələr və icazələr üçün idarəetmə paneli', + 'demo.welcome.repo': 'GitHub-da mənbə kodu', + 'demo.welcome.start': 'Kəşf etməyə başlayın', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Demo rejimi', + 'demo.lock.apiKeys': 'Demoda API açarları yaratmaq olmur.', + 'demo.lock.mcp': 'Demoda MCP müştərilərini qoşmaq olmur.', + 'demo.lock.ai': 'Demoda öz süni intellekt bağlantınızı əlavə etmək olmur.', + 'demo.lock.aiTitle': 'Öz süni intellekt modelinizi qoşun', + 'demo.lock.account': 'Ortaq demo hesabı dəyişdirilə bilməz.', + 'demo.lock.language': 'Demo həmişə ingilis dilində işləyir.', +}; + +export default demo; diff --git a/shared/src/i18n/az/index.ts b/shared/src/i18n/az/index.ts index 8957a5b20..7c371269a 100644 --- a/shared/src/i18n/az/index.ts +++ b/shared/src/i18n/az/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/br/demo.ts b/shared/src/i18n/br/demo.ts new file mode 100644 index 000000000..243d843f2 --- /dev/null +++ b/shared/src/i18n/br/demo.ts @@ -0,0 +1,58 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Demo ao vivo', + 'demo.welcome.title': 'Boas vindas ao TREK', + 'demo.welcome.tagline': + 'O planejador de viagens para compartilhar: planejem juntos no mapa em tempo real, da primeira ideia ao fotolivro depois da viagem.', + 'demo.welcome.resetTitle': 'Tudo é redefinido a cada hora', + 'demo.welcome.resetBody': + 'Explore, edite e crie o quanto quiser. A cada hora cheia a demo volta ao estado inicial para o próximo visitante.', + 'demo.welcome.resetIn': 'Próxima redefinição em', + 'demo.welcome.tryTitle': 'Experimente agora mesmo', + 'demo.feature.planner.title': 'Planejador de viagens', + 'demo.feature.planner.body': + 'Dias, lugares e rotas no mapa, com voos, hotéis, restaurantes, reservas e custos divididos.', + 'demo.feature.tours.title': 'Passeios e trilhas', + 'demo.feature.tours.body': + 'Planeje uma trilha na rede de caminhos e siga a rota sobre o relevo em 3D com o perfil de altitude.', + 'demo.feature.studio.title': 'Fotolivros com o TREK Studio', + 'demo.feature.studio.body': 'Transforme uma viagem em um fotolivro diagramado, página por página.', + 'demo.feature.collab.title': 'Planejar juntos ao vivo', + 'demo.feature.collab.body': 'Todos na viagem veem cada mudança na hora, com chat, notas e enquetes.', + 'demo.feature.journey.title': 'Diário de viagem Journey', + 'demo.feature.journey.body': 'Registros, fotos, humores, prós e contras de cada dia na estrada.', + 'demo.feature.atlas.title': 'Mapa mundi Atlas', + 'demo.feature.atlas.body': 'Os países e regiões que você visitou, com suas estatísticas de viagem.', + 'demo.feature.vacay.title': 'Planejador de férias Vacay', + 'demo.feature.vacay.body': 'Planeje suas folgas em torno dos feriados e veja quando todos estão livres.', + 'demo.feature.collections.title': 'Coleções', + 'demo.feature.collections.body': 'Salve lugares de várias viagens em listas suas e copie para qualquer plano.', + 'demo.feature.offline.title': 'Funciona offline', + 'demo.feature.offline.body': 'Instale o TREK como app e mantenha planos, mapas e listas sem conexão.', + 'demo.welcome.limitsTitle': 'Fora da demo', + 'demo.limit.uploads': 'Enviar fotos, documentos e capas', + 'demo.limit.account': 'Alterar a conta, a senha ou a 2FA', + 'demo.limit.apiKeys': 'Criar chaves de API', + 'demo.limit.mcp': 'Conectar clientes MCP', + 'demo.limit.ai': 'Conectar seu próprio modelo de IA', + 'demo.welcome.fullTitle': 'A versão completa inclui', + 'demo.full.sso': 'Login com OIDC e SSO', + 'demo.full.backups': 'Backups automáticos', + 'demo.full.plugins': 'Plugins para novos recursos', + 'demo.full.assistant': 'O assistente de IA com seu próprio modelo', + 'demo.full.admin': 'Um painel de administração para usuários, complementos e permissões', + 'demo.welcome.repo': 'Código fonte no GitHub', + 'demo.welcome.start': 'Começar a explorar', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Modo demonstração', + 'demo.lock.apiKeys': 'Não é possível criar chaves de API na demo.', + 'demo.lock.mcp': 'Não é possível conectar clientes MCP na demo.', + 'demo.lock.ai': 'Não é possível adicionar uma conexão de IA própria na demo.', + 'demo.lock.aiTitle': 'Conectar seu próprio modelo de IA', + 'demo.lock.account': 'A conta de demonstração compartilhada não pode ser alterada.', + 'demo.lock.language': 'A demo sempre funciona em inglês.', +}; + +export default demo; diff --git a/shared/src/i18n/br/index.ts b/shared/src/i18n/br/index.ts index c2cd1e959..af63b0baa 100644 --- a/shared/src/i18n/br/index.ts +++ b/shared/src/i18n/br/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...collab, ...memories, ...perm, diff --git a/shared/src/i18n/ca/demo.ts b/shared/src/i18n/ca/demo.ts new file mode 100644 index 000000000..d2571caef --- /dev/null +++ b/shared/src/i18n/ca/demo.ts @@ -0,0 +1,58 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Demo en directe', + 'demo.welcome.title': 'Benvingut a TREK', + 'demo.welcome.tagline': + 'El planificador de viatges per compartir: planifiqueu junts al mapa en temps real, des de la primera idea fins al fotollibre després del viatge.', + 'demo.welcome.resetTitle': 'Tot es restableix cada hora', + 'demo.welcome.resetBody': + 'Explora, edita i crea tant com vulguis. A cada hora en punt la demo torna al seu estat inicial per al visitant següent.', + 'demo.welcome.resetIn': 'Proper restabliment en', + 'demo.welcome.tryTitle': 'Prova-ho ara mateix', + 'demo.feature.planner.title': 'Planificador de viatges', + 'demo.feature.planner.body': + 'Dies, llocs i rutes al mapa, amb vols, hotels, restaurants, reserves i despeses compartides.', + 'demo.feature.tours.title': 'Rutes i excursions', + 'demo.feature.tours.body': + 'Planifica una excursió per la xarxa de camins i segueix-la sobre el relleu 3D amb el perfil d’altitud.', + 'demo.feature.studio.title': 'Fotollibres amb TREK Studio', + 'demo.feature.studio.body': 'Converteix un viatge en un fotollibre dissenyat, pàgina a pàgina.', + 'demo.feature.collab.title': 'Planificar junts en directe', + 'demo.feature.collab.body': 'Tothom al viatge veu cada canvi a l’instant, amb xat, notes i enquestes.', + 'demo.feature.journey.title': 'Diari de viatge Journey', + 'demo.feature.journey.body': 'Entrades, fotos, estats d’ànim, pros i contres de cada dia de viatge.', + 'demo.feature.atlas.title': 'Mapa del món Atlas', + 'demo.feature.atlas.body': 'Els països i les regions que has visitat, amb les teves estadístiques de viatge.', + 'demo.feature.vacay.title': 'Planificador de vacances Vacay', + 'demo.feature.vacay.body': 'Planifica els dies lliures al voltant dels festius i mira quan està lliure tothom.', + 'demo.feature.collections.title': 'Col·leccions', + 'demo.feature.collections.body': 'Desa llocs de diferents viatges en llistes pròpies i copia’ls a qualsevol pla.', + 'demo.feature.offline.title': 'Funciona sense connexió', + 'demo.feature.offline.body': 'Instal·la TREK com a app i conserva plans, mapes i llistes sense connexió.', + 'demo.welcome.limitsTitle': 'Fora de la demo', + 'demo.limit.uploads': 'Pujar fotos, documents i portades', + 'demo.limit.account': 'Canviar el compte, la contrasenya o la 2FA', + 'demo.limit.apiKeys': 'Crear claus d’API', + 'demo.limit.mcp': 'Connectar clients MCP', + 'demo.limit.ai': 'Connectar el teu propi model d’IA', + 'demo.welcome.fullTitle': 'La versió completa afegeix', + 'demo.full.sso': 'Inici de sessió amb OIDC i SSO', + 'demo.full.backups': 'Còpies de seguretat automàtiques', + 'demo.full.plugins': 'Connectors per a funcions noves', + 'demo.full.assistant': 'L’assistent d’IA amb el teu propi model', + 'demo.full.admin': 'Un tauler d’administració per a usuaris, complements i permisos', + 'demo.welcome.repo': 'Codi font a GitHub', + 'demo.welcome.start': 'Comença a explorar', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Mode demo', + 'demo.lock.apiKeys': 'A la demo no es poden crear claus d’API.', + 'demo.lock.mcp': 'A la demo no es poden connectar clients MCP.', + 'demo.lock.ai': 'A la demo no es pot afegir una connexió d’IA pròpia.', + 'demo.lock.aiTitle': 'Connecta el teu propi model d’IA', + 'demo.lock.account': 'El compte de demo compartit no es pot modificar.', + 'demo.lock.language': 'La demo sempre funciona en anglès.', +}; + +export default demo; diff --git a/shared/src/i18n/ca/index.ts b/shared/src/i18n/ca/index.ts index 192a9c1b7..f79d7f19d 100644 --- a/shared/src/i18n/ca/index.ts +++ b/shared/src/i18n/ca/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -117,6 +118,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...airport, diff --git a/shared/src/i18n/cs/demo.ts b/shared/src/i18n/cs/demo.ts new file mode 100644 index 000000000..0ec475cb6 --- /dev/null +++ b/shared/src/i18n/cs/demo.ts @@ -0,0 +1,58 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Živé demo', + 'demo.welcome.title': 'Vítejte v TREK', + 'demo.welcome.tagline': + 'Plánovač cest ke sdílení: plánujte spolu na mapě v reálném čase, od prvního nápadu až po fotoknihu po cestě.', + 'demo.welcome.resetTitle': 'Každou hodinu se vše obnoví', + 'demo.welcome.resetBody': + 'Prohlížejte, upravujte a vytvářejte, co chcete. Každou celou hodinu se demo vrátí do výchozího stavu pro dalšího návštěvníka.', + 'demo.welcome.resetIn': 'Další obnovení za', + 'demo.welcome.tryTitle': 'Vyzkoušejte hned', + 'demo.feature.planner.title': 'Plánovač cest', + 'demo.feature.planner.body': + 'Dny, místa a trasy na mapě, s lety, hotely, restauracemi, rezervacemi a sdílenými náklady.', + 'demo.feature.tours.title': 'Túry a výlety', + 'demo.feature.tours.body': 'Naplánujte túru po síti stezek a sledujte ji nad 3D terénem s výškovým profilem.', + 'demo.feature.studio.title': 'Fotoknihy v TREK Studio', + 'demo.feature.studio.body': 'Proměňte cestu stránku po stránce v navrženou fotoknihu.', + 'demo.feature.collab.title': 'Plánování spolu naživo', + 'demo.feature.collab.body': 'Všichni v cestě vidí každou změnu okamžitě, s chatem, poznámkami a anketami.', + 'demo.feature.journey.title': 'Cestovní deník Journey', + 'demo.feature.journey.body': 'Zápisy, fotky, nálady, klady a zápory každého dne na cestě.', + 'demo.feature.atlas.title': 'Mapa světa Atlas', + 'demo.feature.atlas.body': 'Země a regiony, které jste navštívili, s vaší cestovní statistikou.', + 'demo.feature.vacay.title': 'Plánovač dovolené Vacay', + 'demo.feature.vacay.body': 'Plánujte volno kolem svátků a uvidíte, kdy mají všichni čas.', + 'demo.feature.collections.title': 'Kolekce', + 'demo.feature.collections.body': + 'Ukládejte místa z různých cest do vlastních seznamů a kopírujte je do libovolného plánu.', + 'demo.feature.offline.title': 'Funguje offline', + 'demo.feature.offline.body': 'Nainstalujte si TREK jako aplikaci a mějte plány, mapy a seznamy i bez připojení.', + 'demo.welcome.limitsTitle': 'Není součástí dema', + 'demo.limit.uploads': 'Nahrávání fotek, dokumentů a obálek', + 'demo.limit.account': 'Změna účtu, hesla nebo 2FA', + 'demo.limit.apiKeys': 'Vytváření klíčů API', + 'demo.limit.mcp': 'Připojení klientů MCP', + 'demo.limit.ai': 'Připojení vlastního modelu AI', + 'demo.welcome.fullTitle': 'Plná verze navíc nabízí', + 'demo.full.sso': 'Přihlášení přes OIDC a SSO', + 'demo.full.backups': 'Automatické zálohy', + 'demo.full.plugins': 'Pluginy pro nové funkce', + 'demo.full.assistant': 'Asistenta AI s vlastním modelem', + 'demo.full.admin': 'Administraci uživatelů, doplňků a oprávnění', + 'demo.welcome.repo': 'Zdrojový kód na GitHubu', + 'demo.welcome.start': 'Začít objevovat', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Režim dema', + 'demo.lock.apiKeys': 'V demu nelze vytvářet klíče API.', + 'demo.lock.mcp': 'V demu nelze připojit klienty MCP.', + 'demo.lock.ai': 'V demu nelze přidat vlastní připojení AI.', + 'demo.lock.aiTitle': 'Připojit vlastní model AI', + 'demo.lock.account': 'Sdílený demo účet nelze změnit.', + 'demo.lock.language': 'Demo běží vždy v angličtině.', +}; + +export default demo; diff --git a/shared/src/i18n/cs/index.ts b/shared/src/i18n/cs/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/cs/index.ts +++ b/shared/src/i18n/cs/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/de/demo.ts b/shared/src/i18n/de/demo.ts new file mode 100644 index 000000000..6df6d1860 --- /dev/null +++ b/shared/src/i18n/de/demo.ts @@ -0,0 +1,58 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Demo zum Ausprobieren', + 'demo.welcome.title': 'Willkommen bei TREK', + 'demo.welcome.tagline': + 'Der Reiseplaner zum Teilen: gemeinsam und in Echtzeit auf der Karte planen, von der ersten Idee bis zum Fotobuch nach der Reise.', + 'demo.welcome.resetTitle': 'Jede Stunde wird alles zurückgesetzt', + 'demo.welcome.resetBody': + 'Schau dich um, bearbeite und erstelle so viel du willst. Zur vollen Stunde kehrt die Demo für die nächsten Besucher in ihren Ausgangszustand zurück.', + 'demo.welcome.resetIn': 'Nächster Reset in', + 'demo.welcome.tryTitle': 'Gleich ausprobieren', + 'demo.feature.planner.title': 'Reiseplaner', + 'demo.feature.planner.body': + 'Tage, Orte und Routen auf der Karte, mit Flügen, Hotels, Restaurants, Buchungen und geteilten Kosten.', + 'demo.feature.tours.title': 'Touren und Wanderungen', + 'demo.feature.tours.body': 'Plane eine Wanderung auf dem Wegenetz und folge ihr über 3D-Gelände mit Höhenprofil.', + 'demo.feature.studio.title': 'Fotobücher mit TREK Studio', + 'demo.feature.studio.body': 'Mach aus einer Reise Seite für Seite ein gestaltetes Fotobuch.', + 'demo.feature.collab.title': 'Live gemeinsam planen', + 'demo.feature.collab.body': 'Alle in der Reise sehen jede Änderung sofort, mit Chat, Notizen und Umfragen.', + 'demo.feature.journey.title': 'Reisetagebuch Journey', + 'demo.feature.journey.body': 'Einträge, Fotos, Stimmungen, Pro und Contra für jeden Tag unterwegs.', + 'demo.feature.atlas.title': 'Weltkarte Atlas', + 'demo.feature.atlas.body': 'Die Länder und Regionen, in denen du warst, mit deiner Reisestatistik.', + 'demo.feature.vacay.title': 'Urlaubsplaner Vacay', + 'demo.feature.vacay.body': 'Plane freie Tage rund um Feiertage und sieh, wann alle Zeit haben.', + 'demo.feature.collections.title': 'Sammlungen', + 'demo.feature.collections.body': + 'Speichere Orte über Reisen hinweg in eigenen Listen und übernimm sie in jeden Plan.', + 'demo.feature.offline.title': 'Funktioniert offline', + 'demo.feature.offline.body': 'Installiere TREK als App und behalte Pläne, Karten und Listen auch ohne Verbindung.', + 'demo.welcome.limitsTitle': 'Nicht Teil der Demo', + 'demo.limit.uploads': 'Fotos, Dokumente und Titelbilder hochladen', + 'demo.limit.account': 'Konto, Passwort oder 2FA ändern', + 'demo.limit.apiKeys': 'API-Schlüssel erstellen', + 'demo.limit.mcp': 'MCP-Clients verbinden', + 'demo.limit.ai': 'Ein eigenes KI-Modell verbinden', + 'demo.welcome.fullTitle': 'Die Vollversion bietet zusätzlich', + 'demo.full.sso': 'Anmeldung mit OIDC und SSO', + 'demo.full.backups': 'Automatische Backups', + 'demo.full.plugins': 'Plugins für neue Funktionen', + 'demo.full.assistant': 'Den KI-Assistenten mit deinem eigenen Modell', + 'demo.full.admin': 'Einen Adminbereich für Nutzer, Addons und Berechtigungen', + 'demo.welcome.repo': 'Quellcode auf GitHub', + 'demo.welcome.start': 'Los geht’s', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Demomodus', + 'demo.lock.apiKeys': 'In der Demo lassen sich keine API-Schlüssel erstellen.', + 'demo.lock.mcp': 'In der Demo lassen sich keine MCP-Clients verbinden.', + 'demo.lock.ai': 'In der Demo lässt sich keine eigene KI-Verbindung hinzufügen.', + 'demo.lock.aiTitle': 'Eigenes KI-Modell verbinden', + 'demo.lock.account': 'Das gemeinsame Demokonto lässt sich nicht ändern.', + 'demo.lock.language': 'Die Demo läuft immer auf Englisch.', +}; + +export default demo; diff --git a/shared/src/i18n/de/index.ts b/shared/src/i18n/de/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/de/index.ts +++ b/shared/src/i18n/de/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/en/demo.ts b/shared/src/i18n/en/demo.ts new file mode 100644 index 000000000..1b1efa0c5 --- /dev/null +++ b/shared/src/i18n/en/demo.ts @@ -0,0 +1,59 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Live demo', + 'demo.welcome.title': 'Welcome to TREK', + 'demo.welcome.tagline': + 'The travel planner you share: plan together on the map in real time, from the first idea to the photo book after the trip.', + 'demo.welcome.resetTitle': 'Everything resets every hour', + 'demo.welcome.resetBody': + 'Explore, edit and create as much as you like. On the hour the demo returns to its starting state for the next visitor.', + 'demo.welcome.resetIn': 'Next reset in', + 'demo.welcome.tryTitle': 'Try it right now', + 'demo.feature.planner.title': 'Trip planner', + 'demo.feature.planner.body': + 'Days, places and routes on the map, with flights, hotels, restaurants, bookings and shared costs.', + 'demo.feature.tours.title': 'Tours and hikes', + 'demo.feature.tours.body': + 'Plan a hike along the trail network and follow it over 3D terrain with its elevation profile.', + 'demo.feature.studio.title': 'Photo books in TREK Studio', + 'demo.feature.studio.body': 'Turn a journey into a designed photo book, page by page.', + 'demo.feature.collab.title': 'Plan together live', + 'demo.feature.collab.body': + 'Everyone on the trip sees each change the moment it happens, with chat, notes and polls.', + 'demo.feature.journey.title': 'Journey travel journal', + 'demo.feature.journey.body': 'Entries, photos, moods, pros and cons for every day on the road.', + 'demo.feature.atlas.title': 'Atlas world map', + 'demo.feature.atlas.body': 'The countries and regions you have visited, with your travel statistics.', + 'demo.feature.vacay.title': 'Vacay holiday planner', + 'demo.feature.vacay.body': 'Plan your days off around public holidays and see when everyone is free.', + 'demo.feature.collections.title': 'Collections', + 'demo.feature.collections.body': 'Save places across trips in lists of your own and copy them into any plan.', + 'demo.feature.offline.title': 'Works offline', + 'demo.feature.offline.body': 'Install TREK as an app and keep your plans, maps and lists without a connection.', + 'demo.welcome.limitsTitle': 'Not part of the demo', + 'demo.limit.uploads': 'Uploading photos, documents and covers', + 'demo.limit.account': 'Changing the account, its password or 2FA', + 'demo.limit.apiKeys': 'Creating API keys', + 'demo.limit.mcp': 'Connecting MCP clients', + 'demo.limit.ai': 'Connecting your own AI model', + 'demo.welcome.fullTitle': 'The full version adds', + 'demo.full.sso': 'Sign in with OIDC and SSO', + 'demo.full.backups': 'Automatic backups', + 'demo.full.plugins': 'Plugins for new features', + 'demo.full.assistant': 'The AI assistant on your own model', + 'demo.full.admin': 'An admin panel for users, addons and permissions', + 'demo.welcome.repo': 'Source code on GitHub', + 'demo.welcome.start': 'Start exploring', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Demo mode', + 'demo.lock.apiKeys': 'API keys cannot be created in the demo.', + 'demo.lock.mcp': 'MCP clients cannot be connected in the demo.', + 'demo.lock.ai': 'Your own AI connection cannot be added in the demo.', + 'demo.lock.aiTitle': 'Connect your own AI model', + 'demo.lock.account': 'The shared demo account cannot be changed.', + 'demo.lock.language': 'The demo always runs in English.', +}; + +export default demo; diff --git a/shared/src/i18n/en/index.ts b/shared/src/i18n/en/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/en/index.ts +++ b/shared/src/i18n/en/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/es/demo.ts b/shared/src/i18n/es/demo.ts new file mode 100644 index 000000000..75fe45c5b --- /dev/null +++ b/shared/src/i18n/es/demo.ts @@ -0,0 +1,59 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Demo en vivo', + 'demo.welcome.title': 'Bienvenido a TREK', + 'demo.welcome.tagline': + 'El planificador de viajes para compartir: planificad juntos en el mapa en tiempo real, desde la primera idea hasta el fotolibro después del viaje.', + 'demo.welcome.resetTitle': 'Todo se restablece cada hora', + 'demo.welcome.resetBody': + 'Explora, edita y crea todo lo que quieras. A cada hora en punto la demo vuelve a su estado inicial para el siguiente visitante.', + 'demo.welcome.resetIn': 'Próximo restablecimiento en', + 'demo.welcome.tryTitle': 'Pruébalo ahora mismo', + 'demo.feature.planner.title': 'Planificador de viajes', + 'demo.feature.planner.body': + 'Días, lugares y rutas en el mapa, con vuelos, hoteles, restaurantes, reservas y gastos compartidos.', + 'demo.feature.tours.title': 'Rutas y senderismo', + 'demo.feature.tours.body': + 'Planifica una ruta por la red de senderos y síguela sobre relieve 3D con su perfil de altitud.', + 'demo.feature.studio.title': 'Fotolibros con TREK Studio', + 'demo.feature.studio.body': 'Convierte un viaje en un fotolibro diseñado, página a página.', + 'demo.feature.collab.title': 'Planificar juntos en directo', + 'demo.feature.collab.body': 'Todos en el viaje ven cada cambio al instante, con chat, notas y encuestas.', + 'demo.feature.journey.title': 'Diario de viaje Journey', + 'demo.feature.journey.body': 'Entradas, fotos, estados de ánimo, pros y contras de cada día de viaje.', + 'demo.feature.atlas.title': 'Mapa mundial Atlas', + 'demo.feature.atlas.body': 'Los países y regiones que has visitado, con tus estadísticas de viaje.', + 'demo.feature.vacay.title': 'Planificador de vacaciones Vacay', + 'demo.feature.vacay.body': 'Planifica tus días libres en torno a los festivos y mira cuándo están todos libres.', + 'demo.feature.collections.title': 'Colecciones', + 'demo.feature.collections.body': + 'Guarda lugares de distintos viajes en tus propias listas y cópialos a cualquier plan.', + 'demo.feature.offline.title': 'Funciona sin conexión', + 'demo.feature.offline.body': 'Instala TREK como app y conserva tus planes, mapas y listas sin conexión.', + 'demo.welcome.limitsTitle': 'Fuera de la demo', + 'demo.limit.uploads': 'Subir fotos, documentos y portadas', + 'demo.limit.account': 'Cambiar la cuenta, su contraseña o la 2FA', + 'demo.limit.apiKeys': 'Crear claves API', + 'demo.limit.mcp': 'Conectar clientes MCP', + 'demo.limit.ai': 'Conectar tu propio modelo de IA', + 'demo.welcome.fullTitle': 'La versión completa añade', + 'demo.full.sso': 'Inicio de sesión con OIDC y SSO', + 'demo.full.backups': 'Copias de seguridad automáticas', + 'demo.full.plugins': 'Plugins para nuevas funciones', + 'demo.full.assistant': 'El asistente de IA con tu propio modelo', + 'demo.full.admin': 'Un panel de administración para usuarios, complementos y permisos', + 'demo.welcome.repo': 'Código fuente en GitHub', + 'demo.welcome.start': 'Empezar a explorar', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Modo demo', + 'demo.lock.apiKeys': 'En la demo no se pueden crear claves API.', + 'demo.lock.mcp': 'En la demo no se pueden conectar clientes MCP.', + 'demo.lock.ai': 'En la demo no se puede añadir una conexión de IA propia.', + 'demo.lock.aiTitle': 'Conectar tu propio modelo de IA', + 'demo.lock.account': 'La cuenta de demo compartida no se puede modificar.', + 'demo.lock.language': 'La demo siempre funciona en inglés.', +}; + +export default demo; diff --git a/shared/src/i18n/es/index.ts b/shared/src/i18n/es/index.ts index f436815e5..fde5d8e5b 100644 --- a/shared/src/i18n/es/index.ts +++ b/shared/src/i18n/es/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -116,6 +117,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...airport, diff --git a/shared/src/i18n/et/demo.ts b/shared/src/i18n/et/demo.ts new file mode 100644 index 000000000..f54f4f0f2 --- /dev/null +++ b/shared/src/i18n/et/demo.ts @@ -0,0 +1,58 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Otsedemo', + 'demo.welcome.title': 'Tere tulemast TREKi', + 'demo.welcome.tagline': + 'Jagatav reisiplaneerija: planeerige koos kaardil reaalajas, esimesest ideest reisijärgse fotoraamatuni.', + 'demo.welcome.resetTitle': 'Iga tund lähtestatakse kõik', + 'demo.welcome.resetBody': + 'Uudista, muuda ja loo nii palju kui soovid. Iga täistunni järel naaseb demo järgmise külastaja jaoks algolekusse.', + 'demo.welcome.resetIn': 'Järgmine lähtestamine', + 'demo.welcome.tryTitle': 'Proovi kohe', + 'demo.feature.planner.title': 'Reisiplaneerija', + 'demo.feature.planner.body': + 'Päevad, kohad ja marsruudid kaardil, koos lendude, hotellide, restoranide, broneeringute ja jagatud kuludega.', + 'demo.feature.tours.title': 'Matkad ja retked', + 'demo.feature.tours.body': 'Planeeri matk radade võrgustikus ja jälgi seda 3D maastikul koos kõrgusprofiiliga.', + 'demo.feature.studio.title': 'Fotoraamatud TREK Studios', + 'demo.feature.studio.body': 'Muuda reis lehekülg lehekülje haaval kujundatud fotoraamatuks.', + 'demo.feature.collab.title': 'Planeerige koos otse', + 'demo.feature.collab.body': 'Kõik reisil näevad iga muudatust kohe, koos vestluse, märkmete ja küsitlustega.', + 'demo.feature.journey.title': 'Reisipäevik Journey', + 'demo.feature.journey.body': 'Sissekanded, fotod, meeleolud, plussid ja miinused igast reisipäevast.', + 'demo.feature.atlas.title': 'Maailmakaart Atlas', + 'demo.feature.atlas.body': 'Riigid ja piirkonnad, kus oled käinud, koos sinu reisistatistikaga.', + 'demo.feature.vacay.title': 'Puhkuseplaneerija Vacay', + 'demo.feature.vacay.body': 'Planeeri vabu päevi pühade ümber ja vaata, millal kõigil aega on.', + 'demo.feature.collections.title': 'Kogumikud', + 'demo.feature.collections.body': 'Salvesta kohti eri reisidelt oma nimekirjadesse ja kopeeri need mis tahes plaani.', + 'demo.feature.offline.title': 'Töötab võrguta', + 'demo.feature.offline.body': + 'Paigalda TREK rakendusena ja hoia plaanid, kaardid ja nimekirjad käepärast ka ilma ühenduseta.', + 'demo.welcome.limitsTitle': 'Demos puudub', + 'demo.limit.uploads': 'Fotode, dokumentide ja kaanepiltide üleslaadimine', + 'demo.limit.account': 'Konto, parooli või 2FA muutmine', + 'demo.limit.apiKeys': 'API-võtmete loomine', + 'demo.limit.mcp': 'MCP-klientide ühendamine', + 'demo.limit.ai': 'Oma AI-mudeli ühendamine', + 'demo.welcome.fullTitle': 'Täisversioonis lisaks', + 'demo.full.sso': 'Sisselogimine OIDC ja SSO abil', + 'demo.full.backups': 'Automaatsed varukoopiad', + 'demo.full.plugins': 'Pistikprogrammid uute funktsioonide jaoks', + 'demo.full.assistant': 'AI-assistent sinu oma mudeliga', + 'demo.full.admin': 'Halduspaneel kasutajate, lisamoodulite ja õiguste jaoks', + 'demo.welcome.repo': 'Lähtekood GitHubis', + 'demo.welcome.start': 'Alusta avastamist', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Demorežiim', + 'demo.lock.apiKeys': 'Demos ei saa API-võtmeid luua.', + 'demo.lock.mcp': 'Demos ei saa MCP-kliente ühendada.', + 'demo.lock.ai': 'Demos ei saa oma AI-ühendust lisada.', + 'demo.lock.aiTitle': 'Ühenda oma AI-mudel', + 'demo.lock.account': 'Jagatud demokontot ei saa muuta.', + 'demo.lock.language': 'Demo töötab alati inglise keeles.', +}; + +export default demo; diff --git a/shared/src/i18n/et/index.ts b/shared/src/i18n/et/index.ts index 8957a5b20..7c371269a 100644 --- a/shared/src/i18n/et/index.ts +++ b/shared/src/i18n/et/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/fr/demo.ts b/shared/src/i18n/fr/demo.ts new file mode 100644 index 000000000..3173a6c90 --- /dev/null +++ b/shared/src/i18n/fr/demo.ts @@ -0,0 +1,60 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Démo en direct', + 'demo.welcome.title': 'Bienvenue sur TREK', + 'demo.welcome.tagline': + 'Le planificateur de voyage à partager : planifiez ensemble sur la carte en temps réel, de la première idée au livre photo après le voyage.', + 'demo.welcome.resetTitle': 'Tout est réinitialisé chaque heure', + 'demo.welcome.resetBody': + 'Explorez, modifiez et créez autant que vous voulez. À chaque heure pile, la démo revient à son état initial pour le visiteur suivant.', + 'demo.welcome.resetIn': 'Prochaine réinitialisation dans', + 'demo.welcome.tryTitle': 'À essayer tout de suite', + 'demo.feature.planner.title': 'Planificateur de voyage', + 'demo.feature.planner.body': + 'Jours, lieux et itinéraires sur la carte, avec vols, hôtels, restaurants, réservations et frais partagés.', + 'demo.feature.tours.title': 'Randonnées et circuits', + 'demo.feature.tours.body': + 'Tracez une randonnée sur le réseau de sentiers et suivez la en relief 3D avec son profil d’altitude.', + 'demo.feature.studio.title': 'Livres photo avec TREK Studio', + 'demo.feature.studio.body': 'Transformez un voyage en livre photo mis en page, page après page.', + 'demo.feature.collab.title': 'Planifier ensemble en direct', + 'demo.feature.collab.body': 'Chaque participant voit chaque modification aussitôt, avec chat, notes et sondages.', + 'demo.feature.journey.title': 'Carnet de voyage Journey', + 'demo.feature.journey.body': 'Récits, photos, humeurs, points forts et points faibles de chaque jour sur la route.', + 'demo.feature.atlas.title': 'Carte du monde Atlas', + 'demo.feature.atlas.body': 'Les pays et régions que vous avez visités, avec vos statistiques de voyage.', + 'demo.feature.vacay.title': 'Planificateur de congés Vacay', + 'demo.feature.vacay.body': 'Planifiez vos congés autour des jours fériés et voyez quand tout le monde est libre.', + 'demo.feature.collections.title': 'Listes de lieux', + 'demo.feature.collections.body': + 'Enregistrez des lieux d’un voyage à l’autre dans vos propres listes et copiez les dans n’importe quel plan.', + 'demo.feature.offline.title': 'Fonctionne hors ligne', + 'demo.feature.offline.body': + 'Installez TREK comme une application et gardez vos plans, cartes et listes sans connexion.', + 'demo.welcome.limitsTitle': 'Absent de la démo', + 'demo.limit.uploads': 'Envoyer des photos, documents et couvertures', + 'demo.limit.account': 'Modifier le compte, son mot de passe ou la 2FA', + 'demo.limit.apiKeys': 'Créer des clés API', + 'demo.limit.mcp': 'Connecter des clients MCP', + 'demo.limit.ai': 'Connecter votre propre modèle d’IA', + 'demo.welcome.fullTitle': 'La version complète ajoute', + 'demo.full.sso': 'Connexion avec OIDC et SSO', + 'demo.full.backups': 'Sauvegardes automatiques', + 'demo.full.plugins': 'Des plugins pour de nouvelles fonctions', + 'demo.full.assistant': 'L’assistant IA avec votre propre modèle', + 'demo.full.admin': 'Un espace d’administration pour les utilisateurs, modules et permissions', + 'demo.welcome.repo': 'Code source sur GitHub', + 'demo.welcome.start': 'Commencer la visite', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Mode démo', + 'demo.lock.apiKeys': 'Impossible de créer des clés API dans la démo.', + 'demo.lock.mcp': 'Impossible de connecter des clients MCP dans la démo.', + 'demo.lock.ai': 'Impossible d’ajouter votre propre connexion IA dans la démo.', + 'demo.lock.aiTitle': 'Connecter votre propre modèle d’IA', + 'demo.lock.account': 'Le compte de démo partagé ne peut pas être modifié.', + 'demo.lock.language': 'La démo fonctionne toujours en anglais.', +}; + +export default demo; diff --git a/shared/src/i18n/fr/index.ts b/shared/src/i18n/fr/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/fr/index.ts +++ b/shared/src/i18n/fr/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/gr/demo.ts b/shared/src/i18n/gr/demo.ts new file mode 100644 index 000000000..2ce75e030 --- /dev/null +++ b/shared/src/i18n/gr/demo.ts @@ -0,0 +1,59 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Ζωντανή επίδειξη', + 'demo.welcome.title': 'Καλώς ήρθες στο TREK', + 'demo.welcome.tagline': + 'Ο ταξιδιωτικός σχεδιαστής για να μοιράζεσαι: σχεδιάστε μαζί στον χάρτη σε πραγματικό χρόνο, από την πρώτη ιδέα ως το φωτοβιβλίο μετά το ταξίδι.', + 'demo.welcome.resetTitle': 'Όλα επαναφέρονται κάθε ώρα', + 'demo.welcome.resetBody': + 'Εξερεύνησε, επεξεργάσου και δημιούργησε όσο θέλεις. Κάθε ακέραιη ώρα η επίδειξη επιστρέφει στην αρχική της κατάσταση για τον επόμενο επισκέπτη.', + 'demo.welcome.resetIn': 'Επόμενη επαναφορά σε', + 'demo.welcome.tryTitle': 'Δοκίμασέ το τώρα', + 'demo.feature.planner.title': 'Σχεδιαστής ταξιδιών', + 'demo.feature.planner.body': + 'Μέρες, μέρη και διαδρομές στον χάρτη, με πτήσεις, ξενοδοχεία, εστιατόρια, κρατήσεις και κοινά έξοδα.', + 'demo.feature.tours.title': 'Διαδρομές και πεζοπορίες', + 'demo.feature.tours.body': + 'Σχεδίασε μια πεζοπορία στο δίκτυο μονοπατιών και ακολούθησέ την πάνω σε 3D ανάγλυφο με το υψομετρικό της προφίλ.', + 'demo.feature.studio.title': 'Φωτοβιβλία με το TREK Studio', + 'demo.feature.studio.body': 'Κάνε ένα ταξίδι σχεδιασμένο φωτοβιβλίο, σελίδα προς σελίδα.', + 'demo.feature.collab.title': 'Σχεδιάστε μαζί ζωντανά', + 'demo.feature.collab.body': 'Όλοι στο ταξίδι βλέπουν κάθε αλλαγή αμέσως, με συνομιλία, σημειώσεις και ψηφοφορίες.', + 'demo.feature.journey.title': 'Ταξιδιωτικό ημερολόγιο Journey', + 'demo.feature.journey.body': 'Καταχωρίσεις, φωτογραφίες, διαθέσεις, υπέρ και κατά για κάθε μέρα στον δρόμο.', + 'demo.feature.atlas.title': 'Παγκόσμιος χάρτης Atlas', + 'demo.feature.atlas.body': 'Οι χώρες και οι περιοχές που έχεις επισκεφθεί, με τα ταξιδιωτικά σου στατιστικά.', + 'demo.feature.vacay.title': 'Σχεδιαστής αδειών Vacay', + 'demo.feature.vacay.body': 'Σχεδίασε τις άδειές σου γύρω από τις αργίες και δες πότε είναι όλοι ελεύθεροι.', + 'demo.feature.collections.title': 'Συλλογές', + 'demo.feature.collections.body': + 'Αποθήκευσε μέρη από διάφορα ταξίδια σε δικές σου λίστες και αντίγραψέ τα σε οποιοδήποτε πλάνο.', + 'demo.feature.offline.title': 'Λειτουργεί εκτός σύνδεσης', + 'demo.feature.offline.body': 'Εγκατάστησε το TREK ως εφαρμογή και κράτα πλάνα, χάρτες και λίστες χωρίς σύνδεση.', + 'demo.welcome.limitsTitle': 'Εκτός επίδειξης', + 'demo.limit.uploads': 'Μεταφόρτωση φωτογραφιών, εγγράφων και εξωφύλλων', + 'demo.limit.account': 'Αλλαγή λογαριασμού, κωδικού ή 2FA', + 'demo.limit.apiKeys': 'Δημιουργία κλειδιών API', + 'demo.limit.mcp': 'Σύνδεση πελατών MCP', + 'demo.limit.ai': 'Σύνδεση δικού σου μοντέλου ΤΝ', + 'demo.welcome.fullTitle': 'Η πλήρης έκδοση προσθέτει', + 'demo.full.sso': 'Σύνδεση με OIDC και SSO', + 'demo.full.backups': 'Αυτόματα αντίγραφα ασφαλείας', + 'demo.full.plugins': 'Πρόσθετα για νέες λειτουργίες', + 'demo.full.assistant': 'Τον βοηθό ΤΝ με το δικό σου μοντέλο', + 'demo.full.admin': 'Πίνακα διαχείρισης για χρήστες, πρόσθετα και δικαιώματα', + 'demo.welcome.repo': 'Πηγαίος κώδικας στο GitHub', + 'demo.welcome.start': 'Ξεκίνα την εξερεύνηση', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Λειτουργία επίδειξης', + 'demo.lock.apiKeys': 'Στην επίδειξη δεν δημιουργούνται κλειδιά API.', + 'demo.lock.mcp': 'Στην επίδειξη δεν συνδέονται πελάτες MCP.', + 'demo.lock.ai': 'Στην επίδειξη δεν προστίθεται δική σου σύνδεση ΤΝ.', + 'demo.lock.aiTitle': 'Σύνδεσε δικό σου μοντέλο ΤΝ', + 'demo.lock.account': 'Ο κοινός λογαριασμός επίδειξης δεν αλλάζει.', + 'demo.lock.language': 'Η επίδειξη τρέχει πάντα στα αγγλικά.', +}; + +export default demo; diff --git a/shared/src/i18n/gr/index.ts b/shared/src/i18n/gr/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/gr/index.ts +++ b/shared/src/i18n/gr/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/hu/demo.ts b/shared/src/i18n/hu/demo.ts new file mode 100644 index 000000000..42fa55906 --- /dev/null +++ b/shared/src/i18n/hu/demo.ts @@ -0,0 +1,59 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Élő demó', + 'demo.welcome.title': 'Üdv a TREK-ben', + 'demo.welcome.tagline': + 'A megosztható útitervező: tervezzetek együtt a térképen valós időben, az első ötlettől az utazás utáni fotókönyvig.', + 'demo.welcome.resetTitle': 'Óránként minden visszaáll', + 'demo.welcome.resetBody': + 'Nézz körül, szerkessz és hozz létre bármit. Minden egész órakor a demó visszatér a kiinduló állapotába a következő látogató számára.', + 'demo.welcome.resetIn': 'Következő visszaállítás', + 'demo.welcome.tryTitle': 'Próbáld ki most', + 'demo.feature.planner.title': 'Útitervező', + 'demo.feature.planner.body': + 'Napok, helyek és útvonalak a térképen, járatokkal, szállodákkal, éttermekkel, foglalásokkal és közös költségekkel.', + 'demo.feature.tours.title': 'Túrák és kirándulások', + 'demo.feature.tours.body': 'Tervezz túrát az ösvényhálózaton, és kövesd 3D terepen a magassági profillal.', + 'demo.feature.studio.title': 'Fotókönyvek a TREK Studióban', + 'demo.feature.studio.body': 'Alakíts egy utazást oldalról oldalra megtervezett fotókönyvvé.', + 'demo.feature.collab.title': 'Közös tervezés élőben', + 'demo.feature.collab.body': + 'Az utazás minden tagja azonnal látja a változásokat, csevegéssel, jegyzetekkel és szavazásokkal.', + 'demo.feature.journey.title': 'Journey útinapló', + 'demo.feature.journey.body': 'Bejegyzések, fotók, hangulatok, előnyök és hátrányok az út minden napjáról.', + 'demo.feature.atlas.title': 'Atlas világtérkép', + 'demo.feature.atlas.body': 'Az általad bejárt országok és régiók, utazási statisztikákkal.', + 'demo.feature.vacay.title': 'Vacay szabadságtervező', + 'demo.feature.vacay.body': 'Tervezd a szabadnapjaidat az ünnepek köré, és lásd, mikor ér rá mindenki.', + 'demo.feature.collections.title': 'Gyűjtemények', + 'demo.feature.collections.body': 'Ments helyeket különböző utakról saját listákba, és másold őket bármelyik tervbe.', + 'demo.feature.offline.title': 'Offline is működik', + 'demo.feature.offline.body': + 'Telepítsd a TREK-et alkalmazásként, és tartsd meg a terveket, térképeket és listákat kapcsolat nélkül is.', + 'demo.welcome.limitsTitle': 'Nem része a demónak', + 'demo.limit.uploads': 'Fotók, dokumentumok és borítók feltöltése', + 'demo.limit.account': 'A fiók, a jelszó vagy a 2FA módosítása', + 'demo.limit.apiKeys': 'API-kulcsok létrehozása', + 'demo.limit.mcp': 'MCP-kliensek csatlakoztatása', + 'demo.limit.ai': 'Saját AI-modell csatlakoztatása', + 'demo.welcome.fullTitle': 'A teljes verzióban ezen felül', + 'demo.full.sso': 'Bejelentkezés OIDC és SSO segítségével', + 'demo.full.backups': 'Automatikus biztonsági mentések', + 'demo.full.plugins': 'Bővítmények új funkciókhoz', + 'demo.full.assistant': 'Az AI-asszisztens saját modellel', + 'demo.full.admin': 'Adminfelület felhasználókhoz, kiegészítőkhöz és jogosultságokhoz', + 'demo.welcome.repo': 'Forráskód a GitHubon', + 'demo.welcome.start': 'Felfedezés indítása', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Demó mód', + 'demo.lock.apiKeys': 'A demóban nem hozhatók létre API-kulcsok.', + 'demo.lock.mcp': 'A demóban nem csatlakoztathatók MCP-kliensek.', + 'demo.lock.ai': 'A demóban nem adható hozzá saját AI-kapcsolat.', + 'demo.lock.aiTitle': 'Saját AI-modell csatlakoztatása', + 'demo.lock.account': 'A közös demófiók nem módosítható.', + 'demo.lock.language': 'A demó mindig angolul fut.', +}; + +export default demo; diff --git a/shared/src/i18n/hu/index.ts b/shared/src/i18n/hu/index.ts index c2cd1e959..af63b0baa 100644 --- a/shared/src/i18n/hu/index.ts +++ b/shared/src/i18n/hu/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...collab, ...memories, ...perm, diff --git a/shared/src/i18n/id/demo.ts b/shared/src/i18n/id/demo.ts new file mode 100644 index 000000000..b1b9a5a7f --- /dev/null +++ b/shared/src/i18n/id/demo.ts @@ -0,0 +1,60 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Demo langsung', + 'demo.welcome.title': 'Selamat datang di TREK', + 'demo.welcome.tagline': + 'Perencana perjalanan untuk dibagikan: rencanakan bersama di peta secara langsung, dari ide pertama sampai buku foto setelah perjalanan.', + 'demo.welcome.resetTitle': 'Semuanya diatur ulang setiap jam', + 'demo.welcome.resetBody': + 'Jelajahi, ubah, dan buat sebanyak yang Anda mau. Setiap jam tepat, demo kembali ke keadaan awal untuk pengunjung berikutnya.', + 'demo.welcome.resetIn': 'Atur ulang berikutnya dalam', + 'demo.welcome.tryTitle': 'Coba sekarang juga', + 'demo.feature.planner.title': 'Perencana perjalanan', + 'demo.feature.planner.body': + 'Hari, tempat, dan rute di peta, dengan penerbangan, hotel, restoran, pemesanan, dan biaya bersama.', + 'demo.feature.tours.title': 'Tur dan pendakian', + 'demo.feature.tours.body': + 'Rencanakan pendakian di jaringan jalur dan ikuti di atas medan 3D dengan profil ketinggiannya.', + 'demo.feature.studio.title': 'Buku foto dengan TREK Studio', + 'demo.feature.studio.body': 'Ubah perjalanan menjadi buku foto yang tertata, halaman demi halaman.', + 'demo.feature.collab.title': 'Merencanakan bersama secara langsung', + 'demo.feature.collab.body': + 'Semua orang dalam perjalanan melihat setiap perubahan seketika, dengan obrolan, catatan, dan jajak pendapat.', + 'demo.feature.journey.title': 'Jurnal perjalanan Journey', + 'demo.feature.journey.body': 'Catatan, foto, suasana hati, kelebihan dan kekurangan setiap hari di perjalanan.', + 'demo.feature.atlas.title': 'Peta dunia Atlas', + 'demo.feature.atlas.body': 'Negara dan wilayah yang pernah Anda kunjungi, dengan statistik perjalanan Anda.', + 'demo.feature.vacay.title': 'Perencana cuti Vacay', + 'demo.feature.vacay.body': 'Rencanakan hari libur di sekitar hari raya dan lihat kapan semua orang senggang.', + 'demo.feature.collections.title': 'Koleksi', + 'demo.feature.collections.body': + 'Simpan tempat dari berbagai perjalanan di daftar Anda sendiri dan salin ke rencana mana pun.', + 'demo.feature.offline.title': 'Bisa luring', + 'demo.feature.offline.body': 'Pasang TREK sebagai aplikasi dan simpan rencana, peta, dan daftar tanpa koneksi.', + 'demo.welcome.limitsTitle': 'Tidak termasuk demo', + 'demo.limit.uploads': 'Mengunggah foto, dokumen, dan sampul', + 'demo.limit.account': 'Mengubah akun, kata sandinya, atau 2FA', + 'demo.limit.apiKeys': 'Membuat kunci API', + 'demo.limit.mcp': 'Menghubungkan klien MCP', + 'demo.limit.ai': 'Menghubungkan model AI Anda sendiri', + 'demo.welcome.fullTitle': 'Versi lengkap menambahkan', + 'demo.full.sso': 'Masuk dengan OIDC dan SSO', + 'demo.full.backups': 'Pencadangan otomatis', + 'demo.full.plugins': 'Plugin untuk fitur baru', + 'demo.full.assistant': 'Asisten AI dengan model Anda sendiri', + 'demo.full.admin': 'Panel admin untuk pengguna, addon, dan izin', + 'demo.welcome.repo': 'Kode sumber di GitHub', + 'demo.welcome.start': 'Mulai menjelajah', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Mode demo', + 'demo.lock.apiKeys': 'Kunci API tidak dapat dibuat di demo.', + 'demo.lock.mcp': 'Klien MCP tidak dapat dihubungkan di demo.', + 'demo.lock.ai': 'Koneksi AI sendiri tidak dapat ditambahkan di demo.', + 'demo.lock.aiTitle': 'Hubungkan model AI Anda sendiri', + 'demo.lock.account': 'Akun demo bersama tidak dapat diubah.', + 'demo.lock.language': 'Demo selalu berjalan dalam bahasa Inggris.', +}; + +export default demo; diff --git a/shared/src/i18n/id/index.ts b/shared/src/i18n/id/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/id/index.ts +++ b/shared/src/i18n/id/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/it/demo.ts b/shared/src/i18n/it/demo.ts new file mode 100644 index 000000000..e4afdfe26 --- /dev/null +++ b/shared/src/i18n/it/demo.ts @@ -0,0 +1,59 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Demo dal vivo', + 'demo.welcome.title': 'Benvenuto in TREK', + 'demo.welcome.tagline': + 'Il pianificatore di viaggi da condividere: pianificate insieme sulla mappa in tempo reale, dalla prima idea al fotolibro dopo il viaggio.', + 'demo.welcome.resetTitle': 'Tutto viene ripristinato ogni ora', + 'demo.welcome.resetBody': + 'Esplora, modifica e crea quanto vuoi. Allo scoccare di ogni ora la demo torna allo stato iniziale per il visitatore successivo.', + 'demo.welcome.resetIn': 'Prossimo ripristino tra', + 'demo.welcome.tryTitle': 'Provalo subito', + 'demo.feature.planner.title': 'Pianificatore di viaggi', + 'demo.feature.planner.body': + 'Giorni, luoghi e percorsi sulla mappa, con voli, hotel, ristoranti, prenotazioni e spese condivise.', + 'demo.feature.tours.title': 'Tour ed escursioni', + 'demo.feature.tours.body': + 'Pianifica un’escursione sulla rete dei sentieri e seguila sul terreno 3D con il suo profilo altimetrico.', + 'demo.feature.studio.title': 'Fotolibri con TREK Studio', + 'demo.feature.studio.body': 'Trasforma un viaggio in un fotolibro impaginato, pagina dopo pagina.', + 'demo.feature.collab.title': 'Pianificare insieme dal vivo', + 'demo.feature.collab.body': + 'Tutti nel viaggio vedono ogni modifica nel momento in cui avviene, con chat, note e sondaggi.', + 'demo.feature.journey.title': 'Diario di viaggio Journey', + 'demo.feature.journey.body': 'Voci, foto, stati d’animo, pro e contro di ogni giorno in viaggio.', + 'demo.feature.atlas.title': 'Mappa del mondo Atlas', + 'demo.feature.atlas.body': 'I paesi e le regioni che hai visitato, con le tue statistiche di viaggio.', + 'demo.feature.vacay.title': 'Pianificatore di ferie Vacay', + 'demo.feature.vacay.body': 'Pianifica i giorni liberi attorno alle festività e scopri quando sono tutti liberi.', + 'demo.feature.collections.title': 'Collezioni', + 'demo.feature.collections.body': 'Salva luoghi di viaggi diversi in liste tue e copiali in qualsiasi piano.', + 'demo.feature.offline.title': 'Funziona offline', + 'demo.feature.offline.body': 'Installa TREK come app e conserva piani, mappe e liste anche senza connessione.', + 'demo.welcome.limitsTitle': 'Escluso dalla demo', + 'demo.limit.uploads': 'Caricare foto, documenti e copertine', + 'demo.limit.account': 'Modificare l’account, la password o la 2FA', + 'demo.limit.apiKeys': 'Creare chiavi API', + 'demo.limit.mcp': 'Collegare client MCP', + 'demo.limit.ai': 'Collegare un tuo modello di IA', + 'demo.welcome.fullTitle': 'La versione completa aggiunge', + 'demo.full.sso': 'Accesso con OIDC e SSO', + 'demo.full.backups': 'Backup automatici', + 'demo.full.plugins': 'Plugin per nuove funzioni', + 'demo.full.assistant': 'L’assistente IA con il tuo modello', + 'demo.full.admin': 'Un pannello di amministrazione per utenti, componenti aggiuntivi e permessi', + 'demo.welcome.repo': 'Codice sorgente su GitHub', + 'demo.welcome.start': 'Inizia a esplorare', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Modalità demo', + 'demo.lock.apiKeys': 'Nella demo non si possono creare chiavi API.', + 'demo.lock.mcp': 'Nella demo non si possono collegare client MCP.', + 'demo.lock.ai': 'Nella demo non si può aggiungere una connessione IA propria.', + 'demo.lock.aiTitle': 'Collega un tuo modello di IA', + 'demo.lock.account': 'L’account demo condiviso non può essere modificato.', + 'demo.lock.language': 'La demo funziona sempre in inglese.', +}; + +export default demo; diff --git a/shared/src/i18n/it/index.ts b/shared/src/i18n/it/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/it/index.ts +++ b/shared/src/i18n/it/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/ja/demo.ts b/shared/src/i18n/ja/demo.ts new file mode 100644 index 000000000..84a35c35c --- /dev/null +++ b/shared/src/i18n/ja/demo.ts @@ -0,0 +1,56 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'ライブデモ', + 'demo.welcome.title': 'TREK へようこそ', + 'demo.welcome.tagline': + '共有できる旅行プランナー。地図の上でリアルタイムに一緒に計画し、最初のアイデアから旅のあとのフォトブックまで。', + 'demo.welcome.resetTitle': '毎時すべてがリセットされます', + 'demo.welcome.resetBody': + '自由に見て、編集して、作成してください。毎正時にデモは次の訪問者のために最初の状態へ戻ります。', + 'demo.welcome.resetIn': '次のリセットまで', + 'demo.welcome.tryTitle': 'さっそく試す', + 'demo.feature.planner.title': '旅行プランナー', + 'demo.feature.planner.body': '地図上の日程、スポット、ルートに、フライト、ホテル、レストラン、予約、共有費用まで。', + 'demo.feature.tours.title': 'ツアーとハイキング', + 'demo.feature.tours.body': '登山道のネットワークでハイキングを計画し、標高プロファイル付きの 3D 地形でたどれます。', + 'demo.feature.studio.title': 'TREK Studio のフォトブック', + 'demo.feature.studio.body': '旅をページごとにデザインされたフォトブックに仕上げます。', + 'demo.feature.collab.title': 'ライブで一緒に計画', + 'demo.feature.collab.body': '旅のメンバー全員が変更をすぐに確認でき、チャット、メモ、投票も使えます。', + 'demo.feature.journey.title': '旅行記 Journey', + 'demo.feature.journey.body': '旅の毎日の記録、写真、気分、良かった点と気になった点。', + 'demo.feature.atlas.title': '世界地図 Atlas', + 'demo.feature.atlas.body': '訪れた国と地域を、旅の統計とともに。', + 'demo.feature.vacay.title': '休暇プランナー Vacay', + 'demo.feature.vacay.body': '祝日に合わせて休みを計画し、みんなが空いている日がわかります。', + 'demo.feature.collections.title': 'コレクション', + 'demo.feature.collections.body': '旅をまたいでスポットを自分のリストに保存し、どのプランにもコピーできます。', + 'demo.feature.offline.title': 'オフラインでも動作', + 'demo.feature.offline.body': 'TREK をアプリとしてインストールすれば、接続がなくてもプラン、地図、リストを使えます。', + 'demo.welcome.limitsTitle': 'デモでは使えないもの', + 'demo.limit.uploads': '写真、書類、カバー画像のアップロード', + 'demo.limit.account': 'アカウント、パスワード、2FA の変更', + 'demo.limit.apiKeys': 'API キーの作成', + 'demo.limit.mcp': 'MCP クライアントの接続', + 'demo.limit.ai': '自分の AI モデルの接続', + 'demo.welcome.fullTitle': 'フル版で追加されるもの', + 'demo.full.sso': 'OIDC と SSO によるサインイン', + 'demo.full.backups': '自動バックアップ', + 'demo.full.plugins': '新機能を加えるプラグイン', + 'demo.full.assistant': '自分のモデルで動く AI アシスタント', + 'demo.full.admin': 'ユーザー、アドオン、権限を管理する管理画面', + 'demo.welcome.repo': 'GitHub のソースコード', + 'demo.welcome.start': '使ってみる', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'デモモード', + 'demo.lock.apiKeys': 'デモでは API キーを作成できません。', + 'demo.lock.mcp': 'デモでは MCP クライアントを接続できません。', + 'demo.lock.ai': 'デモでは自分の AI 接続を追加できません。', + 'demo.lock.aiTitle': '自分の AI モデルを接続', + 'demo.lock.account': '共有のデモアカウントは変更できません。', + 'demo.lock.language': 'デモは常に英語で動作します。', +}; + +export default demo; diff --git a/shared/src/i18n/ja/index.ts b/shared/src/i18n/ja/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/ja/index.ts +++ b/shared/src/i18n/ja/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/ko/demo.ts b/shared/src/i18n/ko/demo.ts new file mode 100644 index 000000000..bbdd047fe --- /dev/null +++ b/shared/src/i18n/ko/demo.ts @@ -0,0 +1,56 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': '라이브 데모', + 'demo.welcome.title': 'TREK에 오신 것을 환영합니다', + 'demo.welcome.tagline': + '함께 쓰는 여행 플래너: 지도 위에서 실시간으로 함께 계획하고, 첫 아이디어부터 여행 후 포토북까지.', + 'demo.welcome.resetTitle': '매시간 모든 것이 초기화됩니다', + 'demo.welcome.resetBody': + '마음껏 둘러보고 수정하고 만들어 보세요. 매시 정각에 데모는 다음 방문자를 위해 처음 상태로 돌아갑니다.', + 'demo.welcome.resetIn': '다음 초기화까지', + 'demo.welcome.tryTitle': '지금 바로 체험', + 'demo.feature.planner.title': '여행 플래너', + 'demo.feature.planner.body': '지도 위의 일정, 장소, 경로와 함께 항공편, 호텔, 식당, 예약, 공동 비용까지.', + 'demo.feature.tours.title': '투어와 하이킹', + 'demo.feature.tours.body': '등산로 네트워크에서 하이킹을 계획하고 고도 프로필과 함께 3D 지형 위에서 따라가 보세요.', + 'demo.feature.studio.title': 'TREK Studio 포토북', + 'demo.feature.studio.body': '여행을 한 페이지씩 디자인된 포토북으로 만들어 보세요.', + 'demo.feature.collab.title': '실시간으로 함께 계획', + 'demo.feature.collab.body': '여행 멤버 모두가 모든 변경을 바로 보고, 채팅, 메모, 투표도 함께합니다.', + 'demo.feature.journey.title': '여행 일지 Journey', + 'demo.feature.journey.body': '길 위의 매일을 위한 기록, 사진, 기분, 장단점.', + 'demo.feature.atlas.title': '세계 지도 Atlas', + 'demo.feature.atlas.body': '방문한 국가와 지역을 여행 통계와 함께 보여 줍니다.', + 'demo.feature.vacay.title': '휴가 플래너 Vacay', + 'demo.feature.vacay.body': '공휴일에 맞춰 휴가를 계획하고 모두가 비는 날을 확인하세요.', + 'demo.feature.collections.title': '컬렉션', + 'demo.feature.collections.body': '여러 여행의 장소를 나만의 목록에 저장하고 어떤 계획에도 복사하세요.', + 'demo.feature.offline.title': '오프라인에서도 작동', + 'demo.feature.offline.body': 'TREK을 앱으로 설치하면 연결 없이도 계획, 지도, 목록을 쓸 수 있습니다.', + 'demo.welcome.limitsTitle': '데모에서 제외된 기능', + 'demo.limit.uploads': '사진, 문서, 표지 업로드', + 'demo.limit.account': '계정, 비밀번호 또는 2FA 변경', + 'demo.limit.apiKeys': 'API 키 만들기', + 'demo.limit.mcp': 'MCP 클라이언트 연결', + 'demo.limit.ai': '내 AI 모델 연결', + 'demo.welcome.fullTitle': '정식 버전에 추가되는 기능', + 'demo.full.sso': 'OIDC 및 SSO 로그인', + 'demo.full.backups': '자동 백업', + 'demo.full.plugins': '새 기능을 위한 플러그인', + 'demo.full.assistant': '내 모델로 동작하는 AI 어시스턴트', + 'demo.full.admin': '사용자, 애드온, 권한을 위한 관리자 패널', + 'demo.welcome.repo': 'GitHub의 소스 코드', + 'demo.welcome.start': '둘러보기 시작', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': '데모 모드', + 'demo.lock.apiKeys': '데모에서는 API 키를 만들 수 없습니다.', + 'demo.lock.mcp': '데모에서는 MCP 클라이언트를 연결할 수 없습니다.', + 'demo.lock.ai': '데모에서는 내 AI 연결을 추가할 수 없습니다.', + 'demo.lock.aiTitle': '내 AI 모델 연결', + 'demo.lock.account': '공유 데모 계정은 변경할 수 없습니다.', + 'demo.lock.language': '데모는 항상 영어로 실행됩니다.', +}; + +export default demo; diff --git a/shared/src/i18n/ko/index.ts b/shared/src/i18n/ko/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/ko/index.ts +++ b/shared/src/i18n/ko/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/nl/demo.ts b/shared/src/i18n/nl/demo.ts new file mode 100644 index 000000000..5fc48fd77 --- /dev/null +++ b/shared/src/i18n/nl/demo.ts @@ -0,0 +1,58 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Live demo om te proberen', + 'demo.welcome.title': 'Welkom bij TREK', + 'demo.welcome.tagline': + 'De reisplanner om te delen: plan samen live op de kaart, van het eerste idee tot het fotoboek na de reis.', + 'demo.welcome.resetTitle': 'Elk uur wordt alles teruggezet', + 'demo.welcome.resetBody': + 'Kijk rond, bewerk en maak zoveel je wilt. Op het hele uur keert de demo terug naar de beginstand voor de volgende bezoeker.', + 'demo.welcome.resetIn': 'Volgende reset over', + 'demo.welcome.tryTitle': 'Probeer het meteen', + 'demo.feature.planner.title': 'Reisplanner', + 'demo.feature.planner.body': + 'Dagen, plekken en routes op de kaart, met vluchten, hotels, restaurants, boekingen en gedeelde kosten.', + 'demo.feature.tours.title': 'Tochten en wandelingen', + 'demo.feature.tours.body': 'Plan een wandeling over het padennetwerk en volg die over 3D-terrein met hoogteprofiel.', + 'demo.feature.studio.title': 'Fotoboeken met TREK Studio', + 'demo.feature.studio.body': 'Maak van een reis pagina voor pagina een vormgegeven fotoboek.', + 'demo.feature.collab.title': 'Live samen plannen', + 'demo.feature.collab.body': 'Iedereen in de reis ziet elke wijziging meteen, met chat, notities en peilingen.', + 'demo.feature.journey.title': 'Reisdagboek Journey', + 'demo.feature.journey.body': 'Verhalen, foto’s, stemmingen, plussen en minnen van elke dag onderweg.', + 'demo.feature.atlas.title': 'Wereldkaart Atlas', + 'demo.feature.atlas.body': 'De landen en regio’s die je hebt bezocht, met je reisstatistieken.', + 'demo.feature.vacay.title': 'Vakantieplanner Vacay', + 'demo.feature.vacay.body': 'Plan vrije dagen rond feestdagen en zie wanneer iedereen vrij is.', + 'demo.feature.collections.title': 'Collecties', + 'demo.feature.collections.body': + 'Bewaar plekken van verschillende reizen in eigen lijsten en kopieer ze naar elk plan.', + 'demo.feature.offline.title': 'Werkt offline', + 'demo.feature.offline.body': 'Installeer TREK als app en houd plannen, kaarten en lijsten ook zonder verbinding.', + 'demo.welcome.limitsTitle': 'Niet in de demo', + 'demo.limit.uploads': 'Foto’s, documenten en omslagen uploaden', + 'demo.limit.account': 'Het account, het wachtwoord of 2FA wijzigen', + 'demo.limit.apiKeys': 'API-sleutels aanmaken', + 'demo.limit.mcp': 'MCP-clients koppelen', + 'demo.limit.ai': 'Een eigen AI-model koppelen', + 'demo.welcome.fullTitle': 'De volledige versie voegt toe', + 'demo.full.sso': 'Inloggen met OIDC en SSO', + 'demo.full.backups': 'Automatische back-ups', + 'demo.full.plugins': 'Plugins voor nieuwe functies', + 'demo.full.assistant': 'De AI-assistent met je eigen model', + 'demo.full.admin': 'Een beheerpaneel voor gebruikers, add-ons en rechten', + 'demo.welcome.repo': 'Broncode op GitHub', + 'demo.welcome.start': 'Begin met verkennen', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Demomodus', + 'demo.lock.apiKeys': 'In de demo kun je geen API-sleutels aanmaken.', + 'demo.lock.mcp': 'In de demo kun je geen MCP-clients koppelen.', + 'demo.lock.ai': 'In de demo kun je geen eigen AI-verbinding toevoegen.', + 'demo.lock.aiTitle': 'Eigen AI-model koppelen', + 'demo.lock.account': 'Het gedeelde demoaccount kan niet worden gewijzigd.', + 'demo.lock.language': 'De demo draait altijd in het Engels.', +}; + +export default demo; diff --git a/shared/src/i18n/nl/index.ts b/shared/src/i18n/nl/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/nl/index.ts +++ b/shared/src/i18n/nl/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/pl/demo.ts b/shared/src/i18n/pl/demo.ts new file mode 100644 index 000000000..a2d47194d --- /dev/null +++ b/shared/src/i18n/pl/demo.ts @@ -0,0 +1,58 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Demo na żywo', + 'demo.welcome.title': 'Witaj w TREK', + 'demo.welcome.tagline': + 'Planer podróży do dzielenia się: planujcie razem na mapie w czasie rzeczywistym, od pierwszego pomysłu po fotoksiążkę po podróży.', + 'demo.welcome.resetTitle': 'Co godzinę wszystko wraca do początku', + 'demo.welcome.resetBody': + 'Przeglądaj, edytuj i twórz, ile chcesz. O każdej pełnej godzinie demo wraca do stanu początkowego dla kolejnej osoby.', + 'demo.welcome.resetIn': 'Następny reset za', + 'demo.welcome.tryTitle': 'Wypróbuj od razu', + 'demo.feature.planner.title': 'Planer podróży', + 'demo.feature.planner.body': + 'Dni, miejsca i trasy na mapie, z lotami, hotelami, restauracjami, rezerwacjami i wspólnymi kosztami.', + 'demo.feature.tours.title': 'Wycieczki i wędrówki', + 'demo.feature.tours.body': 'Zaplanuj wędrówkę po sieci szlaków i śledź ją na terenie 3D z profilem wysokości.', + 'demo.feature.studio.title': 'Fotoksiążki w TREK Studio', + 'demo.feature.studio.body': 'Zamień podróż w zaprojektowaną fotoksiążkę, strona po stronie.', + 'demo.feature.collab.title': 'Wspólne planowanie na żywo', + 'demo.feature.collab.body': 'Każdy w podróży widzi każdą zmianę od razu, z czatem, notatkami i ankietami.', + 'demo.feature.journey.title': 'Dziennik podróży Journey', + 'demo.feature.journey.body': 'Wpisy, zdjęcia, nastroje, plusy i minusy każdego dnia w drodze.', + 'demo.feature.atlas.title': 'Mapa świata Atlas', + 'demo.feature.atlas.body': 'Kraje i regiony, które odwiedziłeś, z twoimi statystykami podróży.', + 'demo.feature.vacay.title': 'Planer urlopów Vacay', + 'demo.feature.vacay.body': 'Planuj wolne dni wokół świąt i sprawdzaj, kiedy wszyscy mają czas.', + 'demo.feature.collections.title': 'Kolekcje', + 'demo.feature.collections.body': + 'Zapisuj miejsca z różnych podróży na własnych listach i kopiuj je do dowolnego planu.', + 'demo.feature.offline.title': 'Działa offline', + 'demo.feature.offline.body': 'Zainstaluj TREK jako aplikację i miej plany, mapy i listy bez połączenia.', + 'demo.welcome.limitsTitle': 'Poza demem', + 'demo.limit.uploads': 'Przesyłanie zdjęć, dokumentów i okładek', + 'demo.limit.account': 'Zmiana konta, hasła lub 2FA', + 'demo.limit.apiKeys': 'Tworzenie kluczy API', + 'demo.limit.mcp': 'Łączenie klientów MCP', + 'demo.limit.ai': 'Łączenie własnego modelu AI', + 'demo.welcome.fullTitle': 'Pełna wersja dodaje', + 'demo.full.sso': 'Logowanie przez OIDC i SSO', + 'demo.full.backups': 'Automatyczne kopie zapasowe', + 'demo.full.plugins': 'Wtyczki z nowymi funkcjami', + 'demo.full.assistant': 'Asystenta AI z własnym modelem', + 'demo.full.admin': 'Panel administracyjny dla użytkowników, dodatków i uprawnień', + 'demo.welcome.repo': 'Kod źródłowy na GitHubie', + 'demo.welcome.start': 'Zacznij odkrywać', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Tryb demo', + 'demo.lock.apiKeys': 'W demie nie można tworzyć kluczy API.', + 'demo.lock.mcp': 'W demie nie można łączyć klientów MCP.', + 'demo.lock.ai': 'W demie nie można dodać własnego połączenia AI.', + 'demo.lock.aiTitle': 'Połącz własny model AI', + 'demo.lock.account': 'Wspólnego konta demo nie można zmienić.', + 'demo.lock.language': 'Demo zawsze działa po angielsku.', +}; + +export default demo; diff --git a/shared/src/i18n/pl/index.ts b/shared/src/i18n/pl/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/pl/index.ts +++ b/shared/src/i18n/pl/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/ru/demo.ts b/shared/src/i18n/ru/demo.ts new file mode 100644 index 000000000..9b9dfffc4 --- /dev/null +++ b/shared/src/i18n/ru/demo.ts @@ -0,0 +1,58 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Живая демоверсия', + 'demo.welcome.title': 'Добро пожаловать в TREK', + 'demo.welcome.tagline': + 'Планировщик путешествий для совместной работы: планируйте вместе на карте в реальном времени, от первой идеи до фотокниги после поездки.', + 'demo.welcome.resetTitle': 'Каждый час всё сбрасывается', + 'demo.welcome.resetBody': + 'Смотрите, редактируйте и создавайте сколько угодно. В начале каждого часа демоверсия возвращается к исходному состоянию для следующего гостя.', + 'demo.welcome.resetIn': 'Следующий сброс через', + 'demo.welcome.tryTitle': 'Попробуйте прямо сейчас', + 'demo.feature.planner.title': 'Планировщик поездок', + 'demo.feature.planner.body': + 'Дни, места и маршруты на карте, с перелётами, отелями, ресторанами, бронированиями и общими расходами.', + 'demo.feature.tours.title': 'Туры и походы', + 'demo.feature.tours.body': 'Проложите поход по сети троп и следуйте по нему над 3D рельефом с профилем высот.', + 'demo.feature.studio.title': 'Фотокниги в TREK Studio', + 'demo.feature.studio.body': 'Превратите поездку в свёрстанную фотокнигу, страница за страницей.', + 'demo.feature.collab.title': 'Планируйте вместе вживую', + 'demo.feature.collab.body': 'Все участники поездки сразу видят каждое изменение, с чатом, заметками и опросами.', + 'demo.feature.journey.title': 'Дневник путешествий Journey', + 'demo.feature.journey.body': 'Записи, фото, настроения, плюсы и минусы каждого дня в пути.', + 'demo.feature.atlas.title': 'Карта мира Atlas', + 'demo.feature.atlas.body': 'Страны и регионы, где вы побывали, с вашей статистикой путешествий.', + 'demo.feature.vacay.title': 'Планировщик отпуска Vacay', + 'demo.feature.vacay.body': 'Планируйте выходные вокруг праздников и смотрите, когда все свободны.', + 'demo.feature.collections.title': 'Коллекции', + 'demo.feature.collections.body': + 'Сохраняйте места из разных поездок в собственные списки и копируйте их в любой план.', + 'demo.feature.offline.title': 'Работает офлайн', + 'demo.feature.offline.body': 'Установите TREK как приложение, и планы, карты и списки останутся с вами без связи.', + 'demo.welcome.limitsTitle': 'Недоступно в демоверсии', + 'demo.limit.uploads': 'Загрузка фото, документов и обложек', + 'demo.limit.account': 'Изменение аккаунта, пароля или 2FA', + 'demo.limit.apiKeys': 'Создание ключей API', + 'demo.limit.mcp': 'Подключение клиентов MCP', + 'demo.limit.ai': 'Подключение собственной модели ИИ', + 'demo.welcome.fullTitle': 'В полной версии также есть', + 'demo.full.sso': 'Вход через OIDC и SSO', + 'demo.full.backups': 'Автоматические резервные копии', + 'demo.full.plugins': 'Плагины с новыми функциями', + 'demo.full.assistant': 'ИИ-ассистент на вашей собственной модели', + 'demo.full.admin': 'Панель администратора для пользователей, дополнений и прав', + 'demo.welcome.repo': 'Исходный код на GitHub', + 'demo.welcome.start': 'Начать знакомство', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Деморежим', + 'demo.lock.apiKeys': 'В демоверсии нельзя создать ключи API.', + 'demo.lock.mcp': 'В демоверсии нельзя подключить клиентов MCP.', + 'demo.lock.ai': 'В демоверсии нельзя добавить собственное подключение к ИИ.', + 'demo.lock.aiTitle': 'Подключить собственную модель ИИ', + 'demo.lock.account': 'Общий демоаккаунт нельзя изменить.', + 'demo.lock.language': 'Демоверсия всегда работает на английском.', +}; + +export default demo; diff --git a/shared/src/i18n/ru/index.ts b/shared/src/i18n/ru/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/ru/index.ts +++ b/shared/src/i18n/ru/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/sk/demo.ts b/shared/src/i18n/sk/demo.ts new file mode 100644 index 000000000..7111d970d --- /dev/null +++ b/shared/src/i18n/sk/demo.ts @@ -0,0 +1,58 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Živé demo', + 'demo.welcome.title': 'Vitajte v TREK', + 'demo.welcome.tagline': + 'Plánovač ciest na zdieľanie: plánujte spolu na mape v reálnom čase, od prvého nápadu až po fotoknihu po ceste.', + 'demo.welcome.resetTitle': 'Každú hodinu sa všetko obnoví', + 'demo.welcome.resetBody': + 'Prezerajte, upravujte a vytvárajte, koľko chcete. Každú celú hodinu sa demo vráti do východiskového stavu pre ďalšieho návštevníka.', + 'demo.welcome.resetIn': 'Ďalšie obnovenie o', + 'demo.welcome.tryTitle': 'Vyskúšajte hneď', + 'demo.feature.planner.title': 'Plánovač ciest', + 'demo.feature.planner.body': + 'Dni, miesta a trasy na mape, s letmi, hotelmi, reštauráciami, rezerváciami a zdieľanými nákladmi.', + 'demo.feature.tours.title': 'Túry a výlety', + 'demo.feature.tours.body': 'Naplánujte túru po sieti chodníkov a sledujte ju nad 3D terénom s výškovým profilom.', + 'demo.feature.studio.title': 'Fotoknihy v TREK Studio', + 'demo.feature.studio.body': 'Premeňte cestu stranu po strane na navrhnutú fotoknihu.', + 'demo.feature.collab.title': 'Plánovanie spolu naživo', + 'demo.feature.collab.body': 'Všetci v ceste vidia každú zmenu okamžite, s chatom, poznámkami a anketami.', + 'demo.feature.journey.title': 'Cestovný denník Journey', + 'demo.feature.journey.body': 'Zápisy, fotky, nálady, klady a zápory každého dňa na cestách.', + 'demo.feature.atlas.title': 'Mapa sveta Atlas', + 'demo.feature.atlas.body': 'Krajiny a regióny, ktoré ste navštívili, s vašou cestovnou štatistikou.', + 'demo.feature.vacay.title': 'Plánovač dovolenky Vacay', + 'demo.feature.vacay.body': 'Plánujte voľno okolo sviatkov a uvidíte, kedy majú všetci čas.', + 'demo.feature.collections.title': 'Kolekcie', + 'demo.feature.collections.body': + 'Ukladajte miesta z rôznych ciest do vlastných zoznamov a kopírujte ich do ľubovoľného plánu.', + 'demo.feature.offline.title': 'Funguje offline', + 'demo.feature.offline.body': 'Nainštalujte si TREK ako aplikáciu a majte plány, mapy a zoznamy aj bez pripojenia.', + 'demo.welcome.limitsTitle': 'Nie je súčasťou dema', + 'demo.limit.uploads': 'Nahrávanie fotiek, dokumentov a obálok', + 'demo.limit.account': 'Zmena účtu, hesla alebo 2FA', + 'demo.limit.apiKeys': 'Vytváranie kľúčov API', + 'demo.limit.mcp': 'Pripojenie klientov MCP', + 'demo.limit.ai': 'Pripojenie vlastného modelu AI', + 'demo.welcome.fullTitle': 'Plná verzia navyše ponúka', + 'demo.full.sso': 'Prihlásenie cez OIDC a SSO', + 'demo.full.backups': 'Automatické zálohy', + 'demo.full.plugins': 'Pluginy pre nové funkcie', + 'demo.full.assistant': 'Asistenta AI s vlastným modelom', + 'demo.full.admin': 'Administráciu používateľov, doplnkov a oprávnení', + 'demo.welcome.repo': 'Zdrojový kód na GitHube', + 'demo.welcome.start': 'Začať objavovať', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Režim dema', + 'demo.lock.apiKeys': 'V deme nie je možné vytvárať kľúče API.', + 'demo.lock.mcp': 'V deme nie je možné pripojiť klientov MCP.', + 'demo.lock.ai': 'V deme nie je možné pridať vlastné pripojenie AI.', + 'demo.lock.aiTitle': 'Pripojiť vlastný model AI', + 'demo.lock.account': 'Zdieľaný demo účet nie je možné zmeniť.', + 'demo.lock.language': 'Demo beží vždy v angličtine.', +}; + +export default demo; diff --git a/shared/src/i18n/sk/index.ts b/shared/src/i18n/sk/index.ts index 8957a5b20..7c371269a 100644 --- a/shared/src/i18n/sk/index.ts +++ b/shared/src/i18n/sk/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/sv/demo.ts b/shared/src/i18n/sv/demo.ts new file mode 100644 index 000000000..c59c87e29 --- /dev/null +++ b/shared/src/i18n/sv/demo.ts @@ -0,0 +1,58 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Livedemo', + 'demo.welcome.title': 'Välkommen till TREK', + 'demo.welcome.tagline': + 'Reseplaneraren att dela: planera tillsammans på kartan i realtid, från första idén till fotoboken efter resan.', + 'demo.welcome.resetTitle': 'Allt återställs varje timme', + 'demo.welcome.resetBody': + 'Utforska, redigera och skapa så mycket du vill. Vid varje heltimme återgår demon till sitt startläge för nästa besökare.', + 'demo.welcome.resetIn': 'Nästa återställning om', + 'demo.welcome.tryTitle': 'Prova direkt', + 'demo.feature.planner.title': 'Reseplanerare', + 'demo.feature.planner.body': + 'Dagar, platser och rutter på kartan, med flyg, hotell, restauranger, bokningar och delade kostnader.', + 'demo.feature.tours.title': 'Turer och vandringar', + 'demo.feature.tours.body': 'Planera en vandring längs ledernätet och följ den över 3D-terräng med höjdprofil.', + 'demo.feature.studio.title': 'Fotoböcker i TREK Studio', + 'demo.feature.studio.body': 'Gör en resa till en formgiven fotobok, sida för sida.', + 'demo.feature.collab.title': 'Planera tillsammans live', + 'demo.feature.collab.body': 'Alla på resan ser varje ändring direkt, med chatt, anteckningar och omröstningar.', + 'demo.feature.journey.title': 'Resedagbok Journey', + 'demo.feature.journey.body': 'Inlägg, foton, stämningar, för och nackdelar för varje dag på resan.', + 'demo.feature.atlas.title': 'Världskarta Atlas', + 'demo.feature.atlas.body': 'Länderna och regionerna du har besökt, med din resestatistik.', + 'demo.feature.vacay.title': 'Semesterplanerare Vacay', + 'demo.feature.vacay.body': 'Planera lediga dagar kring helgdagar och se när alla är lediga.', + 'demo.feature.collections.title': 'Samlingar', + 'demo.feature.collections.body': + 'Spara platser från olika resor i egna listor och kopiera dem till vilken plan som helst.', + 'demo.feature.offline.title': 'Fungerar offline', + 'demo.feature.offline.body': 'Installera TREK som app och behåll planer, kartor och listor utan uppkoppling.', + 'demo.welcome.limitsTitle': 'Ingår inte i demon', + 'demo.limit.uploads': 'Ladda upp foton, dokument och omslag', + 'demo.limit.account': 'Ändra kontot, lösenordet eller 2FA', + 'demo.limit.apiKeys': 'Skapa API-nycklar', + 'demo.limit.mcp': 'Ansluta MCP-klienter', + 'demo.limit.ai': 'Ansluta en egen AI-modell', + 'demo.welcome.fullTitle': 'Fullversionen lägger till', + 'demo.full.sso': 'Inloggning med OIDC och SSO', + 'demo.full.backups': 'Automatiska säkerhetskopior', + 'demo.full.plugins': 'Plugins för nya funktioner', + 'demo.full.assistant': 'AI-assistenten med din egen modell', + 'demo.full.admin': 'En adminpanel för användare, tillägg och behörigheter', + 'demo.welcome.repo': 'Källkod på GitHub', + 'demo.welcome.start': 'Börja utforska', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Demoläge', + 'demo.lock.apiKeys': 'I demon går det inte att skapa API-nycklar.', + 'demo.lock.mcp': 'I demon går det inte att ansluta MCP-klienter.', + 'demo.lock.ai': 'I demon går det inte att lägga till en egen AI-anslutning.', + 'demo.lock.aiTitle': 'Anslut en egen AI-modell', + 'demo.lock.account': 'Det delade demokontot kan inte ändras.', + 'demo.lock.language': 'Demon körs alltid på engelska.', +}; + +export default demo; diff --git a/shared/src/i18n/sv/index.ts b/shared/src/i18n/sv/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/sv/index.ts +++ b/shared/src/i18n/sv/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/th/demo.ts b/shared/src/i18n/th/demo.ts new file mode 100644 index 000000000..a82d5973b --- /dev/null +++ b/shared/src/i18n/th/demo.ts @@ -0,0 +1,57 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'เดโมสด', + 'demo.welcome.title': 'ยินดีต้อนรับสู่ TREK', + 'demo.welcome.tagline': + 'ตัววางแผนการเดินทางที่แชร์กันได้ วางแผนร่วมกันบนแผนที่แบบเรียลไทม์ ตั้งแต่ไอเดียแรกจนถึงโฟโต้บุ๊กหลังทริป', + 'demo.welcome.resetTitle': 'ทุกอย่างจะถูกรีเซ็ตทุกชั่วโมง', + 'demo.welcome.resetBody': + 'สำรวจ แก้ไข และสร้างได้ตามต้องการ ทุกต้นชั่วโมงเดโมจะกลับสู่สถานะเริ่มต้นสำหรับผู้เยี่ยมชมคนถัดไป', + 'demo.welcome.resetIn': 'รีเซ็ตครั้งถัดไปในอีก', + 'demo.welcome.tryTitle': 'ลองใช้ได้เลย', + 'demo.feature.planner.title': 'ตัววางแผนทริป', + 'demo.feature.planner.body': + 'วัน สถานที่ และเส้นทางบนแผนที่ พร้อมเที่ยวบิน โรงแรม ร้านอาหาร การจอง และค่าใช้จ่ายร่วม', + 'demo.feature.tours.title': 'ทัวร์และการเดินป่า', + 'demo.feature.tours.body': 'วางแผนเดินป่าบนเครือข่ายเส้นทางและติดตามบนภูมิประเทศ 3D พร้อมโปรไฟล์ความสูง', + 'demo.feature.studio.title': 'โฟโต้บุ๊กใน TREK Studio', + 'demo.feature.studio.body': 'เปลี่ยนการเดินทางให้เป็นโฟโต้บุ๊กที่ออกแบบแล้วทีละหน้า', + 'demo.feature.collab.title': 'วางแผนด้วยกันแบบสด', + 'demo.feature.collab.body': 'ทุกคนในทริปเห็นทุกการเปลี่ยนแปลงทันที พร้อมแชต บันทึก และโพล', + 'demo.feature.journey.title': 'บันทึกการเดินทาง Journey', + 'demo.feature.journey.body': 'บันทึก รูปภาพ อารมณ์ ข้อดีและข้อเสียของทุกวันบนเส้นทาง', + 'demo.feature.atlas.title': 'แผนที่โลก Atlas', + 'demo.feature.atlas.body': 'ประเทศและภูมิภาคที่คุณเคยไป พร้อมสถิติการเดินทางของคุณ', + 'demo.feature.vacay.title': 'ตัววางแผนวันลา Vacay', + 'demo.feature.vacay.body': 'วางแผนวันหยุดรอบวันนักขัตฤกษ์และดูว่าเมื่อไรทุกคนว่าง', + 'demo.feature.collections.title': 'คอลเลกชัน', + 'demo.feature.collections.body': 'บันทึกสถานที่จากหลายทริปไว้ในรายการของคุณเองและคัดลอกไปยังแผนใดก็ได้', + 'demo.feature.offline.title': 'ใช้งานแบบออฟไลน์ได้', + 'demo.feature.offline.body': 'ติดตั้ง TREK เป็นแอปแล้วใช้แผน แผนที่ และรายการได้แม้ไม่มีการเชื่อมต่อ', + 'demo.welcome.limitsTitle': 'สิ่งที่ไม่มีในเดโม', + 'demo.limit.uploads': 'อัปโหลดรูปภาพ เอกสาร และภาพปก', + 'demo.limit.account': 'เปลี่ยนบัญชี รหัสผ่าน หรือ 2FA', + 'demo.limit.apiKeys': 'สร้างคีย์ API', + 'demo.limit.mcp': 'เชื่อมต่อไคลเอนต์ MCP', + 'demo.limit.ai': 'เชื่อมต่อโมเดล AI ของคุณเอง', + 'demo.welcome.fullTitle': 'เวอร์ชันเต็มเพิ่ม', + 'demo.full.sso': 'ลงชื่อเข้าใช้ด้วย OIDC และ SSO', + 'demo.full.backups': 'การสำรองข้อมูลอัตโนมัติ', + 'demo.full.plugins': 'ปลั๊กอินสำหรับฟีเจอร์ใหม่', + 'demo.full.assistant': 'ผู้ช่วย AI บนโมเดลของคุณเอง', + 'demo.full.admin': 'แผงผู้ดูแลระบบสำหรับผู้ใช้ ส่วนเสริม และสิทธิ์', + 'demo.welcome.repo': 'ซอร์สโค้ดบน GitHub', + 'demo.welcome.start': 'เริ่มสำรวจ', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'โหมดเดโม', + 'demo.lock.apiKeys': 'สร้างคีย์ API ในเดโมไม่ได้', + 'demo.lock.mcp': 'เชื่อมต่อไคลเอนต์ MCP ในเดโมไม่ได้', + 'demo.lock.ai': 'เพิ่มการเชื่อมต่อ AI ของคุณเองในเดโมไม่ได้', + 'demo.lock.aiTitle': 'เชื่อมต่อโมเดล AI ของคุณเอง', + 'demo.lock.account': 'บัญชีเดโมที่ใช้ร่วมกันเปลี่ยนแปลงไม่ได้', + 'demo.lock.language': 'เดโมทำงานเป็นภาษาอังกฤษเสมอ', +}; + +export default demo; diff --git a/shared/src/i18n/th/index.ts b/shared/src/i18n/th/index.ts index 8957a5b20..7c371269a 100644 --- a/shared/src/i18n/th/index.ts +++ b/shared/src/i18n/th/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/tr/demo.ts b/shared/src/i18n/tr/demo.ts new file mode 100644 index 000000000..416b59037 --- /dev/null +++ b/shared/src/i18n/tr/demo.ts @@ -0,0 +1,59 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Canlı demo', + 'demo.welcome.title': 'TREK’e hoş geldin', + 'demo.welcome.tagline': + 'Paylaşılan seyahat planlayıcısı: haritada gerçek zamanlı olarak birlikte planlayın, ilk fikirden yolculuk sonrası fotoğraf kitabına kadar.', + 'demo.welcome.resetTitle': 'Her saat her şey sıfırlanır', + 'demo.welcome.resetBody': + 'Dilediğin kadar gez, düzenle ve oluştur. Her saat başı demo, sonraki ziyaretçi için başlangıç durumuna döner.', + 'demo.welcome.resetIn': 'Sonraki sıfırlamaya', + 'demo.welcome.tryTitle': 'Hemen dene', + 'demo.feature.planner.title': 'Seyahat planlayıcı', + 'demo.feature.planner.body': + 'Haritada günler, yerler ve rotalar; uçuşlar, oteller, restoranlar, rezervasyonlar ve paylaşılan masraflarla.', + 'demo.feature.tours.title': 'Turlar ve yürüyüşler', + 'demo.feature.tours.body': 'Patika ağında bir yürüyüş planla ve yükseklik profiliyle 3D arazide takip et.', + 'demo.feature.studio.title': 'TREK Studio ile fotoğraf kitapları', + 'demo.feature.studio.body': 'Bir yolculuğu sayfa sayfa tasarlanmış bir fotoğraf kitabına dönüştür.', + 'demo.feature.collab.title': 'Canlı olarak birlikte planla', + 'demo.feature.collab.body': 'Yolculuktaki herkes her değişikliği anında görür; sohbet, notlar ve anketlerle.', + 'demo.feature.journey.title': 'Journey seyahat günlüğü', + 'demo.feature.journey.body': 'Yoldaki her gün için kayıtlar, fotoğraflar, ruh halleri, artılar ve eksiler.', + 'demo.feature.atlas.title': 'Atlas dünya haritası', + 'demo.feature.atlas.body': 'Ziyaret ettiğin ülkeler ve bölgeler, seyahat istatistiklerinle birlikte.', + 'demo.feature.vacay.title': 'Vacay tatil planlayıcı', + 'demo.feature.vacay.body': 'İzin günlerini resmi tatillere göre planla ve herkesin ne zaman boş olduğunu gör.', + 'demo.feature.collections.title': 'Koleksiyonlar', + 'demo.feature.collections.body': + 'Farklı yolculuklardaki yerleri kendi listelerine kaydet ve istediğin plana kopyala.', + 'demo.feature.offline.title': 'Çevrimdışı çalışır', + 'demo.feature.offline.body': + 'TREK’i uygulama olarak yükle; planların, haritaların ve listelerin bağlantı olmadan da yanında olsun.', + 'demo.welcome.limitsTitle': 'Demoda olmayanlar', + 'demo.limit.uploads': 'Fotoğraf, belge ve kapak yükleme', + 'demo.limit.account': 'Hesabı, parolasını veya 2FA ayarını değiştirme', + 'demo.limit.apiKeys': 'API anahtarı oluşturma', + 'demo.limit.mcp': 'MCP istemcilerini bağlama', + 'demo.limit.ai': 'Kendi yapay zeka modelini bağlama', + 'demo.welcome.fullTitle': 'Tam sürümde ayrıca', + 'demo.full.sso': 'OIDC ve SSO ile giriş', + 'demo.full.backups': 'Otomatik yedeklemeler', + 'demo.full.plugins': 'Yeni özellikler için eklentiler', + 'demo.full.assistant': 'Kendi modelinle yapay zeka asistanı', + 'demo.full.admin': 'Kullanıcılar, eklentiler ve izinler için yönetim paneli', + 'demo.welcome.repo': 'GitHub’da kaynak kodu', + 'demo.welcome.start': 'Keşfetmeye başla', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Demo modu', + 'demo.lock.apiKeys': 'Demoda API anahtarı oluşturulamaz.', + 'demo.lock.mcp': 'Demoda MCP istemcileri bağlanamaz.', + 'demo.lock.ai': 'Demoda kendi yapay zeka bağlantın eklenemez.', + 'demo.lock.aiTitle': 'Kendi yapay zeka modelini bağla', + 'demo.lock.account': 'Paylaşılan demo hesabı değiştirilemez.', + 'demo.lock.language': 'Demo her zaman İngilizce çalışır.', +}; + +export default demo; diff --git a/shared/src/i18n/tr/index.ts b/shared/src/i18n/tr/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/tr/index.ts +++ b/shared/src/i18n/tr/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/uk/demo.ts b/shared/src/i18n/uk/demo.ts new file mode 100644 index 000000000..995f923eb --- /dev/null +++ b/shared/src/i18n/uk/demo.ts @@ -0,0 +1,58 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Жива демоверсія', + 'demo.welcome.title': 'Ласкаво просимо до TREK', + 'demo.welcome.tagline': + 'Планувальник подорожей для спільної роботи: плануйте разом на мапі в реальному часі, від першої ідеї до фотокниги після поїздки.', + 'demo.welcome.resetTitle': 'Щогодини все скидається', + 'demo.welcome.resetBody': + 'Переглядайте, редагуйте та створюйте скільки завгодно. На початку кожної години демоверсія повертається до початкового стану для наступного гостя.', + 'demo.welcome.resetIn': 'Наступне скидання через', + 'demo.welcome.tryTitle': 'Спробуйте просто зараз', + 'demo.feature.planner.title': 'Планувальник поїздок', + 'demo.feature.planner.body': + 'Дні, місця та маршрути на мапі, з перельотами, готелями, ресторанами, бронюваннями та спільними витратами.', + 'demo.feature.tours.title': 'Тури та походи', + 'demo.feature.tours.body': 'Прокладіть похід мережею стежок і йдіть ним над 3D рельєфом із профілем висот.', + 'demo.feature.studio.title': 'Фотокниги в TREK Studio', + 'demo.feature.studio.body': 'Перетворіть поїздку на зверстану фотокнигу, сторінка за сторінкою.', + 'demo.feature.collab.title': 'Плануйте разом наживо', + 'demo.feature.collab.body': 'Усі учасники поїздки одразу бачать кожну зміну, з чатом, нотатками й опитуваннями.', + 'demo.feature.journey.title': 'Щоденник подорожей Journey', + 'demo.feature.journey.body': 'Записи, фото, настрої, плюси й мінуси кожного дня в дорозі.', + 'demo.feature.atlas.title': 'Мапа світу Atlas', + 'demo.feature.atlas.body': 'Країни та регіони, де ви побували, з вашою статистикою подорожей.', + 'demo.feature.vacay.title': 'Планувальник відпустки Vacay', + 'demo.feature.vacay.body': 'Плануйте вихідні навколо свят і дивіться, коли всі вільні.', + 'demo.feature.collections.title': 'Колекції', + 'demo.feature.collections.body': + 'Зберігайте місця з різних поїздок у власних списках і копіюйте їх у будь який план.', + 'demo.feature.offline.title': 'Працює офлайн', + 'demo.feature.offline.body': 'Встановіть TREK як застосунок, і плани, мапи та списки залишаться з вами без зв’язку.', + 'demo.welcome.limitsTitle': 'Недоступно в демоверсії', + 'demo.limit.uploads': 'Завантаження фото, документів і обкладинок', + 'demo.limit.account': 'Зміна облікового запису, пароля або 2FA', + 'demo.limit.apiKeys': 'Створення ключів API', + 'demo.limit.mcp': 'Підключення клієнтів MCP', + 'demo.limit.ai': 'Підключення власної моделі ШІ', + 'demo.welcome.fullTitle': 'У повній версії також є', + 'demo.full.sso': 'Вхід через OIDC і SSO', + 'demo.full.backups': 'Автоматичні резервні копії', + 'demo.full.plugins': 'Плагіни з новими функціями', + 'demo.full.assistant': 'ШІ-асистент на вашій власній моделі', + 'demo.full.admin': 'Панель адміністратора для користувачів, доповнень і прав', + 'demo.welcome.repo': 'Вихідний код на GitHub', + 'demo.welcome.start': 'Почати знайомство', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Деморежим', + 'demo.lock.apiKeys': 'У демоверсії не можна створити ключі API.', + 'demo.lock.mcp': 'У демоверсії не можна підключити клієнтів MCP.', + 'demo.lock.ai': 'У демоверсії не можна додати власне підключення до ШІ.', + 'demo.lock.aiTitle': 'Підключити власну модель ШІ', + 'demo.lock.account': 'Спільний демообліковий запис не можна змінити.', + 'demo.lock.language': 'Демоверсія завжди працює англійською.', +}; + +export default demo; diff --git a/shared/src/i18n/uk/index.ts b/shared/src/i18n/uk/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/uk/index.ts +++ b/shared/src/i18n/uk/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/vi/demo.ts b/shared/src/i18n/vi/demo.ts new file mode 100644 index 000000000..6f479e5ce --- /dev/null +++ b/shared/src/i18n/vi/demo.ts @@ -0,0 +1,61 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': 'Bản demo trực tiếp', + 'demo.welcome.title': 'Chào mừng đến với TREK', + 'demo.welcome.tagline': + 'Trình lập kế hoạch du lịch để chia sẻ: cùng nhau lên kế hoạch trên bản đồ theo thời gian thực, từ ý tưởng đầu tiên đến cuốn sách ảnh sau chuyến đi.', + 'demo.welcome.resetTitle': 'Mọi thứ được đặt lại mỗi giờ', + 'demo.welcome.resetBody': + 'Hãy khám phá, chỉnh sửa và tạo bao nhiêu tùy thích. Mỗi giờ tròn, bản demo trở về trạng thái ban đầu cho người truy cập tiếp theo.', + 'demo.welcome.resetIn': 'Lần đặt lại tiếp theo sau', + 'demo.welcome.tryTitle': 'Dùng thử ngay', + 'demo.feature.planner.title': 'Lập kế hoạch chuyến đi', + 'demo.feature.planner.body': + 'Ngày, địa điểm và lộ trình trên bản đồ, cùng chuyến bay, khách sạn, nhà hàng, đặt chỗ và chi phí chung.', + 'demo.feature.tours.title': 'Hành trình và đi bộ đường dài', + 'demo.feature.tours.body': + 'Lên kế hoạch đi bộ trên mạng lưới đường mòn và theo dõi trên địa hình 3D với biểu đồ độ cao.', + 'demo.feature.studio.title': 'Sách ảnh với TREK Studio', + 'demo.feature.studio.body': 'Biến một chuyến đi thành cuốn sách ảnh được thiết kế, từng trang một.', + 'demo.feature.collab.title': 'Cùng lên kế hoạch trực tiếp', + 'demo.feature.collab.body': + 'Mọi người trong chuyến đi thấy mỗi thay đổi ngay lập tức, với trò chuyện, ghi chú và bình chọn.', + 'demo.feature.journey.title': 'Nhật ký du lịch Journey', + 'demo.feature.journey.body': 'Ghi chép, ảnh, tâm trạng, ưu và nhược điểm cho mỗi ngày trên đường.', + 'demo.feature.atlas.title': 'Bản đồ thế giới Atlas', + 'demo.feature.atlas.body': 'Các quốc gia và vùng bạn đã đến, cùng thống kê du lịch của bạn.', + 'demo.feature.vacay.title': 'Lập kế hoạch nghỉ phép Vacay', + 'demo.feature.vacay.body': 'Sắp xếp ngày nghỉ quanh các ngày lễ và xem khi nào mọi người đều rảnh.', + 'demo.feature.collections.title': 'Bộ sưu tập', + 'demo.feature.collections.body': + 'Lưu địa điểm từ nhiều chuyến đi vào danh sách riêng và sao chép vào bất kỳ kế hoạch nào.', + 'demo.feature.offline.title': 'Hoạt động ngoại tuyến', + 'demo.feature.offline.body': + 'Cài TREK như một ứng dụng và giữ kế hoạch, bản đồ, danh sách ngay cả khi không có kết nối.', + 'demo.welcome.limitsTitle': 'Không có trong bản demo', + 'demo.limit.uploads': 'Tải lên ảnh, tài liệu và ảnh bìa', + 'demo.limit.account': 'Thay đổi tài khoản, mật khẩu hoặc 2FA', + 'demo.limit.apiKeys': 'Tạo khóa API', + 'demo.limit.mcp': 'Kết nối ứng dụng MCP', + 'demo.limit.ai': 'Kết nối mô hình AI của riêng bạn', + 'demo.welcome.fullTitle': 'Bản đầy đủ có thêm', + 'demo.full.sso': 'Đăng nhập bằng OIDC và SSO', + 'demo.full.backups': 'Sao lưu tự động', + 'demo.full.plugins': 'Plugin cho tính năng mới', + 'demo.full.assistant': 'Trợ lý AI với mô hình của riêng bạn', + 'demo.full.admin': 'Trang quản trị cho người dùng, tiện ích và quyền', + 'demo.welcome.repo': 'Mã nguồn trên GitHub', + 'demo.welcome.start': 'Bắt đầu khám phá', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': 'Chế độ demo', + 'demo.lock.apiKeys': 'Không thể tạo khóa API trong bản demo.', + 'demo.lock.mcp': 'Không thể kết nối ứng dụng MCP trong bản demo.', + 'demo.lock.ai': 'Không thể thêm kết nối AI riêng trong bản demo.', + 'demo.lock.aiTitle': 'Kết nối mô hình AI của riêng bạn', + 'demo.lock.account': 'Không thể thay đổi tài khoản demo dùng chung.', + 'demo.lock.language': 'Bản demo luôn chạy bằng tiếng Anh.', +}; + +export default demo; diff --git a/shared/src/i18n/vi/index.ts b/shared/src/i18n/vi/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/vi/index.ts +++ b/shared/src/i18n/vi/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/zh-TW/demo.ts b/shared/src/i18n/zh-TW/demo.ts new file mode 100644 index 000000000..3b202a941 --- /dev/null +++ b/shared/src/i18n/zh-TW/demo.ts @@ -0,0 +1,54 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': '線上展示', + 'demo.welcome.title': '歡迎使用 TREK', + 'demo.welcome.tagline': '可以共享的旅行規劃工具:在地圖上即時一起規劃,從最初的想法到旅行之後的相片書。', + 'demo.welcome.resetTitle': '每小時一切都會重設', + 'demo.welcome.resetBody': '隨意瀏覽、編輯和建立。每到整點,展示都會回到初始狀態,留給下一位訪客。', + 'demo.welcome.resetIn': '距下次重設還有', + 'demo.welcome.tryTitle': '馬上試試', + 'demo.feature.planner.title': '旅行規劃', + 'demo.feature.planner.body': '地圖上的日程、地點和路線,以及航班、飯店、餐廳、預訂和共同費用。', + 'demo.feature.tours.title': '路線與健行', + 'demo.feature.tours.body': '在步道網路上規劃健行路線,並在帶有海拔剖面的 3D 地形上跟隨。', + 'demo.feature.studio.title': 'TREK Studio 相片書', + 'demo.feature.studio.body': '把一段旅程一頁一頁做成精心設計的相片書。', + 'demo.feature.collab.title': '即時一起規劃', + 'demo.feature.collab.body': '旅行中的每個人都能立即看到每項變更,還有聊天、筆記和投票。', + 'demo.feature.journey.title': '旅行日誌 Journey', + 'demo.feature.journey.body': '路上每一天的紀錄、照片、心情以及優缺點。', + 'demo.feature.atlas.title': '世界地圖 Atlas', + 'demo.feature.atlas.body': '你去過的國家和地區,以及你的旅行統計。', + 'demo.feature.vacay.title': '假期規劃 Vacay', + 'demo.feature.vacay.body': '配合國定假日安排休假,看看大家什麼時候都有空。', + 'demo.feature.collections.title': '收藏集', + 'demo.feature.collections.body': '把不同旅行中的地點存到自己的清單,並複製到任何計畫中。', + 'demo.feature.offline.title': '離線可用', + 'demo.feature.offline.body': '把 TREK 安裝為應用程式,沒有網路也能使用計畫、地圖和清單。', + 'demo.welcome.limitsTitle': '展示中不提供', + 'demo.limit.uploads': '上傳照片、文件和封面', + 'demo.limit.account': '變更帳號、密碼或 2FA', + 'demo.limit.apiKeys': '建立 API 金鑰', + 'demo.limit.mcp': '連接 MCP 用戶端', + 'demo.limit.ai': '連接你自己的 AI 模型', + 'demo.welcome.fullTitle': '完整版還提供', + 'demo.full.sso': '透過 OIDC 和 SSO 登入', + 'demo.full.backups': '自動備份', + 'demo.full.plugins': '擴充新功能的外掛', + 'demo.full.assistant': '使用你自己模型的 AI 助理', + 'demo.full.admin': '管理使用者、附加元件和權限的管理面板', + 'demo.welcome.repo': 'GitHub 上的原始碼', + 'demo.welcome.start': '開始探索', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': '展示模式', + 'demo.lock.apiKeys': '展示中無法建立 API 金鑰。', + 'demo.lock.mcp': '展示中無法連接 MCP 用戶端。', + 'demo.lock.ai': '展示中無法新增你自己的 AI 連線。', + 'demo.lock.aiTitle': '連接你自己的 AI 模型', + 'demo.lock.account': '共享的展示帳號無法變更。', + 'demo.lock.language': '展示一律以英文執行。', +}; + +export default demo; diff --git a/shared/src/i18n/zh-TW/index.ts b/shared/src/i18n/zh-TW/index.ts index 6d181fa44..55bbcba91 100644 --- a/shared/src/i18n/zh-TW/index.ts +++ b/shared/src/i18n/zh-TW/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm, diff --git a/shared/src/i18n/zh/demo.ts b/shared/src/i18n/zh/demo.ts new file mode 100644 index 000000000..83003ba0b --- /dev/null +++ b/shared/src/i18n/zh/demo.ts @@ -0,0 +1,54 @@ +import type { TranslationStrings } from '../types'; + +const demo: TranslationStrings = { + // The welcome dialog a demo instance opens with (components/Demo/DemoWelcome). + 'demo.welcome.eyebrow': '在线演示', + 'demo.welcome.title': '欢迎使用 TREK', + 'demo.welcome.tagline': '可以共享的旅行规划工具:在地图上实时一起规划,从最初的想法到旅行之后的照片书。', + 'demo.welcome.resetTitle': '每小时一切都会重置', + 'demo.welcome.resetBody': '随意浏览、编辑和创建。每到整点,演示都会恢复到初始状态,留给下一位访客。', + 'demo.welcome.resetIn': '距下次重置还有', + 'demo.welcome.tryTitle': '马上试试', + 'demo.feature.planner.title': '旅行规划', + 'demo.feature.planner.body': '地图上的日程、地点和路线,以及航班、酒店、餐厅、预订和共同费用。', + 'demo.feature.tours.title': '路线与徒步', + 'demo.feature.tours.body': '在步道网络上规划徒步路线,并在带海拔剖面的 3D 地形上跟随。', + 'demo.feature.studio.title': 'TREK Studio 照片书', + 'demo.feature.studio.body': '把一段旅程一页一页做成精心设计的照片书。', + 'demo.feature.collab.title': '实时一起规划', + 'demo.feature.collab.body': '旅行中的每个人都能即时看到每处变化,还有聊天、笔记和投票。', + 'demo.feature.journey.title': '旅行日志 Journey', + 'demo.feature.journey.body': '路上每一天的记录、照片、心情以及优缺点。', + 'demo.feature.atlas.title': '世界地图 Atlas', + 'demo.feature.atlas.body': '你去过的国家和地区,以及你的旅行统计。', + 'demo.feature.vacay.title': '假期规划 Vacay', + 'demo.feature.vacay.body': '围绕公共假日安排休假,看看大家什么时候都有空。', + 'demo.feature.collections.title': '收藏夹', + 'demo.feature.collections.body': '把不同旅行中的地点保存到自己的列表,并复制到任何计划中。', + 'demo.feature.offline.title': '离线可用', + 'demo.feature.offline.body': '把 TREK 安装为应用,没有网络也能使用计划、地图和清单。', + 'demo.welcome.limitsTitle': '演示中不提供', + 'demo.limit.uploads': '上传照片、文档和封面', + 'demo.limit.account': '更改账户、密码或 2FA', + 'demo.limit.apiKeys': '创建 API 密钥', + 'demo.limit.mcp': '连接 MCP 客户端', + 'demo.limit.ai': '连接你自己的 AI 模型', + 'demo.welcome.fullTitle': '完整版还提供', + 'demo.full.sso': '通过 OIDC 和 SSO 登录', + 'demo.full.backups': '自动备份', + 'demo.full.plugins': '扩展新功能的插件', + 'demo.full.assistant': '使用你自己模型的 AI 助手', + 'demo.full.admin': '管理用户、附加组件和权限的管理面板', + 'demo.welcome.repo': 'GitHub 上的源代码', + 'demo.welcome.start': '开始探索', + // The lock over a section the shared demo account may not change (components/Demo/DemoLock). + 'demo.lock.badge': '演示模式', + 'demo.lock.apiKeys': '演示中无法创建 API 密钥。', + 'demo.lock.mcp': '演示中无法连接 MCP 客户端。', + 'demo.lock.ai': '演示中无法添加你自己的 AI 连接。', + 'demo.lock.aiTitle': '连接你自己的 AI 模型', + 'demo.lock.account': '共享的演示账户无法更改。', + 'demo.lock.language': '演示始终以英语运行。', +}; + +export default demo; diff --git a/shared/src/i18n/zh/index.ts b/shared/src/i18n/zh/index.ts index 65d822001..bcc4778a6 100644 --- a/shared/src/i18n/zh/index.ts +++ b/shared/src/i18n/zh/index.ts @@ -27,6 +27,7 @@ import dashboard from './dashboard'; import dawarich from './dawarich'; import day from './day'; import dayplan from './dayplan'; +import demo from './demo'; import docsync from './docsync'; import ferratas from './ferratas'; import files from './files'; @@ -118,6 +119,7 @@ const locale = { ...pdf, ...planner, ...day, + ...demo, ...memories, ...collab, ...perm,