feat(sharelink): add sharelink watermark support (#270)

* feat(sharelink): add sharelink watermark support

* fix(sharelink): harden watermark feature against races, crashes, and tenant leaks

Addresses review findings on the sharelink watermark feature:

- fix(watermark): read back sharelink via transaction client so the
  updateShareLinkWatermark response reflects the just-committed state
  (global-client reads on a pooled connection miss uncommitted changes)
- fix(watermark): use prisma upsert on the config hash instead of
  find-then-create to avoid P2002 races on concurrent enables
- fix(watermark): resolve nested symlinks when walking the share tree and
  batch the walk level-by-level instead of one query per node
- fix(watermark): keep watermark tasks in flight from being purged by
  orphan-config GC (avoids FK violations in completing activities)
- fix(transcode): re-transcode stale 'processing' watermark rows instead
  of silently skipping (crash recovery); downscale embedded block images;
  use pino structured logging; drop unused any casts
- fix(api): scope watermark-template list/create to the caller's teams,
  reject teamless template creation, and make teamless templates
  read-only; validate watermark config required when enabling (400);
  map sharelink-not-found to 404
- fix(api): resolve symlink target ids once in public share children
  endpoint instead of twice per item
- refactor(db): dedicated WatermarkFileStatus enum (migration included)
- test: activity unit tests (init crash recovery, image + video transcode
  paths), concurrent upsert, nested-symlink resolution, API scoping and
  validation, e2e video watermark path

* refactor(transcode): move sharp usage out of watermark activity into transcodeService

The transcode package does not declare sharp as a dependency (only
@shumai/core does), so importing it directly in the watermark activity
broke CI typecheck for the transcode package.

- add transcodeService.renderSvgToPng, downscaleImageToPng and
  compositeOverlayToWebpFile encapsulating the sharp logic
- watermark activity now calls these methods instead of importing sharp
- activity tests mock the new methods (no sharp/real fixture needed)
- add unit tests for the new transcodeService helpers

* feat(watermark): restrict watermark transcode to existing image and video transcodes

* refactor(transcode): reuse transcodeVideo in watermark activity

* refactor(watermark): use Bun.hash instead of node crypto for watermark config hash

* refactor(watermark): move computeWatermarkConfigHash from dtos to core watermark-hash module

* refactor(api): delegate watermark DB queries from public-share route to watermarkService

* refactor(share): replace dynamic watermarkService import with static import

* feat(watermark): add waitForWatermarkFileActivity for in-flight watermark transcoding tasks

* refactor(asset): replace dynamic watermarkService import with static import

* test(watermark): harden purgeOrphanWatermarkConfigs coverage

Replace the single happy-path GC test with a dedicated suite covering:

- orphan config with proxies: purged, watermarkFiles removed, all four
  proxy keys deleted from S3 while the original key is preserved
- config still referenced by a share link is not purged
- config with pending/processing transcode_watermark tasks is not purged
  (in-flight guard), but completed tasks do not block purging
- pending tasks of other types (transcode_video) do not protect a config
- an S3 delete failure is non-fatal: remaining keys still deleted and the
  config is still purged
- mixed run: only the orphan config is purged while a referenced one
  survives (exact count assertion)

* feat(webui): add sharelink watermark editor and sidebar controls

* style(webui): enlarge watermark editor dialog and allocate 2/3 width to preview column

* fix(webui): override sm:max-w-lg in DialogContent to allow full 1400px width

* fix(webui): stop block click propagation and remove preview mode toggles

* fix(webui): store watermark block size as fraction of canvas width

The editor stored block.size in pixels (slider 10-120px, preview
fontSize: `${block.size}px`) while the SVG generator
(generateWatermarkSvg) interprets size as a fraction (0..1) of canvas
width. A 36px block therefore rendered as a ~36x-canvas glyph covering
the entire image.

- Keep backend fraction semantics (canvasWidth * size) so watermarks
  scale proportionally with output resolution across proxies
- Editor: defaults (text 5%, image 15%), slider ranges (1-12% / 2-50%)
  and number input now work in percent, storing a fraction
- Preview: scales blocks by the measured canvas width so WYSIWYG
- DTO schema: size constrained to (0..1) to enforce the contract
- Update DTO/editor tests to fraction sizes

* feat(webui): add single-row aspect ratio selector and 5 predefined background colors to watermark editor preview

* feat(webui): update aspect ratio to multi-toggle group and enable dot-grid pattern for all background colors

* fix(webui): update background swatches to distinct colors and share PRESET_BACKGROUND_OPTIONS array

* fix(webui): hide redundant absolute close button on watermark editor dialog header

* fix(transcode): skip raw video transcode when generating watermark proxies

The raw marker entry (isRaw: true) in videoTranscodes points at the
original source file and is only used to offer the 'Original' playback
option. It is not a transcoded proxy, so watermarking it produced a
redundant full-resolution transcode (the most expensive pass) plus an
unneeded S3 upload.

Skip entries with isRaw: true in transcodeWatermarkMediaActivity, and
cover the behavior with a unit regression test plus an e2e assertion
that exactly one watermark proxy is produced for a video asset.

* feat(webui): replace watermark image asset ID with 1MB file uploader

* fix(webui): correct watermark editor preview block sizing

The preview canvas width was measured in a useEffect([open]) that ran
before the Radix Dialog had mounted its content, so canvasRef.current was
still null, canvasWidthPx stayed 0, and every block silently fell back to
the hardcoded 640px width (block.size * (canvasWidthPx || 640)). A 100%
size therefore rendered at ~640px on an ~876px canvas (~72%), making the
preview smaller than the real watermarked output for both image and text
blocks.

- Measure the canvas via a ref callback (fires exactly when the node
  mounts, regardless of dialog mount timing) and keep a ResizeObserver
  attached for aspect-ratio/window changes.
- Use clientWidth (padding-box width) instead of getBoundingClientRect(),
  which includes the dialog's zoom-in-95 animation transform.
- Drop max-w-full/max-h-full on the preview <img> so logos scale up to
  the block size like the backend SVG rendering does, instead of being
  capped at their natural pixel size.

* fix(webui): keep watermark editor preview aspect ratio and restore config scroll

- Compute the preview canvas size with a JS contain-fit (ResizeObserver on the
  frame) instead of relying on CSS aspect-ratio + w-full/max-h-full, which
  broke the selected ratio on wide-and-short (or tall-and-narrow) windows.
- Add min-h-0 to the config ScrollArea so it shrinks to the column's remaining
  height instead of growing to its content height, restoring the scroll range.

* fix(webui): remove toast notification on template load

* fix(share): serve per-file watermark proxies in public share APIs

Stop gating watermark replacement on the share-link-wide watermarkStatus.
Public share endpoints now resolve each asset's own completed watermark
proxy and:

- replace videoTranscodes/imageTranscodes with the watermarked entries
  when the watermark file is completed;
- empty those arrays when no completed proxy exists yet (still
  transcoding or failed) so original, unwatermarked media is never
  exposed while a newly added file is being processed;
- leave non-video/image media (pdf, audio, ...) untouched, since they
  never receive watermark transcodes.

This removes the previous behavior where adding a file to a ready
watermark share flipped the whole share link to processing and served
original media for every file until the new transcode finished.

Adds API tests for detail/children endpoints (ready, in-flight, pdf, and
watermark-disabled cases) and a workflow E2E test for adding an asset to
an already-ready watermark sharelink.
This commit is contained in:
Yiling-J
2026-08-07 21:36:20 +08:00
committed by GitHub
parent 0a31659588
commit 03aea2cb36
148 changed files with 13590 additions and 120 deletions
@@ -1,28 +1,8 @@
import { ShareLinkInfo, UpdateShareLinkRequest } from '@shumai/dtos'
import { type FieldInfo as MetadataFieldInfo } from '@shumai/dtos'
import { m } from '@/ui/paraglide/messages.js'
import { client } from '@/ui/api/client'
import { DateTimePicker } from '@/ui/components/datetime-picker'
import { Button } from '@/ui/components/ui/button'
import { Input } from '@/ui/components/ui/input'
import { Label } from '@/ui/components/ui/label'
import { Switch } from '@/ui/components/ui/switch'
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
import {
ChevronRight,
Copy,
ExternalLink,
Shield,
Palette,
ListFilter,
SortAsc,
LayoutGrid,
List,
ArrowDownUp,
} from 'lucide-react'
import React, { useState } from 'react'
import { toast } from 'sonner'
import { copyToClipboard as copyTextToClipboard } from '@/ui/lib/clipboard'
import { DateTimePicker } from '@/ui/components/datetime-picker'
import {
Select,
SelectContent,
@@ -30,6 +10,31 @@ import {
SelectTrigger,
SelectValue,
} from '@/ui/components/ui/select'
import { Switch } from '@/ui/components/ui/switch'
import { WatermarkEditorDialog } from '@/ui/components/watermark-editor-dialog'
import { copyToClipboard as copyTextToClipboard } from '@/ui/lib/clipboard'
import { m } from '@/ui/paraglide/messages.js'
import {
ShareLinkInfo,
UpdateShareLinkRequest,
type FieldInfo as MetadataFieldInfo,
} from '@shumai/dtos'
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
import {
ArrowDownUp,
ChevronRight,
Copy,
ExternalLink,
LayoutGrid,
List,
ListFilter,
Loader2,
Palette,
Shield,
SortAsc,
} from 'lucide-react'
import React, { useState } from 'react'
import { toast } from 'sonner'
interface ShareSettingsSidebarProps {
shareLink: ShareLinkInfo
@@ -51,6 +56,7 @@ export function ShareSettingsSidebar({
const [expireAt, setExpireAt] = useState<Date | undefined>(
shareLink.expireAt ? new Date(shareLink.expireAt) : undefined,
)
const [isWatermarkEditorOpen, setIsWatermarkEditorOpen] = useState(false)
React.useEffect(() => {
setPassword(shareLink.password || '')
@@ -58,6 +64,47 @@ export function ShareSettingsSidebar({
const [isPasswordEnabled, setIsPasswordEnabled] = useState(shareLink.hasPassword)
const [isExpireEnabled, setIsExpireEnabled] = useState(!!shareLink.expireAt)
const { data: watermarkInfo, refetch: refetchWatermark } = useQuery({
queryKey: ['share-watermark', shareLink.id],
queryFn: async () => {
const res = await client.api.shares[':shareId'].watermark.$get({
param: { shareId: shareLink.id },
})
if (!res.ok) return null
return await res.json()
},
refetchInterval: (query) => {
const status = query.state.data?.watermarkStatus || shareLink.watermarkStatus
return status === 'processing' ? 3000 : false
},
})
const $updateWatermark = client.api.shares[':shareId'].watermark.$put
const { mutate: disableWatermark } = useMutation({
mutationFn: async () => {
const res = await $updateWatermark({
param: { shareId: shareLink.id },
json: { enabled: false },
})
if (!res.ok) throw new Error(m.failed_update())
return await res.json()
},
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['shares', shareLink.projectId] })
queryClient.invalidateQueries({ queryKey: ['share', shareLink.id] })
queryClient.invalidateQueries({ queryKey: ['share-watermark', shareLink.id] })
toast.success(m.watermark_disabled_msg())
},
})
const watermarkStatus =
watermarkInfo?.watermarkStatus ??
shareLink.watermarkStatus ??
(shareLink.watermarkConfigId ? 'ready' : 'disabled')
const watermarkConfig =
watermarkInfo?.watermarkConfig?.config ?? shareLink.watermarkConfig?.config ?? null
const isWatermarkEnabled = watermarkConfig !== null && watermarkStatus !== 'disabled'
const { data: fields } = useQuery({
queryKey: ['fields', shareLink.projectId],
queryFn: async () => {
@@ -193,6 +240,41 @@ export function ShareSettingsSidebar({
</div>
)}
</div>
<div className="space-y-2 pt-2 border-t border-border/50">
<div className="flex items-center justify-between">
<Label className="text-xs">{m.watermark()}</Label>
<Switch
checked={isWatermarkEnabled}
disabled={watermarkStatus === 'processing'}
onCheckedChange={(checked) => {
if (!checked) {
disableWatermark()
} else {
setIsWatermarkEditorOpen(true)
}
}}
/>
</div>
{isWatermarkEnabled && watermarkStatus === 'processing' && (
<div className="flex items-center gap-2 text-xs text-amber-600 dark:text-amber-400 font-medium py-1 animate-pulse">
<Loader2 className="h-3.5 w-3.5 animate-spin" />
<span>{m.watermark_transcoding_processing()}</span>
</div>
)}
{isWatermarkEnabled && watermarkStatus !== 'processing' && (
<Button
variant="outline"
size="sm"
className="w-full text-xs gap-1.5 mt-1"
onClick={() => setIsWatermarkEditorOpen(true)}
>
{m.edit_watermark()}
</Button>
)}
</div>
</div>
</SidebarAccordionItem>
<SidebarAccordionItem title={m.appearance()} icon={<Palette className="h-4 w-4" />}>
@@ -310,6 +392,18 @@ export function ShareSettingsSidebar({
{m.copy_link()}
</Button>
</div>
<WatermarkEditorDialog
open={isWatermarkEditorOpen}
onOpenChange={setIsWatermarkEditorOpen}
initialConfig={watermarkConfig}
shareId={shareLink.id}
onSaveSuccess={() => {
refetchWatermark()
queryClient.invalidateQueries({ queryKey: ['share', shareLink.id] })
queryClient.invalidateQueries({ queryKey: ['shares', shareLink.projectId] })
}}
/>
</div>
)
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,116 @@
import { describe, it, expect } from 'vitest'
import {
watermarkConfigSpecSchema,
watermarkBlockTextSchema,
watermarkBlockImageSchema,
WatermarkBlock,
} from '@shumai/dtos'
describe('Watermark Config DTO and Logic', () => {
it('validates a correct text block', () => {
const block = {
id: 'block-1',
type: 'text',
x: 0.5,
y: 0.5,
opacity: 0.8,
rotation: -30,
text: 'CONFIDENTIAL',
size: 0.05,
color: '#FF0000',
}
const result = watermarkBlockTextSchema.safeParse(block)
expect(result.success).toBe(true)
})
it('validates a correct image block', () => {
const block = {
id: 'block-2',
type: 'image',
x: 0.2,
y: 0.8,
opacity: 0.5,
rotation: 0,
imageAssetKey: 'asset-logo-123',
size: 0.15,
}
const result = watermarkBlockImageSchema.safeParse(block)
expect(result.success).toBe(true)
})
it('validates watermarkConfigSpecSchema with mixed text and image blocks', () => {
const config = {
blocks: [
{
id: 'block-1',
type: 'text' as const,
x: 0.5,
y: 0.5,
opacity: 0.8,
rotation: -30,
text: 'CONFIDENTIAL',
size: 0.05,
color: '#FF0000',
},
{
id: 'block-2',
type: 'image' as const,
x: 0.2,
y: 0.8,
opacity: 0.5,
rotation: 0,
imageAssetKey: 'asset-logo-123',
size: 0.15,
},
],
}
const result = watermarkConfigSpecSchema.safeParse(config)
expect(result.success).toBe(true)
})
it('correctly navigates prev/next index in block selector logic', () => {
const blocks: WatermarkBlock[] = [
{
id: 'b1',
type: 'text',
x: 0.5,
y: 0.5,
opacity: 0.5,
rotation: 0,
text: 'B1',
size: 0.08,
color: '#000000',
},
{
id: 'b2',
type: 'text',
x: 0.5,
y: 0.5,
opacity: 0.5,
rotation: 0,
text: 'B2',
size: 0.08,
color: '#000000',
},
{
id: 'b3',
type: 'text',
x: 0.5,
y: 0.5,
opacity: 0.5,
rotation: 0,
text: 'B3',
size: 0.08,
color: '#000000',
},
]
const getNextIndex = (current: number, total: number) => (current + 1) % total
const getPrevIndex = (current: number, total: number) => (current - 1 + total) % total
expect(getNextIndex(0, blocks.length)).toBe(1)
expect(getNextIndex(2, blocks.length)).toBe(0)
expect(getPrevIndex(0, blocks.length)).toBe(2)
expect(getPrevIndex(1, blocks.length)).toBe(0)
})
})
+49 -1
View File
@@ -917,5 +917,53 @@
"no_audit_logs": "No audit logs found",
"search_item_id": "Search Item ID...",
"select_actions": "Select Actions",
"select_users": "Select Users"
"select_users": "Select Users",
"watermark": "Watermark",
"watermark_enabled": "Enable Watermark",
"watermark_transcoding_processing": "Transcoding watermark media...",
"edit_watermark": "Edit Watermark",
"watermark_editor": "Watermark Editor",
"watermark_templates": "Templates",
"load_template": "Load Template",
"save_as_template": "Save as Template...",
"create_new_template": "Create New Template",
"overwrite_existing_template": "Overwrite Existing Template",
"select_template_to_overwrite": "Select template to overwrite",
"delete_template": "Delete Template",
"add_text_block": "Add Text Block",
"add_image_block": "Add Image Block",
"text_content": "Text Content",
"font_size": "Font Size",
"image_size": "Image Size",
"color": "Color",
"opacity": "Opacity",
"rotation": "Rotation",
"position_x": "Position X (%)",
"position_y": "Position Y (%)",
"image_asset_id": "Image Asset ID",
"image_asset_key": "Image Asset",
"file_exceeds_1mb_limit": "File size exceeds the 1MB limit",
"upload_watermark_image": "Upload Watermark Image",
"upload_watermark_image_hint": "Drag and drop, or browse. Max 1MB.",
"save_watermark": "Save Watermark",
"template_name": "Template Name",
"enter_template_name": "Enter template name...",
"no_templates_found": "No saved templates",
"template_saved": "Template saved successfully",
"template_updated": "Template updated successfully",
"template_deleted": "Template deleted successfully",
"watermark_updated": "Watermark updated successfully",
"watermark_disabled_msg": "Watermark disabled",
"no_watermark_blocks": "No watermark blocks added yet",
"select_block_to_edit": "Select a block to edit its properties",
"aspect_ratio": "Aspect Ratio",
"aspect_16_9": "16:9 Widescreen",
"aspect_9_16": "9:16 Vertical",
"aspect_4_3": "4:3 Standard",
"aspect_3_4": "3:4 Portrait",
"aspect_1_1": "1:1 Square",
"preview_backdrop": "Preview Background",
"dark_grid": "Dark Grid",
"light_grid": "Light Grid",
"sample_backdrop": "Sample Media"
}
+49 -1
View File
@@ -917,5 +917,53 @@
"no_audit_logs": "未找到审计日志",
"search_item_id": "搜索条目 ID...",
"select_actions": "选择操作",
"select_users": "选择用户"
"select_users": "选择用户",
"watermark": "水印",
"watermark_enabled": "启用水印",
"watermark_transcoding_processing": "水印媒体转码处理中...",
"edit_watermark": "编辑水印",
"watermark_editor": "水印编辑器",
"watermark_templates": "水印模板",
"load_template": "加载模板",
"save_as_template": "保存为模板...",
"create_new_template": "创建新模板",
"overwrite_existing_template": "覆盖现有模板",
"select_template_to_overwrite": "选择要覆盖的模板",
"delete_template": "删除模板",
"add_text_block": "添加文本块",
"add_image_block": "添加图片块",
"text_content": "文本内容",
"font_size": "字体大小",
"image_size": "图片大小",
"color": "颜色",
"opacity": "透明度",
"rotation": "旋转角度",
"position_x": "水平位置 (%)",
"position_y": "垂直位置 (%)",
"image_asset_id": "图片资源 ID",
"image_asset_key": "图片资源",
"file_exceeds_1mb_limit": "文件大小不能超过 1MB",
"upload_watermark_image": "上传水印图片",
"upload_watermark_image_hint": "拖放或浏览文件。最大 1MB。",
"save_watermark": "保存水印",
"template_name": "模板名称",
"enter_template_name": "请输入模板名称...",
"no_templates_found": "没有保存的模板",
"template_saved": "模板保存成功",
"template_updated": "模板更新成功",
"template_deleted": "模板删除成功",
"watermark_updated": "水印更新成功",
"watermark_disabled_msg": "水印已禁用",
"no_watermark_blocks": "尚未添加水印块",
"select_block_to_edit": "选择一个水印块以编辑其属性",
"aspect_ratio": "宽高比",
"aspect_16_9": "16:9 横屏",
"aspect_9_16": "9:16 竖屏",
"aspect_4_3": "4:3 标准",
"aspect_3_4": "3:4 肖像",
"aspect_1_1": "1:1 正方形",
"preview_backdrop": "预览背景",
"dark_grid": "深色网格",
"light_grid": "浅色网格",
"sample_backdrop": "示例媒体"
}
+48
View File
@@ -863,4 +863,52 @@ export * from "./no_audit_logs.js";
export * from "./search_item_id.js";
export * from "./select_actions.js";
export * from "./select_users.js";
export * from "./watermark.js";
export * from "./watermark_enabled.js";
export * from "./watermark_transcoding_processing.js";
export * from "./edit_watermark.js";
export * from "./watermark_editor.js";
export * from "./watermark_templates.js";
export * from "./load_template.js";
export * from "./save_as_template.js";
export * from "./create_new_template.js";
export * from "./overwrite_existing_template.js";
export * from "./select_template_to_overwrite.js";
export * from "./delete_template.js";
export * from "./add_text_block.js";
export * from "./add_image_block.js";
export * from "./text_content.js";
export * from "./font_size.js";
export * from "./image_size.js";
export * from "./color.js";
export * from "./opacity.js";
export * from "./rotation.js";
export * from "./position_x.js";
export * from "./position_y.js";
export * from "./image_asset_id.js";
export * from "./image_asset_key.js";
export * from "./file_exceeds_1mb_limit.js";
export * from "./upload_watermark_image.js";
export * from "./upload_watermark_image_hint.js";
export * from "./save_watermark.js";
export * from "./template_name.js";
export * from "./enter_template_name.js";
export * from "./no_templates_found.js";
export * from "./template_saved.js";
export * from "./template_updated.js";
export * from "./template_deleted.js";
export * from "./watermark_updated.js";
export * from "./watermark_disabled_msg.js";
export * from "./no_watermark_blocks.js";
export * from "./select_block_to_edit.js";
export * from "./aspect_ratio.js";
export * from "./aspect_16_9.js";
export * from "./aspect_9_16.js";
export * from "./aspect_4_3.js";
export * from "./aspect_3_4.js";
export * from "./aspect_1_1.js";
export * from "./preview_backdrop.js";
export * from "./dark_grid.js";
export * from "./light_grid.js";
export * from "./sample_backdrop.js";
export type LocalizedString = import("../runtime.js").LocalizedString;
+49 -1
View File
@@ -864,4 +864,52 @@ export * from './timestamp.js'
export * from './no_audit_logs.js'
export * from './search_item_id.js'
export * from './select_actions.js'
export * from './select_users.js'
export * from './select_users.js'
export * from './watermark.js'
export * from './watermark_enabled.js'
export * from './watermark_transcoding_processing.js'
export * from './edit_watermark.js'
export * from './watermark_editor.js'
export * from './watermark_templates.js'
export * from './load_template.js'
export * from './save_as_template.js'
export * from './create_new_template.js'
export * from './overwrite_existing_template.js'
export * from './select_template_to_overwrite.js'
export * from './delete_template.js'
export * from './add_text_block.js'
export * from './add_image_block.js'
export * from './text_content.js'
export * from './font_size.js'
export * from './image_size.js'
export * from './color.js'
export * from './opacity.js'
export * from './rotation.js'
export * from './position_x.js'
export * from './position_y.js'
export * from './image_asset_id.js'
export * from './image_asset_key.js'
export * from './file_exceeds_1mb_limit.js'
export * from './upload_watermark_image.js'
export * from './upload_watermark_image_hint.js'
export * from './save_watermark.js'
export * from './template_name.js'
export * from './enter_template_name.js'
export * from './no_templates_found.js'
export * from './template_saved.js'
export * from './template_updated.js'
export * from './template_deleted.js'
export * from './watermark_updated.js'
export * from './watermark_disabled_msg.js'
export * from './no_watermark_blocks.js'
export * from './select_block_to_edit.js'
export * from './aspect_ratio.js'
export * from './aspect_16_9.js'
export * from './aspect_9_16.js'
export * from './aspect_4_3.js'
export * from './aspect_3_4.js'
export * from './aspect_1_1.js'
export * from './preview_backdrop.js'
export * from './dark_grid.js'
export * from './light_grid.js'
export * from './sample_backdrop.js'
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Add Image Block" |
*
* @param {Add_Image_BlockInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const add_image_block: ((inputs?: Add_Image_BlockInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Add_Image_BlockInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Add_Image_BlockInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Add_Image_BlockInputs */
const en_add_image_block = /** @type {(inputs: Add_Image_BlockInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Add Image Block`)
};
const zh_add_image_block = /** @type {(inputs: Add_Image_BlockInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`添加图片块`)
};
/**
* | output |
* | --- |
* | "Add Image Block" |
*
* @param {Add_Image_BlockInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const add_image_block = /** @type {((inputs?: Add_Image_BlockInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Add_Image_BlockInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_add_image_block(inputs)
return zh_add_image_block(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Add Text Block" |
*
* @param {Add_Text_BlockInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const add_text_block: ((inputs?: Add_Text_BlockInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Add_Text_BlockInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Add_Text_BlockInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Add_Text_BlockInputs */
const en_add_text_block = /** @type {(inputs: Add_Text_BlockInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Add Text Block`)
};
const zh_add_text_block = /** @type {(inputs: Add_Text_BlockInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`添加文本块`)
};
/**
* | output |
* | --- |
* | "Add Text Block" |
*
* @param {Add_Text_BlockInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const add_text_block = /** @type {((inputs?: Add_Text_BlockInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Add_Text_BlockInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_add_text_block(inputs)
return zh_add_text_block(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "16:9 Widescreen" |
*
* @param {Aspect_16_9Inputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const aspect_16_9: ((inputs?: Aspect_16_9Inputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Aspect_16_9Inputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Aspect_16_9Inputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Aspect_16_9Inputs */
const en_aspect_16_9 = /** @type {(inputs: Aspect_16_9Inputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`16:9 Widescreen`)
};
const zh_aspect_16_9 = /** @type {(inputs: Aspect_16_9Inputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`16:9 横屏`)
};
/**
* | output |
* | --- |
* | "16:9 Widescreen" |
*
* @param {Aspect_16_9Inputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const aspect_16_9 = /** @type {((inputs?: Aspect_16_9Inputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Aspect_16_9Inputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_aspect_16_9(inputs)
return zh_aspect_16_9(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "1:1 Square" |
*
* @param {Aspect_1_1Inputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const aspect_1_1: ((inputs?: Aspect_1_1Inputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Aspect_1_1Inputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Aspect_1_1Inputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Aspect_1_1Inputs */
const en_aspect_1_1 = /** @type {(inputs: Aspect_1_1Inputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`1:1 Square`)
};
const zh_aspect_1_1 = /** @type {(inputs: Aspect_1_1Inputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`1:1 正方形`)
};
/**
* | output |
* | --- |
* | "1:1 Square" |
*
* @param {Aspect_1_1Inputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const aspect_1_1 = /** @type {((inputs?: Aspect_1_1Inputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Aspect_1_1Inputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_aspect_1_1(inputs)
return zh_aspect_1_1(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "3:4 Portrait" |
*
* @param {Aspect_3_4Inputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const aspect_3_4: ((inputs?: Aspect_3_4Inputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Aspect_3_4Inputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Aspect_3_4Inputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Aspect_3_4Inputs */
const en_aspect_3_4 = /** @type {(inputs: Aspect_3_4Inputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`3:4 Portrait`)
};
const zh_aspect_3_4 = /** @type {(inputs: Aspect_3_4Inputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`3:4 肖像`)
};
/**
* | output |
* | --- |
* | "3:4 Portrait" |
*
* @param {Aspect_3_4Inputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const aspect_3_4 = /** @type {((inputs?: Aspect_3_4Inputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Aspect_3_4Inputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_aspect_3_4(inputs)
return zh_aspect_3_4(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "4:3 Standard" |
*
* @param {Aspect_4_3Inputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const aspect_4_3: ((inputs?: Aspect_4_3Inputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Aspect_4_3Inputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Aspect_4_3Inputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Aspect_4_3Inputs */
const en_aspect_4_3 = /** @type {(inputs: Aspect_4_3Inputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`4:3 Standard`)
};
const zh_aspect_4_3 = /** @type {(inputs: Aspect_4_3Inputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`4:3 标准`)
};
/**
* | output |
* | --- |
* | "4:3 Standard" |
*
* @param {Aspect_4_3Inputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const aspect_4_3 = /** @type {((inputs?: Aspect_4_3Inputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Aspect_4_3Inputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_aspect_4_3(inputs)
return zh_aspect_4_3(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "9:16 Vertical" |
*
* @param {Aspect_9_16Inputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const aspect_9_16: ((inputs?: Aspect_9_16Inputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Aspect_9_16Inputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Aspect_9_16Inputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Aspect_9_16Inputs */
const en_aspect_9_16 = /** @type {(inputs: Aspect_9_16Inputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`9:16 Vertical`)
};
const zh_aspect_9_16 = /** @type {(inputs: Aspect_9_16Inputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`9:16 竖屏`)
};
/**
* | output |
* | --- |
* | "9:16 Vertical" |
*
* @param {Aspect_9_16Inputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const aspect_9_16 = /** @type {((inputs?: Aspect_9_16Inputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Aspect_9_16Inputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_aspect_9_16(inputs)
return zh_aspect_9_16(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Aspect Ratio" |
*
* @param {Aspect_RatioInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const aspect_ratio: ((inputs?: Aspect_RatioInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Aspect_RatioInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Aspect_RatioInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Aspect_RatioInputs */
const en_aspect_ratio = /** @type {(inputs: Aspect_RatioInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Aspect Ratio`)
};
const zh_aspect_ratio = /** @type {(inputs: Aspect_RatioInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`宽高比`)
};
/**
* | output |
* | --- |
* | "Aspect Ratio" |
*
* @param {Aspect_RatioInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const aspect_ratio = /** @type {((inputs?: Aspect_RatioInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Aspect_RatioInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_aspect_ratio(inputs)
return zh_aspect_ratio(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Color" |
*
* @param {ColorInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const color: ((inputs?: ColorInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<ColorInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type ColorInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} ColorInputs */
const en_color = /** @type {(inputs: ColorInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Color`)
};
const zh_color = /** @type {(inputs: ColorInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`颜色`)
};
/**
* | output |
* | --- |
* | "Color" |
*
* @param {ColorInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const color = /** @type {((inputs?: ColorInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<ColorInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_color(inputs)
return zh_color(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Create New Template" |
*
* @param {Create_New_TemplateInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const create_new_template: ((inputs?: Create_New_TemplateInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Create_New_TemplateInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Create_New_TemplateInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Create_New_TemplateInputs */
const en_create_new_template = /** @type {(inputs: Create_New_TemplateInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Create New Template`)
};
const zh_create_new_template = /** @type {(inputs: Create_New_TemplateInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`创建新模板`)
};
/**
* | output |
* | --- |
* | "Create New Template" |
*
* @param {Create_New_TemplateInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const create_new_template = /** @type {((inputs?: Create_New_TemplateInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Create_New_TemplateInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_create_new_template(inputs)
return zh_create_new_template(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Dark Grid" |
*
* @param {Dark_GridInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const dark_grid: ((inputs?: Dark_GridInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Dark_GridInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Dark_GridInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Dark_GridInputs */
const en_dark_grid = /** @type {(inputs: Dark_GridInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Dark Grid`)
};
const zh_dark_grid = /** @type {(inputs: Dark_GridInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`深色网格`)
};
/**
* | output |
* | --- |
* | "Dark Grid" |
*
* @param {Dark_GridInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const dark_grid = /** @type {((inputs?: Dark_GridInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Dark_GridInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_dark_grid(inputs)
return zh_dark_grid(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Delete Template" |
*
* @param {Delete_TemplateInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const delete_template: ((inputs?: Delete_TemplateInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Delete_TemplateInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Delete_TemplateInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Delete_TemplateInputs */
const en_delete_template = /** @type {(inputs: Delete_TemplateInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Delete Template`)
};
const zh_delete_template = /** @type {(inputs: Delete_TemplateInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`删除模板`)
};
/**
* | output |
* | --- |
* | "Delete Template" |
*
* @param {Delete_TemplateInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const delete_template = /** @type {((inputs?: Delete_TemplateInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Delete_TemplateInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_delete_template(inputs)
return zh_delete_template(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Edit Watermark" |
*
* @param {Edit_WatermarkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const edit_watermark: ((inputs?: Edit_WatermarkInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Edit_WatermarkInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Edit_WatermarkInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Edit_WatermarkInputs */
const en_edit_watermark = /** @type {(inputs: Edit_WatermarkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Edit Watermark`)
};
const zh_edit_watermark = /** @type {(inputs: Edit_WatermarkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`编辑水印`)
};
/**
* | output |
* | --- |
* | "Edit Watermark" |
*
* @param {Edit_WatermarkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const edit_watermark = /** @type {((inputs?: Edit_WatermarkInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Edit_WatermarkInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_edit_watermark(inputs)
return zh_edit_watermark(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Enter template name..." |
*
* @param {Enter_Template_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const enter_template_name: ((inputs?: Enter_Template_NameInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Enter_Template_NameInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Enter_Template_NameInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Enter_Template_NameInputs */
const en_enter_template_name = /** @type {(inputs: Enter_Template_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Enter template name...`)
};
const zh_enter_template_name = /** @type {(inputs: Enter_Template_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`请输入模板名称...`)
};
/**
* | output |
* | --- |
* | "Enter template name..." |
*
* @param {Enter_Template_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const enter_template_name = /** @type {((inputs?: Enter_Template_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Enter_Template_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_enter_template_name(inputs)
return zh_enter_template_name(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "File size exceeds the 1MB limit" |
*
* @param {File_Exceeds_1mb_LimitInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const file_exceeds_1mb_limit: ((inputs?: File_Exceeds_1mb_LimitInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<File_Exceeds_1mb_LimitInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type File_Exceeds_1mb_LimitInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} File_Exceeds_1mb_LimitInputs */
const en_file_exceeds_1mb_limit = /** @type {(inputs: File_Exceeds_1mb_LimitInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`File size exceeds the 1MB limit`)
};
const zh_file_exceeds_1mb_limit = /** @type {(inputs: File_Exceeds_1mb_LimitInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`文件大小不能超过 1MB`)
};
/**
* | output |
* | --- |
* | "File size exceeds the 1MB limit" |
*
* @param {File_Exceeds_1mb_LimitInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const file_exceeds_1mb_limit = /** @type {((inputs?: File_Exceeds_1mb_LimitInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<File_Exceeds_1mb_LimitInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_file_exceeds_1mb_limit(inputs)
return zh_file_exceeds_1mb_limit(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Font Size" |
*
* @param {Font_SizeInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const font_size: ((inputs?: Font_SizeInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Font_SizeInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Font_SizeInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Font_SizeInputs */
const en_font_size = /** @type {(inputs: Font_SizeInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Font Size`)
};
const zh_font_size = /** @type {(inputs: Font_SizeInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`字体大小`)
};
/**
* | output |
* | --- |
* | "Font Size" |
*
* @param {Font_SizeInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const font_size = /** @type {((inputs?: Font_SizeInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Font_SizeInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_font_size(inputs)
return zh_font_size(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Image Asset ID" |
*
* @param {Image_Asset_IdInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const image_asset_id: ((inputs?: Image_Asset_IdInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Image_Asset_IdInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Image_Asset_IdInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Image_Asset_IdInputs */
const en_image_asset_id = /** @type {(inputs: Image_Asset_IdInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Image Asset ID`)
};
const zh_image_asset_id = /** @type {(inputs: Image_Asset_IdInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`图片资源 ID`)
};
/**
* | output |
* | --- |
* | "Image Asset ID" |
*
* @param {Image_Asset_IdInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const image_asset_id = /** @type {((inputs?: Image_Asset_IdInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Image_Asset_IdInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_image_asset_id(inputs)
return zh_image_asset_id(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Image Asset" |
*
* @param {Image_Asset_KeyInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const image_asset_key: ((inputs?: Image_Asset_KeyInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Image_Asset_KeyInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Image_Asset_KeyInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Image_Asset_KeyInputs */
const en_image_asset_key = /** @type {(inputs: Image_Asset_KeyInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Image Asset`)
};
const zh_image_asset_key = /** @type {(inputs: Image_Asset_KeyInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`图片资源`)
};
/**
* | output |
* | --- |
* | "Image Asset" |
*
* @param {Image_Asset_KeyInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const image_asset_key = /** @type {((inputs?: Image_Asset_KeyInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Image_Asset_KeyInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_image_asset_key(inputs)
return zh_image_asset_key(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Image Size" |
*
* @param {Image_SizeInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const image_size: ((inputs?: Image_SizeInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Image_SizeInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Image_SizeInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Image_SizeInputs */
const en_image_size = /** @type {(inputs: Image_SizeInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Image Size`)
};
const zh_image_size = /** @type {(inputs: Image_SizeInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`图片大小`)
};
/**
* | output |
* | --- |
* | "Image Size" |
*
* @param {Image_SizeInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const image_size = /** @type {((inputs?: Image_SizeInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Image_SizeInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_image_size(inputs)
return zh_image_size(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Light Grid" |
*
* @param {Light_GridInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const light_grid: ((inputs?: Light_GridInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Light_GridInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Light_GridInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Light_GridInputs */
const en_light_grid = /** @type {(inputs: Light_GridInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Light Grid`)
};
const zh_light_grid = /** @type {(inputs: Light_GridInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`浅色网格`)
};
/**
* | output |
* | --- |
* | "Light Grid" |
*
* @param {Light_GridInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const light_grid = /** @type {((inputs?: Light_GridInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Light_GridInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_light_grid(inputs)
return zh_light_grid(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Load Template" |
*
* @param {Load_TemplateInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const load_template: ((inputs?: Load_TemplateInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Load_TemplateInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Load_TemplateInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Load_TemplateInputs */
const en_load_template = /** @type {(inputs: Load_TemplateInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Load Template`)
};
const zh_load_template = /** @type {(inputs: Load_TemplateInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`加载模板`)
};
/**
* | output |
* | --- |
* | "Load Template" |
*
* @param {Load_TemplateInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const load_template = /** @type {((inputs?: Load_TemplateInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Load_TemplateInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_load_template(inputs)
return zh_load_template(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "No saved templates" |
*
* @param {No_Templates_FoundInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const no_templates_found: ((inputs?: No_Templates_FoundInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<No_Templates_FoundInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type No_Templates_FoundInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} No_Templates_FoundInputs */
const en_no_templates_found = /** @type {(inputs: No_Templates_FoundInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`No saved templates`)
};
const zh_no_templates_found = /** @type {(inputs: No_Templates_FoundInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`没有保存的模板`)
};
/**
* | output |
* | --- |
* | "No saved templates" |
*
* @param {No_Templates_FoundInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const no_templates_found = /** @type {((inputs?: No_Templates_FoundInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<No_Templates_FoundInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_no_templates_found(inputs)
return zh_no_templates_found(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "No watermark blocks added yet" |
*
* @param {No_Watermark_BlocksInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const no_watermark_blocks: ((inputs?: No_Watermark_BlocksInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<No_Watermark_BlocksInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type No_Watermark_BlocksInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} No_Watermark_BlocksInputs */
const en_no_watermark_blocks = /** @type {(inputs: No_Watermark_BlocksInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`No watermark blocks added yet`)
};
const zh_no_watermark_blocks = /** @type {(inputs: No_Watermark_BlocksInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`尚未添加水印块`)
};
/**
* | output |
* | --- |
* | "No watermark blocks added yet" |
*
* @param {No_Watermark_BlocksInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const no_watermark_blocks = /** @type {((inputs?: No_Watermark_BlocksInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<No_Watermark_BlocksInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_no_watermark_blocks(inputs)
return zh_no_watermark_blocks(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Opacity" |
*
* @param {OpacityInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const opacity: ((inputs?: OpacityInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<OpacityInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type OpacityInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} OpacityInputs */
const en_opacity = /** @type {(inputs: OpacityInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Opacity`)
};
const zh_opacity = /** @type {(inputs: OpacityInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`透明度`)
};
/**
* | output |
* | --- |
* | "Opacity" |
*
* @param {OpacityInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const opacity = /** @type {((inputs?: OpacityInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<OpacityInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_opacity(inputs)
return zh_opacity(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Overwrite Existing Template" |
*
* @param {Overwrite_Existing_TemplateInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const overwrite_existing_template: ((inputs?: Overwrite_Existing_TemplateInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Overwrite_Existing_TemplateInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Overwrite_Existing_TemplateInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Overwrite_Existing_TemplateInputs */
const en_overwrite_existing_template = /** @type {(inputs: Overwrite_Existing_TemplateInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Overwrite Existing Template`)
};
const zh_overwrite_existing_template = /** @type {(inputs: Overwrite_Existing_TemplateInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`覆盖现有模板`)
};
/**
* | output |
* | --- |
* | "Overwrite Existing Template" |
*
* @param {Overwrite_Existing_TemplateInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const overwrite_existing_template = /** @type {((inputs?: Overwrite_Existing_TemplateInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Overwrite_Existing_TemplateInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_overwrite_existing_template(inputs)
return zh_overwrite_existing_template(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Position X (%)" |
*
* @param {Position_XInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const position_x: ((inputs?: Position_XInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Position_XInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Position_XInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Position_XInputs */
const en_position_x = /** @type {(inputs: Position_XInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Position X (%)`)
};
const zh_position_x = /** @type {(inputs: Position_XInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`水平位置 (%)`)
};
/**
* | output |
* | --- |
* | "Position X (%)" |
*
* @param {Position_XInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const position_x = /** @type {((inputs?: Position_XInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Position_XInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_position_x(inputs)
return zh_position_x(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Position Y (%)" |
*
* @param {Position_YInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const position_y: ((inputs?: Position_YInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Position_YInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Position_YInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Position_YInputs */
const en_position_y = /** @type {(inputs: Position_YInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Position Y (%)`)
};
const zh_position_y = /** @type {(inputs: Position_YInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`垂直位置 (%)`)
};
/**
* | output |
* | --- |
* | "Position Y (%)" |
*
* @param {Position_YInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const position_y = /** @type {((inputs?: Position_YInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Position_YInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_position_y(inputs)
return zh_position_y(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Preview Background" |
*
* @param {Preview_BackdropInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const preview_backdrop: ((inputs?: Preview_BackdropInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Preview_BackdropInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Preview_BackdropInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Preview_BackdropInputs */
const en_preview_backdrop = /** @type {(inputs: Preview_BackdropInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Preview Background`)
};
const zh_preview_backdrop = /** @type {(inputs: Preview_BackdropInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`预览背景`)
};
/**
* | output |
* | --- |
* | "Preview Background" |
*
* @param {Preview_BackdropInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const preview_backdrop = /** @type {((inputs?: Preview_BackdropInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Preview_BackdropInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_preview_backdrop(inputs)
return zh_preview_backdrop(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Rotation" |
*
* @param {RotationInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const rotation: ((inputs?: RotationInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<RotationInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type RotationInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} RotationInputs */
const en_rotation = /** @type {(inputs: RotationInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Rotation`)
};
const zh_rotation = /** @type {(inputs: RotationInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`旋转角度`)
};
/**
* | output |
* | --- |
* | "Rotation" |
*
* @param {RotationInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const rotation = /** @type {((inputs?: RotationInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<RotationInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_rotation(inputs)
return zh_rotation(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Sample Media" |
*
* @param {Sample_BackdropInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const sample_backdrop: ((inputs?: Sample_BackdropInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Sample_BackdropInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Sample_BackdropInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Sample_BackdropInputs */
const en_sample_backdrop = /** @type {(inputs: Sample_BackdropInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Sample Media`)
};
const zh_sample_backdrop = /** @type {(inputs: Sample_BackdropInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`示例媒体`)
};
/**
* | output |
* | --- |
* | "Sample Media" |
*
* @param {Sample_BackdropInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const sample_backdrop = /** @type {((inputs?: Sample_BackdropInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Sample_BackdropInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_sample_backdrop(inputs)
return zh_sample_backdrop(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Save as Template..." |
*
* @param {Save_As_TemplateInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const save_as_template: ((inputs?: Save_As_TemplateInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Save_As_TemplateInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Save_As_TemplateInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Save_As_TemplateInputs */
const en_save_as_template = /** @type {(inputs: Save_As_TemplateInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Save as Template...`)
};
const zh_save_as_template = /** @type {(inputs: Save_As_TemplateInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`保存为模板...`)
};
/**
* | output |
* | --- |
* | "Save as Template..." |
*
* @param {Save_As_TemplateInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const save_as_template = /** @type {((inputs?: Save_As_TemplateInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Save_As_TemplateInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_save_as_template(inputs)
return zh_save_as_template(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Save Watermark" |
*
* @param {Save_WatermarkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const save_watermark: ((inputs?: Save_WatermarkInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Save_WatermarkInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Save_WatermarkInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Save_WatermarkInputs */
const en_save_watermark = /** @type {(inputs: Save_WatermarkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Save Watermark`)
};
const zh_save_watermark = /** @type {(inputs: Save_WatermarkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`保存水印`)
};
/**
* | output |
* | --- |
* | "Save Watermark" |
*
* @param {Save_WatermarkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const save_watermark = /** @type {((inputs?: Save_WatermarkInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Save_WatermarkInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_save_watermark(inputs)
return zh_save_watermark(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Select a block to edit its properties" |
*
* @param {Select_Block_To_EditInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const select_block_to_edit: ((inputs?: Select_Block_To_EditInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Select_Block_To_EditInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Select_Block_To_EditInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Select_Block_To_EditInputs */
const en_select_block_to_edit = /** @type {(inputs: Select_Block_To_EditInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Select a block to edit its properties`)
};
const zh_select_block_to_edit = /** @type {(inputs: Select_Block_To_EditInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`选择一个水印块以编辑其属性`)
};
/**
* | output |
* | --- |
* | "Select a block to edit its properties" |
*
* @param {Select_Block_To_EditInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const select_block_to_edit = /** @type {((inputs?: Select_Block_To_EditInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Select_Block_To_EditInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_select_block_to_edit(inputs)
return zh_select_block_to_edit(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Select template to overwrite" |
*
* @param {Select_Template_To_OverwriteInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const select_template_to_overwrite: ((inputs?: Select_Template_To_OverwriteInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Select_Template_To_OverwriteInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Select_Template_To_OverwriteInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Select_Template_To_OverwriteInputs */
const en_select_template_to_overwrite = /** @type {(inputs: Select_Template_To_OverwriteInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Select template to overwrite`)
};
const zh_select_template_to_overwrite = /** @type {(inputs: Select_Template_To_OverwriteInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`选择要覆盖的模板`)
};
/**
* | output |
* | --- |
* | "Select template to overwrite" |
*
* @param {Select_Template_To_OverwriteInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const select_template_to_overwrite = /** @type {((inputs?: Select_Template_To_OverwriteInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Select_Template_To_OverwriteInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_select_template_to_overwrite(inputs)
return zh_select_template_to_overwrite(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Template deleted successfully" |
*
* @param {Template_DeletedInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const template_deleted: ((inputs?: Template_DeletedInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Template_DeletedInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Template_DeletedInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Template_DeletedInputs */
const en_template_deleted = /** @type {(inputs: Template_DeletedInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Template deleted successfully`)
};
const zh_template_deleted = /** @type {(inputs: Template_DeletedInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`模板删除成功`)
};
/**
* | output |
* | --- |
* | "Template deleted successfully" |
*
* @param {Template_DeletedInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const template_deleted = /** @type {((inputs?: Template_DeletedInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Template_DeletedInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_template_deleted(inputs)
return zh_template_deleted(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Template Name" |
*
* @param {Template_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const template_name: ((inputs?: Template_NameInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Template_NameInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Template_NameInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Template_NameInputs */
const en_template_name = /** @type {(inputs: Template_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Template Name`)
};
const zh_template_name = /** @type {(inputs: Template_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`模板名称`)
};
/**
* | output |
* | --- |
* | "Template Name" |
*
* @param {Template_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const template_name = /** @type {((inputs?: Template_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Template_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_template_name(inputs)
return zh_template_name(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Template saved successfully" |
*
* @param {Template_SavedInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const template_saved: ((inputs?: Template_SavedInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Template_SavedInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Template_SavedInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Template_SavedInputs */
const en_template_saved = /** @type {(inputs: Template_SavedInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Template saved successfully`)
};
const zh_template_saved = /** @type {(inputs: Template_SavedInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`模板保存成功`)
};
/**
* | output |
* | --- |
* | "Template saved successfully" |
*
* @param {Template_SavedInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const template_saved = /** @type {((inputs?: Template_SavedInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Template_SavedInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_template_saved(inputs)
return zh_template_saved(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Template updated successfully" |
*
* @param {Template_UpdatedInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const template_updated: ((inputs?: Template_UpdatedInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Template_UpdatedInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Template_UpdatedInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Template_UpdatedInputs */
const en_template_updated = /** @type {(inputs: Template_UpdatedInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Template updated successfully`)
};
const zh_template_updated = /** @type {(inputs: Template_UpdatedInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`模板更新成功`)
};
/**
* | output |
* | --- |
* | "Template updated successfully" |
*
* @param {Template_UpdatedInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const template_updated = /** @type {((inputs?: Template_UpdatedInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Template_UpdatedInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_template_updated(inputs)
return zh_template_updated(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Text Content" |
*
* @param {Text_ContentInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const text_content: ((inputs?: Text_ContentInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Text_ContentInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Text_ContentInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Text_ContentInputs */
const en_text_content = /** @type {(inputs: Text_ContentInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Text Content`)
};
const zh_text_content = /** @type {(inputs: Text_ContentInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`文本内容`)
};
/**
* | output |
* | --- |
* | "Text Content" |
*
* @param {Text_ContentInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const text_content = /** @type {((inputs?: Text_ContentInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Text_ContentInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_text_content(inputs)
return zh_text_content(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Upload Watermark Image" |
*
* @param {Upload_Watermark_ImageInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const upload_watermark_image: ((inputs?: Upload_Watermark_ImageInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Upload_Watermark_ImageInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Upload_Watermark_ImageInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Upload_Watermark_ImageInputs */
const en_upload_watermark_image = /** @type {(inputs: Upload_Watermark_ImageInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Upload Watermark Image`)
};
const zh_upload_watermark_image = /** @type {(inputs: Upload_Watermark_ImageInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`上传水印图片`)
};
/**
* | output |
* | --- |
* | "Upload Watermark Image" |
*
* @param {Upload_Watermark_ImageInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const upload_watermark_image = /** @type {((inputs?: Upload_Watermark_ImageInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Upload_Watermark_ImageInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_upload_watermark_image(inputs)
return zh_upload_watermark_image(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Drag and drop, or browse. Max 1MB." |
*
* @param {Upload_Watermark_Image_HintInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const upload_watermark_image_hint: ((inputs?: Upload_Watermark_Image_HintInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Upload_Watermark_Image_HintInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Upload_Watermark_Image_HintInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Upload_Watermark_Image_HintInputs */
const en_upload_watermark_image_hint = /** @type {(inputs: Upload_Watermark_Image_HintInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Drag and drop, or browse. Max 1MB.`)
};
const zh_upload_watermark_image_hint = /** @type {(inputs: Upload_Watermark_Image_HintInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`拖放或浏览文件。最大 1MB。`)
};
/**
* | output |
* | --- |
* | "Drag and drop, or browse. Max 1MB." |
*
* @param {Upload_Watermark_Image_HintInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const upload_watermark_image_hint = /** @type {((inputs?: Upload_Watermark_Image_HintInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Upload_Watermark_Image_HintInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_upload_watermark_image_hint(inputs)
return zh_upload_watermark_image_hint(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Watermark" |
*
* @param {WatermarkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const watermark: ((inputs?: WatermarkInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<WatermarkInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type WatermarkInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} WatermarkInputs */
const en_watermark = /** @type {(inputs: WatermarkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Watermark`)
};
const zh_watermark = /** @type {(inputs: WatermarkInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`水印`)
};
/**
* | output |
* | --- |
* | "Watermark" |
*
* @param {WatermarkInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const watermark = /** @type {((inputs?: WatermarkInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<WatermarkInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_watermark(inputs)
return zh_watermark(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Watermark disabled" |
*
* @param {Watermark_Disabled_MsgInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const watermark_disabled_msg: ((inputs?: Watermark_Disabled_MsgInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Watermark_Disabled_MsgInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Watermark_Disabled_MsgInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Watermark_Disabled_MsgInputs */
const en_watermark_disabled_msg = /** @type {(inputs: Watermark_Disabled_MsgInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Watermark disabled`)
};
const zh_watermark_disabled_msg = /** @type {(inputs: Watermark_Disabled_MsgInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`水印已禁用`)
};
/**
* | output |
* | --- |
* | "Watermark disabled" |
*
* @param {Watermark_Disabled_MsgInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const watermark_disabled_msg = /** @type {((inputs?: Watermark_Disabled_MsgInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Watermark_Disabled_MsgInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_watermark_disabled_msg(inputs)
return zh_watermark_disabled_msg(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Watermark Editor" |
*
* @param {Watermark_EditorInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const watermark_editor: ((inputs?: Watermark_EditorInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Watermark_EditorInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Watermark_EditorInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Watermark_EditorInputs */
const en_watermark_editor = /** @type {(inputs: Watermark_EditorInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Watermark Editor`)
};
const zh_watermark_editor = /** @type {(inputs: Watermark_EditorInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`水印编辑器`)
};
/**
* | output |
* | --- |
* | "Watermark Editor" |
*
* @param {Watermark_EditorInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const watermark_editor = /** @type {((inputs?: Watermark_EditorInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Watermark_EditorInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_watermark_editor(inputs)
return zh_watermark_editor(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Enable Watermark" |
*
* @param {Watermark_EnabledInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const watermark_enabled: ((inputs?: Watermark_EnabledInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Watermark_EnabledInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Watermark_EnabledInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Watermark_EnabledInputs */
const en_watermark_enabled = /** @type {(inputs: Watermark_EnabledInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Enable Watermark`)
};
const zh_watermark_enabled = /** @type {(inputs: Watermark_EnabledInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`启用水印`)
};
/**
* | output |
* | --- |
* | "Enable Watermark" |
*
* @param {Watermark_EnabledInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const watermark_enabled = /** @type {((inputs?: Watermark_EnabledInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Watermark_EnabledInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_watermark_enabled(inputs)
return zh_watermark_enabled(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Templates" |
*
* @param {Watermark_TemplatesInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const watermark_templates: ((inputs?: Watermark_TemplatesInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Watermark_TemplatesInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Watermark_TemplatesInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Watermark_TemplatesInputs */
const en_watermark_templates = /** @type {(inputs: Watermark_TemplatesInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Templates`)
};
const zh_watermark_templates = /** @type {(inputs: Watermark_TemplatesInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`水印模板`)
};
/**
* | output |
* | --- |
* | "Templates" |
*
* @param {Watermark_TemplatesInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const watermark_templates = /** @type {((inputs?: Watermark_TemplatesInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Watermark_TemplatesInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_watermark_templates(inputs)
return zh_watermark_templates(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Transcoding watermark media..." |
*
* @param {Watermark_Transcoding_ProcessingInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const watermark_transcoding_processing: ((inputs?: Watermark_Transcoding_ProcessingInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Watermark_Transcoding_ProcessingInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Watermark_Transcoding_ProcessingInputs = {};

Some files were not shown because too many files have changed in this diff Show More