Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
feat(cloud): localize portal and console by browser language
Timothy Yin90ba68ac1dac
diff --git a/apps/cloud/app/app.vue b/apps/cloud/app/app.vueindex 1fc5b4d9..ad280dd7 100644--- a/apps/cloud/app/app.vue+++ b/apps/cloud/app/app.vue@@ -1,12 +1,23 @@<script setup lang="ts">-useHead({ bodyAttrs: { class: 'cf-cloud-body' } })+import { en, zh_cn } from '@nuxt/ui/locale'+const { locale } = useI18n()+const componentLocale = computed(() =>+ locale.value === 'zh-Hans' ? zh_cn : en,+)+useHead(() => ({+ htmlAttrs: { lang: locale.value === 'zh-Hans' ? 'zh-CN' : 'en' },+ bodyAttrs: { class: 'cf-cloud-body' },+}))</script><template>- <UApp class="cf-root">+ <UApp+ class="cf-root"+ :locale="componentLocale"+ ><ahref="#main-content"class="cf-skip-link"- >Skip to content</a+ >{{ $t('cloud.messages.skipToContent') }}</a><NuxtLoadingIndicator color="var(--cf-primary)" /><NuxtLayout><NuxtPage/></NuxtLayout>diff --git a/apps/cloud/app/components/CloudAlbumsManager.vue b/apps/cloud/app/components/CloudAlbumsManager.vueindex db570e71..5cc2aecd 100644--- a/apps/cloud/app/components/CloudAlbumsManager.vue+++ b/apps/cloud/app/components/CloudAlbumsManager.vue@@ -1,4 +1,6 @@<script setup lang="ts">+const { t } = useI18n()+import { isValidAlbumSlug } from '@chronoframe/contracts/album-slug'import type { Album, Photo } from '@chronoframe/contracts/resources'import type { TableColumn } from '@nuxt/ui'@@ -70,11 +72,11 @@ const chosen = computed(() =>.filter((p): p is Photo => !!p),)const columns: TableColumn<Album & { photoIds: string[] }>[] = [- { id: 'cover', header: 'Cover' },- { accessorKey: 'title', header: 'Title' },- { accessorKey: 'description', header: 'Description' },- { id: 'count', header: 'Photographs' },- { id: 'visibility', header: 'Visibility' },+ { id: 'cover', header: t('cloud.messages.cover') },+ { accessorKey: 'title', header: t('cloud.messages.title') },+ { accessorKey: 'description', header: t('cloud.messages.description') },+ { id: 'count', header: t('cloud.messages.photographs') },+ { id: 'visibility', header: t('cloud.messages.visibility') },{ id: 'actions', header: '' },]function cover(album: Album & { photoIds: string[] }) {@@ -133,7 +135,7 @@ async function edit(album: Album) {} catch {if (request === generation.value)toast.add({- title: 'Album could not be loaded. Please try again.',+ title: t('cloud.messages.albumCouldNotBeLoadedPleaseTryAgain'),color: 'error',})}@@ -164,21 +166,27 @@ async function save() {if (!loaded.value || saving.value || !draft.title.trim()) returnif (draft.slug.trim() && !isValidAlbumSlug(draft.slug.trim())) {toast.add({- title:- 'Use lowercase letters, numbers and single hyphens; the slug cannot be numeric only.',+ title: t(+ 'cloud.messages.useLowercaseLettersNumbersAndSingleHyphensTheSlug',+ ),color: 'error',})return}if (draft.passwordEnabled && !hadPassword.value && !draft.password) {- toast.add({ title: 'Enter an album password.', color: 'error' })+ toast.add({+ title: t('cloud.messages.enterAnAlbumPassword'),+ color: 'error',+ })return}if (hadPassword.value &&!draft.passwordEnabled &&!window.confirm(- 'Remove password protection? Published photographs may become public.',+ t(+ 'cloud.messages.removePasswordProtectionPublishedPhotographsMayBecomePublic',+ ),))return@@ -217,7 +225,7 @@ async function save() {},)revision.value = result.revision- }, 'Album saved.')+ }, t('cloud.messages.albumSaved'))if (ok) editor.value = false} finally {saving.value = false@@ -235,7 +243,7 @@ async function remove() {method: 'POST',body: {},}),- 'Album deleted. Photographs remain in your library.',+ t('cloud.messages.albumDeletedPhotographsRemainInYourLibrary'),)if (ok) removeOpen.value = false}@@ -251,14 +259,14 @@ async function moveAlbum(album: Album, step: number) {method: 'POST',body: { albumIds: next.map((a) => a.id) },}),- 'Album order updated.',+ t('cloud.messages.albumOrderUpdated'),)}function menu(album: Album) {return [[{- label: 'Edit album',+ label: t('cloud.messages.editAlbum'),icon: 'i-lucide-pencil',disabled: !admin.value,onSelect: () => edit(album),@@ -266,7 +274,7 @@ function menu(album: Album) {],[{- label: 'Delete album',+ label: t('cloud.messages.deleteAlbum2'),icon: 'i-lucide-trash-2',color: 'error' as const,disabled: !admin.value,@@ -283,28 +291,34 @@ function menu(album: Album) {><div class="cf-library-heading"><div>- <h2 id="albums-heading">Albums</h2>- <p>Organize your photographs and choose how they are shared.</p>+ <h2 id="albums-heading">{{ $t('cloud.messages.albums') }}</h2>+ <p>+ {{+ $t(+ 'cloud.messages.organizeYourPhotographsAndChooseHowTheyAreShared',+ )+ }}+ </p></div><UButtonv-if="admin"icon="i-lucide-plus"@click="create"- >Create album</UButton+ >{{ $t('cloud.messages.createAlbum') }}</UButton></div><div class="cf-library-toolbar"><UInputv-model="search"icon="i-lucide-search"- placeholder="Search albums…"- aria-label="Search albums"+ :placeholder="$t('cloud.messages.searchAlbums')"+ :aria-label="$t('cloud.messages.searchAlbums2')"class="cf-library-search"/><UButtoncolor="neutral"variant="ghost"icon="i-lucide-refresh-cw"- aria-label="Refresh albums"+ :aria-label="$t('cloud.messages.refreshAlbums')":loading="loading"@click="refreshMedia"/>@@ -317,7 +331,9 @@ function menu(album: Album) {><template #cover-cell="{ row }"><buttonclass="cf-library-thumb"- :aria-label="`Edit ${row.original.title}`"+ :aria-label="+ $t('cloud.ui.editNamed', { title: row.original.title })+ ":disabled="!admin"@click="edit(row.original)">@@ -361,10 +377,10 @@ function menu(album: Album) {">{{row.original.isHidden- ? 'Hidden'+ ? $t('cloud.messages.hidden'): row.original.hasPassword- ? 'Password'- : 'Public'+ ? $t('cloud.messages.password')+ : $t('cloud.messages.public')}}</UBadge></template><template #actions-cell="{ row }"@@ -376,7 +392,7 @@ function menu(album: Album) {icon="i-lucide-arrow-up"size="xs":disabled="busy || albums[0]?.id === row.original.id"- :aria-label="`Move ${row.original.title} up`"+ :aria-label="$t('cloud.ui.moveUp', { title: row.original.title })"@click="moveAlbum(row.original, -1)"/><UButtonv-if="admin"@@ -385,14 +401,18 @@ function menu(album: Album) {icon="i-lucide-arrow-down"size="xs":disabled="busy || albums.at(-1)?.id === row.original.id"- :aria-label="`Move ${row.original.title} down`"+ :aria-label="+ $t('cloud.ui.moveDown', { title: row.original.title })+ "@click="moveAlbum(row.original, 1)"/><UDropdownMenu :items="menu(row.original)"><UButtoncolor="neutral"variant="ghost"icon="i-lucide-ellipsis"- :aria-label="`Actions for ${row.original.title}`"+ :aria-label="+ $t('cloud.ui.actionsNamed', { title: row.original.title })+ "/></UDropdownMenu></div></template><template #empty><div class="cf-library-empty">@@ -401,14 +421,24 @@ function menu(album: Album) {class="size-8"/><h3>- {{ search ? 'No matching albums' : 'Make room for a collection' }}+ {{+ search+ ? $t('cloud.messages.noMatchingAlbums')+ : $t('cloud.messages.makeRoomForACollection')+ }}</h3>- <p>Create an album to bring related photographs together.</p>+ <p>+ {{+ $t(+ 'cloud.messages.createAnAlbumToBringRelatedPhotographsTogether',+ )+ }}+ </p><UButtonv-if="admin && !albums.length"variant="soft"@click="create"- >Create album</UButton+ >{{ $t('cloud.messages.createAlbum') }}</UButton></div></template></ConsoleMediaTable@@ -416,8 +446,14 @@ function menu(album: Album) {</div><USlideoverv-model:open="editor"- :title="selected === null ? 'Create album' : 'Edit album'"- description="Choose the photographs, cover and access for this album."+ :title="+ selected === null+ ? $t('cloud.messages.createAlbum')+ : $t('cloud.messages.editAlbum')+ "+ :description="+ $t('cloud.messages.chooseThePhotographsCoverAndAccessForThisAlbum')+ ":ui="{ footer: 'justify-end' }"><template #body><p@@ -431,7 +467,7 @@ function menu(album: Album) {v-if="!loaded"role="status">- Loading album…+ {{ $t('cloud.messages.loadingAlbum') }}</p><UFormv-else@@ -449,19 +485,27 @@ function menu(album: Album) {"/><UCheckboxv-model="draft.isHidden"- label="Hide album"- description="Hide this album and its photographs from public browsing."+ :label="$t('cloud.messages.hideAlbum')"+ :description="+ $t(+ 'cloud.messages.hideThisAlbumAndItsPhotographsFromPublicBrowsing',+ )+ "/><UCheckboxv-model="draft.passwordEnabled"- label="Password protection"- description="Visitors must unlock this album to view its photographs."+ :label="$t('cloud.messages.passwordProtection')"+ :description="+ $t(+ 'cloud.messages.visitorsMustUnlockThisAlbumToViewItsPhotographs',+ )+ "/><UFormFieldv-if="draft.passwordEnabled"- label="Album password"+ :label="$t('cloud.messages.albumPassword')":hint="hadPassword- ? 'Leave blank to keep the current password.'- : 'Use 8–256 characters.'+ ? $t('cloud.messages.leaveBlankToKeepTheCurrentPassword')+ : $t('cloud.messages.use8256Characters')"><UInputv-model="draft.password"@@ -473,7 +517,13 @@ function menu(album: Album) {/></UFormField><div class="cf-album-photo-section"><div class="flex items-center justify-between gap-3">- <h3>Photographs · {{ draft.photoIds.length }}</h3>+ <h3>+ {{+ $t('cloud.ui.photoMembershipCount', {+ count: draft.photoIds.length,+ })+ }}+ </h3><UButtoncolor="neutral"variant="outline"@@ -481,7 +531,7 @@ function menu(album: Album) {size="sm"id="album-select-photographs"@click="picker = !picker"- >Select photographs</UButton+ >{{ $t('cloud.messages.selectPhotographs') }}</UButton></div><div@@ -491,14 +541,14 @@ function menu(album: Album) {><ThumbImage:src="photo.thumbnailUrl || ''"- :alt="photo.title || 'Photograph'"+ :alt="photo.title || $t('cloud.messages.photograph')"/><span>{{ photo.title }}</span><UButton:color="draft.coverPhotoId === photo.id ? 'primary' : 'neutral'"variant="ghost"icon="i-lucide-star"size="xs"- :aria-label="`Set ${photo.title} as cover`"+ :aria-label="$t('cloud.ui.setCover', { title: photo.title })"@click="draft.coverPhotoId = photo.id"/><UButtoncolor="neutral"@@ -506,7 +556,7 @@ function menu(album: Album) {icon="i-lucide-arrow-up"size="xs":disabled="index === 0"- :aria-label="`Move ${photo.title} up`"+ :aria-label="$t('cloud.ui.moveUp', { title: photo.title })"@click="movePhoto(index, -1)"/><UButtoncolor="neutral"@@ -514,14 +564,16 @@ function menu(album: Album) {icon="i-lucide-arrow-down"size="xs":disabled="index === chosen.length - 1"- :aria-label="`Move ${photo.title} down`"+ :aria-label="$t('cloud.ui.moveDown', { title: photo.title })"@click="movePhoto(index, 1)"/><UButtoncolor="error"variant="ghost"icon="i-lucide-x"size="xs"- :aria-label="`Remove ${photo.title} from album`"+ :aria-label="+ $t('cloud.ui.removeFromAlbum', { title: photo.title })+ "@click="toggle(photo.id, false)"/></div>@@ -529,7 +581,7 @@ function menu(album: Album) {v-if="!draft.photoIds.length"class="text-sm text-muted">- Choose photographs from your library.+ {{ $t('cloud.messages.choosePhotographsFromYourLibrary') }}</p></div></UForm>@@ -537,16 +589,18 @@ function menu(album: Album) {v-if="picker"ref="pickerPanel"role="region"- aria-label="Select photographs"+ :aria-label="$t('cloud.messages.selectPhotographs')"class="cf-inline-picker"@keydown.esc.stop.prevent="picker = false">- <h3 class="font-medium mb-3">Select photographs</h3>+ <h3 class="font-medium mb-3">+ {{ $t('cloud.messages.selectPhotographs') }}+ </h3><UInputv-model="photoSearch"icon="i-lucide-search"- placeholder="Search photographs…"- aria-label="Search photographs for album"+ :placeholder="$t('cloud.messages.searchPhotographs')"+ :aria-label="$t('cloud.messages.searchPhotographsForAlbum')"class="w-full mb-4"/><div class="cf-photo-picker">@@ -554,14 +608,14 @@ function menu(album: Album) {v-for="photo in choices":key="photo.id"class="cf-picker-photo"- :aria-label="photo.title || 'Photograph'"+ :aria-label="photo.title || $t('cloud.messages.photograph')":class="{ selected: draft.photoIds.includes(photo.id) }":aria-pressed="draft.photoIds.includes(photo.id)"@click="toggle(photo.id, !draft.photoIds.includes(photo.id))"><ThumbImage:src="photo.thumbnailUrl || ''"- :alt="photo.title || 'Photograph'"+ :alt="photo.title || $t('cloud.messages.photograph')"/><span>{{ photo.title }}</span><UIconv-if="draft.photoIds.includes(photo.id)"@@ -571,9 +625,12 @@ function menu(album: Album) {</button></div><div class="flex items-center justify-between gap-3 mt-4">- <span class="text-sm text-muted"- >{{ draft.photoIds.length }} selected</span- ><UButton @click="picker = false">Done</UButton>+ <span class="text-sm text-muted">{{+ $t('cloud.ui.selectedCount', { count: draft.photoIds.length })+ }}</span+ ><UButton @click="picker = false">{{+ $t('cloud.messages.done')+ }}</UButton></div></div></template><template #footer@@ -582,32 +639,34 @@ function menu(album: Album) {variant="outline":disabled="saving"@click="editor = false"- >Cancel</UButton+ >{{ $t('cloud.messages.cancel') }}</UButton><UButtontype="submit"form="cloud-album-form":loading="saving":disabled="!loaded || !draft.title.trim()"- >Save album</UButton+ >{{ $t('cloud.messages.saveAlbum') }}</UButton></template></USlideover><UModalv-model:open="removeOpen"- title="Delete album?"- description="Photographs remain in your library. They may become public if no other protected album contains them."+ :title="$t('cloud.messages.deleteAlbum')"+ :description="+ $t('cloud.messages.photographsRemainInYourLibraryTheyMayBecomePublic')+ "><template #footer><UButtoncolor="neutral"variant="outline"@click="removeOpen = false"- >Cancel</UButton+ >{{ $t('cloud.messages.cancel') }}</UButton><UButtoncolor="error":loading="busy"@click="remove"- >Delete album</UButton+ >{{ $t('cloud.messages.deleteAlbum2') }}</UButton></template></UModal>diff --git a/apps/cloud/app/components/CloudAuthLayout.vue b/apps/cloud/app/components/CloudAuthLayout.vueindex dffabeb0..245c1f5d 100644--- a/apps/cloud/app/components/CloudAuthLayout.vue+++ b/apps/cloud/app/components/CloudAuthLayout.vue@@ -6,7 +6,7 @@ const links = useCloudLinks()<div class="cf-auth"><asideclass="cf-auth-visual"- aria-label="About ChronoFrame Cloud"+ :aria-label="$t('cloud.messages.aboutChronoframeCloud')"><CloudBrandcloud@@ -14,11 +14,19 @@ const links = useCloudLinks()/><div><div class="cf-auth-quote">- <h2>A little space.<br />A different perspective.</h2>- <p>Your photographs deserve a home that feels like you.</p>+ <h2>+ {{ $t('cloud.messages.aLittleSpace') }}<br />{{+ $t('cloud.messages.aDifferentPerspective')+ }}+ </h2>+ <p>+ {{+ $t('cloud.messages.yourPhotographsDeserveAHomeThatFeelsLikeYou')+ }}+ </p></div><p class="cf-auth-caption">- CHRONOFRAME CLOUD · MADE FOR THE WAY YOU SEE+ {{ $t('cloud.messages.chronoframeCloudMadeForTheWayYouSee') }}</p></div></aside>@@ -32,16 +40,18 @@ const links = useCloudLinks():to="links.website"externalclass="cf-back-link"- ><ArrowLeft :size="15" />Back to home</NuxtLink+ ><ArrowLeft :size="15" />{{+ $t('cloud.messages.backToHome')+ }}</NuxtLink><CloudThemeToggle /></div><div class="cf-auth-form"><slot /></div><p class="cf-auth-bottom">- A home for your photographs.- <a+ {{ $t('cloud.messages.aHomeForYourPhotographs')+ }}<aclass="cf-text-link"href="https://docs.chronoframe.art/"- >A little guidance, if you need it.</a+ >{{ $t('cloud.messages.aLittleGuidanceIfYouNeedIt') }}</a></p></main>diff --git a/apps/cloud/app/components/CloudBrand.vue b/apps/cloud/app/components/CloudBrand.vueindex 612086fe..9598b318 100644--- a/apps/cloud/app/components/CloudBrand.vue+++ b/apps/cloud/app/components/CloudBrand.vue@@ -8,7 +8,11 @@ const links = useCloudLinks()externalclass="cf-brand":class="{ 'cf-brand-light': light }"- :aria-label="cloud ? 'ChronoFrame Cloud home' : 'ChronoFrame home'"+ :aria-label="+ cloud+ ? $t('cloud.messages.chronoframeCloudHome')+ : $t('cloud.messages.chronoframeHome')+ "><imgsrc="/web-app-manifest-192x192.png"width="34"diff --git a/apps/cloud/app/components/CloudPhotoLibrary.vue b/apps/cloud/app/components/CloudPhotoLibrary.vueindex 789dd854..2885d795 100644--- a/apps/cloud/app/components/CloudPhotoLibrary.vue+++ b/apps/cloud/app/components/CloudPhotoLibrary.vue@@ -1,4 +1,6 @@<script setup lang="ts">+const { t, locale } = useI18n()+import type { Photo } from '@chronoframe/contracts/resources'import type { TableColumn } from '@nuxt/ui'const {@@ -46,11 +48,11 @@ const rows = computed(() => {const chosen = computed(() => rows.value.filter((p) => selection.value[p.id]))const columns: TableColumn<Photo>[] = [{ id: 'select', header: '', size: 32 },- { accessorKey: 'thumbnailUrl', header: 'Photograph' },- { accessorKey: 'title', header: 'Title' },- { accessorKey: 'tags', header: 'Tags' },- { accessorKey: 'dateTaken', header: 'Date taken' },- { accessorKey: 'fileSize', header: 'Size' },+ { accessorKey: 'thumbnailUrl', header: t('cloud.messages.photograph') },+ { accessorKey: 'title', header: t('cloud.messages.title') },+ { accessorKey: 'tags', header: t('cloud.messages.tags') },+ { accessorKey: 'dateTaken', header: t('cloud.messages.dateTaken') },+ { accessorKey: 'fileSize', header: t('cloud.messages.size') },{ id: 'actions', header: '' },]const pendingJobs = computed(() =>@@ -77,7 +79,7 @@ async function deleteChosen() {method: 'POST',body: { photoIds: chosen.value.map((p) => p.id) },}),- 'Photographs deleted. Managed files are queued for cleanup.',+ t('cloud.messages.photographsDeletedManagedFilesAreQueuedForCleanup'),)if (ok) {selection.value = {}@@ -95,7 +97,7 @@ async function addToAlbum() {method: 'POST',body: { photoIds: chosen.value.map((p) => p.id) },}),- 'Photographs added to album.',+ t('cloud.messages.photographsAddedToAlbum'),)if (ok) {albumOpen.value = false@@ -106,14 +108,14 @@ function actions(photo: Photo) {return [[{- label: 'Preview',+ label: t('cloud.messages.preview'),icon: 'i-lucide-eye',onSelect: () => {preview.value = photo},},{- label: 'Edit details',+ label: t('cloud.messages.editDetails'),icon: 'i-lucide-pencil',disabled: !admin.value,onSelect: () => edit(photo),@@ -121,7 +123,7 @@ function actions(photo: Photo) {],[{- label: 'Delete photograph',+ label: t('cloud.messages.deletePhotograph'),icon: 'i-lucide-trash-2',color: 'error' as const,disabled: !admin.value,@@ -147,44 +149,49 @@ watch(><div class="cf-library-heading"><div>- <h2 id="library-heading">Photo library</h2>+ <h2 id="library-heading">{{ $t('cloud.messages.photoLibrary') }}</h2><p>- {{ photos.length }} photographs · {{ pendingJobs.length }} processing+ {{+ $t('cloud.ui.photoQueue', {+ count: photos.length,+ processing: pendingJobs.length,+ })+ }}</p></div><UButtonv-if="admin"icon="i-lucide-upload"@click="uploadOpen = true"- >Upload</UButton+ >{{ $t('cloud.messages.upload') }}</UButton></div><div class="cf-library-toolbar"><UInputv-model="search"icon="i-lucide-search"- placeholder="Search photographs…"- aria-label="Search photographs"+ :placeholder="$t('cloud.messages.searchPhotographs')"+ :aria-label="$t('cloud.messages.searchPhotographs2')"class="cf-library-search"/><UPopover><UButtoncolor="neutral":variant="hasActiveFilters ? 'soft' : 'outline'"icon="i-lucide-filter"- >Filters</UButton+ >{{ $t('cloud.messages.filters') }}</UButton><template #content><OverlayFilterPanel /></template></UPopover><UPopover><UButtoncolor="neutral"variant="outline"icon="i-lucide-arrow-up-down"- >Sort</UButton+ >{{ $t('cloud.messages.sort') }}</UButton><template #content><OverlaySortPanel /></template></UPopover><UButtoncolor="neutral"variant="ghost"icon="i-lucide-refresh-cw"- aria-label="Refresh photographs"+ :aria-label="$t('cloud.messages.refreshPhotographs')":loading="loading"@click="refreshMedia"/>@@ -193,14 +200,14 @@ watch(v-if="chosen.length"class="cf-selection-bar">- <span>{{ chosen.length }} selected</span+ <span>{{ $t('cloud.ui.selectedCount', { count: chosen.length }) }}</span><UButtonv-if="admin"size="sm"variant="soft"icon="i-lucide-folder-plus"@click="albumOpen = true"- >Add to album</UButton+ >{{ $t('cloud.messages.addToAlbum') }}</UButton><UButtonv-if="admin"size="sm"@@ -208,13 +215,13 @@ watch(variant="soft"icon="i-lucide-trash-2"@click="deleteOpen = true"- >Delete</UButton+ >{{ $t('cloud.messages.delete') }}</UButton><UButtoncolor="neutral"size="sm"variant="ghost"@click="selection = {}"- >Clear</UButton+ >{{ $t('cloud.messages.clear') }}</UButton></div><div class="cf-library-table">@@ -226,7 +233,7 @@ watch(><template #select-header><UCheckbox:model-value="rows.length > 0 && rows.every((p) => selection[p.id])"- aria-label="Select all photographs"+ :aria-label="$t('cloud.messages.selectAllPhotographs')"@update:model-value="(v) => {selection = v@@ -237,14 +244,18 @@ watch(><template #select-cell="{ row }"><UCheckbox:model-value="!!selection[row.original.id]"- :aria-label="`Select ${row.original.title}`"+ :aria-label="+ $t('cloud.ui.selectNamed', { title: row.original.title })+ "@update:model-value="(v) => (selection[row.original.id] = !!v)" /></template><template #thumbnailUrl-cell="{ row }"><buttonclass="cf-library-thumb"- :aria-label="`Preview ${row.original.title}`"+ :aria-label="+ $t('cloud.ui.previewNamed', { title: row.original.title })+ "@click="preview = row.original"><ThumbImage@@ -253,7 +264,7 @@ watch(/><spanv-if="row.original.isLivePhoto"class="cf-live-label"- >LIVE</span+ >{{ $t('cloud.messages.live') }}</span></button></template><template #title-cell="{ row }"@@ -283,7 +294,9 @@ watch(><template #dateTaken-cell="{ row }"><span class="text-xs text-muted">{{row.original.dateTaken- ? new Date(row.original.dateTaken).toLocaleDateString()+ ? new Date(row.original.dateTaken).toLocaleDateString(+ locale === 'zh-Hans' ? 'zh-CN' : 'en-US',+ ): '—'}}</span></template><template #fileSize-cell="{ row }"@@ -296,7 +309,9 @@ watch(color="neutral"variant="ghost"icon="i-lucide-ellipsis"- :aria-label="`Actions for ${row.original.title}`" /></UDropdownMenu></template+ :aria-label="+ $t('cloud.ui.actionsNamed', { title: row.original.title })+ " /></UDropdownMenu></template><template #empty><div class="cf-library-empty"><UIcon@@ -305,21 +320,25 @@ watch(/><h3>{{- search ? 'No matching photographs' : 'Your library starts here'+ search+ ? $t('cloud.messages.noMatchingPhotographs')+ : $t('cloud.messages.yourLibraryStartsHere')}}</h3><p>{{search- ? 'Try another search or clear your filters.'- : 'Upload photographs to start telling your story.'+ ? $t('cloud.messages.tryAnotherSearchOrClearYourFilters')+ : $t(+ 'cloud.messages.uploadPhotographsToStartTellingYourStory',+ )}}</p><UButtonv-if="admin && !photos.length"variant="soft"@click="uploadOpen = true"- >Upload</UButton+ >{{ $t('cloud.messages.upload') }}</UButton></div></template></ConsoleMediaTable@@ -328,9 +347,9 @@ watch(<sectionv-if="pendingJobs.length"class="cf-processing-panel"- aria-label="Processing queue"+ :aria-label="$t('cloud.messages.processingQueue')">- <h3>Processing queue</h3>+ <h3>{{ $t('cloud.messages.processingQueue') }}</h3><divv-for="job in pendingJobs":key="job.id"@@ -345,11 +364,27 @@ watch(:class="{ 'animate-spin': job.state === 'running' }"/><div>- <strong>{{ job.state.replaceAll('_', ' ') }}</strong+ <strong>{{+ $t(+ [+ 'queued',+ 'running',+ 'retry_wait',+ 'failed',+ 'cancelled',+ 'succeeded',+ ].includes(job.state)+ ? 'cloud.ui.' + job.state+ : 'cloud.ui.unknownJob',+ )+ }}</strong><span- >Attempt {{ job.attempts+ >{{ $t('cloud.messages.attempt') }}{{ job.attempts}}<template v-if="job.error_code">- · {{ job.error_code.replaceAll('_', ' ') }}</template+ ·+ {{+ $t('cloud.ui.processingFailure', { code: job.error_code })+ }}</template></span></div>@@ -366,24 +401,24 @@ watch(method: 'POST',body: {},}),- 'Job queued again.',+ $t('cloud.messages.jobQueuedAgain'),)"- >Retry</UButton+ >{{ $t('cloud.messages.retry') }}</UButton><UButtonv-if="admin && job.state !== 'cancelled'"color="error"variant="ghost"size="sm"@click="removePhoto(job.photo_id)"- >Remove</UButton+ >{{ $t('cloud.messages.remove') }}</UButton></div></section><USlideoverv-model:open="editor"- title="Edit photograph"- description="Update the details shown in your gallery."+ :title="$t('cloud.messages.editPhotograph')"+ :description="$t('cloud.messages.updateTheDetailsShownInYourGallery')":ui="{ footer: 'justify-end' }"><template #body><p@@ -397,7 +432,7 @@ watch(v-if="photoLoaded !== editPhoto.id"role="status">- Loading photograph…+ {{ $t('cloud.messages.loadingPhotograph') }}</p><UFormv-else@@ -415,20 +450,20 @@ watch(color="neutral"variant="outline"@click="editor = false"- >Cancel</UButton+ >{{ $t('cloud.messages.cancel') }}</UButton><UButtontype="submit"form="cloud-edit-photo":loading="busy":disabled="photoLoaded !== editPhoto.id || !editPhoto.title.trim()"- >Save changes</UButton+ >{{ $t('cloud.messages.saveChanges') }}</UButton></template></USlideover><UModal:open="!!preview"- :title="preview?.title || 'Photograph'"- description="Preview photograph"+ :title="preview?.title || $t('cloud.messages.photograph')"+ :description="$t('cloud.messages.previewPhotograph')":ui="{ content: 'max-w-5xl', body: 'p-0' }"@update:open="(v) => {@@ -453,52 +488,60 @@ watch(><UModalv-model:open="deleteOpen"- title="Delete photographs?"- description="This deletes the selected photographs and queues their managed original, thumbnail and Live Photo files for cleanup."+ :title="$t('cloud.messages.deletePhotographs')"+ :description="+ $t(+ 'cloud.messages.thisDeletesTheSelectedPhotographsAndQueuesTheirManaged',+ )+ "><template #footer><UButtoncolor="neutral"variant="outline"@click="deleteOpen = false"- >Cancel</UButton+ >{{ $t('cloud.messages.cancel') }}</UButton><UButtoncolor="error":loading="saving"@click="deleteChosen"- >Delete {{ chosen.length }} photograph{{- chosen.length === 1 ? '' : 's'+ >{{+ $t(+ 'cloud.ui.deletePhotosCount',+ { count: chosen.length },+ chosen.length,+ )}}</UButton></template></UModal><UModalv-model:open="albumOpen"- title="Add to album"- description="Choose an album for the selected photographs."+ :title="$t('cloud.messages.addToAlbum')"+ :description="$t('cloud.messages.chooseAnAlbumForTheSelectedPhotographs')"><template #body><USelectv-model="targetAlbum":items="albums.map((a) => ({ label: a.title, value: a.id }))"- placeholder="Choose an album"+ :placeholder="$t('cloud.messages.chooseAnAlbum')"class="w-full"/><pv-if="!albums.length"class="text-sm text-muted">- Create an album first from the Albums page.+ {{ $t('cloud.messages.createAnAlbumFirstFromTheAlbumsPage') }}</p></template><template #footer><UButtoncolor="neutral"variant="outline"@click="albumOpen = false"- >Cancel</UButton+ >{{ $t('cloud.messages.cancel') }}</UButton><UButton:disabled="!targetAlbum":loading="busy"@click="addToAlbum"- >Add photographs</UButton+ >{{ $t('cloud.messages.addPhotographs') }}</UButton></template></UModal>diff --git a/apps/cloud/app/components/CloudPortalShell.vue b/apps/cloud/app/components/CloudPortalShell.vueindex 663fe65d..aa911d71 100644--- a/apps/cloud/app/components/CloudPortalShell.vue+++ b/apps/cloud/app/components/CloudPortalShell.vue@@ -30,22 +30,24 @@ useCloudSiteSubscription()class="cf-sidebar-toggle"variant="ghost"size="icon"- aria-label="Open navigation"+ :aria-label="$t('cloud.messages.openNavigation')"><Menu :size="19" /></CloudButton></DialogTrigger><DialogPortal><DialogOverlay class="cf-sidebar-overlay" /><DialogContentclass="cf-sidebar-drawer"- ><DialogTitle class="sr-only">Navigation</DialogTitle- ><DialogDescription class="sr-only"- >Your workspace and site navigation.</DialogDescription- >+ ><DialogTitle class="sr-only">{{+ $t('cloud.messages.navigation')+ }}</DialogTitle+ ><DialogDescription class="sr-only">{{+ $t('cloud.messages.yourWorkspaceAndSiteNavigation')+ }}</DialogDescription><div class="cf-drawer-heading"><span>ChronoFrame Cloud</span><DialogClose as-child><CloudButtonvariant="ghost"size="icon"- aria-label="Close navigation"+ :aria-label="$t('cloud.messages.closeNavigation')"><X :size="19" /></CloudButton></DialogClose></div>@@ -56,14 +58,16 @@ useCloudSiteSubscription()<CloudBrand cloud /></div><div class="cf-header-actions">- <CloudBadge class="cf-preview-badge">Cloud preview</CloudBadge+ <CloudBadge class="cf-preview-badge">{{+ $t('cloud.messages.cloudPreview')+ }}</CloudBadge><CloudThemeToggle /></div></header><div class="cf-portal-grid"><asideclass="cf-sidebar"- aria-label="Workspace"+ :aria-label="$t('cloud.messages.workspace')"><CloudSidebarNavigation /><div class="cf-sidebar-bottom"><CloudUserMenu /></div>diff --git a/apps/cloud/app/components/CloudSecuritySettings.vue b/apps/cloud/app/components/CloudSecuritySettings.vueindex 874ce800..1c82f3d3 100644--- a/apps/cloud/app/components/CloudSecuritySettings.vue+++ b/apps/cloud/app/components/CloudSecuritySettings.vue@@ -1,4 +1,6 @@<script setup lang="ts">+const { t } = useI18n()+import { accountError } from '../utils/account-error'const { data: security, refresh } = await useFetch<{@@ -27,7 +29,7 @@ async function run(action: () => Promise<void>) {await action()await refresh()} catch (cause) {- error.value = accountError(cause)+ error.value = accountError(cause, t)} finally {busy.value = false}@@ -44,7 +46,9 @@ async function changePassword() {})newPassword.value = ''password.value = ''- notice.value = 'Password updated. Other sessions have been signed out.'+ notice.value = t(+ 'cloud.messages.passwordUpdatedOtherSessionsHaveBeenSignedOut',+ )})}async function enable(method: 'otp' | 'totp') {@@ -62,9 +66,9 @@ async function enable(method: 'otp' | 'totp') {width: 240,margin: 2,})- notice.value =- 'Scan the QR code, save your recovery codes, and enter a code to finish setup.'- } else notice.value = 'Email second-step verification is enabled.'+ notice.value = t('cloud.messages.scanTheQrCodeSaveYourRecoveryCodesAnd')+ } else+ notice.value = t('cloud.messages.emailSecondStepVerificationIsEnabled')})}async function confirmAuthenticator() {@@ -76,8 +80,9 @@ async function confirmAuthenticator() {code.value = ''qr.value = ''totpURI.value = ''- notice.value =- 'Authenticator verified and enabled. Keep your recovery codes somewhere safe.'+ notice.value = t(+ 'cloud.messages.authenticatorVerifiedAndEnabledKeepYourRecoveryCodesSomewhere',+ )})}async function disable() {@@ -90,7 +95,7 @@ async function disable() {backupCodes.value = []qr.value = ''totpURI.value = ''- notice.value = 'Two-step verification has been disabled.'+ notice.value = t('cloud.messages.twoStepVerificationHasBeenDisabled')})}async function regenerate() {@@ -101,19 +106,21 @@ async function regenerate() {)backupCodes.value = result.backupCodespassword.value = ''- notice.value =- 'New recovery codes generated. Your previous codes no longer work.'+ notice.value = t(+ 'cloud.messages.newRecoveryCodesGeneratedYourPreviousCodesNoLonger',+ )})}async function addPasskey() {await run(async () => {const result = await useCloudAccount().passkey.addPasskey({- name: passkeyName.value.trim() || 'My passkey',+ name: passkeyName.value.trim() || t('cloud.messages.myPasskey'),})if (result.error) throw result.errorpasskeyName.value = ''- notice.value =- 'Passkey created. Its private key stays on your device or password manager.'+ notice.value = t(+ 'cloud.messages.passkeyCreatedItsPrivateKeyStaysOnYourDevice',+ )})}async function deletePasskey(id: number) {@@ -122,7 +129,7 @@ async function deletePasskey(id: number) {method: 'POST',body: { id: String(id) },})- notice.value = 'Passkey removed.'+ notice.value = t('cloud.messages.passkeyRemoved')})}</script>@@ -137,10 +144,10 @@ async function deletePasskey(id: number) {id="security-heading"class="cf-page-title">- Security+ {{ $t('cloud.messages.security') }}</h2><p class="cf-page-description">- Manage sign-in methods for {{ security?.email }}.+ {{ $t('cloud.ui.securityFor', { email: security?.email || '' }) }}.</p></div></div>@@ -160,15 +167,19 @@ async function deletePasskey(id: number) {</p><CloudCard class="cf-security-card"><div class="cf-settings-intro">- <h2>Password</h2>- <p>Use a unique password with at least 12 characters.</p>+ <h2>{{ $t('cloud.messages.password') }}</h2>+ <p>+ {{ $t('cloud.messages.useAUniquePasswordWithAtLeast12Characters') }}+ </p></div><div class="cf-settings-body"><formv-if="security?.hasPassword"@submit.prevent="changePassword">- <label for="current-password">Current password</label+ <label for="current-password">{{+ $t('cloud.messages.currentPassword')+ }}</label><CloudInputid="current-password"v-model="password"@@ -176,7 +187,9 @@ async function deletePasskey(id: number) {autocomplete="current-password":disabled="busy"required- /><label for="new-password">New password</label+ /><label for="new-password">{{+ $t('cloud.messages.newPassword')+ }}</label><CloudInputid="new-password"v-model="newPassword"@@ -189,38 +202,47 @@ async function deletePasskey(id: number) {/><CloudButtontype="submit":loading="busy"- >Update password</CloudButton+ >{{ $t('cloud.messages.updatePassword') }}</CloudButton></form><p v-else>- You signed in with an email code.- <NuxtLink+ {{ $t('cloud.messages.youSignedInWithAnEmailCode')+ }}<NuxtLinkclass="cf-text-link"to="/forgot-password"- >Email yourself a link to set a password</NuxtLink- >- before enabling two-step verification.+ >{{+ $t('cloud.messages.emailYourselfALinkToSetAPassword')+ }}</NuxtLink+ >{{ $t('cloud.messages.beforeEnablingTwoStepVerification') }}</p></div></CloudCard><CloudCard class="cf-security-card"><div class="cf-settings-intro"><div>- <h2>Two-step verification</h2>+ <h2>{{ $t('cloud.messages.twoStepVerification') }}</h2><p>- Add a code after password sign-in. Connected authenticators also- protect email-code sign-in. Passkeys use device verification.+ {{+ $t(+ 'cloud.messages.addACodeAfterPasswordSignInConnectedAuthenticators',+ )+ }}</p></div><CloudBadge:tone="security?.twoFactorEnabled ? 'success' : 'neutral'"- >{{ security?.twoFactorEnabled ? 'Enabled' : 'Off' }}</CloudBadge+ >{{+ security?.twoFactorEnabled+ ? $t('cloud.messages.enabled')+ : $t('cloud.messages.off')+ }}</CloudBadge></div><div class="cf-settings-body"><template v-if="security?.hasPassword"- ><label for="security-password"- >Confirm your password to change security settings</label+ ><label for="security-password">{{+ $t('cloud.messages.confirmYourPasswordToChangeSecuritySettings')+ }}</label><CloudInputid="security-password"v-model="password"@@ -233,19 +255,21 @@ async function deletePasskey(id: number) {v-if="!security.twoFactorEnabled":disabled="busy || !password"@click="enable('otp')"- >Enable email verification</CloudButton+ >{{ $t('cloud.messages.enableEmailVerification') }}</CloudButton><CloudButtonv-if="!security.hasAuthenticator"variant="secondary":disabled="busy || !password"@click="enable('totp')"- >Set up authenticator</CloudButton+ >{{ $t('cloud.messages.setUpAuthenticator') }}</CloudButton><CloudButtonv-if="security.twoFactorEnabled"variant="destructive":disabled="busy || !password"@click="disable"- >Disable two-step verification</CloudButton+ >{{+ $t('cloud.messages.disableTwoStepVerification')+ }}</CloudButton></div><div@@ -257,14 +281,20 @@ async function deletePasskey(id: number) {:src="qr"width="240"height="240"- alt="Scan this private QR code with your authenticator app"+ :alt="+ $t(+ 'cloud.messages.scanThisPrivateQrCodeWithYourAuthenticatorApp',+ )+ "/><details>- <summary>Cannot scan the QR code?</summary>+ <summary>{{ $t('cloud.messages.cannotScanTheQrCode') }}</summary><p class="cf-secret-value">{{ totpURI }}</p></details><form @submit.prevent="confirmAuthenticator">- <label for="totp-code">Authenticator code</label+ <label for="totp-code">{{+ $t('cloud.messages.authenticatorCode')+ }}</label><CloudInputid="totp-code"v-model="code"@@ -277,28 +307,37 @@ async function deletePasskey(id: number) {/><CloudButtontype="submit":loading="busy"- >Verify and enable</CloudButton+ >{{ $t('cloud.messages.verifyAndEnable') }}</CloudButton></form></div><div v-if="security.hasAuthenticator"><p>- Authenticator connected. Recovery codes are single use. Generating- new codes replaces the old ones.+ {{+ $t(+ 'cloud.messages.authenticatorConnectedRecoveryCodesAreSingleUseGeneratingNew',+ )+ }}</p><CloudButtonvariant="secondary":disabled="busy || !password"@click="regenerate"- >Replace recovery codes</CloudButton+ >{{ $t('cloud.messages.replaceRecoveryCodes') }}</CloudButton></div><divv-if="backupCodes.length"class="cf-notice">- <strong>Save these recovery codes privately.</strong>- <p>These are only shown here. Keep them outside this browser.</p>+ <strong>{{+ $t('cloud.messages.saveTheseRecoveryCodesPrivately')+ }}</strong>+ <p>+ {{+ $t('cloud.messages.theseAreOnlyShownHereKeepThemOutsideThis')+ }}+ </p><ul class="cf-recovery-codes"><liv-for="item in backupCodes"@@ -310,7 +349,7 @@ async function deletePasskey(id: number) {<CloudButtonvariant="secondary"@click="backupCodes = []"- >I have saved my codes</CloudButton+ >{{ $t('cloud.messages.iHaveSavedMyCodes') }}</CloudButton></div></template>@@ -318,26 +357,29 @@ async function deletePasskey(id: number) {><CloudCard class="cf-security-card"><div class="cf-settings-intro">- <h2>Passkeys</h2>+ <h2>{{ $t('cloud.messages.passkeys') }}</h2><p>- Use your device lock, fingerprint or security key. Your device creates- the keys automatically.+ {{+ $t('cloud.messages.useYourDeviceLockFingerprintOrSecurityKeyYour')+ }}</p></div><div class="cf-settings-body"><form @submit.prevent="addPasskey">- <label for="passkey-name">Passkey name</label+ <label for="passkey-name">{{+ $t('cloud.messages.passkeyName')+ }}</label><CloudInputid="passkey-name"v-model="passkeyName"maxlength="80"autocomplete="off"- placeholder="For example, my laptop"+ :placeholder="$t('cloud.messages.forExampleMyLaptop')":disabled="busy"/><CloudButtontype="submit":loading="busy"- >Create passkey</CloudButton+ >{{ $t('cloud.messages.createPasskey') }}</CloudButton></form><ul@@ -348,14 +390,18 @@ async function deletePasskey(id: number) {v-for="key in security.passkeys":key="key.id">- <span>{{ key.name || 'Passkey' }}</span+ <span>{{ key.name || $t('cloud.messages.passkey') }}</span><CloudButtonvariant="destructive"size="sm":disabled="busy"- :aria-label="`Remove ${key.name || 'passkey'}`"+ :aria-label="+ $t('cloud.ui.removePasskey', {+ name: key.name || $t('cloud.messages.passkey'),+ })+ "@click="deletePasskey(key.id)"- >Remove</CloudButton+ >{{ $t('cloud.messages.remove') }}</CloudButton></li></ul>@@ -363,7 +409,7 @@ async function deletePasskey(id: number) {v-elseclass="cf-auth-hint">- No passkeys yet.+ {{ $t('cloud.messages.noPasskeysYet') }}</p></div></CloudCard>diff --git a/apps/cloud/app/components/CloudSidebarNavigation.vue b/apps/cloud/app/components/CloudSidebarNavigation.vueindex fc46d7e9..54ffc7eb 100644--- a/apps/cloud/app/components/CloudSidebarNavigation.vue+++ b/apps/cloud/app/components/CloudSidebarNavigation.vue@@ -33,26 +33,32 @@ watch(mode, (next) => {><NuxtLinkto="/sites"class="cf-sidebar-back"- ><ArrowLeft :size="15" />All sites</NuxtLink+ ><ArrowLeft :size="15" />{{+ $t('cloud.messages.allSites')+ }}</NuxtLink><div class="cf-sidebar-site"><span class="cf-site-icon"><Images :size="18" /></span><div><strong>{{ site.name }}</strong><span>{{- site.published ? 'Published gallery' : 'Private draft'+ site.published+ ? $t('cloud.messages.publishedGallery')+ : $t('cloud.messages.privateDraft')}}</span></div></div>- <p class="cf-nav-label">MANAGE SITE</p>- <nav aria-label="Site navigation">+ <p class="cf-nav-label">{{ $t('cloud.messages.manageSite') }}</p>+ <nav :aria-label="$t('cloud.messages.siteNavigation')"><NuxtLink:to="`/sites/${site.siteId}/overview`":class="{ active: route.path.endsWith('/overview') }":aria-current="route.path.endsWith('/overview') ? 'page' : undefined"- ><LayoutDashboard :size="17" />Overview</NuxtLink+ ><LayoutDashboard :size="17" />{{+ $t('cloud.messages.overview')+ }}</NuxtLink><NuxtLink:to="`/sites/${site.siteId}/photos`"@@ -60,14 +66,18 @@ watch(mode, (next) => {:aria-current="route.path.endsWith('/photos') ? 'page' : undefined"- ><Images :size="17" />Photo library</NuxtLink+ ><Images :size="17" />{{+ $t('cloud.messages.photoLibrary')+ }}</NuxtLink><NuxtLink:to="`/sites/${site.siteId}/albums`":class="{ active: route.path.endsWith('/albums') }":aria-current="route.path.endsWith('/albums') ? 'page' : undefined"- ><LibraryBig :size="17" />Albums</NuxtLink+ ><LibraryBig :size="17" />{{+ $t('cloud.messages.albums')+ }}</NuxtLink><NuxtLink:to="`/sites/${site.siteId}/information`"@@ -75,36 +85,44 @@ watch(mode, (next) => {:aria-current="route.path.endsWith('/information') ? 'page' : undefined"- ><Settings :size="17" />Site information</NuxtLink+ ><Settings :size="17" />{{+ $t('cloud.messages.siteInformation')+ }}</NuxtLink></nav>- <p class="cf-nav-label cf-nav-section">SITE RESOURCES</p>- <nav aria-label="Site resources">+ <p class="cf-nav-label cf-nav-section">+ {{ $t('cloud.messages.siteResources') }}+ </p>+ <nav :aria-label="$t('cloud.messages.siteResources2')"><NuxtLink:to="`/sites/${site.siteId}/domains`":class="{ active: route.path.endsWith('/domains') }":aria-current="route.path.endsWith('/domains') ? 'page' : undefined"- ><Globe :size="17" />Domains</NuxtLink+ ><Globe :size="17" />{{ $t('cloud.messages.domains') }}</NuxtLink><NuxtLink:to="`/sites/${site.siteId}/storage`":class="{ active: route.path.endsWith('/storage') }":aria-current="route.path.endsWith('/storage') ? 'page' : undefined"- ><HardDrive :size="17" />Storage</NuxtLink+ ><HardDrive :size="17" />{{+ $t('cloud.messages.storage')+ }}</NuxtLink></nav></template><template v-else- ><p class="cf-nav-label">WORKSPACE</p>- <nav aria-label="Portal navigation">+ ><p class="cf-nav-label">{{ $t('cloud.messages.workspace2') }}</p>+ <nav :aria-label="$t('cloud.messages.portalNavigation')"><NuxtLinkto="/sites":class="{ active: route.path === '/sites' }":aria-current="route.path === '/sites' ? 'page' : undefined"- ><PanelsTopLeft :size="17" />Sites</NuxtLink+ ><PanelsTopLeft :size="17" />{{+ $t('cloud.messages.sites')+ }}</NuxtLink></nav></template>diff --git a/apps/cloud/app/components/CloudSiteCreate.vue b/apps/cloud/app/components/CloudSiteCreate.vueindex 3eacf683..5764a254 100644--- a/apps/cloud/app/components/CloudSiteCreate.vue+++ b/apps/cloud/app/components/CloudSiteCreate.vue@@ -1,4 +1,6 @@<script setup lang="ts">+const { t } = useI18n()+import { Plus, ArrowRight, Layers } from 'lucide-vue-next'defineProps<{ workspaceName?: string }>()const open = ref(false)@@ -39,12 +41,12 @@ async function create() {const status = (cause as { statusCode?: number }).statusCodeerror.value =status === 409- ? 'This address is already taken, or this request changed. Choose another address and try again.'+ ? t('cloud.messages.thisAddressIsAlreadyTakenOrThisRequestChanged'): status === 400- ? 'Check the site name and address. This address may be reserved.'+ ? t('cloud.messages.checkTheSiteNameAndAddressThisAddressMay'): status === 403- ? 'You cannot create another site in this workspace. The preview supports up to 10 sites.'- : 'Your site could not be created. Please try again.'+ ? t('cloud.messages.youCannotCreateAnotherSiteInThisWorkspaceThe')+ : t('cloud.messages.yourSiteCouldNotBeCreatedPleaseTryAgain')} finally {busy.value = false}@@ -52,13 +54,16 @@ async function create() {</script><template><div class="cf-workspace-toolbar">- <span><Layers :size="15" />{{ workspaceName || 'My workspace' }}</span+ <span+ ><Layers :size="15" />{{+ workspaceName || $t('cloud.messages.myWorkspace')+ }}</span><CloudButtonv-if="!open"id="create-site-trigger"size="sm"@click="show"- ><Plus :size="15" />Create site</CloudButton+ ><Plus :size="15" />{{ $t('cloud.messages.createSite') }}</CloudButton></div><CloudCard@@ -66,10 +71,9 @@ async function create() {class="cf-create-panel"><div class="cf-panel-heading">- <h2>Create a site</h2>+ <h2>{{ $t('cloud.messages.createASite') }}</h2><p>- Start with a private draft. Your address is reserved until publishing is- available.+ {{ $t('cloud.messages.startWithAPrivateDraftYourAddressIsReserved') }}</p></div><form@@ -78,7 +82,7 @@ async function create() {><div class="cf-create-fields"><div class="cf-field">- <label for="site-name">Site name</label+ <label for="site-name">{{ $t('cloud.messages.siteName') }}</label><CloudInputid="site-name"v-model="name"@@ -89,7 +93,7 @@ async function create() {/></div><div class="cf-field">- <label for="site-slug">Site address</label+ <label for="site-slug">{{ $t('cloud.messages.siteAddress') }}</label><CloudInputid="site-slug"v-model="slug"@@ -115,8 +119,7 @@ async function create() {id="site-address-help"class="cf-field-hint">- Use 3–40 lowercase letters, numbers or hyphens. Some addresses are- reserved. The address cannot be changed here.+ {{ $t('cloud.messages.use340LowercaseLettersNumbersOrHyphensSome') }}</p><pv-if="error"@@ -129,14 +132,17 @@ async function create() {<CloudButtontype="submit":disabled="busy || !name.trim() || !validSlug"- >{{ busy ? 'Creating…' : 'Create draft'+ >{{+ busy+ ? $t('cloud.messages.creating')+ : $t('cloud.messages.createDraft')}}<ArrowRight :size="14" /></CloudButton><CloudButtontype="button"variant="ghost":disabled="busy"@click="cancel"- >Cancel</CloudButton+ >{{ $t('cloud.messages.cancel') }}</CloudButton></div></form>diff --git a/apps/cloud/app/components/CloudSitePublication.vue b/apps/cloud/app/components/CloudSitePublication.vueindex ddeb61a2..47762f52 100644--- a/apps/cloud/app/components/CloudSitePublication.vue+++ b/apps/cloud/app/components/CloudSitePublication.vue@@ -48,15 +48,17 @@ async function unpublish() {<template><div class="cf-site-page-header"><div class="cf-site-heading">- <h1>Overview</h1>+ <h1>{{ $t('cloud.messages.overview') }}</h1><div class="cf-site-publication"><CloudBadge :tone="context?.published ? 'success' : 'neutral'">{{- context?.published ? 'Published' : 'Private draft'+ context?.published+ ? $t('cloud.messages.published')+ : $t('cloud.messages.privateDraft')}}</CloudBadge><span>{{context?.published- ? 'Your gallery is live.'- : 'Only your workspace can manage this gallery.'+ ? $t('cloud.messages.yourGalleryIsLive')+ : $t('cloud.messages.onlyYourWorkspaceCanManageThisGallery')}}</span></div></div>@@ -70,7 +72,7 @@ async function unpublish() {:href="address"target="_blank"rel="noopener noreferrer"- >View site<ArrowUpRight :size="14" /></a+ >{{ $t('cloud.messages.viewSite') }}<ArrowUpRight :size="14" /></a></CloudButton><CloudButtonv-if="admin"@@ -82,7 +84,9 @@ async function unpublish() {:loading="busy"@click="context?.published ? (unpublishOpen = true) : publish(true)"><Globe :size="14" />{{- context?.published ? 'Unpublish' : 'Publish gallery'+ context?.published+ ? $t('cloud.messages.unpublish')+ : $t('cloud.messages.publishGallery')}}</CloudButton></div>@@ -92,13 +96,19 @@ async function unpublish() {class="cf-site-address-row"><span class="cf-site-address-label">{{- context?.published ? 'Public address' : 'Reserved address'+ context?.published+ ? $t('cloud.messages.publicAddress')+ : $t('cloud.messages.reservedAddress')}}</span><span class="cf-site-address-value">{{ address }}</span><CloudButtonvariant="ghost"size="sm"- :aria-label="copied ? 'Address copied' : 'Copy site address'"+ :aria-label="+ copied+ ? $t('cloud.messages.addressCopied2')+ : $t('cloud.messages.copySiteAddress')+ "@click="copyAddress"><Checkv-if="copied"@@ -106,54 +116,64 @@ async function unpublish() {/><Copyv-else:size="14"- />{{ copied ? 'Copied' : 'Copy link' }}</CloudButton+ />{{+ copied ? $t('cloud.messages.copied') : $t('cloud.messages.copyLink')+ }}</CloudButton></div><pv-else-if="status === 'pending'"class="cf-draft-hint">- Loading site address…+ {{ $t('cloud.messages.loadingSiteAddress') }}</p><pv-else-if="error"class="cf-draft-hint"role="alert">- Site address could not be loaded.<CloudButton+ {{ $t('cloud.messages.siteAddressCouldNotBeLoaded')+ }}<CloudButtonvariant="ghost"size="sm"@click="refresh()"- >Retry</CloudButton+ >{{ $t('cloud.messages.retry') }}</CloudButton></p><pv-elseclass="cf-draft-hint">- No default address is available for this site.+ {{ $t('cloud.messages.noDefaultAddressIsAvailableForThisSite') }}</p><pv-if="!context?.published"class="cf-draft-hint">- This address returns 404 until you publish your gallery.- {{+ {{ $t('cloud.messages.thisAddressReturns404UntilYouPublishYourGallery')+ }}{{loading- ? 'Checking photographs…'+ ? $t('cloud.messages.checkingPhotographs'): !photos.length- ? 'Upload a photograph and wait for processing to finish before publishing.'+ ? $t(+ 'cloud.messages.uploadAPhotographAndWaitForProcessingToFinish',+ ): admin- ? 'Ready to share? Select Publish gallery above.'- : 'Ask a workspace administrator to publish this gallery.'+ ? $t('cloud.messages.readyToShareSelectPublishGalleryAbove')+ : $t(+ 'cloud.messages.askAWorkspaceAdministratorToPublishThisGallery',+ )}}</p><pv-elseclass="cf-draft-hint">- Hidden photographs stay hidden. Password-protected albums still require- a password.+ {{+ $t(+ 'cloud.messages.hiddenPhotographsStayHiddenPasswordProtectedAlbumsStillRequire',+ )+ }}</p><pv-if="copied || copyError"@@ -162,15 +182,17 @@ async function unpublish() {>{{copyError- ? 'Could not copy the link. Select and copy the address above.'- : 'Site address copied to clipboard.'+ ? $t('cloud.messages.couldNotCopyTheLinkSelectAndCopyThe')+ : $t('cloud.messages.siteAddressCopiedToClipboard')}}</p></div><UModalv-model:open="unpublishOpen"- title="Unpublish this gallery?"- description="Your public address and shared links will return 404. Your photographs, albums and storage will remain in your workspace. You can publish again later."+ :title="$t('cloud.messages.unpublishThisGallery')"+ :description="+ $t('cloud.messages.yourPublicAddressAndSharedLinksWillReturn40')+ ":dismissible="!busy"><template@@ -188,13 +210,13 @@ async function unpublish() {variant="secondary":disabled="busy"@click="unpublishOpen = false"- >Cancel</CloudButton+ >{{ $t('cloud.messages.cancel') }}</CloudButton><CloudButtonvariant="destructive":loading="busy"@click="unpublish"- >Unpublish gallery</CloudButton+ >{{ $t('cloud.messages.unpublishGallery') }}</CloudButton></template></UModal>diff --git a/apps/cloud/app/components/CloudSiteSettings.vue b/apps/cloud/app/components/CloudSiteSettings.vueindex 79cf1947..f4b631ab 100644--- a/apps/cloud/app/components/CloudSiteSettings.vue+++ b/apps/cloud/app/components/CloudSiteSettings.vue@@ -1,4 +1,6 @@<script setup lang="ts">+const { t } = useI18n()+const props = defineProps<{ siteId: number }>()const context = useEntryContext()const {@@ -26,7 +28,7 @@ async function chooseIcon(event: Event) {!['image/png', 'image/jpeg', 'image/webp'].includes(file.type) ||file.size > 2 * 1024 * 1024) {- iconError.value = 'Choose a PNG, JPEG or WebP image up to 2 MiB.'+ iconError.value = t('cloud.messages.chooseAPngJpegOrWebpImageUpTo')input.value = ''return}@@ -50,13 +52,14 @@ async function chooseIcon(event: Event) {128,)const value = canvas.toDataURL('image/webp', 0.85)- if (value.length > 65536) throw new Error('Icon too large')+ if (value.length > 65536)+ throw new Error(t('cloud.messages.iconTooLarge'))profile.avatarUrl = value} finally {image.close()}} catch {- iconError.value = 'This image could not be used. Try another image.'+ iconError.value = t('cloud.messages.thisImageCouldNotBeUsedTryAnotherImage')} finally {iconBusy.value = falseinput.value = ''@@ -98,13 +101,13 @@ async function save() {name: result.site.name,published: !!result.site.published,}- message.value = 'Site settings saved.'+ message.value = t('cloud.messages.siteSettingsSaved')} catch (cause) {failed.value = truemessage.value =(cause as { statusCode?: number }).statusCode === 409- ? 'This site changed in another session. Reload before saving again.'- : 'Settings could not be saved. Check your access and try again.'+ ? t('cloud.messages.thisSiteChangedInAnotherSessionReloadBeforeSaving')+ : t('cloud.messages.settingsCouldNotBeSavedCheckYourAccessAnd')} finally {busy.value = false}@@ -113,18 +116,19 @@ async function save() {<template><CloudCard class="cf-site-settings"><div class="cf-panel-heading">- <h2>Gallery identity</h2>- <p>Use the same title, author and icon shown in your public gallery.</p>+ <h2>{{ $t('cloud.messages.galleryIdentity') }}</h2>+ <p>{{ $t('cloud.messages.useTheSameTitleAuthorAndIconShownIn') }}</p></div><divv-if="loadError"role="alert"class="cf-notice">- Settings could not be loaded.<CloudButton+ {{ $t('cloud.messages.settingsCouldNotBeLoaded')+ }}<CloudButtonvariant="ghost"@click="reload"- >Reload settings</CloudButton+ >{{ $t('cloud.messages.reloadSettings') }}</CloudButton></div><template v-else-if="data">@@ -135,7 +139,9 @@ async function save() {@submit.prevent="save()"><div class="cf-field">- <label for="settings-site-name">Workspace site name</label+ <label for="settings-site-name">{{+ $t('cloud.messages.workspaceSiteName')+ }}</label><CloudInputid="settings-site-name"v-model="name"@@ -145,11 +151,16 @@ async function save() {/></div><p class="cf-field-hint">- The workspace name identifies this site in your console. Leave the- public title blank to use this name.+ {{+ $t(+ 'cloud.messages.theWorkspaceNameIdentifiesThisSiteInYourConsole',+ )+ }}</p><div class="cf-field">- <label for="gallery-title">Public title</label+ <label for="gallery-title">{{+ $t('cloud.messages.publicTitle')+ }}</label><CloudInputid="gallery-title"v-model="profile.title"@@ -159,7 +170,7 @@ async function save() {/></div><div class="cf-field">- <label for="gallery-slogan">Slogan</label+ <label for="gallery-slogan">{{ $t('cloud.messages.slogan') }}</label><CloudInputid="gallery-slogan"v-model="profile.slogan"@@ -168,7 +179,7 @@ async function save() {/></div><div class="cf-field">- <label for="gallery-author">Author</label+ <label for="gallery-author">{{ $t('cloud.messages.author') }}</label><CloudInputid="gallery-author"v-model="profile.author"@@ -177,11 +188,13 @@ async function save() {/></div><div class="cf-field">- <label for="gallery-icon">Gallery icon</label+ <label for="gallery-icon">{{+ $t('cloud.messages.galleryIcon')+ }}</label><imgv-if="profile.avatarUrl":src="profile.avatarUrl"- alt="Gallery icon preview"+ :alt="$t('cloud.messages.galleryIconPreview')"width="64"height="64"class="cf-gallery-icon"@@ -193,15 +206,14 @@ async function save() {@change="chooseIcon"/><p class="cf-field-hint">- PNG, JPEG or WebP, up to 2 MiB. Cropped to a square and optimized- automatically.+ {{ $t('cloud.messages.pngJpegOrWebpUpTo2MibCropped') }}</p><CloudButtonv-if="profile.avatarUrl"variant="ghost":disabled="busy || iconBusy"@click="profile.avatarUrl = ''"- >Remove icon</CloudButton+ >{{ $t('cloud.messages.removeIcon') }}</CloudButton><pv-if="iconError"@@ -215,13 +227,17 @@ async function save() {<CloudButtontype="submit":disabled="busy || iconBusy || !name.trim()"- >{{ busy ? 'Saving…' : 'Save changes' }}</CloudButton+ >{{+ busy+ ? $t('cloud.messages.saving')+ : $t('cloud.messages.saveChanges')+ }}</CloudButton><CloudButtontype="button"variant="ghost":disabled="busy"@click="reload"- >Reload settings</CloudButton+ >{{ $t('cloud.messages.reloadSettings') }}</CloudButton></div></form>@@ -229,7 +245,11 @@ async function save() {v-elseclass="cf-field-hint">- Only workspace administrators can change these settings.+ {{+ $t(+ 'cloud.messages.onlyWorkspaceAdministratorsCanChangeTheseSettings',+ )+ }}</p><pv-if="message"diff --git a/apps/cloud/app/components/CloudStorageSettings.vue b/apps/cloud/app/components/CloudStorageSettings.vueindex 43d3218e..11f86c04 100644--- a/apps/cloud/app/components/CloudStorageSettings.vue+++ b/apps/cloud/app/components/CloudStorageSettings.vue@@ -13,24 +13,35 @@ const {<template><CloudCard><div class="cf-panel-heading">- <h2>Storage</h2>- <p>Connect a private S3-compatible bucket for your photographs.</p>+ <h2>{{ $t('cloud.messages.storage') }}</h2>+ <p>+ {{+ $t(+ 'cloud.messages.connectAPrivateS3CompatibleBucketForYourPhotographs',+ )+ }}+ </p></div><div class="cf-panel-body cf-media-controls"><label class="cf-field-label"- >Storage connection<select+ >{{ $t('cloud.messages.storageConnection')+ }}<selectv-model="connectionId"class="cf-input":disabled="!admin">- <option value="">Choose a connection</option>+ <option value="">{{ $t('cloud.messages.chooseAConnection') }}</option><optionv-for="connection in connections":key="connection.id":value="connection.id">- {{ connection.config.bucket }} · revision- {{ connection.current_revision }}+ {{+ $t('cloud.ui.connectionRevision', {+ bucket: connection.config.bucket,+ revision: connection.current_revision,+ })+ }}</option></select></label>@@ -38,20 +49,22 @@ const {v-if="admin && connectionId"class="cf-storage-details">- <summary>Rotate storage credentials</summary>+ <summary>{{ $t('cloud.messages.rotateStorageCredentials') }}</summary><formclass="cf-storage-grid"@submit.prevent="rotateStorage"><label- >New access key ID<input+ >{{ $t('cloud.messages.newAccessKeyId')+ }}<inputv-model="rotation.accessKeyId"class="cf-input"autocomplete="off"required/></label><label- >New secret access key<input+ >{{ $t('cloud.messages.newSecretAccessKey')+ }}<inputv-model="rotation.secretAccessKey"class="cf-input"type="password"@@ -62,7 +75,7 @@ const {type="submit"variant="secondary":disabled="busy"- >Test & rotate</CloudButton+ >{{ $t('cloud.messages.testRotate') }}</CloudButton></form></details>@@ -70,13 +83,14 @@ const {v-if="admin"class="cf-storage-details">- <summary>Connect storage</summary>+ <summary>{{ $t('cloud.messages.connectStorage') }}</summary><formclass="cf-storage-grid"@submit.prevent="saveStorage"><label- >Endpoint<input+ >{{ $t('cloud.messages.endpoint')+ }}<inputv-model="storage.endpoint"class="cf-input"type="url"@@ -84,26 +98,30 @@ const {required/></label><label- >Region<input+ >{{ $t('cloud.messages.region')+ }}<inputv-model="storage.region"class="cf-input"required/></label><label- >Bucket<input+ >{{ $t('cloud.messages.bucket')+ }}<inputv-model="storage.bucket"class="cf-input"required/></label><label- >Access key ID<input+ >{{ $t('cloud.messages.accessKeyId')+ }}<inputv-model="storage.accessKeyId"class="cf-input"autocomplete="off"required/></label><label- >Secret access key<input+ >{{ $t('cloud.messages.secretAccessKey')+ }}<inputv-model="storage.secretAccessKey"class="cf-input"type="password"@@ -111,14 +129,14 @@ const {required/></label><p>- Use a dedicated bucket with private access. Allow this portal origin- in CORS for GET, PUT and HEAD; allow Content-Type and expose ETag.- Other endpoint hosts require operator approval.+ {{+ $t('cloud.messages.useADedicatedBucketWithPrivateAccessAllowThis')+ }}</p><CloudButtontype="submit":disabled="busy"- >Test & connect</CloudButton+ >{{ $t('cloud.messages.testConnect') }}</CloudButton></form></details>diff --git a/apps/cloud/app/components/CloudThemeToggle.vue b/apps/cloud/app/components/CloudThemeToggle.vueindex cf845fbb..ca005317 100644--- a/apps/cloud/app/components/CloudThemeToggle.vue+++ b/apps/cloud/app/components/CloudThemeToggle.vue@@ -8,7 +8,11 @@ const dark = computed(() => mode.value === 'dark')><CloudButtonvariant="ghost"size="icon"- :aria-label="dark ? 'Switch to light theme' : 'Switch to dark theme'"+ :aria-label="+ dark+ ? $t('cloud.messages.switchToLightTheme')+ : $t('cloud.messages.switchToDarkTheme')+ "@click="mode.preference = dark ? 'light' : 'dark'"><Sunv-if="dark"diff --git a/apps/cloud/app/components/CloudUploadDrawer.vue b/apps/cloud/app/components/CloudUploadDrawer.vueindex 62f3064e..47412b75 100644--- a/apps/cloud/app/components/CloudUploadDrawer.vue+++ b/apps/cloud/app/components/CloudUploadDrawer.vue@@ -31,8 +31,10 @@ async function dropFiles(event: DragEvent) {<template><USlideoverv-model:open="uploadOpen"- title="Upload photographs"- description="Add photographs to your library. JPEG, PNG, HEIC and paired Live Photos are supported."+ :title="$t('cloud.messages.uploadPhotographs')"+ :description="+ $t('cloud.messages.addPhotographsToYourLibraryJpegPngHeicAnd')+ ":ui="{ footer: 'justify-end' }"><template #body><div class="space-y-5">@@ -44,7 +46,7 @@ async function dropFiles(event: DragEvent) {>{{ message }}</p>- <UFormField label="Storage connection"+ <UFormField :label="$t('cloud.messages.storageConnection')"><USelectv-model="connectionId":items="@@ -57,14 +59,13 @@ async function dropFiles(event: DragEvent) {v-if="!connections.length"class="text-sm text-muted">- Connect your private storage in- <NuxtLink+ {{ $t('cloud.messages.connectYourPrivateStorageIn')+ }}<NuxtLink:to="`/sites/${context?.siteId}/storage`"class="underline"@click="uploadOpen = false"- >Storage</NuxtLink- >- before uploading.+ >{{ $t('cloud.messages.storage') }}</NuxtLink+ >{{ $t('cloud.messages.beforeUploading') }}</p><inputref="input"@@ -72,7 +73,7 @@ async function dropFiles(event: DragEvent) {type="file"multipleaccept="image/*,.heic,.heif,.mov"- aria-label="Choose photographs"+ :aria-label="$t('cloud.messages.choosePhotographs')":disabled="uploading || !connectionId || !admin"@change="upload"/><button@@ -85,13 +86,13 @@ async function dropFiles(event: DragEvent) {<UIconname="tabler:cloud-upload"class="size-9"- /><strong>Select photographs</strong- ><span- >Drop images here, or choose images and matching .MOV files- together.</span- ><span- >Up to 100 MiB per photograph, including its paired video.</span- >+ /><strong>{{ $t('cloud.messages.selectPhotographs') }}</strong+ ><span>{{+ $t('cloud.messages.dropImagesHereOrChooseImagesAndMatchingMov')+ }}</span+ ><span>{{+ $t('cloud.messages.upTo100MibPerPhotographIncludingItsPaired')+ }}</span></button><divv-if="uploading"@@ -101,16 +102,19 @@ async function dropFiles(event: DragEvent) {<p class="text-sm break-all">{{ currentFile }}</p><UProgress :model-value="progress" /><p class="text-xs text-muted">- {{ progress }}% · Uploading to your private bucket+ {{ $t('cloud.ui.uploadProgress', { progress }) }}</p></div><pv-if="usage"class="text-xs text-muted">- {{ usage.photos }} / 1,000 photographs ·- {{ (usage.bytes / 1073741824).toFixed(2) }} / 5 GiB uploaded in 30- days+ {{+ $t('cloud.ui.uploadUsage', {+ photos: usage.photos,+ bytes: (usage.bytes / 1073741824).toFixed(2),+ })+ }}</p></div></template><template #footer@@ -119,13 +123,13 @@ async function dropFiles(event: DragEvent) {color="error"variant="soft"@click="cancel"- >Cancel upload</UButton+ >{{ $t('cloud.messages.cancelUpload') }}</UButton><UButtonv-elsecolor="neutral"variant="outline"@click="uploadOpen = false"- >Done</UButton+ >{{ $t('cloud.messages.done') }}</UButton></template></USlideover>diff --git a/apps/cloud/app/components/CloudUserMenu.vue b/apps/cloud/app/components/CloudUserMenu.vueindex a2d4144e..59217031 100644--- a/apps/cloud/app/components/CloudUserMenu.vue+++ b/apps/cloud/app/components/CloudUserMenu.vue@@ -1,4 +1,6 @@<script setup lang="ts">+const { t } = useI18n()+import { ChevronsUpDown, UserRound, LogOut } from 'lucide-vue-next'import {DropdownMenuRoot,@@ -11,7 +13,8 @@ import {const user = usePortalIdentity(),{ busy, error, signOut } = useCloudSignOut()const label = computed(- () => user.value?.name || user.value?.email || 'Your account',+ () =>+ user.value?.name || user.value?.email || t('cloud.messages.yourAccount'),)const initials = computed(() =>label.value@@ -35,12 +38,14 @@ const initials = computed(() =>><DropdownMenuTrigger as-child><buttonclass="cf-user-trigger"- aria-label="Open user menu"+ :aria-label="$t('cloud.messages.openUserMenu')"><span class="cf-user-avatar">{{ initials }}</span><span class="cf-user-identity"><strong>{{ label }}</strong- ><span>{{ user?.email || 'Account settings' }}</span></span+ ><span>{{+ user?.email || $t('cloud.messages.accountSettings')+ }}</span></span><ChevronsUpDown :size="15" /></button></DropdownMenuTrigger><DropdownMenuPortal@@ -50,7 +55,7 @@ const initials = computed(() =>align="start":side-offset="8":collision-padding="12"- aria-label="User menu"+ :aria-label="$t('cloud.messages.userMenu')"><div class="cf-account-menu-label"><strong>{{ label }}</strong@@ -59,7 +64,9 @@ const initials = computed(() =><DropdownMenuSeparator class="cf-menu-separator" /><DropdownMenuItem as-child><NuxtLink to="/account"- ><UserRound :size="16" />Account & security</NuxtLink+ ><UserRound :size="16" />{{+ $t('cloud.messages.accountSecurity')+ }}</NuxtLink></DropdownMenuItem><DropdownMenuSeparator class="cf-menu-separator" />@@ -67,7 +74,9 @@ const initials = computed(() =>:disabled="busy"@select="signOut"><LogOut :size="16" />{{- busy ? 'Signing out…' : 'Sign out'+ busy+ ? $t('cloud.messages.signingOut')+ : $t('cloud.messages.signOut')}}</DropdownMenuItem></DropdownMenuContent></DropdownMenuPortaldiff --git a/apps/cloud/app/composables/useCloudSignOut.ts b/apps/cloud/app/composables/useCloudSignOut.tsindex c87a918a..0fc3e81d 100644--- a/apps/cloud/app/composables/useCloudSignOut.ts+++ b/apps/cloud/app/composables/useCloudSignOut.ts@@ -1,5 +1,6 @@/** One logout behavior for account settings and the portal account menu. */export function useCloudSignOut() {+ const { t } = useI18n()const nuxtApp = useNuxtApp(),context = useEntryContext(),catalog = useState('platform-site-catalog'),@@ -27,7 +28,7 @@ export function useCloudSignOut() {navigateTo('/signin', { external: true }),)} catch {- error.value = 'We could not sign you out. Please try again.'+ error.value = t('cloud.messages.weCouldNotSignYouOutPleaseTryAgain')} finally {busy.value = false}diff --git a/apps/cloud/app/composables/useCloudSiteMedia.ts b/apps/cloud/app/composables/useCloudSiteMedia.tsindex dfdc856d..22da6200 100644--- a/apps/cloud/app/composables/useCloudSiteMedia.ts+++ b/apps/cloud/app/composables/useCloudSiteMedia.ts@@ -4,6 +4,7 @@ export function useCloudMediaWorkspace(props: {siteId: numberrole?: string}) {+ const { t } = useI18n()const entryContext = useEntryContext(),snapshot = entryContext.value?.scopeconst api = async <T = unknown>(@@ -110,8 +111,10 @@ export function useCloudMediaWorkspace(props: {failed.value = truemessage.value =(error as { statusCode?: number }).statusCode === 503- ? 'Media services need deployment configuration. Your existing site settings are available.'- : 'Could not refresh media. Check your access and retry.'+ ? t(+ 'cloud.messages.mediaServicesNeedDeploymentConfigurationYourExistingSiteSettings',+ )+ : t('cloud.messages.couldNotRefreshMediaCheckYourAccessAndRetry')canPoll.value = false} finally {if (generation === reloadGeneration) loading.value = false@@ -139,20 +142,22 @@ export function useCloudMediaWorkspace(props: {?.data?.codemessage.value =diagnostic === 'album_slug_conflict'- ? 'This album URL is already used or reserved by an older link. Choose another slug.'+ ? t('cloud.messages.thisAlbumUrlIsAlreadyUsedOrReservedBy'): diagnostic && Object.hasOwn(STORAGE_CONNECTION_MESSAGES, diagnostic)- ? STORAGE_CONNECTION_MESSAGES[- diagnostic as keyof typeof STORAGE_CONNECTION_MESSAGES- ]+ ? t('cloud.storageErrors.' + diagnostic): code === 503- ? 'Media services need deployment configuration. Check the selected environment settings.'+ ? t(+ 'cloud.messages.mediaServicesNeedDeploymentConfigurationCheckTheSelectedEnvironment',+ ): code === 409- ? 'This item changed. Refresh and try again.'+ ? t('cloud.messages.thisItemChangedRefreshAndTryAgain'): code === 429- ? 'The preview resource limit has been reached.'+ ? t('cloud.messages.thePreviewResourceLimitHasBeenReached'): code === 403- ? 'Administrator access is required.'- : 'The operation failed. Check the entered values and your connection, then retry.'+ ? t('cloud.messages.administratorAccessIsRequired')+ : t(+ 'cloud.messages.theOperationFailedCheckTheEnteredValuesAndYour',+ )return false} finally {busy.value = false@@ -163,7 +168,7 @@ export function useCloudMediaWorkspace(props: {await api(base.value + '/storage', { method: 'POST', body: storage })storage.accessKeyId = ''storage.secretAccessKey = ''- }, 'Storage connected and verified.')+ }, t('cloud.messages.storageConnectedAndVerified'))}async function rotateStorage() {const selected = connections.value.find((c) => c.id === connectionId.value)@@ -175,7 +180,7 @@ export function useCloudMediaWorkspace(props: {})rotation.accessKeyId = ''rotation.secretAccessKey = ''- }, 'Credentials rotated. Existing media references remain available.')+ }, t('cloud.messages.credentialsRotatedExistingMediaReferencesRemainAvailable'))}const photoLoaded = ref('')let photoLoadGeneration = 0@@ -191,7 +196,8 @@ export function useCloudMediaWorkspace(props: {base.value + '/photos/' + id,)if (editPhoto.id !== id || generation !== photoLoadGeneration) return- editPhoto.title = data.photo.title ?? 'Untitled photograph'+ editPhoto.title =+ data.photo.title ?? t('cloud.messages.untitledPhotograph')editPhoto.description = data.photo.description ?? ''editPhoto.tags = data.photo.tags ?? []editPhoto.rating =@@ -203,8 +209,9 @@ export function useCloudMediaWorkspace(props: {} catch {if (editPhoto.id !== id || generation !== photoLoadGeneration) returnfailed.value = true- message.value =- 'Could not load photograph settings. Select it again to retry.'+ message.value = t(+ 'cloud.messages.couldNotLoadPhotographSettingsSelectItAgainTo',+ )}}async function savePhoto() {@@ -221,7 +228,7 @@ export function useCloudMediaWorkspace(props: {rating: editPhoto.rating,},}),- 'Photograph updated.',+ t('cloud.messages.photographUpdated'),)if (saved) await loadPhoto()return saved@@ -281,7 +288,7 @@ export function useCloudMediaWorkspace(props: {localStorage.removeItem(cache)activeResumeKey = undefinedactiveUpload = undefined- throw new Error('Upload unavailable')+ throw new Error(t('cloud.messages.uploadUnavailable'))}async function put(url: string, body: Blob, type?: string) {for (let attempt = 0; attempt < 3; attempt++) {@@ -294,7 +301,7 @@ export function useCloudMediaWorkspace(props: {redirect: 'error',})if (response.ok) return- if (attempt === 2) throw new Error('Upload failed')+ if (attempt === 2) throw new Error(t('cloud.messages.uploadFailed'))await new Promise((resolve) => setTimeout(resolve, 500 * 2 ** attempt))}}@@ -346,8 +353,9 @@ export function useCloudMediaWorkspace(props: {files.every(isVideo)) {failed.value = true- message.value =- 'Each photograph and its matching Live Photo MOV must total at most 100 MiB. A MOV must accompany a photograph with the same filename.'+ message.value = t(+ 'cloud.messages.eachPhotographAndItsMatchingLivePhotoMovMust',+ )input.value = ''return}@@ -364,12 +372,14 @@ export function useCloudMediaWorkspace(props: {progress.value = 0await sendFile(file, companion)}- message.value = 'Upload verified. Processing continues in the background.'+ message.value = t(+ 'cloud.messages.uploadVerifiedProcessingContinuesInTheBackground',+ )} catch {failed.value = truemessage.value = controller.signal.aborted- ? 'Upload cancelled.'- : 'Upload interrupted. Select the same file to resume its uploaded parts.'+ ? t('cloud.messages.uploadCancelled')+ : t('cloud.messages.uploadInterruptedSelectTheSameFileToResumeIts')} finally {uploading.value = falseinput.value = ''@@ -391,7 +401,9 @@ export function useCloudMediaWorkspace(props: {async function removePhoto(id: string) {if (!window.confirm(- 'Delete this photograph and its managed original, thumbnail and Live Photo files from storage?',+ t(+ 'cloud.messages.deleteThisPhotographAndItsManagedOriginalThumbnailAnd',+ ),))return@@ -401,7 +413,9 @@ export function useCloudMediaWorkspace(props: {method: 'POST',body: {},}),- 'Photograph deleted. Managed storage files are queued for cleanup.',+ t(+ 'cloud.messages.photographDeletedManagedStorageFilesAreQueuedForCleanup',+ ),)}async function publish(value: boolean) {@@ -420,7 +434,9 @@ export function useCloudMediaWorkspace(props: {if (context.value?.siteId === props.siteId)context.value.published = result.published},- value ? 'Gallery published.' : 'Gallery unpublished.',+ value+ ? t('cloud.messages.galleryPublished')+ : t('cloud.messages.galleryUnpublished'),)}onMounted(() => {diff --git a/apps/cloud/app/error.vue b/apps/cloud/app/error.vueindex e12b0eac..62b03a7e 100644--- a/apps/cloud/app/error.vue+++ b/apps/cloud/app/error.vue@@ -2,10 +2,12 @@import type { NuxtError } from '#app'import { ArrowLeft, RotateCw } from 'lucide-vue-next'const props = defineProps<{ error: NuxtError }>()-useHead({+const { locale } = useI18n()+useHead(() => ({+ htmlAttrs: { lang: locale.value === 'zh-Hans' ? 'zh-CN' : 'en' },title: 'ChronoFrame',meta: [{ name: 'robots', content: 'noindex' }],-})+}))const notFound = computed(() => props.error.statusCode === 404)</script><template>@@ -16,13 +18,17 @@ const notFound = computed(() => props.error.statusCode === 404)<CloudBrand /><p class="cf-error-code">{{ error.statusCode }}</p><h1>- {{ notFound ? 'A frame we couldn’t find.' : 'A moment out of focus.' }}+ {{+ notFound+ ? $t('cloud.messages.aFrameWeCouldnTFind')+ : $t('cloud.messages.aMomentOutOfFocus')+ }}</h1><p>{{notFound- ? 'This page may have moved, or you may not have access to it.'- : 'We couldn’t load this page. Please try again in a moment.'+ ? $t('cloud.messages.thisPageMayHaveMovedOrYouMayNot')+ : $t('cloud.messages.weCouldnTLoadThisPagePleaseTryAgain')}}</p><div class="cf-header-actions">@@ -30,12 +36,12 @@ const notFound = computed(() => props.error.statusCode === 404)variant="secondary"as-child><a href="https://chronoframe.art/"- ><ArrowLeft :size="15" />Back to home</a+ ><ArrowLeft :size="15" />{{ $t('cloud.messages.backToHome') }}</a></CloudButton><CloudButtonv-if="!notFound"@click="reloadNuxtApp({ force: true })"- ><RotateCw :size="15" />Try again</CloudButton+ ><RotateCw :size="15" />{{ $t('cloud.messages.tryAgain') }}</CloudButton></div></main>diff --git a/apps/cloud/app/pages/account/index.vue b/apps/cloud/app/pages/account/index.vueindex 84beff29..ac66342b 100644--- a/apps/cloud/app/pages/account/index.vue+++ b/apps/cloud/app/pages/account/index.vue@@ -1,8 +1,10 @@<script setup lang="ts">+const { t } = useI18n()+import { ShieldCheck } from 'lucide-vue-next'definePageMeta({ layout: 'portal' })useSeoMeta({- title: 'Account & security — ChronoFrame Cloud',+ title: t('cloud.messages.accountSecurityChronoframeCloud'),robots: 'noindex',})const user = usePortalIdentity()@@ -11,9 +13,11 @@ const user = usePortalIdentity()<div class="cf-account-page"><div class="cf-page-heading"><div>- <h1 class="cf-page-title">Account & security</h1>+ <h1 class="cf-page-title">+ {{ $t('cloud.messages.accountSecurity') }}+ </h1><p class="cf-page-description">- Your profile, preferences and sign-in methods.+ {{ $t('cloud.messages.yourProfilePreferencesAndSignInMethods') }}</p></div></div>@@ -22,22 +26,24 @@ const user = usePortalIdentity()id="profile-heading"class="cf-section-title">- Profile+ {{ $t('cloud.messages.profile') }}</h2><CloudCard class="cf-settings-card"><div class="cf-setting-row"><div>- <h3>Email address</h3>+ <h3>{{ $t('cloud.messages.emailAddress') }}</h3><p>{{ user?.email }}</p></div><CloudBadge tone="success"- ><ShieldCheck :size="12" />Verified</CloudBadge+ ><ShieldCheck :size="12" />{{+ $t('cloud.messages.verified')+ }}</CloudBadge></div><div class="cf-setting-row"><div>- <h3>Appearance</h3>- <p>Choose the light that suits you.</p>+ <h3>{{ $t('cloud.messages.appearance') }}</h3>+ <p>{{ $t('cloud.messages.chooseTheLightThatSuitsYou') }}</p></div><CloudThemeToggle /></div></CloudCard>diff --git a/apps/cloud/app/pages/forgot-password.vue b/apps/cloud/app/pages/forgot-password.vueindex 6992a252..d33e33b2 100644--- a/apps/cloud/app/pages/forgot-password.vue+++ b/apps/cloud/app/pages/forgot-password.vue@@ -1,6 +1,11 @@<script setup lang="ts">+const { t } = useI18n()+import { accountError } from '../utils/account-error'-useSeoMeta({ title: 'Reset password — ChronoFrame Cloud', robots: 'noindex' })+useSeoMeta({+ title: t('cloud.messages.resetPasswordChronoframeCloud'),+ robots: 'noindex',+})const email = ref(''),busy = ref(false),sent = ref(false),@@ -18,7 +23,7 @@ async function submit() {})sent.value = true} catch (cause) {- error.value = accountError(cause)+ error.value = accountError(cause, t)} finally {busy.value = false}@@ -26,24 +31,20 @@ async function submit() {</script><template><CloudAuthLayout- ><h1>A fresh start.</h1>- <p>- We will email you a link to reset your password. Existing email-code- accounts can use this to set their first password.- </p>+ ><h1>{{ $t('cloud.messages.aFreshStart') }}</h1>+ <p>{{ $t('cloud.messages.weWillEmailYouALinkToResetYour') }}</p><pv-if="sent"class="cf-notice"role="status">- If this address has an account, a password reset link is on its way. Check- your inbox.+ {{ $t('cloud.messages.ifThisAddressHasAnAccountAPasswordReset') }}</p><formv-else@submit.prevent="submit">- <label for="email">Email address</label+ <label for="email">{{ $t('cloud.messages.emailAddress') }}</label><CloudInputid="email"v-model="email"@@ -62,14 +63,14 @@ async function submit() {<CloudButtontype="submit":loading="busy"- >Send reset link</CloudButton+ >{{ $t('cloud.messages.sendResetLink') }}</CloudButton></form><p class="cf-auth-hint"><NuxtLinkto="/signin"class="cf-text-link"- >Back to sign in</NuxtLink+ >{{ $t('cloud.messages.backToSignIn') }}</NuxtLink></p></CloudAuthLayout>diff --git a/apps/cloud/app/pages/index.vue b/apps/cloud/app/pages/index.vueindex 7c1bca11..e763a657 100644--- a/apps/cloud/app/pages/index.vue+++ b/apps/cloud/app/pages/index.vue@@ -1,4 +1,6 @@<script setup lang="ts">+const { t } = useI18n()+import { motion } from 'motion-v'import {ArrowUpRight,@@ -14,9 +16,10 @@ const mobileMenuOpen = ref(false)const entrance = useCloudMotion()const links = useCloudLinks()useSeoMeta({- title: 'ChronoFrame — A home for your photography',- description:- 'A thoughtful home for your photographs. Beautiful galleries, your own storage, and an open-source heart.',+ title: t('cloud.messages.chronoframeAHomeForYourPhotography'),+ description: t(+ 'cloud.messages.aThoughtfulHomeForYourPhotographsBeautifulGalleriesYour',+ ),})</script><template>@@ -25,9 +28,11 @@ useSeoMeta({<CloudBrand /><navclass="cf-marketing-nav"- aria-label="Main navigation"+ :aria-label="$t('cloud.messages.mainNavigation')">- <a href="https://docs.chronoframe.art/">Documentation</a+ <a href="https://docs.chronoframe.art/">{{+ $t('cloud.messages.documentation')+ }}</a><a href="https://github.com/HoshinoSuzumi/chronoframe">GitHub<ArrowUpRight@@ -42,7 +47,7 @@ useSeoMeta({><NuxtLink:to="links.signin"external- >Log in</NuxtLink+ >{{ $t('cloud.messages.logIn') }}</NuxtLink></CloudButton><CloudButtonas-child@@ -50,7 +55,8 @@ useSeoMeta({><NuxtLink:to="links.signup"external- >Get started <ArrowUpRight :size="14" /></NuxtLink+ >{{ $t('cloud.messages.getStarted')+ }}<ArrowUpRight :size="14" /></NuxtLink></CloudButton></nav><div class="cf-mobile-header-actions">@@ -60,7 +66,7 @@ useSeoMeta({><NuxtLink:to="links.signup"external- >Sign up</NuxtLink+ >{{ $t('cloud.messages.signUp') }}</NuxtLink></CloudButton><PopoverRoot v-model:open="mobileMenuOpen">@@ -68,7 +74,7 @@ useSeoMeta({><CloudButtonvariant="ghost"size="icon"- aria-label="Open navigation"+ :aria-label="$t('cloud.messages.openNavigation')"><Menu :size="20" /></CloudButton></PopoverTrigger><PopoverContent@@ -76,23 +82,25 @@ useSeoMeta({align="end":side-offset="12":collision-padding="20"- aria-label="Navigation"+ :aria-label="$t('cloud.messages.navigation')">- <nav aria-label="Mobile navigation">+ <nav :aria-label="$t('cloud.messages.mobileNavigation')"><NuxtLink:to="links.signin"external- >Log in <ArrowRight :size="16"+ >{{ $t('cloud.messages.logIn') }}<ArrowRight :size="16"/></NuxtLink><a href="https://docs.chronoframe.art/"- >Documentation <ArrowUpRight :size="15"+ >{{ $t('cloud.messages.documentation')+ }}<ArrowUpRight :size="15"/></a><a href="https://github.com/HoshinoSuzumi/chronoframe">GitHub <ArrowUpRight :size="15"/></a></nav><div class="cf-mobile-menu-theme">- <span>Appearance</span><CloudThemeToggle />+ <span>{{ $t('cloud.messages.appearance') }}</span+ ><CloudThemeToggle /></div></PopoverContent></PopoverRoot>@@ -104,11 +112,16 @@ useSeoMeta({><section class="cf-hero"><motion.div v-bind="entrance"- ><p class="cf-eyebrow">YOUR PHOTOGRAPHY. YOUR PERSPECTIVE.</p>- <h1 class="cf-hero-title">Every frame.<br /><em>Your story.</em></h1>+ ><p class="cf-eyebrow">+ {{ $t('cloud.messages.yourPhotographyYourPerspective') }}+ </p>+ <h1 class="cf-hero-title">+ {{ $t('cloud.messages.everyFrame') }}<br /><em>{{+ $t('cloud.messages.yourStory')+ }}</em>+ </h1><p class="cf-hero-copy">- A home for the moments you want to share. Bring your photographs- together in a gallery that feels entirely yours.+ {{ $t('cloud.messages.aHomeForTheMomentsYouWantToShare') }}</p><div class="cf-hero-actions"><CloudButton@@ -117,54 +130,59 @@ useSeoMeta({><NuxtLink:to="links.signup"external- >Create your account- <ArrowRight :size="16" /></NuxtLink></CloudButton+ >{{ $t('cloud.messages.createYourAccount')+ }}<ArrowRight :size="16" /></NuxtLink></CloudButton><CloudButtonas-childvariant="secondary"size="lg"><a href="https://docs.chronoframe.art/guide/getting-started.html"- >Explore Self-hosted <ArrowUpRight :size="16" /></a+ >{{ $t('cloud.messages.exploreSelfHosted')+ }}<ArrowUpRight :size="16" /></a></CloudButton></div><p class="cf-small-note">- Self-hosted is available now. Cloud is in preview.+ {{ $t('cloud.messages.selfHostedIsAvailableNowCloudIsInPreview') }}</p></motion.div><motion.div v-bind="entrance"><divclass="cf-gallery-preview"- aria-label="Example photography gallery"+ :aria-label="$t('cloud.messages.examplePhotographyGallery')"><div class="cf-preview-top">- <span>FIELD NOTES</span><span>A CHRONOFRAME GALLERY</span>+ <span>{{ $t('cloud.messages.fieldNotes') }}</span+ ><span>{{ $t('cloud.messages.aChronoframeGallery') }}</span></div><div class="cf-preview-grid"><imgsrc="/images/mountains.jpg"- alt="Sunlit mountain peaks beneath a soft blue sky"+ :alt="+ $t('cloud.messages.sunlitMountainPeaksBeneathASoftBlueSky')+ "width="1200"height="800"fetchpriority="high"/><imgsrc="/images/forest.jpg"- alt="Light falling through a quiet green forest"+ :alt="$t('cloud.messages.lightFallingThroughAQuietGreenForest')"width="800"height="600"/><imgsrc="/images/coast.jpg"- alt="An ocean shore in the warm light of sunset"+ :alt="$t('cloud.messages.anOceanShoreInTheWarmLightOfSunset')"width="800"height="600"/></div><div class="cf-preview-caption">- <span>Small moments. Wide horizons.</span><span>01 — 03</span>+ <span>{{ $t('cloud.messages.smallMomentsWideHorizons') }}</span+ ><span>01 — 03</span></div><div class="cf-preview-label">- <Check :size="16" /><span- >A little space for your perspective.</span- >+ <Check :size="16" /><span>{{+ $t('cloud.messages.aLittleSpaceForYourPerspective')+ }}</span></div></div></motion.div>@@ -172,10 +190,14 @@ useSeoMeta({<section aria-labelledby="features-heading"><div class="cf-section-heading"><div>- <p class="cf-eyebrow">LESS BETWEEN YOU AND YOUR PHOTOGRAPHS</p>- <h2 id="features-heading">Thoughtfully simple. Entirely yours.</h2>+ <p class="cf-eyebrow">+ {{ $t('cloud.messages.lessBetweenYouAndYourPhotographs') }}+ </p>+ <h2 id="features-heading">+ {{ $t('cloud.messages.thoughtfullySimpleEntirelyYours') }}+ </h2></div>- <CloudBadge>Open source, by nature</CloudBadge>+ <CloudBadge>{{ $t('cloud.messages.openSourceByNature') }}</CloudBadge></div><div class="cf-features"><article>@@ -183,10 +205,13 @@ useSeoMeta({:size="23":stroke-width="1.5"/>- <h3>Let your photographs lead.</h3>+ <h3>{{ $t('cloud.messages.letYourPhotographsLead') }}</h3><p>- Quiet layouts, considered details, and a dedicated viewer. Give- every photograph the space it deserves.+ {{+ $t(+ 'cloud.messages.quietLayoutsConsideredDetailsAndADedicatedViewerGive',+ )+ }}</p></article><article>@@ -194,10 +219,13 @@ useSeoMeta({:size="23":stroke-width="1.5"/>- <h3>Your images. Your storage.</h3>+ <h3>{{ $t('cloud.messages.yourImagesYourStorage') }}</h3><p>- Run the self-hosted edition with storage you control. Keep your- collection close, on your terms.+ {{+ $t(+ 'cloud.messages.runTheSelfHostedEditionWithStorageYouControl',+ )+ }}</p></article><article>@@ -205,10 +233,11 @@ useSeoMeta({:size="23":stroke-width="1.5"/>- <h3>Made to be made your own.</h3>+ <h3>{{ $t('cloud.messages.madeToBeMadeYourOwn') }}</h3><p>- Built in the open, with a shared foundation. Explore the source- and help shape what comes next.+ {{+ $t('cloud.messages.builtInTheOpenWithASharedFoundationExplore')+ }}</p></article></div>@@ -216,11 +245,11 @@ useSeoMeta({</main><footer class="cf-marketing-footer"><span- >© {{ new Date().getFullYear() }} ChronoFrame. Made for the way you- see.</span+ >© {{ new Date().getFullYear()+ }}{{ $t('cloud.messages.chronoframeMadeForTheWayYouSee') }}</span><ahref="https://github.com/HoshinoSuzumi/chronoframe/blob/main/LICENSING.md"- >Source and licensing <ArrowUpRight :size="13"+ >{{ $t('cloud.messages.sourceAndLicensing') }}<ArrowUpRight :size="13"/></a></footer></div>diff --git a/apps/cloud/app/pages/reset-password.vue b/apps/cloud/app/pages/reset-password.vueindex 9626a019..a685ef66 100644--- a/apps/cloud/app/pages/reset-password.vue+++ b/apps/cloud/app/pages/reset-password.vue@@ -1,7 +1,9 @@<script setup lang="ts">+const { t } = useI18n()+import { accountError } from '../utils/account-error'useSeoMeta({- title: 'Set a new password — ChronoFrame Cloud',+ title: t('cloud.messages.setANewPasswordChronoframeCloud'),robots: 'noindex',referrer: 'no-referrer',})@@ -14,7 +16,7 @@ const route = useRoute(),const token = typeof route.query.token === 'string' ? route.query.token : ''async function submit() {if (password.value !== confirmation.value) {- error.value = 'The passwords do not match.'+ error.value = t('cloud.messages.thePasswordsDoNotMatch')return}busy.value = true@@ -29,7 +31,7 @@ async function submit() {done.value = trueawait navigateTo('/reset-password', { replace: true })} catch (cause) {- error.value = accountError(cause)+ error.value = accountError(cause, t)} finally {busy.value = false}@@ -37,19 +39,19 @@ async function submit() {</script><template><CloudAuthLayout- ><h1>Set a new password.</h1>+ ><h1>{{ $t('cloud.messages.setANewPassword') }}</h1><pv-if="done"class="cf-notice"role="status">- Your password has been updated. Sign in with your new password.+ {{ $t('cloud.messages.yourPasswordHasBeenUpdatedSignInWithYour') }}</p><formv-else-if="token"@submit.prevent="submit">- <label for="password">New password</label+ <label for="password">{{ $t('cloud.messages.newPassword') }}</label><CloudInputid="password"v-model="password"@@ -59,7 +61,9 @@ async function submit() {maxlength="128"required:disabled="busy"- /><label for="confirmation">Confirm password</label+ /><label for="confirmation">{{+ $t('cloud.messages.confirmPassword')+ }}</label><CloudInputid="confirmation"v-model="confirmation"@@ -80,21 +84,24 @@ async function submit() {<CloudButtontype="submit":loading="busy"- >Save new password</CloudButton+ >{{ $t('cloud.messages.saveNewPassword') }}</CloudButton></form><pv-elseclass="cf-notice">- This reset link is invalid or expired.- <NuxtLink to="/forgot-password">Request a new link</NuxtLink>.+ {{ $t('cloud.messages.thisResetLinkIsInvalidOrExpired')+ }}<NuxtLink to="/forgot-password">{{+ $t('cloud.messages.requestANewLink')+ }}</NuxtLink+ >.</p><p class="cf-auth-hint"><NuxtLinkto="/signin"class="cf-text-link"- >Back to sign in</NuxtLink+ >{{ $t('cloud.messages.backToSignIn') }}</NuxtLink></p></CloudAuthLayout>diff --git a/apps/cloud/app/pages/signin.vue b/apps/cloud/app/pages/signin.vueindex 9c3ecffd..1741084a 100644--- a/apps/cloud/app/pages/signin.vue+++ b/apps/cloud/app/pages/signin.vue@@ -1,7 +1,12 @@<script setup lang="ts">+const { t } = useI18n()+import { accountError } from '../utils/account-error'const { data: status } = await useFetch('/api/auth/status')-useSeoMeta({ title: 'Sign in — ChronoFrame Cloud', robots: 'noindex' })+useSeoMeta({+ title: t('cloud.messages.signInChronoframeCloud'),+ robots: 'noindex',+})const email = ref(''),password = ref(''),code = ref('')@@ -73,7 +78,7 @@ async function submit() {}await navigateTo('/sites', { external: true })} catch (cause) {- error.value = accountError(cause)+ error.value = accountError(cause, t)} finally {busy.value = falseif (step.value !== 'credentials') {@@ -90,8 +95,7 @@ async function passkeySignIn() {if (result.error) throw result.errorawait navigateTo('/sites', { external: true })} catch {- error.value =- 'Passkey sign-in was not completed. Try again or use your email.'+ error.value = t('cloud.messages.passkeySignInWasNotCompletedTryAgainOr')} finally {busy.value = false}@@ -107,7 +111,7 @@ async function resend() {body: { email: email.value, type: 'sign-in' },})} catch (cause) {- error.value = accountError(cause)+ error.value = accountError(cause, t)} finally {busy.value = false}@@ -119,35 +123,35 @@ async function resend() {<h1>{{step === 'second'- ? 'One more step.'+ ? $t('cloud.messages.oneMoreStep'): step === 'code'- ? 'Check your inbox.'- : 'Welcome back.'+ ? $t('cloud.messages.checkYourInbox')+ : $t('cloud.messages.welcomeBack')}}</h1><template v-if="status?.enabled"><p>{{step === 'second'- ? 'Complete your second verification to continue.'- : 'Your photographs. Your space.'+ ? $t('cloud.messages.completeYourSecondVerificationToContinue')+ : $t('cloud.messages.yourPhotographsYourSpace')}}</p><divv-if="step === 'credentials'"class="cf-auth-tabs"- aria-label="Sign-in method"+ :aria-label="$t('cloud.messages.signInMethod')"><CloudButton:variant="mode === 'password' ? 'secondary' : 'ghost'":disabled="busy"@click="setMode('password')"- >Password</CloudButton+ >{{ $t('cloud.messages.password') }}</CloudButton><CloudButton:variant="mode === 'email' ? 'secondary' : 'ghost'":disabled="busy"@click="setMode('email')"- >Email code</CloudButton+ >{{ $t('cloud.messages.emailCode') }}</CloudButton></div><form@@ -155,7 +159,7 @@ async function resend() {:aria-busy="busy"><template v-if="step !== 'second'"- ><label for="email">Email address</label+ ><label for="email">{{ $t('cloud.messages.emailAddress') }}</label><CloudInputid="email"v-model="email"@@ -165,7 +169,7 @@ async function resend() {required/></template><template v-if="mode === 'password' && step === 'credentials'"- ><label for="password">Password</label+ ><label for="password">{{ $t('cloud.messages.password') }}</label><CloudInputid="password"v-model="password"@@ -176,11 +180,13 @@ async function resend() {/><NuxtLinkclass="cf-text-link"to="/forgot-password"- >Forgot your password?</NuxtLink+ >{{ $t('cloud.messages.forgotYourPassword') }}</NuxtLink></template><template v-if="step === 'second'"- ><label for="factor">Verification method</label+ ><label for="factor">{{+ $t('cloud.messages.verificationMethod')+ }}</label><selectid="factor"v-model="factor"@@ -191,17 +197,21 @@ async function resend() {v-if="!authenticatorRequired"value="email">- Email code+ {{ $t('cloud.messages.emailCode') }}+ </option>+ <option value="totp">+ {{ $t('cloud.messages.authenticatorCode') }}+ </option>+ <option value="recovery">+ {{ $t('cloud.messages.recoveryCode') }}</option>- <option value="totp">Authenticator code</option>- <option value="recovery">Recovery code</option></select></template><template v-if="step !== 'credentials'"><label for="code">{{factor === 'recovery' && step === 'second'- ? 'Recovery code'- : 'Verification code'+ ? $t('cloud.messages.recoveryCode')+ : $t('cloud.messages.verificationCode')}}</label><CloudInputid="code"@@ -217,8 +227,10 @@ async function resend() {<p class="cf-auth-hint">{{step === 'code' || factor === 'email'- ? 'Enter the code from your email.'- : 'Use your authenticator or an unused recovery code.'+ ? $t('cloud.messages.enterTheCodeFromYourEmail')+ : $t(+ 'cloud.messages.useYourAuthenticatorOrAnUnusedRecoveryCode',+ )}}</p></template>@@ -234,8 +246,8 @@ async function resend() {:loading="busy">{{mode === 'email' && step === 'credentials'- ? 'Send sign-in code'- : 'Sign in'+ ? $t('cloud.messages.sendSignInCode')+ : $t('cloud.messages.signIn')}}</CloudButton><CloudButton@@ -245,7 +257,7 @@ async function resend() {variant="ghost":disabled="busy"@click="resend"- >Send a new code</CloudButton+ >{{ $t('cloud.messages.sendANewCode') }}</CloudButton></form><CloudButton@@ -254,14 +266,14 @@ async function resend() {variant="secondary":disabled="busy"@click="passkeySignIn"- >Sign in with a passkey</CloudButton+ >{{ $t('cloud.messages.signInWithAPasskey') }}</CloudButton><p class="cf-auth-hint">- New here?- <NuxtLink+ {{ $t('cloud.messages.newHere')+ }}<NuxtLinkto="/signup"class="cf-text-link"- >Create an account</NuxtLink+ >{{ $t('cloud.messages.createAnAccount') }}</NuxtLink></p></template>@@ -269,7 +281,7 @@ async function resend() {v-elseclass="cf-notice">- Email sign-in is not available on this deployment yet.+ {{ $t('cloud.messages.emailSignInIsNotAvailableOnThisDeployment') }}</p></CloudAuthLayout></template>diff --git a/apps/cloud/app/pages/signup.vue b/apps/cloud/app/pages/signup.vueindex 0a85bdcf..b4945133 100644--- a/apps/cloud/app/pages/signup.vue+++ b/apps/cloud/app/pages/signup.vue@@ -1,7 +1,9 @@<script setup lang="ts">+const { t } = useI18n()+import { accountError } from '../utils/account-error'useSeoMeta({- title: 'Create an account — ChronoFrame Cloud',+ title: t('cloud.messages.createAnAccountChronoframeCloud'),robots: 'noindex',})const { data: status } = await useFetch('/api/auth/status')@@ -35,7 +37,7 @@ async function submit() {await navigateTo('/sites', { external: true })}} catch (cause) {- error.value = accountError(cause)+ error.value = accountError(cause, t)} finally {busy.value = falseif (sent.value) {@@ -54,7 +56,7 @@ async function resend() {})sent.value = true} catch (cause) {- error.value = accountError(cause)+ error.value = accountError(cause, t)} finally {busy.value = false}@@ -63,20 +65,26 @@ async function resend() {<template><CloudAuthLayout><CloudBadge>ChronoFrame Cloud</CloudBadge>- <h1>{{ sent ? 'Make it yours.' : 'A home for your photographs.' }}</h1>+ <h1>+ {{+ sent+ ? $t('cloud.messages.makeItYours')+ : $t('cloud.messages.aHomeForYourPhotographs')+ }}+ </h1><template v-if="status?.enabled"><p>{{sent- ? 'Verify your email to finish creating your account.'- : 'Create your account and find your own perspective.'+ ? $t('cloud.messages.verifyYourEmailToFinishCreatingYourAccount')+ : $t('cloud.messages.createYourAccountAndFindYourOwnPerspective')}}</p><form@submit.prevent="submit":aria-busy="busy">- <label for="email">Email address</label+ <label for="email">{{ $t('cloud.messages.emailAddress') }}</label><CloudInputid="email"v-model="email"@@ -85,7 +93,7 @@ async function resend() {:disabled="busy || sent"required/><template v-if="!sent"- ><label for="password">Password</label+ ><label for="password">{{ $t('cloud.messages.password') }}</label><CloudInputid="password"v-model="password"@@ -97,10 +105,14 @@ async function resend() {required/><p class="cf-auth-hint">- Use at least 12 characters. A unique passphrase works well.+ {{+ $t('cloud.messages.useAtLeast12CharactersAUniquePassphraseWorks')+ }}</p></template><template v-else- ><label for="code">Email verification code</label+ ><label for="code">{{+ $t('cloud.messages.emailVerificationCode')+ }}</label><CloudInputid="code"ref="codeInput"@@ -123,23 +135,27 @@ async function resend() {type="submit":loading="busy">{{- sent ? 'Verify email and continue' : 'Create account'+ sent+ ? $t('cloud.messages.verifyEmailAndContinue')+ : $t('cloud.messages.createAccount')}}</CloudButton><CloudButtonvariant="ghost":disabled="busy || !email"@click="resend">{{- sent ? 'Send a new code' : 'Already started? Resend verification'+ sent+ ? $t('cloud.messages.sendANewCode')+ : $t('cloud.messages.alreadyStartedResendVerification')}}</CloudButton></form><p class="cf-auth-hint">- Already have an account?- <NuxtLink+ {{ $t('cloud.messages.alreadyHaveAnAccount')+ }}<NuxtLinkto="/signin"class="cf-text-link"- >Log in</NuxtLink+ >{{ $t('cloud.messages.logIn') }}</NuxtLink></p></template>@@ -147,7 +163,7 @@ async function resend() {v-elseclass="cf-notice">- Registration is not available on this deployment yet.+ {{ $t('cloud.messages.registrationIsNotAvailableOnThisDeploymentYet') }}</p></CloudAuthLayout></template>diff --git a/apps/cloud/app/pages/sites/[siteId]/albums.vue b/apps/cloud/app/pages/sites/[siteId]/albums.vueindex a63116e6..64761599 100644--- a/apps/cloud/app/pages/sites/[siteId]/albums.vue+++ b/apps/cloud/app/pages/sites/[siteId]/albums.vue@@ -1,5 +1,10 @@<script setup lang="ts">+const { t } = useI18n()+definePageMeta({ layout: 'portal' })-useSeoMeta({ title: 'Albums — ChronoFrame Cloud', robots: 'noindex' })+useSeoMeta({+ title: t('cloud.messages.albumsChronoframeCloud'),+ robots: 'noindex',+})</script><template><CloudAlbumsManager /></template>diff --git a/apps/cloud/app/pages/sites/[siteId]/domains.vue b/apps/cloud/app/pages/sites/[siteId]/domains.vueindex 9eddba42..4fc5353d 100644--- a/apps/cloud/app/pages/sites/[siteId]/domains.vue+++ b/apps/cloud/app/pages/sites/[siteId]/domains.vue@@ -1,7 +1,12 @@<script setup lang="ts">+const { t } = useI18n()+import { Copy } from 'lucide-vue-next'definePageMeta({ layout: 'portal' })-useSeoMeta({ title: 'Domains — ChronoFrame Cloud', robots: 'noindex' })+useSeoMeta({+ title: t('cloud.messages.domainsChronoframeCloud'),+ robots: 'noindex',+})const site = useEntryContext().value!const { data, error, refresh } = await useFetch(`/api/sites/${site.siteId}/settings`,@@ -12,9 +17,9 @@ async function copy() {await navigator.clipboard.writeText(`https://${data.value!.site.slug}.site.chronoframe.art`,)- notice.value = 'Address copied.'+ notice.value = t('cloud.messages.addressCopied')} catch {- notice.value = 'Could not copy. Select and copy the address above.'+ notice.value = t('cloud.messages.couldNotCopySelectAndCopyTheAddressAbove')}}</script>@@ -22,26 +27,27 @@ async function copy() {<div class="cf-site-settings-stack"><div class="cf-page-heading"><div>- <h1 class="cf-page-title">Domains</h1>+ <h1 class="cf-page-title">{{ $t('cloud.messages.domains') }}</h1><p class="cf-page-description">- Addresses visitors use to reach your gallery.+ {{ $t('cloud.messages.addressesVisitorsUseToReachYourGallery') }}</p></div></div><CloudCard><div class="cf-panel-heading">- <h2>Default subdomain</h2>- <p>Your reserved ChronoFrame address.</p>+ <h2>{{ $t('cloud.messages.defaultSubdomain') }}</h2>+ <p>{{ $t('cloud.messages.yourReservedChronoframeAddress') }}</p></div><div class="cf-panel-body"><pv-if="error"role="alert">- Could not load the address.<CloudButton+ {{ $t('cloud.messages.couldNotLoadTheAddress')+ }}<CloudButtonvariant="ghost"@click="refresh()"- >Retry</CloudButton+ >{{ $t('cloud.messages.retry') }}</CloudButton></p><template v-else-if="data?.site.slug"@@ -52,20 +58,28 @@ async function copy() {variant="secondary"size="sm"@click="copy"- ><Copy :size="14" />Copy address</CloudButton+ ><Copy :size="14" />{{+ $t('cloud.messages.copyAddress')+ }}</CloudButton><p class="cf-field-hint">{{data.site.published- ? 'Published. Hidden photographs and album passwords remain protected.'- : 'Reserved for your draft. This address returns 404 until you publish from Overview.'+ ? $t(+ 'cloud.messages.publishedHiddenPhotographsAndAlbumPasswordsRemainProtected',+ )+ : $t(+ 'cloud.messages.reservedForYourDraftThisAddressReturns404Until',+ )}}</p><p class="cf-field-hint">- Changing the default subdomain is not available yet.+ {{+ $t('cloud.messages.changingTheDefaultSubdomainIsNotAvailableYet')+ }}</p></template>- <p v-else>No default subdomain is assigned.</p>+ <p v-else>{{ $t('cloud.messages.noDefaultSubdomainIsAssigned') }}</p><pv-if="notice"role="status"@@ -76,11 +90,10 @@ async function copy() {</div></CloudCard><CloudCard><div class="cf-panel-heading">- <h2>Custom domains</h2>- <CloudBadge>Coming later</CloudBadge>+ <h2>{{ $t('cloud.messages.customDomains') }}</h2>+ <CloudBadge>{{ $t('cloud.messages.comingLater') }}</CloudBadge><p>- Connect your own domain in a future update. Domain ownership, DNS and- certificate verification will be required before activation.+ {{ $t('cloud.messages.connectYourOwnDomainInAFutureUpdateDomain') }}</p></div></CloudCard>diff --git a/apps/cloud/app/pages/sites/[siteId]/information.vue b/apps/cloud/app/pages/sites/[siteId]/information.vueindex 7c32af3a..62f4bfcf 100644--- a/apps/cloud/app/pages/sites/[siteId]/information.vue+++ b/apps/cloud/app/pages/sites/[siteId]/information.vue@@ -1,15 +1,22 @@<script setup lang="ts">+const { t } = useI18n()+definePageMeta({ layout: 'portal' })-useSeoMeta({ title: 'Site information — ChronoFrame Cloud', robots: 'noindex' })+useSeoMeta({+ title: t('cloud.messages.siteInformationChronoframeCloud'),+ robots: 'noindex',+})const site = useEntryContext().value!</script><template><div class="cf-site-settings-stack"><div class="cf-page-heading"><div>- <h1 class="cf-page-title">Site information</h1>+ <h1 class="cf-page-title">+ {{ $t('cloud.messages.siteInformation') }}+ </h1><p class="cf-page-description">- Your gallery’s identity and public profile.+ {{ $t('cloud.messages.yourGallerySIdentityAndPublicProfile') }}</p></div></div>diff --git a/apps/cloud/app/pages/sites/[siteId]/overview.vue b/apps/cloud/app/pages/sites/[siteId]/overview.vueindex bb2b8d4c..0e092791 100644--- a/apps/cloud/app/pages/sites/[siteId]/overview.vue+++ b/apps/cloud/app/pages/sites/[siteId]/overview.vue@@ -1,6 +1,11 @@<script setup lang="ts">+const { t } = useI18n()+definePageMeta({ layout: 'portal' })-useSeoMeta({ title: 'Overview — ChronoFrame Cloud', robots: 'noindex' })+useSeoMeta({+ title: t('cloud.messages.overviewChronoframeCloud'),+ robots: 'noindex',+})const site = useEntryContext().value!const { photos, albums, jobs, loading } = useCloudSiteMedia()const processingCount = computed(@@ -19,30 +24,38 @@ const processingCount = computed(><CloudCard><div class="cf-panel-body">- <span class="cf-field-label">Photographs</span+ <span class="cf-field-label">{{+ $t('cloud.messages.photographs')+ }}</span><strong>{{ loading ? '—' : photos.length }}</strong><NuxtLink:to="`/sites/${site.siteId}/photos`"class="cf-text-link"- >Open photo library</NuxtLink+ >{{ $t('cloud.messages.openPhotoLibrary') }}</NuxtLink></div></CloudCard><CloudCard><div class="cf-panel-body">- <span class="cf-field-label">Albums</span+ <span class="cf-field-label">{{ $t('cloud.messages.albums') }}</span><strong>{{ loading ? '—' : albums.length }}</strong><NuxtLink:to="`/sites/${site.siteId}/albums`"class="cf-text-link"- >Manage albums</NuxtLink+ >{{ $t('cloud.messages.manageAlbums') }}</NuxtLink></div></CloudCard><CloudCard><div class="cf-panel-body">- <span class="cf-field-label">Processing</span+ <span class="cf-field-label">{{+ $t('cloud.messages.processing')+ }}</span><strong>{{ loading ? '—' : processingCount }}</strong><p class="cf-field-hint">- Upload and processing details are in your photo library.+ {{+ $t(+ 'cloud.messages.uploadAndProcessingDetailsAreInYourPhotoLibrary',+ )+ }}</p></div></CloudCard>diff --git a/apps/cloud/app/pages/sites/[siteId]/photos.vue b/apps/cloud/app/pages/sites/[siteId]/photos.vueindex f77d74bb..f1eb065b 100644--- a/apps/cloud/app/pages/sites/[siteId]/photos.vue+++ b/apps/cloud/app/pages/sites/[siteId]/photos.vue@@ -1,5 +1,10 @@<script setup lang="ts">+const { t } = useI18n()+definePageMeta({ layout: 'portal' })-useSeoMeta({ title: 'Photos — ChronoFrame Cloud', robots: 'noindex' })+useSeoMeta({+ title: t('cloud.messages.photosChronoframeCloud'),+ robots: 'noindex',+})</script><template><CloudPhotoLibrary /></template>diff --git a/apps/cloud/app/pages/sites/[siteId]/storage.vue b/apps/cloud/app/pages/sites/[siteId]/storage.vueindex 8d0aebbf..bbe0e3e0 100644--- a/apps/cloud/app/pages/sites/[siteId]/storage.vue+++ b/apps/cloud/app/pages/sites/[siteId]/storage.vue@@ -1,24 +1,32 @@<script setup lang="ts">+const { t } = useI18n()+definePageMeta({ layout: 'portal' })-useSeoMeta({ title: 'Storage — ChronoFrame Cloud', robots: 'noindex' })+useSeoMeta({+ title: t('cloud.messages.storageChronoframeCloud'),+ robots: 'noindex',+})</script><template><div class="cf-site-settings-stack"><div class="cf-page-heading"><div>- <h1 class="cf-page-title">Storage</h1>+ <h1 class="cf-page-title">{{ $t('cloud.messages.storage') }}</h1><p class="cf-page-description">- Choose where your gallery’s media lives.+ {{ $t('cloud.messages.chooseWhereYourGallerySMediaLives') }}</p></div></div><CloudStorageSettings /><CloudCard><div class="cf-panel-heading">- <h2>Platform storage</h2>- <CloudBadge>Coming later</CloudBadge>+ <h2>{{ $t('cloud.messages.platformStorage') }}</h2>+ <CloudBadge>{{ $t('cloud.messages.comingLater') }}</CloudBadge><p>- Managed storage and plan allowances are not available yet. Connect- your own private S3-compatible bucket above to get started.+ {{+ $t(+ 'cloud.messages.managedStorageAndPlanAllowancesAreNotAvailableYet',+ )+ }}</p></div></CloudCard>diff --git a/apps/cloud/app/pages/sites/index.vue b/apps/cloud/app/pages/sites/index.vueindex efab4089..091490ba 100644--- a/apps/cloud/app/pages/sites/index.vue+++ b/apps/cloud/app/pages/sites/index.vue@@ -1,4 +1,6 @@<script setup lang="ts">+const { t } = useI18n()+import { motion } from 'motion-v'import { ArrowUpRight, Images, ShieldCheck } from 'lucide-vue-next'const entrance = useCloudMotion()@@ -20,7 +22,10 @@ async function prepareWorkspace() {onMounted(prepareWorkspace)import type { EntrySiteCatalog } from '@chronoframe/contracts/entry'-useSeoMeta({ title: 'Your sites — ChronoFrame Cloud', robots: 'noindex' })+useSeoMeta({+ title: t('cloud.messages.yourSitesChronoframeCloud'),+ robots: 'noindex',+})const userId = useState<number | null>('platform-user-id', () => null)const catalog = useState<EntrySiteCatalog | null>('platform-site-catalog',@@ -35,26 +40,25 @@ const sites = ref(<motion.div v-bind="entrance"><div class="cf-page-heading"><div>- <h1 class="cf-page-title">Your sites</h1>+ <h1 class="cf-page-title">{{ $t('cloud.messages.yourSites') }}</h1><p class="cf-page-description">- Manage your galleries, settings and access.+ {{ $t('cloud.messages.manageYourGalleriesSettingsAndAccess') }}</p></div>- <CloudBadge- >{{ sites.length }}- {{ sites.length === 1 ? 'site' : 'sites' }}</CloudBadge- >+ <CloudBadge>{{+ $t('cloud.ui.siteCount', { count: sites.length }, sites.length)+ }}</CloudBadge></div><divv-if="workspaceError"class="cf-notice"role="alert">- Your workspace could not be opened.- <CloudButton+ {{ $t('cloud.messages.yourWorkspaceCouldNotBeOpened')+ }}<CloudButtonvariant="ghost"@click="prepareWorkspace"- >Try again</CloudButton+ >{{ $t('cloud.messages.tryAgain') }}</CloudButton></div><CloudSiteCreate@@ -69,7 +73,10 @@ const sites = ref(class="cf-site-columns"aria-hidden="true">- <span>Site</span><span>Status</span><span>Role</span><span />+ <span>{{ $t('cloud.messages.site') }}</span+ ><span>{{ $t('cloud.messages.status') }}</span+ ><span>{{ $t('cloud.messages.role') }}</span+ ><span /></div><ul class="cf-sites-list"><li@@ -92,13 +99,17 @@ const sites = ref(><span :id="`site-status-${site.siteId}`"><CloudBadge :tone="site.published ? 'success' : 'neutral'">{{- site.published ? 'Published' : 'Draft'+ site.published+ ? $t('cloud.messages.published')+ : $t('cloud.messages.draft')}}</CloudBadge></span><span:id="`site-role-${site.siteId}`"class="cf-site-role cf-capitalize"- >{{ site.role }}</span+ >{{+ $t(site.role === 'admin' ? 'cloud.ui.admin' : 'cloud.ui.member')+ }}</span><ArrowUpRight:size="15"class="cf-row-arrow"@@ -113,14 +124,15 @@ const sites = ref(class="cf-portal-empty"><span class="cf-site-icon"><Images :size="20" /></span><div>- <h2>No sites yet</h2>- <p>Create a draft above to reserve your gallery’s address.</p>+ <h2>{{ $t('cloud.messages.noSitesYet') }}</h2>+ <p>{{ $t('cloud.messages.createADraftAboveToReserveYourGalleryS') }}</p></div></CloudCard><p class="cf-catalog-note">- <ShieldCheck :size="14" />Only sites you belong to appear here.<a- href="https://docs.chronoframe.art/"- >View documentation<ArrowUpRight :size="12"+ <ShieldCheck :size="14" />{{+ $t('cloud.messages.onlySitesYouBelongToAppearHere')+ }}<a href="https://docs.chronoframe.art/"+ >{{ $t('cloud.messages.viewDocumentation') }}<ArrowUpRight :size="12"/></a></p></motion.div>diff --git a/apps/cloud/app/utils/account-error.ts b/apps/cloud/app/utils/account-error.tsindex b5acd4f0..6de670c8 100644--- a/apps/cloud/app/utils/account-error.ts+++ b/apps/cloud/app/utils/account-error.ts@@ -1,31 +1,31 @@/** Present actionable auth errors without exposing raw server/provider failures. */-export function accountError(cause: unknown) {+export function accountError(cause: unknown, t: (key: string) => string) {const error = cause as {statusCode?: numberdata?: { message?: string; code?: string }}if (error.statusCode === 429)- return 'Too many attempts. Please wait before trying again.'+ return t('cloud.messages.tooManyAttemptsPleaseWaitBeforeTryingAgain')const code = error.data?.code ?? ''if (code === 'AUTHENTICATOR_REQUIRED')- return 'Use your authenticator or an unused recovery code to finish signing in.'+ return t('cloud.messages.useYourAuthenticatorOrAnUnusedRecoveryCodeTo')if (code.includes('PASSWORD_TOO_SHORT'))- return 'Use a password with at least 12 characters.'+ return t('cloud.messages.useAPasswordWithAtLeast12Characters')if (code.includes('EMAIL_NOT_VERIFIED'))- return 'Verify your email before signing in. You can request another code below.'+ return t('cloud.messages.verifyYourEmailBeforeSigningInYouCanRequest')if (code.includes('USER_ALREADY_EXISTS'))- return 'An account may already use this email. Try signing in or resetting your password.'+ return t('cloud.messages.anAccountMayAlreadyUseThisEmailTrySigning')if (code.includes('OTP') ||code.includes('TOTP') ||code.includes('BACKUP_CODE'))- return 'This code is invalid or expired. Check it and try again, or request a new code.'+ return t('cloud.messages.thisCodeIsInvalidOrExpiredCheckItAnd')if (code.includes('PASSWORD') || code.includes('CREDENTIAL'))- return 'The email or password is incorrect. Check your details or reset your password.'+ return t('cloud.messages.theEmailOrPasswordIsIncorrectCheckYourDetails')if (code.includes('TOKEN'))- return 'This link is invalid or expired. Please request a new password reset email.'+ return t('cloud.messages.thisLinkIsInvalidOrExpiredPleaseRequestA')if (code.includes('FRESH_SESSION') || code.includes('SESSION_IS_NOT_FRESH'))- return 'Please sign out and sign in again before changing security settings.'- return 'We could not complete this request. Please try again.'+ return t('cloud.messages.pleaseSignOutAndSignInAgainBeforeChanging')+ return t('cloud.messages.weCouldNotCompleteThisRequestPleaseTryAgain')}diff --git a/apps/cloud/i18n/i18n.config.ts b/apps/cloud/i18n/i18n.config.tsnew file mode 100644index 00000000..edd281df--- /dev/null+++ b/apps/cloud/i18n/i18n.config.ts@@ -0,0 +1 @@+export default defineI18nConfig(() => ({ fallbackLocale: 'en' }))diff --git a/apps/cloud/i18n/locale.ts b/apps/cloud/i18n/locale.tsnew file mode 100644index 00000000..ca6fa97a--- /dev/null+++ b/apps/cloud/i18n/locale.ts@@ -0,0 +1,22 @@+export type CloudLocale = 'en' | 'zh-Hans'++/** Negotiate supported languages in browser preference order, ignoring disabled ranges. */+export function resolveCloudLocale(acceptLanguage: string): CloudLocale {+ const preferences = acceptLanguage+ .split(',')+ .map((part, index) => {+ const [range = '', ...parameters] = part.trim().split(';')+ const quality = parameters.find((value) => value.trim().startsWith('q='))+ const weight = quality === undefined ? 1 : Number(quality.trim().slice(2))+ return { range: range.toLowerCase(), weight, index }+ })+ .filter(+ ({ weight }) => Number.isFinite(weight) && weight > 0 && weight <= 1,+ )+ .sort((a, b) => b.weight - a.weight || a.index - b.index)+ for (const { range } of preferences) {+ if (/^zh(?:-|$)/.test(range)) return 'zh-Hans'+ if (/^en(?:-|$)/.test(range)) return 'en'+ }+ return 'en'+}diff --git a/apps/cloud/i18n/localeDetector.ts b/apps/cloud/i18n/localeDetector.tsnew file mode 100644index 00000000..b47b9792--- /dev/null+++ b/apps/cloud/i18n/localeDetector.ts@@ -0,0 +1,6 @@+import { getRequestHeader } from 'h3'+import { resolveCloudLocale } from './locale'++export default defineI18nLocaleDetector((event) =>+ resolveCloudLocale(getRequestHeader(event, 'accept-language') ?? ''),+)diff --git a/apps/cloud/i18n/locales/en.json b/apps/cloud/i18n/locales/en.jsonnew file mode 100644index 00000000..30f374ee--- /dev/null+++ b/apps/cloud/i18n/locales/en.json@@ -0,0 +1,466 @@+{+ "cloud": {+ "messages": {+ "skipToContent": "Skip to content",+ "albums": "Albums",+ "organizeYourPhotographsAndChooseHowTheyAreShared": "Organize your photographs and choose how they are shared.",+ "createAlbum": "Create album",+ "searchAlbums": "Search albums…",+ "searchAlbums2": "Search albums",+ "refreshAlbums": "Refresh albums",+ "createAnAlbumToBringRelatedPhotographsTogether": "Create an album to bring related photographs together.",+ "chooseThePhotographsCoverAndAccessForThisAlbum": "Choose the photographs, cover and access for this album.",+ "loadingAlbum": "Loading album…",+ "hideAlbum": "Hide album",+ "hideThisAlbumAndItsPhotographsFromPublicBrowsing": "Hide this album and its photographs from public browsing.",+ "passwordProtection": "Password protection",+ "visitorsMustUnlockThisAlbumToViewItsPhotographs": "Visitors must unlock this album to view its photographs.",+ "albumPassword": "Album password",+ "selectPhotographs": "Select photographs",+ "choosePhotographsFromYourLibrary": "Choose photographs from your library.",+ "searchPhotographs": "Search photographs…",+ "searchPhotographsForAlbum": "Search photographs for album",+ "done": "Done",+ "cancel": "Cancel",+ "saveAlbum": "Save album",+ "deleteAlbum": "Delete album?",+ "photographsRemainInYourLibraryTheyMayBecomePublic": "Photographs remain in your library. They may become public if no other protected album contains them.",+ "deleteAlbum2": "Delete album",+ "aboutChronoframeCloud": "About ChronoFrame Cloud",+ "aLittleSpace": "A little space.",+ "aDifferentPerspective": "A different perspective.",+ "yourPhotographsDeserveAHomeThatFeelsLikeYou": "Your photographs deserve a home that feels like you.",+ "chronoframeCloudMadeForTheWayYouSee": "CHRONOFRAME CLOUD · MADE FOR THE WAY YOU SEE",+ "backToHome": "Back to home",+ "aHomeForYourPhotographs": "A home for your photographs.",+ "aLittleGuidanceIfYouNeedIt": "A little guidance, if you need it.",+ "photoLibrary": "Photo library",+ "upload": "Upload",+ "searchPhotographs2": "Search photographs",+ "filters": "Filters",+ "sort": "Sort",+ "refreshPhotographs": "Refresh photographs",+ "addToAlbum": "Add to album",+ "delete": "Delete",+ "clear": "Clear",+ "selectAllPhotographs": "Select all photographs",+ "live": "LIVE",+ "processingQueue": "Processing queue",+ "attempt": "Attempt",+ "retry": "Retry",+ "remove": "Remove",+ "editPhotograph": "Edit photograph",+ "updateTheDetailsShownInYourGallery": "Update the details shown in your gallery.",+ "loadingPhotograph": "Loading photograph…",+ "saveChanges": "Save changes",+ "previewPhotograph": "Preview photograph",+ "deletePhotographs": "Delete photographs?",+ "thisDeletesTheSelectedPhotographsAndQueuesTheirManaged": "This deletes the selected photographs and queues their managed original, thumbnail and Live Photo files for cleanup.",+ "chooseAnAlbumForTheSelectedPhotographs": "Choose an album for the selected photographs.",+ "chooseAnAlbum": "Choose an album",+ "createAnAlbumFirstFromTheAlbumsPage": "Create an album first from the Albums page.",+ "addPhotographs": "Add photographs",+ "openNavigation": "Open navigation",+ "navigation": "Navigation",+ "yourWorkspaceAndSiteNavigation": "Your workspace and site navigation.",+ "closeNavigation": "Close navigation",+ "cloudPreview": "Cloud preview",+ "workspace": "Workspace",+ "security": "Security",+ "password": "Password",+ "useAUniquePasswordWithAtLeast12Characters": "Use a unique password with at least 12 characters.",+ "currentPassword": "Current password",+ "newPassword": "New password",+ "updatePassword": "Update password",+ "youSignedInWithAnEmailCode": "You signed in with an email code.",+ "emailYourselfALinkToSetAPassword": "Email yourself a link to set a password",+ "beforeEnablingTwoStepVerification": "before enabling two-step verification.",+ "twoStepVerification": "Two-step verification",+ "addACodeAfterPasswordSignInConnectedAuthenticators": "Add a code after password sign-in. Connected authenticators also protect email-code sign-in. Passkeys use device verification.",+ "confirmYourPasswordToChangeSecuritySettings": "Confirm your password to change security settings",+ "enableEmailVerification": "Enable email verification",+ "setUpAuthenticator": "Set up authenticator",+ "disableTwoStepVerification": "Disable two-step verification",+ "scanThisPrivateQrCodeWithYourAuthenticatorApp": "Scan this private QR code with your authenticator app",+ "cannotScanTheQrCode": "Cannot scan the QR code?",+ "authenticatorCode": "Authenticator code",+ "verifyAndEnable": "Verify and enable",+ "authenticatorConnectedRecoveryCodesAreSingleUseGeneratingNew": "Authenticator connected. Recovery codes are single use. Generating new codes replaces the old ones.",+ "replaceRecoveryCodes": "Replace recovery codes",+ "saveTheseRecoveryCodesPrivately": "Save these recovery codes privately.",+ "theseAreOnlyShownHereKeepThemOutsideThis": "These are only shown here. Keep them outside this browser.",+ "iHaveSavedMyCodes": "I have saved my codes",+ "passkeys": "Passkeys",+ "useYourDeviceLockFingerprintOrSecurityKeyYour": "Use your device lock, fingerprint or security key. Your device creates the keys automatically.",+ "passkeyName": "Passkey name",+ "forExampleMyLaptop": "For example, my laptop",+ "createPasskey": "Create passkey",+ "noPasskeysYet": "No passkeys yet.",+ "allSites": "All sites",+ "manageSite": "MANAGE SITE",+ "siteNavigation": "Site navigation",+ "overview": "Overview",+ "siteInformation": "Site information",+ "siteResources": "SITE RESOURCES",+ "siteResources2": "Site resources",+ "domains": "Domains",+ "storage": "Storage",+ "workspace2": "WORKSPACE",+ "portalNavigation": "Portal navigation",+ "sites": "Sites",+ "createSite": "Create site",+ "createASite": "Create a site",+ "startWithAPrivateDraftYourAddressIsReserved": "Start with a private draft. Your address is reserved until publishing is available.",+ "siteName": "Site name",+ "siteAddress": "Site address",+ "use340LowercaseLettersNumbersOrHyphensSome": "Use 3–40 lowercase letters, numbers or hyphens. Some addresses are reserved. The address cannot be changed here.",+ "viewSite": "View site",+ "loadingSiteAddress": "Loading site address…",+ "siteAddressCouldNotBeLoaded": "Site address could not be loaded.",+ "noDefaultAddressIsAvailableForThisSite": "No default address is available for this site.",+ "thisAddressReturns404UntilYouPublishYourGallery": "This address returns 404 until you publish your gallery.",+ "hiddenPhotographsStayHiddenPasswordProtectedAlbumsStillRequire": "Hidden photographs stay hidden. Password-protected albums still require a password.",+ "unpublishThisGallery": "Unpublish this gallery?",+ "unpublishGallery": "Unpublish gallery",+ "galleryIdentity": "Gallery identity",+ "useTheSameTitleAuthorAndIconShownIn": "Use the same title, author and icon shown in your public gallery.",+ "settingsCouldNotBeLoaded": "Settings could not be loaded.",+ "reloadSettings": "Reload settings",+ "workspaceSiteName": "Workspace site name",+ "theWorkspaceNameIdentifiesThisSiteInYourConsole": "The workspace name identifies this site in your console. Leave the public title blank to use this name.",+ "publicTitle": "Public title",+ "slogan": "Slogan",+ "author": "Author",+ "galleryIcon": "Gallery icon",+ "galleryIconPreview": "Gallery icon preview",+ "pngJpegOrWebpUpTo2MibCropped": "PNG, JPEG or WebP, up to 2 MiB. Cropped to a square and optimized automatically.",+ "removeIcon": "Remove icon",+ "onlyWorkspaceAdministratorsCanChangeTheseSettings": "Only workspace administrators can change these settings.",+ "connectAPrivateS3CompatibleBucketForYourPhotographs": "Connect a private S3-compatible bucket for your photographs.",+ "storageConnection": "Storage connection",+ "chooseAConnection": "Choose a connection",+ "rotateStorageCredentials": "Rotate storage credentials",+ "newAccessKeyId": "New access key ID",+ "newSecretAccessKey": "New secret access key",+ "testRotate": "Test & rotate",+ "connectStorage": "Connect storage",+ "endpoint": "Endpoint",+ "region": "Region",+ "bucket": "Bucket",+ "accessKeyId": "Access key ID",+ "secretAccessKey": "Secret access key",+ "useADedicatedBucketWithPrivateAccessAllowThis": "Use a dedicated bucket with private access. Allow this portal origin in CORS for GET, PUT and HEAD; allow Content-Type and expose ETag. Other endpoint hosts require operator approval.",+ "testConnect": "Test & connect",+ "uploadPhotographs": "Upload photographs",+ "addPhotographsToYourLibraryJpegPngHeicAnd": "Add photographs to your library. JPEG, PNG, HEIC and paired Live Photos are supported.",+ "connectYourPrivateStorageIn": "Connect your private storage in",+ "beforeUploading": "before uploading.",+ "choosePhotographs": "Choose photographs",+ "dropImagesHereOrChooseImagesAndMatchingMov": "Drop images here, or choose images and matching .MOV files together.",+ "upTo100MibPerPhotographIncludingItsPaired": "Up to 100 MiB per photograph, including its paired video.",+ "cancelUpload": "Cancel upload",+ "openUserMenu": "Open user menu",+ "userMenu": "User menu",+ "accountSecurity": "Account & security",+ "tryAgain": "Try again",+ "yourProfilePreferencesAndSignInMethods": "Your profile, preferences and sign-in methods.",+ "profile": "Profile",+ "emailAddress": "Email address",+ "verified": "Verified",+ "appearance": "Appearance",+ "chooseTheLightThatSuitsYou": "Choose the light that suits you.",+ "aFreshStart": "A fresh start.",+ "weWillEmailYouALinkToResetYour": "We will email you a link to reset your password. Existing email-code accounts can use this to set their first password.",+ "ifThisAddressHasAnAccountAPasswordReset": "If this address has an account, a password reset link is on its way. Check your inbox.",+ "sendResetLink": "Send reset link",+ "backToSignIn": "Back to sign in",+ "mainNavigation": "Main navigation",+ "documentation": "Documentation",+ "logIn": "Log in",+ "getStarted": "Get started",+ "signUp": "Sign up",+ "mobileNavigation": "Mobile navigation",+ "yourPhotographyYourPerspective": "YOUR PHOTOGRAPHY. YOUR PERSPECTIVE.",+ "everyFrame": "Every frame.",+ "yourStory": "Your story.",+ "aHomeForTheMomentsYouWantToShare": "A home for the moments you want to share. Bring your photographs together in a gallery that feels entirely yours.",+ "createYourAccount": "Create your account",+ "exploreSelfHosted": "Explore Self-hosted",+ "selfHostedIsAvailableNowCloudIsInPreview": "Self-hosted is available now. Cloud is in preview.",+ "examplePhotographyGallery": "Example photography gallery",+ "fieldNotes": "FIELD NOTES",+ "aChronoframeGallery": "A CHRONOFRAME GALLERY",+ "sunlitMountainPeaksBeneathASoftBlueSky": "Sunlit mountain peaks beneath a soft blue sky",+ "lightFallingThroughAQuietGreenForest": "Light falling through a quiet green forest",+ "anOceanShoreInTheWarmLightOfSunset": "An ocean shore in the warm light of sunset",+ "smallMomentsWideHorizons": "Small moments. Wide horizons.",+ "aLittleSpaceForYourPerspective": "A little space for your perspective.",+ "lessBetweenYouAndYourPhotographs": "LESS BETWEEN YOU AND YOUR PHOTOGRAPHS",+ "thoughtfullySimpleEntirelyYours": "Thoughtfully simple. Entirely yours.",+ "openSourceByNature": "Open source, by nature",+ "letYourPhotographsLead": "Let your photographs lead.",+ "quietLayoutsConsideredDetailsAndADedicatedViewerGive": "Quiet layouts, considered details, and a dedicated viewer. Give every photograph the space it deserves.",+ "yourImagesYourStorage": "Your images. Your storage.",+ "runTheSelfHostedEditionWithStorageYouControl": "Run the self-hosted edition with storage you control. Keep your collection close, on your terms.",+ "madeToBeMadeYourOwn": "Made to be made your own.",+ "builtInTheOpenWithASharedFoundationExplore": "Built in the open, with a shared foundation. Explore the source and help shape what comes next.",+ "chronoframeMadeForTheWayYouSee": "ChronoFrame. Made for the way you see.",+ "sourceAndLicensing": "Source and licensing",+ "setANewPassword": "Set a new password.",+ "yourPasswordHasBeenUpdatedSignInWithYour": "Your password has been updated. Sign in with your new password.",+ "confirmPassword": "Confirm password",+ "saveNewPassword": "Save new password",+ "thisResetLinkIsInvalidOrExpired": "This reset link is invalid or expired.",+ "requestANewLink": "Request a new link",+ "signInMethod": "Sign-in method",+ "emailCode": "Email code",+ "forgotYourPassword": "Forgot your password?",+ "verificationMethod": "Verification method",+ "recoveryCode": "Recovery code",+ "sendANewCode": "Send a new code",+ "signInWithAPasskey": "Sign in with a passkey",+ "newHere": "New here?",+ "createAnAccount": "Create an account",+ "emailSignInIsNotAvailableOnThisDeployment": "Email sign-in is not available on this deployment yet.",+ "useAtLeast12CharactersAUniquePassphraseWorks": "Use at least 12 characters. A unique passphrase works well.",+ "emailVerificationCode": "Email verification code",+ "alreadyHaveAnAccount": "Already have an account?",+ "registrationIsNotAvailableOnThisDeploymentYet": "Registration is not available on this deployment yet.",+ "addressesVisitorsUseToReachYourGallery": "Addresses visitors use to reach your gallery.",+ "defaultSubdomain": "Default subdomain",+ "yourReservedChronoframeAddress": "Your reserved ChronoFrame address.",+ "couldNotLoadTheAddress": "Could not load the address.",+ "copyAddress": "Copy address",+ "changingTheDefaultSubdomainIsNotAvailableYet": "Changing the default subdomain is not available yet.",+ "noDefaultSubdomainIsAssigned": "No default subdomain is assigned.",+ "customDomains": "Custom domains",+ "comingLater": "Coming later",+ "connectYourOwnDomainInAFutureUpdateDomain": "Connect your own domain in a future update. Domain ownership, DNS and certificate verification will be required before activation.",+ "yourGallerySIdentityAndPublicProfile": "Your gallery’s identity and public profile.",+ "openPhotoLibrary": "Open photo library",+ "manageAlbums": "Manage albums",+ "uploadAndProcessingDetailsAreInYourPhotoLibrary": "Upload and processing details are in your photo library.",+ "chooseWhereYourGallerySMediaLives": "Choose where your gallery’s media lives.",+ "platformStorage": "Platform storage",+ "managedStorageAndPlanAllowancesAreNotAvailableYet": "Managed storage and plan allowances are not available yet. Connect your own private S3-compatible bucket above to get started.",+ "yourSites": "Your sites",+ "manageYourGalleriesSettingsAndAccess": "Manage your galleries, settings and access.",+ "yourWorkspaceCouldNotBeOpened": "Your workspace could not be opened.",+ "site": "Site",+ "status": "Status",+ "role": "Role",+ "noSitesYet": "No sites yet",+ "createADraftAboveToReserveYourGalleryS": "Create a draft above to reserve your gallery’s address.",+ "onlySitesYouBelongToAppearHere": "Only sites you belong to appear here.",+ "viewDocumentation": "View documentation",+ "cover": "Cover",+ "title": "Title",+ "description": "Description",+ "visibility": "Visibility",+ "albumCouldNotBeLoadedPleaseTryAgain": "Album could not be loaded. Please try again.",+ "useLowercaseLettersNumbersAndSingleHyphensTheSlug": "Use lowercase letters, numbers and single hyphens; the slug cannot be numeric only.",+ "enterAnAlbumPassword": "Enter an album password.",+ "removePasswordProtectionPublishedPhotographsMayBecomePublic": "Remove password protection? Published photographs may become public.",+ "albumSaved": "Album saved.",+ "albumDeletedPhotographsRemainInYourLibrary": "Album deleted. Photographs remain in your library.",+ "albumOrderUpdated": "Album order updated.",+ "editAlbum": "Edit album",+ "tags": "Tags",+ "dateTaken": "Date taken",+ "size": "Size",+ "photographsDeletedManagedFilesAreQueuedForCleanup": "Photographs deleted. Managed files are queued for cleanup.",+ "photographsAddedToAlbum": "Photographs added to album.",+ "preview": "Preview",+ "editDetails": "Edit details",+ "deletePhotograph": "Delete photograph",+ "passwordUpdatedOtherSessionsHaveBeenSignedOut": "Password updated. Other sessions have been signed out.",+ "scanTheQrCodeSaveYourRecoveryCodesAnd": "Scan the QR code, save your recovery codes, and enter a code to finish setup.",+ "emailSecondStepVerificationIsEnabled": "Email second-step verification is enabled.",+ "authenticatorVerifiedAndEnabledKeepYourRecoveryCodesSomewhere": "Authenticator verified and enabled. Keep your recovery codes somewhere safe.",+ "twoStepVerificationHasBeenDisabled": "Two-step verification has been disabled.",+ "newRecoveryCodesGeneratedYourPreviousCodesNoLonger": "New recovery codes generated. Your previous codes no longer work.",+ "myPasskey": "My passkey",+ "passkeyCreatedItsPrivateKeyStaysOnYourDevice": "Passkey created. Its private key stays on your device or password manager.",+ "passkeyRemoved": "Passkey removed.",+ "thisAddressIsAlreadyTakenOrThisRequestChanged": "This address is already taken, or this request changed. Choose another address and try again.",+ "checkTheSiteNameAndAddressThisAddressMay": "Check the site name and address. This address may be reserved.",+ "youCannotCreateAnotherSiteInThisWorkspaceThe": "You cannot create another site in this workspace. The preview supports up to 10 sites.",+ "yourSiteCouldNotBeCreatedPleaseTryAgain": "Your site could not be created. Please try again.",+ "chooseAPngJpegOrWebpImageUpTo": "Choose a PNG, JPEG or WebP image up to 2 MiB.",+ "iconTooLarge": "Icon too large",+ "thisImageCouldNotBeUsedTryAnotherImage": "This image could not be used. Try another image.",+ "siteSettingsSaved": "Site settings saved.",+ "thisSiteChangedInAnotherSessionReloadBeforeSaving": "This site changed in another session. Reload before saving again.",+ "settingsCouldNotBeSavedCheckYourAccessAnd": "Settings could not be saved. Check your access and try again.",+ "yourAccount": "Your account",+ "weCouldNotSignYouOutPleaseTryAgain": "We could not sign you out. Please try again.",+ "siteContextChanged": "Site context changed",+ "mediaServicesNeedDeploymentConfigurationYourExistingSiteSettings": "Media services need deployment configuration. Your existing site settings are available.",+ "couldNotRefreshMediaCheckYourAccessAndRetry": "Could not refresh media. Check your access and retry.",+ "thisAlbumUrlIsAlreadyUsedOrReservedBy": "This album URL is already used or reserved by an older link. Choose another slug.",+ "mediaServicesNeedDeploymentConfigurationCheckTheSelectedEnvironment": "Media services need deployment configuration. Check the selected environment settings.",+ "thisItemChangedRefreshAndTryAgain": "This item changed. Refresh and try again.",+ "thePreviewResourceLimitHasBeenReached": "The preview resource limit has been reached.",+ "administratorAccessIsRequired": "Administrator access is required.",+ "theOperationFailedCheckTheEnteredValuesAndYour": "The operation failed. Check the entered values and your connection, then retry.",+ "storageConnectedAndVerified": "Storage connected and verified.",+ "credentialsRotatedExistingMediaReferencesRemainAvailable": "Credentials rotated. Existing media references remain available.",+ "untitledPhotograph": "Untitled photograph",+ "couldNotLoadPhotographSettingsSelectItAgainTo": "Could not load photograph settings. Select it again to retry.",+ "photographUpdated": "Photograph updated.",+ "uploadUnavailable": "Upload unavailable",+ "uploadFailed": "Upload failed",+ "eachPhotographAndItsMatchingLivePhotoMovMust": "Each photograph and its matching Live Photo MOV must total at most 100 MiB. A MOV must accompany a photograph with the same filename.",+ "uploadVerifiedProcessingContinuesInTheBackground": "Upload verified. Processing continues in the background.",+ "uploadCancelled": "Upload cancelled.",+ "uploadInterruptedSelectTheSameFileToResumeIts": "Upload interrupted. Select the same file to resume its uploaded parts.",+ "deleteThisPhotographAndItsManagedOriginalThumbnailAnd": "Delete this photograph and its managed original, thumbnail and Live Photo files from storage?",+ "photographDeletedManagedStorageFilesAreQueuedForCleanup": "Photograph deleted. Managed storage files are queued for cleanup.",+ "galleryPublished": "Gallery published.",+ "galleryUnpublished": "Gallery unpublished.",+ "pageNotFound": "Page not found",+ "accountSecurityChronoframeCloud": "Account & security — ChronoFrame Cloud",+ "resetPasswordChronoframeCloud": "Reset password — ChronoFrame Cloud",+ "chronoframeAHomeForYourPhotography": "ChronoFrame — A home for your photography",+ "aThoughtfulHomeForYourPhotographsBeautifulGalleriesYour": "A thoughtful home for your photographs. Beautiful galleries, your own storage, and an open-source heart.",+ "setANewPasswordChronoframeCloud": "Set a new password — ChronoFrame Cloud",+ "thePasswordsDoNotMatch": "The passwords do not match.",+ "signInChronoframeCloud": "Sign in — ChronoFrame Cloud",+ "passkeySignInWasNotCompletedTryAgainOr": "Passkey sign-in was not completed. Try again or use your email.",+ "createAnAccountChronoframeCloud": "Create an account — ChronoFrame Cloud",+ "albumsChronoframeCloud": "Albums — ChronoFrame Cloud",+ "domainsChronoframeCloud": "Domains — ChronoFrame Cloud",+ "addressCopied": "Address copied.",+ "couldNotCopySelectAndCopyTheAddressAbove": "Could not copy. Select and copy the address above.",+ "siteInformationChronoframeCloud": "Site information — ChronoFrame Cloud",+ "overviewChronoframeCloud": "Overview — ChronoFrame Cloud",+ "photosChronoframeCloud": "Photos — ChronoFrame Cloud",+ "storageChronoframeCloud": "Storage — ChronoFrame Cloud",+ "yourSitesChronoframeCloud": "Your sites — ChronoFrame Cloud",+ "tooManyAttemptsPleaseWaitBeforeTryingAgain": "Too many attempts. Please wait before trying again.",+ "useYourAuthenticatorOrAnUnusedRecoveryCodeTo": "Use your authenticator or an unused recovery code to finish signing in.",+ "useAPasswordWithAtLeast12Characters": "Use a password with at least 12 characters.",+ "verifyYourEmailBeforeSigningInYouCanRequest": "Verify your email before signing in. You can request another code below.",+ "anAccountMayAlreadyUseThisEmailTrySigning": "An account may already use this email. Try signing in or resetting your password.",+ "thisCodeIsInvalidOrExpiredCheckItAnd": "This code is invalid or expired. Check it and try again, or request a new code.",+ "theEmailOrPasswordIsIncorrectCheckYourDetails": "The email or password is incorrect. Check your details or reset your password.",+ "thisLinkIsInvalidOrExpiredPleaseRequestA": "This link is invalid or expired. Please request a new password reset email.",+ "pleaseSignOutAndSignInAgainBeforeChanging": "Please sign out and sign in again before changing security settings.",+ "weCouldNotCompleteThisRequestPleaseTryAgain": "We could not complete this request. Please try again.",+ "hidden": "Hidden",+ "public": "Public",+ "noMatchingAlbums": "No matching albums",+ "makeRoomForACollection": "Make room for a collection",+ "leaveBlankToKeepTheCurrentPassword": "Leave blank to keep the current password.",+ "use8256Characters": "Use 8–256 characters.",+ "chronoframeCloudHome": "ChronoFrame Cloud home",+ "chronoframeHome": "ChronoFrame home",+ "noMatchingPhotographs": "No matching photographs",+ "yourLibraryStartsHere": "Your library starts here",+ "tryAnotherSearchOrClearYourFilters": "Try another search or clear your filters.",+ "uploadPhotographsToStartTellingYourStory": "Upload photographs to start telling your story.",+ "jobQueuedAgain": "Job queued again.",+ "enabled": "Enabled",+ "off": "Off",+ "passkey": "Passkey",+ "publishedGallery": "Published gallery",+ "privateDraft": "Private draft",+ "myWorkspace": "My workspace",+ "creating": "Creating…",+ "createDraft": "Create draft",+ "published": "Published",+ "yourGalleryIsLive": "Your gallery is live.",+ "onlyYourWorkspaceCanManageThisGallery": "Only your workspace can manage this gallery.",+ "unpublish": "Unpublish",+ "publishGallery": "Publish gallery",+ "publicAddress": "Public address",+ "reservedAddress": "Reserved address",+ "addressCopied2": "Address copied",+ "copySiteAddress": "Copy site address",+ "copied": "Copied",+ "copyLink": "Copy link",+ "checkingPhotographs": "Checking photographs…",+ "uploadAPhotographAndWaitForProcessingToFinish": "Upload a photograph and wait for processing to finish before publishing.",+ "readyToShareSelectPublishGalleryAbove": "Ready to share? Select Publish gallery above.",+ "askAWorkspaceAdministratorToPublishThisGallery": "Ask a workspace administrator to publish this gallery.",+ "couldNotCopyTheLinkSelectAndCopyThe": "Could not copy the link. Select and copy the address above.",+ "siteAddressCopiedToClipboard": "Site address copied to clipboard.",+ "saving": "Saving…",+ "switchToLightTheme": "Switch to light theme",+ "switchToDarkTheme": "Switch to dark theme",+ "accountSettings": "Account settings",+ "signingOut": "Signing out…",+ "signOut": "Sign out",+ "aFrameWeCouldnTFind": "A frame we couldn’t find.",+ "aMomentOutOfFocus": "A moment out of focus.",+ "thisPageMayHaveMovedOrYouMayNot": "This page may have moved, or you may not have access to it.",+ "weCouldnTLoadThisPagePleaseTryAgain": "We couldn’t load this page. Please try again in a moment.",+ "oneMoreStep": "One more step.",+ "checkYourInbox": "Check your inbox.",+ "welcomeBack": "Welcome back.",+ "completeYourSecondVerificationToContinue": "Complete your second verification to continue.",+ "yourPhotographsYourSpace": "Your photographs. Your space.",+ "verificationCode": "Verification code",+ "enterTheCodeFromYourEmail": "Enter the code from your email.",+ "useYourAuthenticatorOrAnUnusedRecoveryCode": "Use your authenticator or an unused recovery code.",+ "sendSignInCode": "Send sign-in code",+ "signIn": "Sign in",+ "makeItYours": "Make it yours.",+ "verifyYourEmailToFinishCreatingYourAccount": "Verify your email to finish creating your account.",+ "createYourAccountAndFindYourOwnPerspective": "Create your account and find your own perspective.",+ "verifyEmailAndContinue": "Verify email and continue",+ "createAccount": "Create account",+ "alreadyStartedResendVerification": "Already started? Resend verification",+ "publishedHiddenPhotographsAndAlbumPasswordsRemainProtected": "Published. Hidden photographs and album passwords remain protected.",+ "reservedForYourDraftThisAddressReturns404Until": "Reserved for your draft. This address returns 404 until you publish from Overview.",+ "draft": "Draft",+ "photograph": "Photograph",+ "photographs": "Photographs",+ "processing": "Processing",+ "yourPublicAddressAndSharedLinksWillReturn40": "Your public address and shared links will return 404. Your photographs, albums and storage will remain in your workspace. You can publish again later."+ },+ "ui": {+ "editNamed": "Edit {title}",+ "moveUp": "Move {title} up",+ "moveDown": "Move {title} down",+ "actionsNamed": "Actions for {title}",+ "setCover": "Set {title} as cover",+ "removeFromAlbum": "Remove {title} from album",+ "selectNamed": "Select {title}",+ "previewNamed": "Preview {title}",+ "removePasskey": "Remove {name}",+ "siteCount": "{count} site | {count} sites",+ "photoQueue": "{count} photographs · {processing} processing",+ "selectedCount": "{count} selected",+ "photographCount": "{count} photograph | {count} photographs",+ "photoMembershipCount": "Photographs · {count}",+ "securityFor": "Manage sign-in methods for {email}",+ "uploadProgress": "{progress}% · Uploading to your private bucket",+ "uploadUsage": "{photos} / 1,000 photographs · {bytes} / 5 GiB uploaded in 30 days",+ "connectionRevision": "{bucket} · revision {revision}",+ "admin": "Admin",+ "member": "Member",+ "queued": "Queued",+ "running": "Running",+ "retry_wait": "Waiting to retry",+ "succeeded": "Completed",+ "failed": "Failed",+ "cancelled": "Cancelled",+ "unknownJob": "Processing status unavailable",+ "deletePhotosCount": "Delete {count} photograph | Delete {count} photographs",+ "processingFailure": "Processing could not finish ({code}). Retry or contact the operator."+ },+ "storageErrors": {+ "storage_configuration_failed": "Check the S3 endpoint, region, bucket name and credential fields.",+ "storage_write_failed": "Storage write check failed. Check credentials, object-write permission and service availability.",+ "storage_read_failed": "Storage read check failed. Check object-read permission and service availability.",+ "storage_signed_read_failed": "Signed storage access failed. Check the endpoint, region and S3 credentials.",+ "storage_multipart_failed": "Multipart upload check failed. Check multipart creation, listing and abort permissions.",+ "storage_multipart_create_failed": "Creating a multipart upload failed. Check storage permissions and S3 service compatibility.",+ "storage_multipart_list_failed": "Listing multipart uploads failed or did not return the new upload. Check multipart listing permissions and S3 service compatibility.",+ "storage_multipart_abort_failed": "Aborting the test multipart upload failed. Check multipart abort permissions.",+ "storage_cors_failed": "Storage CORS check failed. Allow this portal origin, GET/PUT/HEAD, Content-Type, and expose ETag.",+ "storage_cleanup_failed": "Storage cleanup check failed. Check object-delete permission."+ }+ }+}diff --git a/apps/cloud/i18n/locales/zh-Hans.json b/apps/cloud/i18n/locales/zh-Hans.jsonnew file mode 100644index 00000000..e5adb5be--- /dev/null+++ b/apps/cloud/i18n/locales/zh-Hans.json@@ -0,0 +1,466 @@+{+ "cloud": {+ "messages": {+ "skipToContent": "跳转到主要内容",+ "albums": "相簿",+ "organizeYourPhotographsAndChooseHowTheyAreShared": "整理照片,并选择相簿的分享方式。",+ "createAlbum": "创建相簿",+ "searchAlbums": "搜索相簿…",+ "searchAlbums2": "搜索相簿",+ "refreshAlbums": "刷新相簿",+ "createAnAlbumToBringRelatedPhotographsTogether": "创建相簿,将相关照片收集在一起。",+ "chooseThePhotographsCoverAndAccessForThisAlbum": "选择相簿照片、封面和访问权限。",+ "loadingAlbum": "正在加载相簿…",+ "hideAlbum": "隐藏相簿",+ "hideThisAlbumAndItsPhotographsFromPublicBrowsing": "在公开浏览中隐藏此相簿及其中的照片。",+ "passwordProtection": "密码保护",+ "visitorsMustUnlockThisAlbumToViewItsPhotographs": "访客需要解锁相簿才能查看其中的照片。",+ "albumPassword": "相簿密码",+ "selectPhotographs": "选择照片",+ "choosePhotographsFromYourLibrary": "从照片库中选择照片。",+ "searchPhotographs": "搜索照片…",+ "searchPhotographsForAlbum": "搜索要加入相簿的照片",+ "done": "完成",+ "cancel": "取消",+ "saveAlbum": "保存相簿",+ "deleteAlbum": "删除相簿?",+ "photographsRemainInYourLibraryTheyMayBecomePublic": "照片会保留在照片库中。如果没有其他受保护的相簿包含这些照片,它们可能变为公开可见。",+ "deleteAlbum2": "删除相簿",+ "aboutChronoframeCloud": "关于 ChronoFrame Cloud",+ "aLittleSpace": "一方天地。",+ "aDifferentPerspective": "一种视角。",+ "yourPhotographsDeserveAHomeThatFeelsLikeYou": "为你的照片,留一处属于自己的空间。",+ "chronoframeCloudMadeForTheWayYouSee": "CHRONOFRAME CLOUD · 为你的视角而生",+ "backToHome": "返回官网",+ "aHomeForYourPhotographs": "照片的归处。",+ "aLittleGuidanceIfYouNeedIt": "需要帮助时,这里有一些指引。",+ "photoLibrary": "照片库",+ "upload": "上传",+ "searchPhotographs2": "搜索照片",+ "filters": "筛选",+ "sort": "排序",+ "refreshPhotographs": "刷新照片",+ "addToAlbum": "添加到相簿",+ "delete": "删除",+ "clear": "清除",+ "selectAllPhotographs": "选择所有照片",+ "live": "实况",+ "processingQueue": "处理队列",+ "attempt": "尝试次数",+ "retry": "重试",+ "remove": "移除",+ "editPhotograph": "编辑照片",+ "updateTheDetailsShownInYourGallery": "更新照片在图库中展示的信息。",+ "loadingPhotograph": "正在加载照片…",+ "saveChanges": "保存更改",+ "previewPhotograph": "预览照片",+ "deletePhotographs": "删除照片?",+ "thisDeletesTheSelectedPhotographsAndQueuesTheirManaged": "这将删除所选照片,并将其托管的原图、缩略图和实况照片文件加入清理队列。",+ "chooseAnAlbumForTheSelectedPhotographs": "选择要添加所选照片的相簿。",+ "chooseAnAlbum": "选择相簿",+ "createAnAlbumFirstFromTheAlbumsPage": "请先前往相簿页面创建一个相簿。",+ "addPhotographs": "添加照片",+ "openNavigation": "打开导航",+ "navigation": "导航",+ "yourWorkspaceAndSiteNavigation": "工作区与站点导航。",+ "closeNavigation": "关闭导航",+ "cloudPreview": "Cloud 预览版",+ "workspace": "工作区",+ "security": "安全",+ "password": "密码",+ "useAUniquePasswordWithAtLeast12Characters": "使用至少 12 个字符且不与其他账户重复的密码。",+ "currentPassword": "当前密码",+ "newPassword": "新密码",+ "updatePassword": "更新密码",+ "youSignedInWithAnEmailCode": "你使用邮箱验证码登录。",+ "emailYourselfALinkToSetAPassword": "向自己发送密码设置链接",+ "beforeEnablingTwoStepVerification": ",然后即可启用两步验证。",+ "twoStepVerification": "两步验证",+ "addACodeAfterPasswordSignInConnectedAuthenticators": "使用密码登录后需额外验证。绑定验证器后,邮箱验证码登录也需要验证器验证。通行密钥使用设备验证。",+ "confirmYourPasswordToChangeSecuritySettings": "输入密码以更改安全设置",+ "enableEmailVerification": "启用邮箱验证",+ "setUpAuthenticator": "设置验证器",+ "disableTwoStepVerification": "关闭两步验证",+ "scanThisPrivateQrCodeWithYourAuthenticatorApp": "使用验证器应用扫描此私密二维码",+ "cannotScanTheQrCode": "无法扫描二维码?",+ "authenticatorCode": "验证器验证码",+ "verifyAndEnable": "验证并启用",+ "authenticatorConnectedRecoveryCodesAreSingleUseGeneratingNew": "验证器已绑定。每个恢复码只能使用一次,生成新恢复码后旧恢复码将失效。",+ "replaceRecoveryCodes": "重新生成恢复码",+ "saveTheseRecoveryCodesPrivately": "请妥善保管这些恢复码。",+ "theseAreOnlyShownHereKeepThemOutsideThis": "恢复码仅在此显示,请保存在浏览器以外的安全位置。",+ "iHaveSavedMyCodes": "我已保存恢复码",+ "passkeys": "通行密钥",+ "useYourDeviceLockFingerprintOrSecurityKeyYour": "使用设备锁屏、指纹或安全密钥进行验证,密钥由设备自动创建。",+ "passkeyName": "通行密钥名称",+ "forExampleMyLaptop": "例如:我的笔记本电脑",+ "createPasskey": "创建通行密钥",+ "noPasskeysYet": "尚未创建通行密钥。",+ "allSites": "所有站点",+ "manageSite": "站点管理",+ "siteNavigation": "站点导航",+ "overview": "概览",+ "siteInformation": "站点信息",+ "siteResources": "站点资源",+ "siteResources2": "站点资源",+ "domains": "域",+ "storage": "存储",+ "workspace2": "工作区",+ "portalNavigation": "门户导航",+ "sites": "站点",+ "createSite": "创建站点",+ "createASite": "创建站点",+ "startWithAPrivateDraftYourAddressIsReserved": "先创建一个私密草稿,发布前会为你保留站点地址。",+ "siteName": "站点名称",+ "siteAddress": "站点地址",+ "use340LowercaseLettersNumbersOrHyphensSome": "使用 3–40 个小写字母、数字或连字符。部分地址已被保留,此处暂不支持修改地址。",+ "viewSite": "访问站点",+ "loadingSiteAddress": "正在加载站点地址…",+ "siteAddressCouldNotBeLoaded": "无法加载站点地址。",+ "noDefaultAddressIsAvailableForThisSite": "此站点暂无默认地址。",+ "thisAddressReturns404UntilYouPublishYourGallery": "发布图库之前,访问此地址将返回 404。",+ "hiddenPhotographsStayHiddenPasswordProtectedAlbumsStillRequire": "隐藏照片仍不可见,受密码保护的相簿仍需要输入密码。",+ "unpublishThisGallery": "取消发布此图库?",+ "unpublishGallery": "取消发布图库",+ "galleryIdentity": "图库信息",+ "useTheSameTitleAuthorAndIconShownIn": "设置公开图库中展示的标题、作者和图标。",+ "settingsCouldNotBeLoaded": "无法加载设置。",+ "reloadSettings": "重新加载设置",+ "workspaceSiteName": "工作区中的站点名称",+ "theWorkspaceNameIdentifiesThisSiteInYourConsole": "此名称用于在控制台中识别站点。公开标题留空时将使用此名称。",+ "publicTitle": "公开标题",+ "slogan": "标语",+ "author": "作者",+ "galleryIcon": "图库图标",+ "galleryIconPreview": "图库图标预览",+ "pngJpegOrWebpUpTo2MibCropped": "支持 PNG、JPEG 或 WebP,最大 2 MiB。会自动裁剪为正方形并优化。",+ "removeIcon": "移除图标",+ "onlyWorkspaceAdministratorsCanChangeTheseSettings": "仅工作区管理员可以更改这些设置。",+ "connectAPrivateS3CompatibleBucketForYourPhotographs": "连接私有的 S3 兼容存储桶来存放照片。",+ "storageConnection": "存储连接",+ "chooseAConnection": "选择连接",+ "rotateStorageCredentials": "轮换存储凭证",+ "newAccessKeyId": "新的访问密钥 ID",+ "newSecretAccessKey": "新的秘密访问密钥",+ "testRotate": "测试并轮换",+ "connectStorage": "连接存储",+ "endpoint": "服务端点",+ "region": "区域",+ "bucket": "存储桶",+ "accessKeyId": "访问密钥 ID",+ "secretAccessKey": "秘密访问密钥",+ "useADedicatedBucketWithPrivateAccessAllowThis": "请使用专用私有存储桶。在 CORS 中允许此门户来源的 GET、PUT 和 HEAD 请求,允许 Content-Type 请求头并暴露 ETag 响应头。其他端点主机需要平台管理员批准。",+ "testConnect": "测试并连接",+ "uploadPhotographs": "上传照片",+ "addPhotographsToYourLibraryJpegPngHeicAnd": "向照片库添加照片,支持 JPEG、PNG、HEIC 和配对实况照片。",+ "connectYourPrivateStorageIn": "请先前往",+ "beforeUploading": "连接私有存储,然后再上传。",+ "choosePhotographs": "选择照片",+ "dropImagesHereOrChooseImagesAndMatchingMov": "将图片拖放到此处,或同时选择图片和配对的 .MOV 文件。",+ "upTo100MibPerPhotographIncludingItsPaired": "每张照片连同配对视频的总大小不能超过 100 MiB。",+ "cancelUpload": "取消上传",+ "openUserMenu": "打开用户菜单",+ "userMenu": "用户菜单",+ "accountSecurity": "账户与安全",+ "tryAgain": "重试",+ "yourProfilePreferencesAndSignInMethods": "管理个人资料、偏好设置和登录方式。",+ "profile": "个人资料",+ "emailAddress": "邮箱地址",+ "verified": "已验证",+ "appearance": "外观",+ "chooseTheLightThatSuitsYou": "选择适合你的明暗主题。",+ "aFreshStart": "重新开始。",+ "weWillEmailYouALinkToResetYour": "我们将向你发送密码重设链接。之前使用邮箱验证码登录的账户也可通过此方式设置密码。",+ "ifThisAddressHasAnAccountAPasswordReset": "如果此邮箱已注册账户,你将收到密码重设链接,请查收邮件。",+ "sendResetLink": "发送重设链接",+ "backToSignIn": "返回登录",+ "mainNavigation": "主导航",+ "documentation": "文档",+ "logIn": "登录",+ "getStarted": "立即注册",+ "signUp": "注册",+ "mobileNavigation": "移动端导航",+ "yourPhotographyYourPerspective": "你的摄影,你的视角。",+ "everyFrame": "每一帧。",+ "yourStory": "你的故事。",+ "aHomeForTheMomentsYouWantToShare": "为想要分享的时刻安一个家,将照片汇聚成一座属于自己的图库。",+ "createYourAccount": "创建账户",+ "exploreSelfHosted": "了解自托管版",+ "selfHostedIsAvailableNowCloudIsInPreview": "自托管版现已可用,Cloud 目前处于预览阶段。",+ "examplePhotographyGallery": "摄影图库示例",+ "fieldNotes": "影像手记",+ "aChronoframeGallery": "CHRONOFRAME 图库",+ "sunlitMountainPeaksBeneathASoftBlueSky": "柔和蓝天下,阳光照耀着山峰",+ "lightFallingThroughAQuietGreenForest": "光线穿过静谧的绿色森林",+ "anOceanShoreInTheWarmLightOfSunset": "落日暖光中的海岸",+ "smallMomentsWideHorizons": "细小时刻,辽阔视野。",+ "aLittleSpaceForYourPerspective": "为你的视角,留一方天地。",+ "lessBetweenYouAndYourPhotographs": "让你与照片更近一些",+ "thoughtfullySimpleEntirelyYours": "用心化繁为简,完整属于你。",+ "openSourceByNature": "生而开源",+ "letYourPhotographsLead": "让照片成为主角。",+ "quietLayoutsConsideredDetailsAndADedicatedViewerGive": "简洁的布局、用心的细节与专注的查看器,让每张照片都有恰如其分的空间。",+ "yourImagesYourStorage": "你的照片,你的存储。",+ "runTheSelfHostedEditionWithStorageYouControl": "运行自托管版,使用自己掌控的存储,以自己的方式珍藏影像。",+ "madeToBeMadeYourOwn": "为自由定制而生。",+ "builtInTheOpenWithASharedFoundationExplore": "基于共享基础公开构建,探索源代码,一起塑造未来。",+ "chronoframeMadeForTheWayYouSee": "ChronoFrame,为你的视角而生。",+ "sourceAndLicensing": "源码与许可",+ "setANewPassword": "设置新密码。",+ "yourPasswordHasBeenUpdatedSignInWithYour": "密码已更新,请使用新密码登录。",+ "confirmPassword": "确认密码",+ "saveNewPassword": "保存新密码",+ "thisResetLinkIsInvalidOrExpired": "此重设链接无效或已过期。",+ "requestANewLink": "重新获取链接",+ "signInMethod": "登录方式",+ "emailCode": "邮箱验证码",+ "forgotYourPassword": "忘记密码?",+ "verificationMethod": "验证方式",+ "recoveryCode": "恢复码",+ "sendANewCode": "重新发送验证码",+ "signInWithAPasskey": "使用通行密钥登录",+ "newHere": "还没有账户?",+ "createAnAccount": "创建账户",+ "emailSignInIsNotAvailableOnThisDeployment": "此部署尚未启用邮箱登录。",+ "useAtLeast12CharactersAUniquePassphraseWorks": "至少使用 12 个字符,建议选择不重复的长密码。",+ "emailVerificationCode": "邮箱验证码",+ "alreadyHaveAnAccount": "已有账户?",+ "registrationIsNotAvailableOnThisDeploymentYet": "此部署尚未启用注册。",+ "addressesVisitorsUseToReachYourGallery": "管理访客访问图库时使用的地址。",+ "defaultSubdomain": "默认子域名",+ "yourReservedChronoframeAddress": "为你保留的 ChronoFrame 地址。",+ "couldNotLoadTheAddress": "无法加载地址。",+ "copyAddress": "复制地址",+ "changingTheDefaultSubdomainIsNotAvailableYet": "暂不支持修改默认子域名。",+ "noDefaultSubdomainIsAssigned": "尚未分配默认子域名。",+ "customDomains": "自定义域名",+ "comingLater": "即将支持",+ "connectYourOwnDomainInAFutureUpdateDomain": "后续更新将支持连接自有域名,启用前需完成域名所有权、DNS 和证书验证。",+ "yourGallerySIdentityAndPublicProfile": "管理图库信息与公开资料。",+ "openPhotoLibrary": "打开照片库",+ "manageAlbums": "管理相簿",+ "uploadAndProcessingDetailsAreInYourPhotoLibrary": "上传与处理详情可在照片库中查看。",+ "chooseWhereYourGallerySMediaLives": "选择图库媒体的存储位置。",+ "platformStorage": "平台存储",+ "managedStorageAndPlanAllowancesAreNotAvailableYet": "暂未开放托管存储和套餐配额。请先在上方连接自己的私有 S3 兼容存储桶。",+ "yourSites": "你的站点",+ "manageYourGalleriesSettingsAndAccess": "管理图库、设置与访问权限。",+ "yourWorkspaceCouldNotBeOpened": "无法打开工作区。",+ "site": "站点",+ "status": "状态",+ "role": "角色",+ "noSitesYet": "暂无站点",+ "createADraftAboveToReserveYourGalleryS": "在上方创建草稿,预留图库地址。",+ "onlySitesYouBelongToAppearHere": "此处仅显示你加入的站点。",+ "viewDocumentation": "查看文档",+ "cover": "封面",+ "title": "标题",+ "description": "描述",+ "visibility": "可见性",+ "albumCouldNotBeLoadedPleaseTryAgain": "无法加载相簿,请重试。",+ "useLowercaseLettersNumbersAndSingleHyphensTheSlug": "使用小写字母、数字和单个连字符,不能仅由数字组成。",+ "enterAnAlbumPassword": "请输入相簿密码。",+ "removePasswordProtectionPublishedPhotographsMayBecomePublic": "移除密码保护?已发布的照片可能变为公开可见。",+ "albumSaved": "相簿已保存。",+ "albumDeletedPhotographsRemainInYourLibrary": "相簿已删除,照片仍保留在照片库中。",+ "albumOrderUpdated": "相簿顺序已更新。",+ "editAlbum": "编辑相簿",+ "tags": "标签",+ "dateTaken": "拍摄日期",+ "size": "大小",+ "photographsDeletedManagedFilesAreQueuedForCleanup": "照片已删除,托管文件已加入清理队列。",+ "photographsAddedToAlbum": "照片已添加到相簿。",+ "preview": "预览",+ "editDetails": "编辑信息",+ "deletePhotograph": "删除照片",+ "passwordUpdatedOtherSessionsHaveBeenSignedOut": "密码已更新,其他会话已退出。",+ "scanTheQrCodeSaveYourRecoveryCodesAnd": "扫描二维码,保存恢复码,然后输入验证码以完成设置。",+ "emailSecondStepVerificationIsEnabled": "已启用邮箱两步验证。",+ "authenticatorVerifiedAndEnabledKeepYourRecoveryCodesSomewhere": "验证器已验证并启用,请将恢复码保存在安全位置。",+ "twoStepVerificationHasBeenDisabled": "已关闭两步验证。",+ "newRecoveryCodesGeneratedYourPreviousCodesNoLonger": "已生成新的恢复码,之前的恢复码已失效。",+ "myPasskey": "我的通行密钥",+ "passkeyCreatedItsPrivateKeyStaysOnYourDevice": "通行密钥已创建,私钥保留在设备或密码管理器中。",+ "passkeyRemoved": "通行密钥已移除。",+ "thisAddressIsAlreadyTakenOrThisRequestChanged": "此地址已被占用或请求发生变化,请更换地址后重试。",+ "checkTheSiteNameAndAddressThisAddressMay": "请检查站点名称和地址,此地址可能已被保留。",+ "youCannotCreateAnotherSiteInThisWorkspaceThe": "无法在此工作区继续创建站点,预览阶段最多支持 10 个站点。",+ "yourSiteCouldNotBeCreatedPleaseTryAgain": "无法创建站点,请重试。",+ "chooseAPngJpegOrWebpImageUpTo": "请选择不超过 2 MiB 的 PNG、JPEG 或 WebP 图片。",+ "iconTooLarge": "图标过大",+ "thisImageCouldNotBeUsedTryAnotherImage": "无法使用此图片,请尝试其他图片。",+ "siteSettingsSaved": "站点设置已保存。",+ "thisSiteChangedInAnotherSessionReloadBeforeSaving": "此站点已在其他会话中更改,请重新加载后再保存。",+ "settingsCouldNotBeSavedCheckYourAccessAnd": "无法保存设置,请检查权限后重试。",+ "yourAccount": "你的账户",+ "weCouldNotSignYouOutPleaseTryAgain": "无法退出登录,请重试。",+ "siteContextChanged": "站点上下文已更改",+ "mediaServicesNeedDeploymentConfigurationYourExistingSiteSettings": "媒体服务需要完成部署配置,现有站点设置仍可使用。",+ "couldNotRefreshMediaCheckYourAccessAndRetry": "无法刷新媒体,请检查权限后重试。",+ "thisAlbumUrlIsAlreadyUsedOrReservedBy": "此相簿地址已被使用或被旧链接保留,请选择其他地址标识。",+ "mediaServicesNeedDeploymentConfigurationCheckTheSelectedEnvironment": "媒体服务需要完成部署配置,请检查所选环境的设置。",+ "thisItemChangedRefreshAndTryAgain": "此项目已发生更改,请刷新后重试。",+ "thePreviewResourceLimitHasBeenReached": "已达到预览阶段的资源上限。",+ "administratorAccessIsRequired": "此操作需要管理员权限。",+ "theOperationFailedCheckTheEnteredValuesAndYour": "操作失败,请检查输入内容和网络连接后重试。",+ "storageConnectedAndVerified": "存储已连接并通过验证。",+ "credentialsRotatedExistingMediaReferencesRemainAvailable": "凭证已轮换,现有媒体引用仍然可用。",+ "untitledPhotograph": "未命名照片",+ "couldNotLoadPhotographSettingsSelectItAgainTo": "无法加载照片设置,请重新选择后重试。",+ "photographUpdated": "照片已更新。",+ "uploadUnavailable": "无法上传",+ "uploadFailed": "上传失败",+ "eachPhotographAndItsMatchingLivePhotoMovMust": "每张照片及其配对的实况 MOV 视频总大小不能超过 100 MiB。MOV 文件必须与同名照片一起上传。",+ "uploadVerifiedProcessingContinuesInTheBackground": "上传已验证,正在后台继续处理。",+ "uploadCancelled": "上传已取消。",+ "uploadInterruptedSelectTheSameFileToResumeIts": "上传已中断,重新选择同一文件即可继续上传剩余部分。",+ "deleteThisPhotographAndItsManagedOriginalThumbnailAnd": "删除此照片及存储中对应的托管原图、缩略图和实况照片文件?",+ "photographDeletedManagedStorageFilesAreQueuedForCleanup": "照片已删除,托管存储文件已加入清理队列。",+ "galleryPublished": "图库已发布。",+ "galleryUnpublished": "图库已取消发布。",+ "pageNotFound": "页面未找到",+ "accountSecurityChronoframeCloud": "账户与安全 — ChronoFrame Cloud",+ "resetPasswordChronoframeCloud": "重设密码 — ChronoFrame Cloud",+ "chronoframeAHomeForYourPhotography": "ChronoFrame — 照片的归处",+ "aThoughtfulHomeForYourPhotographsBeautifulGalleriesYour": "为照片打造用心的归处:精美图库、自有存储与开源初心。",+ "setANewPasswordChronoframeCloud": "设置新密码 — ChronoFrame Cloud",+ "thePasswordsDoNotMatch": "两次输入的密码不一致。",+ "signInChronoframeCloud": "登录 — ChronoFrame Cloud",+ "passkeySignInWasNotCompletedTryAgainOr": "未能完成通行密钥登录,请重试或使用邮箱登录。",+ "createAnAccountChronoframeCloud": "创建账户 — ChronoFrame Cloud",+ "albumsChronoframeCloud": "相簿 — ChronoFrame Cloud",+ "domainsChronoframeCloud": "域 — ChronoFrame Cloud",+ "addressCopied": "地址已复制。",+ "couldNotCopySelectAndCopyTheAddressAbove": "无法复制,请选中上方地址后手动复制。",+ "siteInformationChronoframeCloud": "站点信息 — ChronoFrame Cloud",+ "overviewChronoframeCloud": "概览 — ChronoFrame Cloud",+ "photosChronoframeCloud": "照片 — ChronoFrame Cloud",+ "storageChronoframeCloud": "存储 — ChronoFrame Cloud",+ "yourSitesChronoframeCloud": "你的站点 — ChronoFrame Cloud",+ "tooManyAttemptsPleaseWaitBeforeTryingAgain": "尝试次数过多,请稍后再试。",+ "useYourAuthenticatorOrAnUnusedRecoveryCodeTo": "请使用验证器或尚未使用的恢复码完成登录。",+ "useAPasswordWithAtLeast12Characters": "请使用至少 12 个字符的密码。",+ "verifyYourEmailBeforeSigningInYouCanRequest": "请先验证邮箱再登录,你可以在下方重新获取验证码。",+ "anAccountMayAlreadyUseThisEmailTrySigning": "此邮箱可能已注册账户,请尝试登录或重设密码。",+ "thisCodeIsInvalidOrExpiredCheckItAnd": "此验证码无效或已过期,请检查后重试,或获取新验证码。",+ "theEmailOrPasswordIsIncorrectCheckYourDetails": "邮箱或密码不正确,请检查输入信息或重设密码。",+ "thisLinkIsInvalidOrExpiredPleaseRequestA": "此链接无效或已过期,请重新申请密码重设邮件。",+ "pleaseSignOutAndSignInAgainBeforeChanging": "请退出并重新登录后再更改安全设置。",+ "weCouldNotCompleteThisRequestPleaseTryAgain": "无法完成此请求,请重试。",+ "hidden": "隐藏",+ "public": "公开",+ "noMatchingAlbums": "没有匹配的相簿",+ "makeRoomForACollection": "为一组影像留个位置",+ "leaveBlankToKeepTheCurrentPassword": "留空以保留当前密码。",+ "use8256Characters": "使用 8–256 个字符。",+ "chronoframeCloudHome": "ChronoFrame Cloud 首页",+ "chronoframeHome": "ChronoFrame 首页",+ "noMatchingPhotographs": "没有匹配的照片",+ "yourLibraryStartsHere": "从这里开启照片库",+ "tryAnotherSearchOrClearYourFilters": "请尝试其他搜索词,或清除筛选条件。",+ "uploadPhotographsToStartTellingYourStory": "上传照片,开始讲述你的故事。",+ "jobQueuedAgain": "任务已重新加入队列。",+ "enabled": "已启用",+ "off": "未启用",+ "passkey": "通行密钥",+ "publishedGallery": "已发布图库",+ "privateDraft": "私密草稿",+ "myWorkspace": "我的工作区",+ "creating": "正在创建…",+ "createDraft": "创建草稿",+ "published": "已发布",+ "yourGalleryIsLive": "图库已上线。",+ "onlyYourWorkspaceCanManageThisGallery": "仅工作区成员可以管理此图库。",+ "unpublish": "取消发布",+ "publishGallery": "发布图库",+ "publicAddress": "公开地址",+ "reservedAddress": "保留地址",+ "addressCopied2": "地址已复制",+ "copySiteAddress": "复制站点地址",+ "copied": "已复制",+ "copyLink": "复制链接",+ "checkingPhotographs": "正在检查照片…",+ "uploadAPhotographAndWaitForProcessingToFinish": "请先上传照片,等待处理完成后再发布。",+ "readyToShareSelectPublishGalleryAbove": "准备好分享了吗?点击上方的“发布图库”。",+ "askAWorkspaceAdministratorToPublishThisGallery": "请联系工作区管理员发布此图库。",+ "couldNotCopyTheLinkSelectAndCopyThe": "无法复制链接,请选中上方地址后手动复制。",+ "siteAddressCopiedToClipboard": "站点地址已复制到剪贴板。",+ "saving": "正在保存…",+ "switchToLightTheme": "切换到浅色主题",+ "switchToDarkTheme": "切换到深色主题",+ "accountSettings": "账户设置",+ "signingOut": "正在退出…",+ "signOut": "退出登录",+ "aFrameWeCouldnTFind": "这一帧不见了。",+ "aMomentOutOfFocus": "这一刻失焦了。",+ "thisPageMayHaveMovedOrYouMayNot": "此页面可能已移动,或你没有访问权限。",+ "weCouldnTLoadThisPagePleaseTryAgain": "无法加载此页面,请稍后重试。",+ "oneMoreStep": "还差一步。",+ "checkYourInbox": "请查收邮件。",+ "welcomeBack": "欢迎回来。",+ "completeYourSecondVerificationToContinue": "请完成第二步验证以继续。",+ "yourPhotographsYourSpace": "你的照片,你的空间。",+ "verificationCode": "验证码",+ "enterTheCodeFromYourEmail": "请输入邮件中的验证码。",+ "useYourAuthenticatorOrAnUnusedRecoveryCode": "使用验证器或尚未使用的恢复码。",+ "sendSignInCode": "发送登录验证码",+ "signIn": "登录",+ "makeItYours": "让它属于你。",+ "verifyYourEmailToFinishCreatingYourAccount": "验证邮箱以完成账户创建。",+ "createYourAccountAndFindYourOwnPerspective": "创建账户,发现自己的视角。",+ "verifyEmailAndContinue": "验证邮箱并继续",+ "createAccount": "创建账户",+ "alreadyStartedResendVerification": "已开始注册?重新发送验证码",+ "publishedHiddenPhotographsAndAlbumPasswordsRemainProtected": "已发布。隐藏照片与相簿密码保护仍然有效。",+ "reservedForYourDraftThisAddressReturns404Until": "已为草稿保留此地址。在概览中发布之前,访问此地址将返回 404。",+ "draft": "草稿",+ "photograph": "照片",+ "photographs": "照片",+ "processing": "处理中",+ "yourPublicAddressAndSharedLinksWillReturn40": "公开地址和分享链接将返回 404。照片、相簿和存储会保留在工作区中,你可以稍后重新发布。"+ },+ "ui": {+ "editNamed": "编辑 {title}",+ "moveUp": "上移 {title}",+ "moveDown": "下移 {title}",+ "actionsNamed": "{title} 的操作",+ "setCover": "将 {title} 设为封面",+ "removeFromAlbum": "从相簿中移除 {title}",+ "selectNamed": "选择 {title}",+ "previewNamed": "预览 {title}",+ "removePasskey": "移除 {name}",+ "siteCount": "{count} 个站点",+ "photoQueue": "{count} 张照片 · {processing} 张正在处理",+ "selectedCount": "已选择 {count} 项",+ "photographCount": "{count} 张照片",+ "photoMembershipCount": "照片 · {count}",+ "securityFor": "管理 {email} 的登录方式",+ "uploadProgress": "{progress}% · 正在上传到你的私有存储桶",+ "uploadUsage": "{photos} / 1,000 张照片 · {bytes} / 5 GiB(近 30 天上传量)",+ "connectionRevision": "{bucket} · 凭证版本 {revision}",+ "admin": "管理员",+ "member": "成员",+ "queued": "排队中",+ "running": "处理中",+ "retry_wait": "等待重试",+ "succeeded": "已完成",+ "failed": "失败",+ "cancelled": "已取消",+ "unknownJob": "处理状态暂不可用",+ "deletePhotosCount": "删除 {count} 张照片",+ "processingFailure": "处理未能完成({code}),请重试或联系平台管理员。"+ },+ "storageErrors": {+ "storage_configuration_failed": "请检查 S3 服务端点、区域、存储桶名称和凭证字段。",+ "storage_write_failed": "存储写入检查失败,请检查凭证、对象写入权限和服务可用性。",+ "storage_read_failed": "存储读取检查失败,请检查对象读取权限和服务可用性。",+ "storage_signed_read_failed": "存储签名访问失败,请检查端点、区域和 S3 凭证。",+ "storage_multipart_failed": "分片上传检查失败,请检查创建、列出和取消分片上传的权限。",+ "storage_multipart_create_failed": "创建分片上传失败,请检查存储权限与 S3 服务兼容性。",+ "storage_multipart_list_failed": "列出分片上传失败,或未返回新建的上传任务。请检查列举权限与 S3 服务兼容性。",+ "storage_multipart_abort_failed": "取消测试分片上传失败,请检查取消分片上传的权限。",+ "storage_cors_failed": "存储 CORS 检查失败,请允许此门户来源的 GET/PUT/HEAD 请求、Content-Type 请求头,并暴露 ETag 响应头。",+ "storage_cleanup_failed": "存储清理检查失败,请检查对象删除权限。"+ }+ }+}diff --git a/apps/cloud/nuxt.config.ts b/apps/cloud/nuxt.config.tsindex f3e50a3a..fc5f32ba 100644--- a/apps/cloud/nuxt.config.ts+++ b/apps/cloud/nuxt.config.ts@@ -8,7 +8,23 @@ export default defineNuxtConfig({...sharedUi,modules: [...sharedUi.modules, 'shadcn-nuxt'],shadcn: { prefix: '', componentDir: './app/components/ui' },- app: { head: { htmlAttrs: { lang: 'en' } } },+ i18n: {+ strategy: 'no_prefix',+ defaultLocale: 'en',+ bundle: { onlyLocales: ['en', 'zh-Hans'] },+ locales: [+ { code: 'en', language: 'en', file: 'en.json' },+ { code: 'zh-Hans', language: 'zh', file: 'zh-Hans.json' },+ ],+ langDir: 'locales',+ vueI18n: 'i18n.config.ts',+ detectBrowserLanguage: {+ useCookie: false,+ redirectOn: 'all',+ fallbackLocale: 'en',+ },+ experimental: { localeDetector: 'localeDetector.ts' },+ },devServer: { port: 3001 },nitro: {...sharedUi.nitro,diff --git a/tests/cloud-i18n.test.ts b/tests/cloud-i18n.test.tsnew file mode 100644index 00000000..2f74be52--- /dev/null+++ b/tests/cloud-i18n.test.ts@@ -0,0 +1,103 @@+import assert from 'node:assert/strict'+import { readFileSync } from 'node:fs'+import test from 'node:test'+import { resolveCloudLocale } from '../apps/cloud/i18n/locale.ts'+import { accountError } from '../apps/cloud/app/utils/account-error.ts'++const messages = Object.fromEntries(+ ['en', 'zh-Hans'].map((locale) => [+ locale,+ JSON.parse(readFileSync(`apps/cloud/i18n/locales/${locale}.json`, 'utf8')),+ ]),+)+const translate =+ (locale: string) =>+ (key: string): string => {+ const value = key+ .split('.')+ .reduce((result, part) => result?.[part], messages[locale])+ assert.equal(+ typeof value,+ 'string',+ `Missing ${locale} translation: ${key}`,+ )+ return value+ }++test('Cloud negotiates English and simplified Chinese by browser preference and quality', () => {+ for (const header of [+ 'zh-CN,zh;q=0.9,en;q=0.8',+ 'zh-Hans',+ 'ZH-sg',+ 'zh-TW,en;q=0.8',+ 'fr,zh-HK;q=0.8',+ ])+ assert.equal(resolveCloudLocale(header), 'zh-Hans', header)+ for (const header of [+ '',+ 'ja,fr;q=0.8',+ 'en-GB,zh;q=0.5',+ 'zh;q=0,en-US;q=0.1',+ 'zh;q=invalid,en',+ 'zh;q=2,en',+ 'zh;q=0.5,en;q=0.9',+ ])+ assert.equal(resolveCloudLocale(header), 'en', header)+ assert.equal(resolveCloudLocale('en;q=0.5,zh;q=0.5'), 'en')+ assert.equal(resolveCloudLocale('zh;q=0.5,en;q=0.5'), 'zh-Hans')+})++test('Cloud catalogs have matching keys and interpolation parameters', () => {+ function flatten(+ object: Record<string, unknown>,+ prefix = '',+ ): Record<string, string> {+ return Object.fromEntries(+ Object.entries(object).flatMap(([key, value]) =>+ typeof value === 'string'+ ? [[prefix + key, value]]+ : Object.entries(+ flatten(value as Record<string, unknown>, prefix + key + '.'),+ ),+ ),+ )+ }+ const en = flatten(messages.en),+ zh = flatten(messages['zh-Hans'])+ assert.deepEqual(Object.keys(en).sort(), Object.keys(zh).sort())+ for (const [key, value] of Object.entries(en)) {+ assert.ok(zh[key]?.trim(), key)+ const parameters = (s: string) =>+ [...new Set([...s.matchAll(/\{(\w+)\}/g)].map((m) => m[1]))].sort()+ assert.deepEqual(parameters(value), parameters(zh[key]!), key)+ }+})++test('Authentication failures are localized without reflecting provider messages', () => {+ for (const locale of ['en', 'zh-Hans']) {+ const t = translate(locale)+ for (const code of [+ 'AUTHENTICATOR_REQUIRED',+ 'PASSWORD_TOO_SHORT',+ 'EMAIL_NOT_VERIFIED',+ 'USER_ALREADY_EXISTS',+ 'INVALID_OTP',+ 'INVALID_PASSWORD',+ 'INVALID_TOKEN',+ 'FRESH_SESSION',+ 'UNKNOWN_PROVIDER_ERROR',+ ]) {+ const message = accountError(+ { data: { code, message: 'PRIVATE PROVIDER DETAIL' } },+ t,+ )+ assert.ok(message.length > 5)+ assert.ok(!message.includes('PRIVATE PROVIDER DETAIL'))+ assert.equal(/[\u3400-\u9fff]/.test(message), locale === 'zh-Hans')+ }+ assert.match(+ accountError({ statusCode: 429 }, t),+ locale === 'en' ? /Too many attempts/ : /尝试次数过多/,+ )+ }+})diff --git a/tests/portal-review-regressions.test.ts b/tests/portal-review-regressions.test.tsindex 34a2c9fd..ec7d155e 100644--- a/tests/portal-review-regressions.test.ts+++ b/tests/portal-review-regressions.test.ts@@ -22,6 +22,15 @@ function load(computed,readonly,watch,+ useI18n: () => ({+ t: (key: string) =>+ key+ .split('.')+ .reduce(+ (value, part) => value[part],+ JSON.parse(readFileSync('apps/cloud/i18n/locales/en.json', 'utf8')),+ ),+ }),...globals,require: (name: string) => {assert.ok(name in imports, name)